        .home-container {
            max-width: 1020px;
            margin: 0 auto;
            position: relative;
        }

        .hero-section {
            position: relative;
            overflow: hidden;
            text-align: center;
            padding: 34px 28px 30px;
            border-radius: 28px;
            color: #fff;
            margin-bottom: 36px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background:
                radial-gradient(1200px 260px at -5% -30%, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 60%),
                radial-gradient(700px 260px at 110% 0%, rgba(255, 221, 150, 0.28) 0%, rgba(255, 221, 150, 0) 55%),
                linear-gradient(135deg, rgba(var(--primary-rgb), 0.96) 0%, rgba(var(--primary-rgb), 0.76) 100%);
            box-shadow: 0 22px 50px rgba(var(--primary-rgb), 0.28);
        }

        .hero-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(-45deg,
                    rgba(255, 255, 255, 0.05) 0,
                    rgba(255, 255, 255, 0.05) 2px,
                    transparent 2px,
                    transparent 12px);
            opacity: 0.22;
            pointer-events: none;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            width: 240px;
            height: 240px;
            border-radius: 50%;
            left: -80px;
            bottom: -130px;
            background: rgba(255, 255, 255, 0.16);
            pointer-events: none;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            background: rgba(255, 255, 255, 0.18);
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 16px;
            backdrop-filter: blur(8px);
            position: relative;
            z-index: 1;
            max-width: 100%;
            width: fit-content;
            line-height: 1.5;
            text-align: center;
            white-space: normal;
            box-sizing: border-box;
        }

        .hero-badge i {
            flex: 0 0 auto;
        }

        .hero-icon-shell {
            width: 98px;
            height: 98px;
            margin: 0 auto 14px;
            border-radius: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(165deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16));
            border: 1px solid rgba(255, 255, 255, 0.34);
            position: relative;
            z-index: 1;
        }

        .hero-icon {
            font-size: 46px;
            line-height: 1;
        }

        .hero-title {
            font-size: 46px;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        .hero-subtitle {
            font-size: 21px;
            opacity: 0.94;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
        }

        .hero-description {
            font-size: 14px;
            opacity: 0.88;
            max-width: 560px;
            margin: 0 auto 16px;
            line-height: 1.9;
            position: relative;
            z-index: 1;
        }

        .hero-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin: 0 auto 16px;
            max-width: 560px;
            position: relative;
            z-index: 1;
        }

        .hero-metric {
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.14);
            padding: 10px 8px;
            backdrop-filter: blur(4px);
        }

        .hero-metric-value {
            display: block;
            font-size: 20px;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 4px;
        }

        .hero-metric-label {
            font-size: 12px;
            opacity: 0.95;
        }

        .hero-cta-row {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            position: relative;
            z-index: 1;
        }

        .hero-cta {
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.35);
            padding: 10px 16px;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.28);
            border-color: rgba(255, 255, 255, 0.55);
        }

        .hero-cta.secondary {
            background: rgba(0, 0, 0, 0.18);
        }

        .smart-dashboard-section,
        .habit-dashboard-section {
            margin-bottom: 28px;
            padding: 16px;
            border: 1px solid var(--border-color);
            border-radius: 22px;
            background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.02));
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
        }

        [data-theme="dark"] .smart-dashboard-section,
        [data-theme="dark"] .habit-dashboard-section {
            background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.05));
        }

        .dashboard-header,
        .habit-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }

        .dashboard-title,
        .habit-title {
            font-size: 22px;
            font-weight: 800;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.01em;
        }

        .dashboard-link {
            text-decoration: none;
            font-size: 12px;
            font-weight: 700;
            color: var(--primary-color);
            background: rgba(var(--primary-rgb), 0.1);
            border: 1px solid rgba(var(--primary-rgb), 0.28);
            border-radius: 999px;
            padding: 8px 12px;
            transition: background var(--transition-fast), transform var(--transition-fast);
        }

        .dashboard-link:hover {
            background: rgba(var(--primary-rgb), 0.2);
            transform: translateY(-1px);
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .dashboard-card {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(var(--primary-rgb), 0.16);
            border-radius: 18px;
            background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.02) 42%, var(--card-bg) 100%);
            text-decoration: none;
            color: inherit;
            padding: 16px;
            min-height: 132px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
            transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
            text-align: right;
        }

        .dashboard-card::before {
            content: '';
            position: absolute;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            top: -110px;
            left: -70px;
            background: rgba(var(--primary-rgb), 0.11);
            pointer-events: none;
        }

        button.dashboard-card {
            width: 100%;
            cursor: pointer;
            font-family: inherit;
            border: none;
        }

        .dashboard-card:hover {
            transform: translateY(-4px);
            border-color: rgba(var(--primary-rgb), 0.38);
            box-shadow: 0 16px 28px rgba(0, 0, 0, 0.11);
        }

        .dashboard-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 18px;
            position: relative;
            z-index: 1;
        }

        .dashboard-card-label {
            font-size: 12px;
            color: var(--text-secondary, #666);
            font-weight: 700;
        }

        .dashboard-card-icon {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.24), rgba(var(--primary-rgb), 0.1));
            color: var(--primary-color);
            font-size: 16px;
            border: 1px solid rgba(var(--primary-rgb), 0.2);
        }

        .dashboard-card-value {
            font-size: 22px;
            font-weight: 800;
            color: var(--text-color);
            line-height: 1.4;
            letter-spacing: -0.01em;
            position: relative;
            z-index: 1;
        }

        .dashboard-card-meta {
            font-size: 12px;
            color: var(--text-secondary, #666);
            margin-top: 4px;
            position: relative;
            z-index: 1;
        }

        .habit-streak-card {
            border-radius: 22px;
            padding: 20px;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.03) 50%, var(--card-bg) 100%);
        }

        .habit-streak-main {
            display: flex;
            align-items: flex-end;
            gap: 10px;
        }

        .habit-streak-number {
            font-size: 44px;
            line-height: 1;
            font-weight: 800;
            color: var(--primary-color);
            letter-spacing: -0.02em;
        }

        .habit-streak-label {
            font-size: 14px;
            color: var(--text-secondary, #666);
            margin-bottom: 6px;
            font-weight: 600;
        }

        .habit-streak-meta {
            text-align: left;
            font-size: 13px;
            color: var(--text-secondary, #666);
            line-height: 1.7;
        }

        .habit-rings-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }

        .habit-ring-card {
            border-radius: 16px;
            padding: 14px 10px 12px;
            text-align: center;
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            background: linear-gradient(165deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.03) 60%, var(--card-bg) 100%);
        }

        .habit-ring {
            --ring-percent: 0;
            width: 86px;
            height: 86px;
            margin: 0 auto 10px;
            border-radius: 50%;
            background: conic-gradient(var(--primary-color) calc(var(--ring-percent) * 1%), rgba(var(--primary-rgb), 0.18) 0%);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: var(--text-color);
        }

        .habit-ring::after {
            content: '';
            position: absolute;
            inset: 9px;
            border-radius: 50%;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
        }

        .habit-ring span {
            position: relative;
            z-index: 1;
            font-size: 13px;
            font-weight: 800;
        }

        .habit-ring-name {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 2px;
        }

        .habit-ring-meta {
            font-size: 12px;
            color: var(--text-secondary, #666);
        }

        .khatma-core-feature {
            margin-bottom: 20px;
            border-radius: 22px;
            border: 1px solid rgba(var(--primary-rgb), 0.26);
            background:
                radial-gradient(560px 180px at 0% 0%, rgba(var(--primary-rgb), 0.16), transparent 60%),
                linear-gradient(145deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.04) 58%, var(--card-bg));
            padding: 18px;
            box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
        }

        .khatma-core-feature-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .khatma-core-feature-title {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-size: 22px;
            font-weight: 800;
            color: var(--text-color);
        }

        .khatma-core-feature-title i {
            color: var(--primary-color);
        }

        .khatma-core-feature-badge {
            border-radius: 999px;
            background: var(--primary-color);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            padding: 6px 10px;
            white-space: nowrap;
        }

        .khatma-core-feature-text {
            font-size: 14px;
            color: var(--text-secondary, #666);
            line-height: 1.8;
            margin-bottom: 12px;
        }

        .khatma-core-feature-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            border-radius: 12px;
            border: 1px solid rgba(var(--primary-rgb), 0.3);
            background: rgba(var(--primary-rgb), 0.14);
            color: var(--primary-color);
            font-size: 14px;
            font-weight: 800;
            padding: 10px 14px;
            transition: transform var(--transition-fast), background var(--transition-fast);
        }

        .khatma-core-feature-link:hover {
            transform: translateY(-1px);
            background: rgba(var(--primary-rgb), 0.22);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 28px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            color: var(--text-color);
            -webkit-tap-highlight-color: transparent;
        }

        .feature-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            border-color: var(--primary-color);
        }

        .feature-card:active {
            transform: translateY(-1px) scale(0.99);
        }

        .feature-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .feature-title {
            font-size: 18px;
            color: var(--text-color);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .feature-description {
            font-size: 14px;
            color: var(--text-secondary, #666);
            line-height: 1.5;
        }

        .stats-section {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 32px;
            margin-bottom: 32px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 24px;
            text-align: center;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .stat-item {
            padding: 16px;
        }

        .stat-number {
            font-size: 40px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 6px;
        }

        .stat-label {
            font-size: 14px;
            color: var(--text-secondary, #666);
        }

        .quick-actions {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
        }

        .quick-actions-title {
            font-size: 18px;
            color: var(--text-color);
            font-weight: 600;
            margin-bottom: 16px;
            text-align: center;
        }

        .home-clean-actions {
            margin-bottom: 28px;
            border-radius: 18px;
            border: 1px solid var(--border-color);
            background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.02));
            padding: 18px;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
        }

        .home-clean-actions h2 {
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--text-color);
        }

        .home-clean-actions p {
            font-size: 14px;
            color: var(--text-secondary, #666);
            margin-bottom: 14px;
            line-height: 1.7;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .action-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            background: var(--primary-color);
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            -webkit-tap-highlight-color: transparent;
        }

        .action-btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
        }

        .action-btn:active {
            transform: scale(0.97);
        }

        .action-btn.secondary {
            background: var(--bg-color);
            color: var(--text-color);
        }

        .action-btn.secondary:hover {
            background: var(--border-color);
        }

        .action-btn.secondary:hover {
            background: var(--primary-color);
            color: white;
        }

        @media (max-width: 768px) {
            .hero-section {
                padding: 24px 16px 22px;
                border-radius: 22px;
                margin-bottom: 28px;
            }

            .hero-title {
                font-size: 34px;
            }

            .hero-subtitle {
                font-size: 17px;
                margin-bottom: 8px;
            }

            .hero-description {
                font-size: 13px;
                margin-bottom: 12px;
            }

            .hero-metrics {
                gap: 8px;
            }

            .hero-metric {
                padding: 8px 6px;
            }

            .hero-metric-value {
                font-size: 17px;
            }

            .hero-cta {
                width: calc(50% - 6px);
                justify-content: center;
                font-size: 13px;
                padding: 10px 8px;
            }

            .home-clean-actions {
                padding: 14px;
            }

            .home-clean-actions h2 {
                font-size: 18px;
            }

            .stat-number {
                font-size: 36px;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
            }

            .habit-rings-grid {
                grid-template-columns: 1fr;
            }

            .khatma-core-feature {
                padding: 14px;
            }

            .khatma-core-feature-head {
                align-items: flex-start;
                flex-direction: column;
            }

            .khatma-core-feature-title {
                font-size: 19px;
            }

            .habit-streak-card {
                flex-direction: column;
                align-items: flex-start;
            }

            .habit-streak-number {
                font-size: 36px;
            }

            .habit-streak-meta {
                width: 100%;
                text-align: right;
            }
        }

        @media (max-width: 520px) {
            .hero-badge {
                font-size: 12px;
                padding: 7px 10px;
                gap: 6px;
                max-width: calc(100% - 4px);
            }

            .hero-cta {
                width: 100%;
            }
        }

        .visitor-badge {
            display: none !important;
            align-items: center;
            gap: 6px;
            background: var(--primary-color);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .visitor-badge i {
            font-size: 14px;
        }

        .visitor-badge .count {
            min-width: 20px;
        }

        .visitor-badge .loading {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* Daily Verse Styles */
        .daily-verse-section {
            margin-bottom: 40px;
        }

        .daily-verse-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 4px 12px var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .daily-verse-card::before {
            content: '"';
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 120px;
            color: var(--primary-color);
            opacity: 0.1;
            font-family: serif;
            line-height: 1;
        }

        .daily-verse-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .daily-verse-content {
            font-family: 'Amiri', serif;
            font-size: 24px;
            line-height: 2;
            color: var(--text-color);
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .daily-verse-info {
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
        }

        /* Resume Reading Styles */
        .resume-reading-section {
            margin-bottom: 40px;
        }

        .resume-card {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            border-radius: 16px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 20px;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 12px var(--shadow);
        }

        .resume-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px var(--shadow);
        }

        .resume-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .resume-content {
            flex: 1;
        }

        .resume-label {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .resume-details {
            font-size: 18px;
            font-weight: 700;
        }

        .resume-arrow {
            font-size: 24px;
            opacity: 0.8;
        }

        /* Khatma Planner */
        .khatma-section {
            margin-bottom: 32px;
        }

        .khatma-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px var(--shadow);
        }

        .khatma-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .khatma-subtitle {
            font-size: 13px;
            color: var(--text-secondary, #666);
            margin-bottom: 14px;
        }

        .khatma-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }

        .khatma-input {
            width: 100%;
            border: 1px solid var(--border-color);
            background: var(--bg-color);
            border-radius: 10px;
            color: var(--text-color);
            padding: 10px 12px;
            font-family: inherit;
            font-size: 14px;
        }

        .khatma-btn {
            border: none;
            border-radius: 10px;
            background: var(--primary-color);
            color: #fff;
            padding: 10px 12px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .khatma-btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
        }

        .khatma-btn.secondary {
            background: rgba(var(--primary-rgb), 0.12);
            color: var(--text-color);
        }

        .khatma-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 8px;
            margin-bottom: 12px;
        }

        .khatma-stat {
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 10px;
            text-align: center;
        }

        .khatma-stat-value {
            color: var(--primary-color);
            font-size: 19px;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .khatma-stat-label {
            color: var(--text-secondary, #666);
            font-size: 12px;
        }

        .khatma-today-target {
            background: rgba(var(--primary-rgb), 0.08);
            border: 1px solid rgba(var(--primary-rgb), 0.2);
            border-radius: 10px;
            padding: 10px;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .khatma-progress {
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: rgba(var(--primary-rgb), 0.12);
            overflow: hidden;
            margin-bottom: 10px;
        }

        .khatma-progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            transition: width 0.2s ease;
        }

        .khatma-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .khatma-read-row {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 8px;
            margin-bottom: 8px;
        }

        .mood-support-section {
            margin-bottom: 32px;
        }

        .mood-support-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px var(--shadow);
        }

        .mood-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mood-subtitle {
            font-size: 13px;
            color: var(--text-secondary, #666);
            margin-bottom: 12px;
        }

        .mood-input {
            width: 100%;
            min-height: 80px;
            resize: vertical;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-color);
            color: var(--text-color);
            padding: 10px 12px;
            font-family: inherit;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .mood-input:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .mood-chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .mood-chip {
            border: 1px solid var(--border-color);
            background: var(--bg-color);
            color: var(--text-color);
            border-radius: 999px;
            padding: 6px 11px;
            font-size: 13px;
            cursor: pointer;
        }

        .mood-generate-btn {
            border: none;
            border-radius: 10px;
            background: var(--primary-color);
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            padding: 10px 14px;
            cursor: pointer;
            margin-bottom: 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: background var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
        }

        .mood-generate-btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
        }

        .mood-generate-btn:disabled,
        .mood-generate-btn.is-loading {
            cursor: wait;
            opacity: 0.9;
            transform: none;
        }

        .mood-btn-spinner {
            width: 15px;
            height: 15px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.9s linear infinite;
            flex-shrink: 0;
        }

        .mood-status {
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 12px;
            background: var(--bg-color);
            display: none;
        }

        .mood-status.active {
            display: block;
        }

        .mood-status-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }

        .mood-status-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-color);
        }

        .mood-status-meta {
            font-size: 12px;
            color: var(--text-secondary, #666);
            font-weight: 700;
        }

        .mood-status-track {
            height: 6px;
            border-radius: 999px;
            background: rgba(var(--primary-rgb), 0.14);
            overflow: hidden;
            margin-bottom: 10px;
        }

        .mood-status-track-fill {
            display: block;
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            transition: width 0.25s ease;
        }

        .mood-status-steps {
            display: grid;
            gap: 6px;
        }

        .mood-status-step {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-secondary, #666);
            line-height: 1.4;
        }

        .mood-status-step i {
            font-size: 13px;
            flex-shrink: 0;
        }

        .mood-status-step.done {
            color: var(--primary-color);
            font-weight: 700;
        }

        .mood-status-step.current {
            color: var(--text-color);
            font-weight: 700;
        }

        .mood-status-step.failed {
            color: #b3392b;
            font-weight: 700;
        }

        [data-theme="dark"] .mood-status-step.failed {
            color: #ff9f8f;
        }

        .mood-step-spinner {
            width: 13px;
            height: 13px;
            border: 2px solid rgba(var(--primary-rgb), 0.22);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 0.9s linear infinite;
            flex-shrink: 0;
        }

        .mood-status.success .mood-status-title {
            color: var(--primary-color);
        }

        .mood-status.error .mood-status-title {
            color: #b3392b;
        }

        [data-theme="dark"] .mood-status.error .mood-status-title {
            color: #ff9f8f;
        }

        .mood-status.error .mood-status-track-fill {
            background: linear-gradient(90deg, #c0392b, #d35400);
        }

        .mood-result {
            border: 1px dashed var(--border-color);
            border-radius: 10px;
            padding: 12px;
            background: rgba(var(--primary-rgb), 0.05);
            display: none;
        }

        .mood-result.active,
        .mood-result.is-loading,
        .mood-result.error {
            display: block;
        }

        .mood-result.is-loading {
            border-style: solid;
            background: var(--card-bg);
        }

        .mood-result.error {
            border-style: solid;
            border-color: rgba(179, 57, 43, 0.35);
            background: rgba(179, 57, 43, 0.06);
        }

        .mood-loading-title {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-color);
        }

        .mood-loading-line {
            height: 10px;
            border-radius: 8px;
            margin-bottom: 8px;
            background: linear-gradient(90deg,
                    rgba(var(--primary-rgb), 0.08) 0%,
                    rgba(var(--primary-rgb), 0.2) 50%,
                    rgba(var(--primary-rgb), 0.08) 100%);
            background-size: 220% 100%;
            animation: moodShimmer 1.3s linear infinite;
        }

        .mood-loading-line.short {
            width: 72%;
            margin-bottom: 0;
        }

        @keyframes moodShimmer {
            0% {
                background-position: 100% 0;
            }

            100% {
                background-position: -100% 0;
            }
        }

        .mood-context-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 6px;
        }

        .mood-context-text {
            font-size: 14px;
            color: var(--text-color);
            line-height: 1.7;
            margin-bottom: 10px;
        }

        .mood-ayah-list {
            display: grid;
            gap: 10px;
        }

        .mood-ayah-item {
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 10px;
            background: var(--card-bg);
        }

        .mood-ayah-text {
            font-family: 'Amiri', serif;
            font-size: 21px;
            line-height: 1.8;
            margin-bottom: 6px;
        }

        .mood-ayah-ref {
            font-size: 13px;
            color: var(--text-secondary, #666);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }

        .mood-ayah-link {
            text-decoration: none;
            color: var(--primary-color);
            font-weight: 700;
            font-size: 12px;
        }

        .mood-note {
            margin-top: 10px;
            font-size: 12px;
            color: var(--text-secondary, #666);
            line-height: 1.6;
        }

        .mood-detected {
            font-size: 13px;
            color: var(--text-secondary, #666);
            margin-bottom: 8px;
        }

        .mood-score-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .mood-score-pill {
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            padding: 5px 10px;
            background: rgba(var(--primary-rgb), 0.15);
            color: var(--primary-color);
            border: 1px solid rgba(var(--primary-rgb), 0.3);
        }

        .mood-score-pill.secondary {
            background: rgba(0, 0, 0, 0.05);
            color: var(--text-color);
            border-color: var(--border-color);
        }

        [data-theme="dark"] .mood-score-pill.secondary {
            background: rgba(255, 255, 255, 0.08);
        }

        .mood-ayah-tag {
            display: inline-block;
            margin-bottom: 6px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 9px;
            background: rgba(var(--primary-rgb), 0.1);
            color: var(--primary-color);
            border: 1px solid rgba(var(--primary-rgb), 0.18);
        }
    
