 :root {
            /* Palette: Adjusted for slightly brighter ambience */
            --bg-dark: #08081a; /* روشن‌تر از قبل (#050511) */
            --accent-primary: #6c5ce7; /* Royal Purple */
            --accent-secondary: #ff005c; /* Modern Pomegranate */
            --accent-gold: #ffd700; /* Gold */
            --text-main: #ffffff;
            --text-muted: #b0b0c0; /* کمی روشن‌تر برای خوانایی بهتر */
            
            /* Glassmorphism Variables - Slightly Brighter */
            --glass-bg: rgba(255, 255, 255, 0.05); /* شفافیت بیشتر (روشن‌تر) */
            --glass-border: rgba(255, 255, 255, 0.12); /* مرز مشخص‌تر */
            --glass-highlight: rgba(255, 255, 255, 0.18);
            --blur-strength: 28px;
            
            /* Link Color - Lighter Purple */
            --link-color: #3FFFC4; 
        }

        * { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }

        html, body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
        }

        body {
            font-family: 'IRANSansX', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            line-height: 1.8;
            min-height: 100vh;
            position: relative;
            padding-bottom: 100px; /* Space for sticky bar */
        }

        /* --- 1. COSMIC BACKGROUND (Mesh Gradient Animation) --- */
        .cosmic-bg {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: -1;
            background: radial-gradient(circle at 50% 50%, #1f1f45 0%, #08081a 100%); /* گرادینت روشن‌تر */
            overflow: hidden;
        }
        
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            animation: floatOrb 15s infinite ease-in-out alternate;
        }
        .orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--accent-primary), transparent); }
        .orb-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, #2d3436, transparent); animation-delay: -5s; }
        .orb-3 { top: 40%; left: 30%; width: 30vw; height: 30vw; background: radial-gradient(circle, var(--accent-secondary), transparent); opacity: 0.2; animation-duration: 20s; }

        @keyframes floatOrb {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(30px, 50px) scale(1.1); }
        }

        /* --- 2. TYPOGRAPHY & GRADING --- */
        h1, h2, h3, h4 { font-family: 'IRANSansX', cursive; line-height: 1.3; letter-spacing: 0.5px; }
        
        .gold-gradient-text {
            background: linear-gradient(to bottom, #fff 0%, var(--accent-gold) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
        }

        h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 15px; }
        h2 { font-size: 1.8rem; margin-bottom: 20px; color: white; position: relative; display: inline-block;}
        h2::after { content:''; display: block; width: 40%; height: 3px; background: var(--accent-secondary); margin-top: 5px; border-radius: 2px; box-shadow: 0 0 10px var(--accent-secondary);}
        h3 { font-size: 1.4rem; color: var(--text-main); margin-top: 25px; margin-bottom: 15px; }
        h4 { font-size: 1.2rem; color: var(--accent-gold); margin-bottom: 10px; }

        p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 20px; text-align: justify; font-weight: 300; }
        a { text-decoration: none; transition: 0.3s; }
        strong { color: var(--accent-gold); font-weight: 700; }
        
        /* Inline link style - Updated Color */
        .text-link {
            color: var(--link-color); /* Updated link color */
            border-bottom: 1px dashed var(--link-color);
        }
        .text-link:hover {
            color: var(--accent-gold);
            border-bottom-color: var(--accent-gold);
        }

        /* --- 3. NAVIGATION --- */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            position: fixed;
            top: 0; left: 0; width: 100%;
            z-index: 100;
            background: rgba(8, 8, 26, 0.8); /* منطبق با پس‌زمینه جدید */
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-bottom: 1px solid var(--glass-border);
        }
        
        .logo { font-size: 1.5rem; font-weight: 900; color: white; display: flex; align-items: center; gap: 8px; }
        .logo span { color: var(--accent-secondary); }
        
        .nav-btn {
            background: rgba(255,255,255,0.08); /* کمی روشن‌تر */
            border: 1px solid var(--glass-border);
            padding: 8px 20px;
            border-radius: 50px;
            color: white;
            font-size: 0.9rem;
            transition: 0.3s;
        }
        .nav-btn:hover { background: var(--text-main); color: black; box-shadow: 0 0 15px white; }

      /* --- HERO IMAGE STYLE --- */
        .hero-img {
            width: 100%;
            max-width: 700px;
            height: auto;
            border-radius: 24px;
            margin-bottom: 35px;
            box-shadow: 0 10px 40px rgba(108, 92, 231, 0.25), 0 0 0 1px var(--glass-border);
            border: 1px solid var(--glass-border);
            transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
            object-fit: cover;
        }

        .hero-img:hover {
            transform: scale(1.02) translateY(-5px);
            box-shadow: 0 20px 50px rgba(108, 92, 231, 0.4);
        }

        /* --- 4. HERO SECTION & GLASS CARD --- */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 120px 20px 40px;
            position: relative;
        }

        .glass-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-top: 1px solid var(--glass-highlight); 
            backdrop-filter: blur(var(--blur-strength));
            -webkit-backdrop-filter: blur(var(--blur-strength));
            border-radius: 30px;
            padding: 50px 30px;
            max-width: 650px;
            width: 100%;
            box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 0 30px rgba(255,255,255,0.03); /* سایه کمی روشن‌تر */
            position: relative;
            overflow: hidden;
            margin-top: 30px;
        }

        /* Glow effect behind card */
        .hero::before {
            content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 300px; height: 300px; background: var(--accent-primary);
            filter: blur(100px); opacity: 0.4; z-index: -1;
            border-radius: 50%;
        }

        /* --- 5. MAGIC BUTTON (The CTA) --- */
        .btn-magic {
            background: linear-gradient(135deg, var(--accent-primary), #8e44ad);
            color: white;
            padding: 18px 40px;
            font-family: 'IRANSansX';
            font-weight: 800;
            font-size: 1.2rem;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: 0.4s;
            box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
            width: 100%;
            max-width: 350px;
            margin-top: 25px;
            display: inline-block;
        }

        .btn-magic::before {
            content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: 0.5s;
        }
        
        .btn-magic:hover { transform: scale(1.03); box-shadow: 0 15px 40px rgba(108, 92, 231, 0.5); }
        .btn-magic:hover::before { left: 100%; }

        /* Oath Text Style - Restored and Styled */
        .ghasem-nameh {
            font-family: 'IRANSansX', cursive;
            font-size: 1.1rem;
            color: var(--accent-gold);
            background: rgba(255, 215, 0, 0.05); /* پس‌زمینه طلایی خیلی محو */
            padding: 15px;
            border-radius: 15px;
            border: 1px dashed rgba(255, 215, 0, 0.3);
            margin: 20px auto;
            line-height: 1.8;
            max-width: 500px;
            text-align: center;
        }

        /* --- 6. FEATURE GRID --- */
        .content-container { max-width: 900px; width: 100%; margin: 0 auto; padding: 80px 20px; }

        .grid-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }
        
        /* Smaller grid for daily section */
        .grid-mini {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .feature-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            padding: 30px;
            border-radius: 24px;
            transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            text-align: center;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
        }

        .feature-card:hover {
            background: rgba(255, 255, 255, 0.08); /* روشن‌تر در هاور */
            border-color: var(--accent-primary);
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        }

        .card-icon { 
            font-size: 3rem; margin-bottom: 15px; display: inline-block; 
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
        }
        
        .card-link {
            color: var(--accent-gold); font-weight: bold; font-size: 0.9rem;
            display: inline-flex; align-items: center; gap: 5px;
            margin-top: 15px;
        }
        .card-link:hover { color: white; gap: 10px; } 

        /* --- 7. FAQ ACCORDION --- */
        details {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            margin-bottom: 15px;
            overflow: hidden;
            transition: 0.3s;
        }
        details[open] { background: rgba(255, 255, 255, 0.08); border-color: var(--glass-highlight); }
        
        summary {
            padding: 20px;
            font-weight: 700;
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: white;
        }
        summary::-webkit-details-marker { display: none; }
        
        summary:after { 
            content: '+'; font-size: 1.5rem; color: var(--accent-gold); transition: 0.3s; 
        }
        details[open] summary:after { transform: rotate(45deg); content: '+'; color: var(--accent-secondary); }
        
        .faq-content { padding: 0 20px 25px; color: var(--text-muted); font-size: 1rem; border-top: 1px solid var(--glass-border); margin-top: -5px; padding-top: 15px; }

        /* --- 8. STICKY FAB (Floating Action Bar) --- */
        .fab-container {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 420px;
            z-index: 900;
            background: rgba(20, 20, 30, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 10px 12px;
            border-radius: 60px;
            border: 1px solid rgba(255,255,255,0.15);
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 15px 40px rgba(0,0,0,0.6);
            animation: slideUp 0.5s ease-out 1s backwards;
        }
        
        @keyframes slideUp { from { transform: translate(-50%, 100px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

        .fab-text { font-size: 0.85rem; color: white; margin-right: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .fab-btn {
            background: white;
            color: var(--bg-dark);
            padding: 10px 24px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 900;
            white-space: nowrap;
            box-shadow: 0 0 15px rgba(255,255,255,0.2);
        }
        .fab-btn:hover { background: var(--accent-gold); }

        /* Loading Animation */
        .loader { display: none; margin-top: 25px; }
        .orbit-spinner {
            width: 50px; height: 50px; border-radius: 50%;
            border: 2px solid transparent; border-top-color: var(--accent-gold); border-bottom-color: var(--accent-primary);
            animation: spin 1s linear infinite; margin: 0 auto;
        }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        /* Footer */
        footer {
            text-align: center; padding: 60px 20px; border-top: 1px solid var(--glass-border);
            margin-top: 60px; color: var(--text-muted); font-size: 0.9rem;
        }
        .footer-links a { margin: 0 12px; color: var(--text-muted); font-size: 0.9rem; }
        .footer-links a:hover { color: var(--accent-gold); }

        /* Mobile Fixes */
        @media (max-width: 480px) {
            h1 { font-size: 2.5rem; }
            .glass-card { padding: 40px 20px; border-radius: 25px; }
            .fab-text { font-size: 0.8rem; }
            .fab-btn { padding: 8px 18px; }
        }

        /* ===== Book UI/UX Styles ===== */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        #book {
            cursor: pointer;
            position: relative;
        }
        #book.holding {
            cursor: grabbing;
        }
        #book.book-section__open-book {
            cursor: default;
        }
        #book:focus {
            outline: none;
        }
        
        #book.holding .book-section__content {
            transform: rotate3d(0,1,0,-30deg) rotate3d(1,0,0, 10deg) scale(1.02);
        }
        
        #book.holding .book-section__book-right,
        #book.holding .book-section__book-top,
        #book.holding .book-section__book-bottom {
            animation: pageBreathing 0.8s ease-in-out infinite;
        }
        
        @keyframes pageBreathing {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.85; }
        }
        
        .book-section__open-book .book-section__content {
            transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        }
        .book-section__open-book .book-section__font {
            transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        }
        
        #sparkle-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: visible;
            z-index: 200;
        }
        
        .sparkle {
            position: absolute;
            width: 10px;
            height: 10px;
            background: radial-gradient(circle, #FFD700 0%, transparent 70%);
            border-radius: 50%;
            opacity: 0;
            pointer-events: none;
        }
        
        .sparkle.animate {
            animation: sparkleEffect 1.2s ease-out forwards;
        }
        
        @keyframes sparkleEffect {
            0% {
                opacity: 1;
                transform: scale(0) translate(0, 0);
            }
            50% {
                opacity: 1;
                transform: scale(1.5) translate(var(--tx), var(--ty));
            }
            100% {
                opacity: 0;
                transform: scale(0.5) translate(calc(var(--tx) * 2), calc(var(--ty) * 2));
            }
        }
        
        .sparkle-star {
            position: absolute;
            font-size: 20px;
            opacity: 0;
            pointer-events: none;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        }
        
        .sparkle-star.animate {
            animation: starSparkle 1.5s ease-out forwards;
        }
        
        @keyframes starSparkle {
            0% {
                opacity: 0;
                transform: scale(0) rotate(0deg);
            }
            30% {
                opacity: 1;
                transform: scale(1.2) rotate(180deg);
            }
            100% {
                opacity: 0;
                transform: scale(0.3) rotate(360deg) translateY(-50px);
            }
        }
        
        /* ===== Progress Bar Style ===== */
        #hold-progress-container {
            background: rgba(108, 92, 231, 0.15);
            border: 1px solid rgba(255, 215, 0, 0.3);
            width: 80%;
            max-width: 250px;
            height: 6px;
            border-radius: 10px;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.3s ease;
            margin: 50px auto 0;
        }
        
        #hold-progress-bar {
            background: linear-gradient(90deg, var(--accent-gold), #FFA500, var(--accent-primary));
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
            height: 100%;
            width: 0%;
            border-radius: 10px;
            transition: width 0.05s linear;
        }
        
        /* Particles Container */
        #particles-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: visible;
            z-index: 10;
        }
        
        .converging-particle {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 100;
        }
        
        .particle-gold {
            background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, transparent 70%);
            box-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255, 215, 0, 0.5);
        }
        
        .particle-purple {
            background: radial-gradient(circle, #8e44ad 0%, #6c5ce7 50%, transparent 70%);
            box-shadow: 0 0 10px #8e44ad, 0 0 20px rgba(142, 68, 173, 0.5);
        }
        
        .particle-white {
            background: radial-gradient(circle, #ffffff 0%, #e0e0e0 50%, transparent 70%);
            box-shadow: 0 0 8px #ffffff, 0 0 15px rgba(255, 255, 255, 0.5);
        }
        
        /* Mystical text hint */
        .mystical-hint {
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--accent-gold);
            font-size: 0.9rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            white-space: nowrap;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }
        
        #book.holding .mystical-hint {
            opacity: 1;
            animation: hintPulse 2s ease-in-out infinite;
        }
        
        @keyframes hintPulse {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
        }
        
        .hint-text {
            color: var(--text-muted);
            font-size: 0.9rem;
            text-align: center;
            margin-top: 15px;
        }
        
        #back-button {
            display: none;
            margin-top: -3rem;
            padding: 12px 30px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--glass-border);
            color: white;
            border-radius: 50px;
            cursor: pointer;
            font-family: 'IRANSansX', sans-serif;
            font-size: 1rem;
            transition: 0.3s;
        }
        #back-button:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
        }
        
        #audio-player-container {
            display: none;
            margin: 30px auto;
            padding: 20px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            max-width: 500px;
            text-align: center;
        }
        .audio-title {
            color: var(--accent-gold);
            font-size: 1rem;
            margin-bottom: 15px;
        }
        #ghazal-audio-player {
            width: 100%;
            border-radius: 10px;
        }

        /* Horoscope Section */
        #horoscope-section {
            display: none;
            padding: 60px 20px;
            max-width: 900px;
            margin: 0 auto;
        }
        .horoscope-title {
            font-family: 'IRANSansX', cursive;
            font-size: 1.8rem;
            color: var(--accent-gold);
            text-align: center;
            margin-bottom: 30px;
        }
        .horoscope-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 20px;
        }
        .horoscope-card h3 {
            color: var(--accent-secondary);
            font-size: 1.3rem;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--glass-border);
            padding-bottom: 10px;
        }
        .horoscope-card h4 {
            color: var(--accent-primary);
            font-size: 1.1rem;
            margin-top: 15px;
            margin-bottom: 8px;
        }
        .horoscope-card p {
            color: var(--text-muted);
            font-size: 1rem;
            line-height: 1.8;
            text-align: right;
        }
        .horoscope-card ul {
            list-style: none;
            padding: 0;
            margin: 10px 0;
        }
        .horoscope-card ul li {
            color: var(--text-muted);
            padding: 8px 0;
            border-bottom: 1px dashed var(--glass-border);
            position: relative;
            padding-right: 25px;
        }
        .horoscope-card ul li::before {
            content: '✦';
            color: var(--accent-gold);
            position: absolute;
            right: 0;
        }

        @media (prefers-reduced-motion: reduce) {
            .book-section__content,
            .book-section__font,
            #book::after,
            .sparkle,
            .sparkle-star,
            #hold-progress-bar,
            .progress-ring__progress {
                animation: none !important;
                transition: none !important;
            }
        }

        .book-container {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* ========================================
           BOOK STYLES - RESIZED SMALLER
           ======================================== */
        
        #book {
            width: min(100%, 420px); /* Reduced from 520px */
            max-width: 420px; /* Reduced from 520px */
            aspect-ratio: 420 / 560;
            margin: 15px auto 0;
            position: relative;
            perspective: 2000px;
            cursor: pointer;
            --book-thickness: 32px;
            --page-color: #fdfaf2;
            overflow: visible;
        }

        @media (min-width: 1024px) {
            #book {
                max-width: 460px; /* Reduced */
            }
        }
        
        @media (max-width: 480px) {
            #book {
                width: 100%;
                max-width: 250px;
                --book-thickness: 26px;
            }
        }
        
        .book-section__content {
            width: 100%;
            height: 100%;
            color: #92684F;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s ease-in-out;
        }
        
        .book-section__view-cover:hover .book-section__content,
        .book-section__view-cover.holding .book-section__content {
            transform: rotate3d(0,1,0,-30deg) rotate3d(1,0,0, 10deg);
        }
        
        /* کتاب باز شده - اصلاح شده برای نمایش شیرازه */
        .book-section__open-book .book-section__content {
            transform: translate3d(8%, 0, 0);
        }
        
        .book-section__zoomed-in .book-section__content {
            transform: translate3d(5%, 0, 0) scale(1);
        }
        
        @media (max-width: 768px) {
            .book-section__open-book .book-section__content {
                transform: translate3d(6%, 0, 0);
            }
            .book-section__zoomed-in .book-section__content {
                transform: translate3d(4%, 0, 0) scale(1);
            }
        }
        
        @media (max-width: 480px) {
            .book-section__open-book .book-section__content,
            .book-section__zoomed-in .book-section__content {
                transform: translate3d(3%, 0, 0) scale(0.98);
            }
        }
        
        .book-section__font {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            bottom: 0;
            z-index: 10;
            transform-style: preserve-3d;
            transform-origin: 0% 50%;
            transition: transform .5s;
            transform: translate3d(0, 0, calc(var(--book-thickness) / 2));
        }
        
        .book-section__open-book .book-section__font {
            transform: translate3d(0, 0, calc(var(--book-thickness) / 2)) rotate3d(0,1,0,-175deg);
        }
        
        .book-section__cover {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            bottom: 0;
            background: url(https://faalhoosh.com/hafez-cover.jpg) no-repeat;
            background-color: #5e3b2d;
            background-size: cover;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            border-radius: 2px 4px 4px 2px;
        }
        
        .book-section__cover:after {
            content: "";
            width: 3px;
            position: absolute;
            top: 0;
            left: 10px;
            bottom: 0;
            background: rgba(0,0,0,0.06);
            box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1);
        }
        
        .book-section__cover-back {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            bottom: 0;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            transform: rotate3d(0,1,0,-180deg);
            border-radius: 2px 4px 4px 2px;
            background-color: var(--page-color);
            background-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 5%, rgba(0,0,0,0) 95%, rgba(0,0,0,0.05) 100%);
            box-shadow: inset -10px 0 20px -10px rgba(0,0,0,0.3);
        }
        
        .book-section__page {
            width: calc(100% - 5px);
            height: calc(100% - 10px);
            position: absolute;
            top: 5px;
            z-index: 9;
            box-shadow: inset 3px 0 10px rgba(0,0,0,0.1);
            transform-style: preserve-3d;
            transform: translate3d(0, 0, calc(var(--book-thickness) / 2 - 1px));
            border-radius: 0 3px 3px 0;
            background-color: var(--page-color);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .book-section__open-book .book-section__page,
        .book-section__view-cover.holding .book-section__page {
            opacity: 1;
        }
        
        #inside-content {
            padding: 35px 15px 100px 15px;
            background: url('https://faalhoosh.com/hafez-inside-background.jpg') no-repeat center center;
            background-size: 100% 100%;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            width: 100%;
        }
        
        /* ========================================
           GHAZAL STYLES
           ======================================== */
        
        .ghazal-container {
            width: 100%;
            height: 100%;
            overflow: hidden;
            padding: 5px 10px 25px 10px;
            text-align: center;
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
        }
        
        .ghazal-container::-webkit-scrollbar {
            width: 6px;
        }
        
        .ghazal-container::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.05);
            border-radius: 10px;
        }
        
        .ghazal-container::-webkit-scrollbar-thumb {
            background: #92684F;
            border-radius: 10px;
        }
        
        .ghazal-title {
            font-family: 'IRANSansX', cursive;
            font-size: 1.1em;
            color: #5e3b2d !important;
            margin-bottom: 12px;
            text-align: center;
            -webkit-text-fill-color: #5e3b2d !important;
            text-shadow: none !important;
            width: 100%;
            flex-shrink: 0;
        }
        
        .ghazal-title::after {
            content: '';
            display: block;
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #92684F, transparent);
            margin: 6px auto 0;
            border-radius: 2px;
        }
        
        .poem-body {
            font-family: 'IRANSansX', serif;
            font-size: 0.9em;
            line-height: 1.4;
            color: #4a3728;
            direction: rtl;
            width: 100%;
            flex-grow: 1;
            margin-top: 5px;
            padding-top: 5px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
        }

        .poem-body::-webkit-scrollbar {
            width: 6px;
        }

        .poem-body::-webkit-scrollbar-track {
            background: rgba(0,0,0,0.05);
            border-radius: 10px;
        }

        .poem-body::-webkit-scrollbar-thumb {
            background: #92684F;
            border-radius: 10px;
        }
        
        .beit {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(146, 104, 79, 0.12);
            width: 100%;
            text-align: center;
        }
        
        .beit:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .mesra {
            margin-bottom: 2px;
            padding: 0;
            color: #4a3728;
            font-size: 1.2em;
            line-height: 1.5;
            text-align: center;
        }
        
        .beit .mesra:last-child {
            margin-bottom: 0;
        }
        
        @media (max-width: 480px) {
            .ghazal-title {
                font-size: 0.95em;
                margin-bottom: 8px;
            }
            .ghazal-title::after {
                width: 40px;
                margin: 4px auto 0;
            }
            .poem-body {
                font-size: 0.8em;
            }
            .mesra {
                font-size: 1em;
                line-height: 1.4;
            }
            .beit {
                margin-bottom: 10px;
                padding-bottom: 10px;
            }
            #inside-content {
                padding: 25px 10px 80px 10px;
            }
            .ghazal-container {
                padding: 3px 8px 20px 8px;
            }
        }
        
        /* ========================================
           BOOK SPINE & EDGES
           ======================================== */
        
        .book-section__book-back {
            width: 100%;
            height: 100%;
            background: url(https://faalhoosh.com/hafez-cover.jpg) no-repeat;
            background-color: #5e3b2d;
            background-size: cover;
            position: absolute;
            top: 0;
            bottom: 0;
            color: white;
            transform: rotate3d(0,1,0,-180deg) translate3d(0, 0, calc(var(--book-thickness) / 2));
            z-index: 8;
            border-radius: 2px 4px 4px 2px;
        }
        
        .book-section__book-back:after {
            content: "";
            width: 3px;
            position: absolute;
            top: 0;
            left: 10px;
            bottom: 0;
            background: rgba(0,0,0,0.06);
            box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1);
        }
        
        .book-section__book-bone {
            width: var(--book-thickness);
            background: linear-gradient(90deg, #29303A 0%, #3d4654 50%, #29303A 100%);
            box-shadow: 1px 0 0 #29303A, -1px 0 0 #29303A;
            position: absolute;
            top: 0;
            bottom: 0;
            left: calc(var(--book-thickness) / -2);
            transform: rotate3d(0,1,0,-90deg);
            border-radius: 2px;
        }
        
        .book-section__book-top,
        .book-section__book-right,
        .book-section__book-bottom {
            background: var(--page-color);
            backface-visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        /* نمایش لبه‌ها فقط وقتی کتاب می‌چرخد یا باز است */
        .book-section__view-cover.holding .book-section__book-top,
        .book-section__view-cover.holding .book-section__book-right,
        .book-section__view-cover.holding .book-section__book-bottom,
        .book-section__open-book .book-section__book-top,
        .book-section__open-book .book-section__book-right,
        .book-section__open-book .book-section__book-bottom {
            opacity: 1;
        }
        
        .book-section__book-right {
            width: var(--book-thickness);
            height: calc(100% - 10px);
            position: absolute;
            top: 5px;
            right: calc(var(--book-thickness) / -2 + 5px);
            transform: rotate3d(0,1,0,90deg);
            background-image: linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
            background-size: 3px 100%;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
        }
        
        .book-section__book-top {
            width: calc(100% - 5px);
            height: var(--book-thickness);
            position: absolute;
            top: calc(var(--book-thickness) / -2 + 5px);
            left: 0;
            transform: rotate3d(1,0,0,90deg);
            background-image: linear-gradient(0deg, rgba(0,0,0,0.05) 1px, transparent 1px);
            background-size: 100% 3px;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
        }
        
        .book-section__book-bottom {
            width: calc(100% - 5px);
            height: var(--book-thickness);
            position: absolute;
            bottom: calc(var(--book-thickness) / -2 + 5px);
            left: 0;
            transform: rotate3d(1,0,0,-90deg) translate3d(0,0,0);
            background-image: linear-gradient(0deg, rgba(0,0,0,0.05) 1px, transparent 1px);
            background-size: 100% 3px;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
        }
        
        /* ========================================
           GLASS CARD - اصلاح برای جا دادن کتاب
           ======================================== */
        
        .glass-card.book-container {
            padding: 60px 50px 45px;
            min-height: auto;
            overflow: visible;
            max-width: 860px;
            width: min(94vw, 860px);
        }
        
        @media (max-width: 480px) {
            .glass-card.book-container {
                padding: 30px 15px 25px;
                margin: 20px 10px 0;
                border-radius: 20px;
            }
        }
        
        /* ========================================
           HOROSCOPE SECTION - بخش تفسیر
           ======================================== */
        
        #horoscope-section {
            display: none;
            padding: 40px 20px;
            max-width: 900px;
            margin: 0 auto;
        }
        
        .horoscope-title {
            font-family: 'IRANSansX', cursive;
            font-size: 1.8rem;
            color: var(--accent-gold) !important;
            text-align: center;
            margin-bottom: 30px;
            position: relative;
        }
        
        .horoscope-title::after {
            content: '';
            display: block;
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
            margin: 15px auto 0;
            border-radius: 2px;
        }
        
        .horoscope-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 20px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: box-shadow 0.3s ease;
        }
        
        .horoscope-card:hover {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .horoscope-card h3 {
            font-family: 'IRANSansX', cursive;
            color: var(--accent-secondary) !important;
            font-size: 1.3rem;
            margin-top: 0;
            margin-bottom: 15px;
            border-bottom: 1px solid var(--glass-border);
            padding-bottom: 10px;
        }
        
        .horoscope-card h4 {
            color: var(--accent-primary) !important;
            font-size: 1.1rem;
            margin-top: 15px;
            margin-bottom: 8px;
        }
        
        .horoscope-card p {
            color: var(--text-muted) !important;
            font-size: 1rem;
            line-height: 1.8;
            text-align: right;
            white-space: pre-wrap;
        }
        
        .horoscope-card ul {
            list-style: none;
            padding: 0;
            margin: 10px 0;
        }
        
        .horoscope-card ul li {
            color: var(--text-muted);
            padding: 10px 0;
            border-bottom: 1px dashed var(--glass-border);
            position: relative;
            padding-right: 25px;
        }
        
        .horoscope-card ul li::before {
            content: '✦';
            color: var(--accent-gold);
            position: absolute;
            right: 0;
        }
        
        .horoscope-card ul li:last-child {
            border-bottom: none;
        }
        
        /* ========================================
           SCROLL INDICATOR - راهنمای اسکرول
           ======================================== */
        
        .scroll-indicator {
            position: fixed;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--accent-primary), #8e44ad);
            color: white;
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            z-index: 800;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }
        
        .scroll-indicator.visible {
            opacity: 1;
            visibility: visible;
            animation: bounceUp 1s ease infinite;
        }
        
        .scroll-indicator:hover {
            transform: translateX(-50%) scale(1.05);
        }
        
        @keyframes bounceUp {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-8px); }
        }
        
        .scroll-indicator .arrow {
            animation: arrowBounce 1s ease infinite;
        }
        
        @keyframes arrowBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(3px); }
        }
		
		

        /* ========================================
           --- NEW SECTIONS CSS --- update 24 azar 1404
           ======================================== */
       
        /* 1. Intention Guide (Chips) */
        .intention-container {
            margin-top: 25px;
            margin-bottom: 40px;
        }
        .intention-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }
        .intention-chip {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            padding: 8px 16px;
            border-radius: 50px;
            color: #e0e0e0;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .intention-chip:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
        }

        /* 2. Energy Calendar Box */
        .energy-calendar-box {
            background: linear-gradient(135deg, rgba(20, 20, 40, 0.8), rgba(40, 20, 60, 0.8));
            border: 1px solid var(--accent-gold);
            border-radius: 20px;
            padding: 30px;
            margin-top: 40px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        }
        .energy-calendar-box::before {
            content: '🐍'; /* Snake for 1404 context */
            position: absolute;
            font-size: 8rem;
            right: -20px;
            bottom: -20px;
            opacity: 0.05;
            transform: rotate(-15deg);
        }
        .energy-calendar-content h3 {
            color: var(--accent-gold);
            margin-top: 0;
            font-family: 'IRANSansX', cursive;
        }
        .energy-list {
            list-style: none;
            padding: 0;
            margin-top: 15px;
        }
        .energy-list li {
            margin-bottom: 12px;
            padding-right: 25px;
            position: relative;
            color: #dcdde1;
            line-height: 1.6;
        }
        .energy-list li::before {
            content: '✦';
            color: var(--accent-secondary);
            position: absolute;
            right: 0;
            font-size: 1.2rem;
        }

        /* 3. Yalda Symbols Grid */
        .yalda-symbols-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        .symbol-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            transition: 0.3s;
        }
        .symbol-card:hover {
            background: rgba(255, 255, 255, 0.07);
            transform: translateY(-5px);
            border-color: var(--accent-gold);
        }
        .symbol-emoji {
            font-size: 2.5rem;
            margin-bottom: 10px;
            display: block;
        }
        .symbol-title {
            color: var(--accent-secondary);
            font-family: 'IRANSansX', cursive;
            font-size: 1.1rem;
            margin-bottom: 8px;
        }
        .symbol-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* 4. Short Stories (Testimonials) */
        .yalda-stories-container {
            margin-top: 40px;
        }
        .story-card {
            background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
            border-right: 3px solid var(--accent-primary);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            position: relative;
        }
        .story-card::after {
            content: '”';
            position: absolute;
            top: 10px;
            left: 20px;
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.05);
            font-family: 'IRANSansX';
            line-height: 0;
        }
        .story-text {
            color: #e0e0e0;
            font-style: italic;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        .story-author {
            color: var(--accent-gold);
            font-size: 0.85rem;
            font-weight: bold;
            display: block;
            text-align: left;
        }