
        :root {
    /* Typography Tokens - Mobile First */
    --text-hero: clamp(1.75rem, 5vw, 2.15rem);
    --text-section-title: clamp(1rem, 3.2vw, 1.1rem);
    --text-card-title: 1.05rem;
    --text-base: 1rem;
    --text-sm: 0.85rem;
    --text-xs: 0.75rem;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

            --navy: #2b385e;
            --navy-light: #2f4f97;
            --cream: #f8f6f3;
            --gold: #978c69;
            --gold-light: #d8d4b4;
            --ink: #1e293b;
            --ink-light: #475569;
            --bg-glass: rgba(255, 255, 255, 0.85);
        }
        


        .mood-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            border-radius: 1rem;
            font-family: 'Readex Pro', sans-serif;
            font-size: var(--text-sm);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            text-decoration: none;
            outline: none;
        }

        .mood-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        }



        /* Tibyan AI Chatbot Styles */
        .tibyan-fab {
            position: fixed;
            bottom: 24px;
            left: 24px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--gold) 0%, #b8912e 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
            cursor: pointer;
            z-index: 990;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .tibyan-fab:hover {
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
        }

        .tibyan-fab i {
            width: 28px;
            height: 28px;
            animation: pulse-light 2s infinite;
        }

        @keyframes pulse-light {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.8; transform: scale(0.95); }
            100% { opacity: 1; transform: scale(1); }
        }

        .tibyan-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .tibyan-modal.active {
            opacity: 1;
            pointer-events: auto;
        }

        .tibyan-container {
            width: 100%;
            max-width: 500px;
            height: 85vh;
            max-height: 800px;
            background: var(--cream);
            border-radius: 24px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: translateY(30px) scale(0.95);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .tibyan-modal.active .tibyan-container {
            transform: translateY(0) scale(1);
        }

        .tibyan-header {
            padding: 1rem 1.5rem;
            background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
            border-bottom: 2px solid var(--gold);
        }

        .tibyan-header-title {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .tibyan-header-title h3 {
            margin: 0;
            font-size: 1.3rem;
            font-weight: bold;
            font-family: 'Readex Pro', sans-serif;
        }

        .tibyan-header-title p {
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.8;
            font-family: 'Readex Pro', sans-serif;
        }

        .tibyan-close {
            background: rgba(255,255,255,0.1);
            border: none;
            color: white;
            width: 36px; height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s;
        }

        .tibyan-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .tibyan-messages {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            scroll-behavior: smooth;
        }

        .tibyan-msg {
            max-width: 85%;
            padding: 1rem 1.2rem;
            border-radius: 16px;
            font-family: 'Readex Pro', sans-serif;
            font-size: 1rem;
            line-height: 1.6;
            animation: fadeIn 0.3s ease;
        }

        .tibyan-msg.bot {
            background: #ffffff;
            color: var(--ink);
            align-self: flex-start;
            border-bottom-right-radius: 4px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border: 1px solid rgba(0,0,0,0.05);
        }

        .tibyan-msg.user {
            background: var(--navy);
            color: white;
            align-self: flex-end;
            border-bottom-left-radius: 4px;
            box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
        }

        .tibyan-msg.bot .markdown-body p { margin-top: 0; margin-bottom: 0.8rem; }
        .tibyan-msg.bot .markdown-body p:last-child { margin-bottom: 0; }
        .tibyan-msg.bot .markdown-body ul { margin: 0.5rem 0; padding-right: 1.5rem; }
        .tibyan-msg.bot .markdown-body li { margin-bottom: 0.3rem; }
        .tibyan-msg.bot .markdown-body strong { color: var(--navy); font-weight: bold; }

        .tibyan-prompts {
            padding: 1rem 1.5rem;
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            scrollbar-width: none;
            border-top: 1px solid rgba(0,0,0,0.05);
        }

        .tibyan-prompts::-webkit-scrollbar { display: none; }

        .tibyan-prompt-btn {
            white-space: nowrap;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #927515;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-family: 'Readex Pro', sans-serif;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .tibyan-prompt-btn:hover {
            background: var(--gold);
            color: white;
        }

        .tibyan-input-area {
            padding: 1rem 1.5rem;
            background: white;
            border-top: 1px solid rgba(0,0,0,0.05);
            display: flex;
            gap: 0.5rem;
        }

        .tibyan-input {
            flex: 1;
            padding: 0.8rem 1rem;
            border: 1px solid rgba(0,0,0,0.1);
            border-radius: 24px;
            font-family: 'Readex Pro', sans-serif;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s;
            background: #f9f9f9;
        }

        .tibyan-input:focus {
            border-color: var(--navy);
            background: white;
        }

        .tibyan-send {
            background: var(--gold);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s;
        }

        .tibyan-send:hover {
            transform: scale(1.05);
            background: #b8912e;
        }
        
        .tibyan-send:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        /* Tibyan Dark Mode Support */

        
        body {
            font-family: 'Readex Pro', sans-serif;
            background-color: var(--cream);
            color: var(--ink);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            text-align: center;
            
            /* -- النمط القديم للخلفية (قم بإلغاء التعليق للعودة إليه) -- 
            background-image: radial-gradient(circle at top center, #ffffff 0%, #f4f0e6 100%);
            background-attachment: fixed;
            */
            
            /* -- النمط الجديد للصورة -- */
            background-image: url('../img/bg.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            
            overflow-x: hidden;
            width: 100%;
        }

        /* Subtle Islamic geometry background */
        /* -- النمط القديم للزخرفة (قم بإلغاء التعليق للعودة إليه) --
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0l20 20-20 20L0 20z" fill="rgba(212, 175, 55, 0.03)"/><path d="M20 10l10 10-10 10-10-10z" fill="rgba(30, 58, 138, 0.02)"/></svg>');
            pointer-events: none;
            z-index: -1;
        }
        */

        .container {
            max-width: 600px;
            padding: 2.5rem 1.5rem;
            width: 100%;
            box-sizing: border-box;
            animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .header-section {
            margin-bottom: 2.5rem;
        }

        .logo {
            width: 120px;
            height: 120px;
            margin-bottom: 1rem;
            border-radius: 15px;
            border: 3px solid var(--gold);
            padding: 3px;
            filter: drop-shadow(0 8px 16px rgba(30, 58, 138, 0.15));
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        h1 {
            font-size: var(--text-hero);
            color: var(--navy);
            margin: 0 0 0.5rem 0;
            font-weight: 700;
            line-height: var(--leading-tight);
            text-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .subtitle {
            font-size: 0.95rem;
            opacity: 0.85;
            color: var(--ink-light);
            font-family: 'Readex Pro', sans-serif;
            font-weight: 400;
            letter-spacing: 0.5px;
            line-height: var(--leading-normal);
}
        
        /* Smart Cards Grid */
        .cards-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 2.5rem;
            font-family: 'Readex Pro', sans-serif;
        }

        .smart-card {
            background: var(--bg-glass);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: 1.2rem;
            padding: 1.2rem;
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--ink);
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
            text-align: right;
        }

        .smart-card:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
            border-color: var(--navy-light);
        }

        .smart-card:active {
            transform: translateY(0) scale(0.98);
        }

        .card-icon-wrapper {
            background: rgba(30, 58, 138, 0.05);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 1.2rem;
            flex-shrink: 0;
            color: var(--navy);
            transition: background 0.3s;
        }

        .smart-card:hover .card-icon-wrapper {
            background: var(--navy);
            color: white;
        }

        .card-content {
            flex-grow: 1;
        }

        .card-title {
            font-size: var(--text-card-title);
            font-weight: 600;
            margin-bottom: 0.3rem;
            color: var(--navy);
			font-family: 'Readex Pro', sans-serif;
        }

        .card-desc {
            font-size: var(--text-sm);
            color: var(--ink-light);
            margin: 0;
            opacity: 0.7;
    font-weight: 400;
	font-family: 'Readex Pro', sans-serif;
}

        /* Golden Card (Continue Reading) */
        .card-gold {
            background: linear-gradient(135deg, #fffcf0 0%, #fff 100%);
            border-color: rgba(212, 175, 55, 0.4);
        }
        .card-gold .card-icon-wrapper {
            background: rgba(212, 175, 55, 0.15);
            color: var(--gold);
        }
        .card-gold:hover {
            border-color: var(--gold);
            box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
        }
        .card-gold:hover .card-icon-wrapper {
            background: var(--gold);
            color: white;
        }
        .card-gold .card-title {
            color: #927515;
            font-weight: 600;
}

        .chevron-icon {
            color: var(--ink-light);
            opacity: 0.5;
            transition: transform 0.3s, opacity 0.3s;
        }
        
        .smart-card:hover .chevron-icon {
            transform: translateX(-5px);
            opacity: 1;
            color: var(--navy);
        }
        
        .card-gold:hover .chevron-icon {
            color: var(--gold);
        }

        
        /* Dedication Card */
        .dedication-card {
            padding: 1.5rem;
            border-radius: 1.5rem;
            background: linear-gradient(to bottom right, #fbf9f4, var(--cream));
            border: 2px solid var(--gold-light);
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .dedication-card::after {
            content: '';
            position: absolute;
            top: -1.5rem;
            right: -1.5rem;
            width: 6rem;
            height: 6rem;
            background-color: var(--gold-light);
            opacity: 0.1;
            border-radius: 50%;
            filter: blur(24px);
        }

        .dedication-card::before {
            content: '';
            position: absolute;
            bottom: -1.5rem;
            left: -1.5rem;
            width: 6rem;
            height: 6rem;
            background-color: var(--navy);
            opacity: 0.1;
            border-radius: 50%;
            filter: blur(24px);
        }

        .dedication-icon {
            width: 24px;
            height: 24px;
            margin: 0 auto 0.75rem auto;
            color: var(--gold);
            opacity: 0.8;
        }

        .dedication-text {
            font-size: 0.9rem;
            color: var(--ink);
            opacity: 0.8;
            line-height: var(--leading-relaxed);
            margin-bottom: 0.75rem;
        }

        .dedication-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--navy);
            font-family: 'Amiri', serif;
            margin-bottom: 0.75rem;
        }

        .dedication-desc {
            font-size: 0.85rem;
            color: var(--ink);
            opacity: 0.75;
            line-height: 1.8;
            margin-bottom: 1rem;
        }

        .dedication-badge {
            display: inline-block;
            padding: 0.375rem 1rem;
            border-radius: 9999px;
            background-color: var(--cream);
            border: 1px solid #ded6c5;
            color: var(--gold);
            font-size: 0.85rem;
            font-weight: 700;
        }
        
        /* PWA Info Box */
        .pwa-info {
            background: rgba(240, 249, 255, 0.9);
            border: 1px solid #bae6fd;
            padding: 1.5rem;
            border-radius: 1.5rem;
            margin-top: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 4px 15px rgba(14, 165, 233, 0.05);
            font-family: 'Readex Pro', sans-serif;
            backdrop-filter: blur(5px);
        }
        .pwa-title {
            color: var(--navy);
            margin-top: 0;
            margin-bottom: 0.5rem;
            font-size: var(--text-section-title);
            font-weight: 700;
            line-height: 1.4;
}
        .pwa-info p {
            margin-top: 0;
            margin-bottom: 1.2rem;
            font-size: 0.9rem;
            color: #0369a1;
            line-height: 1.6;
            font-weight: 500;
        }
        .install-btn {
            background: linear-gradient(135deg, #0ea5e9, #0284c7);
            color: white;
            border: none;
            padding: 0.9rem 2rem;
            font-size: 0.85rem;
            border-radius: 2rem;
            cursor: pointer;
            font-family: 'Readex Pro', sans-serif;
            font-weight: 600;
            transition: all 0.3s;
            box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .install-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
        }
        
        .hidden {
            display: none !important;
        }

        /* Footer Styles */
        .app-footer {
            margin-top: 3rem;
            padding: 2rem 1rem;
            text-align: center;
            border-top: 1px solid rgba(30, 58, 138, 0.1);
            width: 100%;
            max-width: 600px;
            box-sizing: border-box;
        }
        
        /* Beautiful Developer Card Styles */
        .developer-card-wrapper {
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .developer-card {
            background: linear-gradient(135deg, rgba(253, 251, 247, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
            border: 1px solid rgba(212, 175, 55, 0.25);
            padding: 1.25rem 2rem;
            border-radius: 1.25rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .developer-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--gold), transparent);
        }

        .developer-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
            border-color: var(--gold);
        }

        .developer-label {
            font-size: 0.85rem;
            color: var(--ink-light);
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-family: 'Readex Pro', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .developer-label i, .developer-label svg {
            width: 14px;
            height: 14px;
            color: var(--gold);
        }

        .developer-name-highlight {
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--navy);
            font-family: 'Readex Pro', sans-serif;
            text-shadow: 0 1px 2px rgba(30, 58, 138, 0.05);
            letter-spacing: 0.5px;
            position: relative;
            padding-bottom: 0.25rem;
        }

        .developer-name-highlight::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10%;
            width: 80%;
            height: 1.5px;
            background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
        }
        
        .contact-icons {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            width: 100%;
        }
        
        .contact-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: white;
            color: var(--navy);
            text-decoration: none;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border: 1px solid rgba(30, 58, 138, 0.1);
        }
        
        .contact-icon:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 15px rgba(30, 58, 138, 0.15);
        }
        
        .contact-icon:active {
            transform: translateY(0);
        }
        
        .contact-icon i {
            width: 20px;
            height: 20px;
        }

        /* Responsive Design */
        @media (max-width: 480px) {
            .container { padding: 1.5rem 1rem; }
            .logo { width: 100px !important; height: 100px !important; margin-bottom: 0.8rem; margin-top: 0.8rem; }
            h1 { font-size: var(--text-hero); } /* تم تصغيره ليتناسب مع الجوال */
            .subtitle { font-size: 0.95rem;
            opacity: 0.85;     line-height: var(--leading-normal);
}
            .header-section { margin-bottom: 1.4rem; }
            
            .smart-card { padding: 1rem; border-radius: 1rem; }
            .card-icon-wrapper { width: 40px; height: 40px; margin-left: 0.8rem; }
            .card-title { font-size: var(--text-card-title);     font-weight: 600;
}
            .card-desc { font-size: var(--text-sm);     opacity: 0.7;
    font-weight: 400;
}
            
            /* Merged search & AI */
            .merged-search-ai { padding: 1rem; }
            .section-divider { margin: 0.65rem 0; }
            .merged-search-ai .widget-title { font-size: var(--text-section-title);     font-weight: 700;
    line-height: 1.4;
}
            .merged-search-ai .widget-desc { font-size: var(--text-sm);     opacity: 0.7;
    font-weight: 400;
}
            
            /* Mood input + button */
            #customMoodInput { font-size: 0.95rem !important; padding: 0.7rem 0.9rem !important; }
            .mood-btn { padding: 0.75rem 1rem !important; font-size: var(--text-sm) !important; }
            .mood-btn svg { width: 16px !important; height: 16px !important; }
            
            /* Mood grid */
            .mood-grid { gap: 0.6rem; }
            .mood-grid .mood-btn { padding: 0.75rem 1rem !important; font-size: var(--text-sm) !important; }
.mood-grid-inline { display: none !important; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 2.5rem; width: 100%; }
            
            /* Quick search */
            .quick-search-input { font-size: 0.9rem; padding: 0.5rem 0.7rem 0.6rem 1.2rem !important ; }
            .search-input-wrapper { border-radius: 0.8rem; }
            .search-icon { width: 14px; height: 14px; top: 50%; transform: translateY(-50%); }
            .clear-search-btn { width: 28px; height: 28px; }
            .ai-input-wrapper { border-radius: 0.7rem; }
            
            /* Search results */
            .search-results-container { border-radius: 0.7rem; margin-top: 0.4rem; }
            
            /* Tibyan Mobile adjustments */
            .tibyan-messages { padding: 0.8rem 0.5rem; }
            .tibyan-input-area { padding: 0.8rem 0.5rem; }
            .tibyan-header { padding: 0.8rem 1rem; }
            .tibyan-prompt-btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
            .search-result-item { padding: 0.5rem 0.6rem; }
            /* تم تصحيح خطأ الـ !important هنا وفي الأسطر التالية */
            .result-aya-text { font-size: 0.75rem !important; } 
            .result-sura-info { font-size: 0.7rem !important; } 
            .result-sura-info svg { width: 12px !important; height: 12px !important; }
            .search-results-container.show { max-height: 350px; overflow-y: auto; }
            
            /* Expanded card */
            .aya-expanded-card { padding: 0.8rem !important; }
            .expanded-verse-text { font-size: 0.85rem !important; }
            .expanded-sura-info { font-size: 0.8rem !important; }
            .expanded-sura-info svg { width: 12px !important; height: 12px !important; }
            .ayah-action-btn { font-size: 0.75rem; padding: 0.5rem 0.5rem !important; }
            .ayah-action-btn svg { width: 12px !important; height: 12px !important; }
            
            /* PWA container */
            .pwa-info { padding: 1.2rem; margin-top: 1.5rem; border-radius: 1.2rem; }
            .pwa-title { font-size: var(--text-section-title);     font-weight: 700;
    line-height: 1.4;
}
            .pwa-info p { font-size: 0.9rem; }
            .install-btn { padding: 0.6rem 1rem; font-size: 0.95rem; border-radius: 1.3rem;     font-weight: 600;
}
            .install-btn svg { width: 16px !important; height: 16px !important; }
            .tibyan-fab { display: none; }
            
            .dedication-card { padding: 2rem 1.2rem 1.2rem; border-radius: 1.2rem; }
            .dedication-card::before { font-size: 1.5rem !important; top: -15px; padding: 0 10px; }
            .dedication-text { font-size: 0.9rem;  line-height: var(--leading-relaxed);     font-weight: 400;
}
            .dedication-name { font-size: 1.3rem; margin: 1rem 0;     font-weight: 700;
}
            
            .app-footer { margin-top: 1.5rem; padding: 1.5rem 1rem; }
            .developer-card { padding: 0.85rem 1.5rem; border-radius: 1rem; }
            .developer-name-highlight { font-size: 1.25rem; }
            .contact-icon { width: 36px; height: 36px; }
            .contact-icon svg { width: 18px; height: 18px; }
            
            /* Index list */
            .index-list { gap: 0.4rem; }
            .index-item { padding: 0.75rem; }
            .item-number { font-size: 0.8rem; margin-left: 0.75rem; width: 28px; height: 28px; }
            .item-name { font-size: 1rem; }
            .item-page { font-size: 0.8rem; padding: 0.25rem 0.5rem; }
        }

        @media (max-width: 380px) {
            .container { padding: 1rem 0.6rem; } /* تقليل التباعد الجانبي للاستفادة من مساحة الشاشة */
            .logo { width: 65px; height: 65px; margin-bottom: 0.5rem; }
            h1 { font-size: var(--text-hero); } 
            .subtitle { font-size: 0.95rem;
            opacity: 0.85;     line-height: var(--leading-normal);
}
            .header-section { margin-bottom: 1.2rem; }
            
            .smart-card { padding: 0.8rem; }
.smart-card-inline { font-family: 'Readex Pro', sans-serif; cursor: pointer; text-align: right; width: 100%; outline: none; }
            .card-icon-wrapper { width: 32px; height: 32px; margin-left: 0.6rem; }
            .card-title { font-size: var(--text-card-title);     font-weight: 600;
}
            .card-desc { font-size: var(--text-sm);     opacity: 0.7;
    font-weight: 400;
}
            
            .mood-btn svg { width: 14px !important; height: 14px !important; }
.mood-btn-inline { background: var(--navy); color: white; padding: 0 1.5rem; border: none; }
.mood-btn-inline-2 { background: rgba(59, 130, 246, 0.05); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.15); }
.mood-btn-inline-3 { background: rgba(245, 158, 11, 0.05); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.15); }
.mood-btn-inline-4 { background: rgba(220, 38, 38, 0.05); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.15); }
.mood-btn-inline-5 { background: rgba(16, 185, 129, 0.05); color: #059669; border: 1px solid rgba(16, 185, 129, 0.15); }
            
            .dedication-card { padding: 1.5rem 1rem 1rem; border-radius: 1rem; margin-bottom: 1.5rem; }
            .dedication-card::before { font-size: 1.4rem; top: -12px; padding: 0 8px; }
            .dedication-text { font-size: 0.9rem; line-height: var(--leading-relaxed);     font-weight: 400;
}
            .dedication-name { font-size: 1.3rem; margin: 0.8rem 0;     font-weight: 700;
}
            
            .pwa-info { padding: 1rem; border-radius: 1rem; }
            .pwa-title { font-size: var(--text-section-title);     font-weight: 700;
    line-height: 1.4;
}
            .pwa-info p { font-size: 0.85rem; }
            .install-btn { padding: 0.6rem 1rem; font-size: 0.95rem;     font-weight: 600;
}
            .install-btn svg { width: 14px !important; height: 14px !important; }
.install-btn-inline { background: linear-gradient(135deg, var(--ink), var(--ink-light)); margin: 0 auto; }
            
            .developer-card { padding: 0.75rem 1.2rem; gap: 0.35rem; }
            .developer-name-highlight { font-size: 1.15rem; }
            .contact-icons { gap: 0.8rem; }
            .contact-icon { width: 32px; height: 32px; }
            .contact-icon svg { width: 16px; height: 16px; }
            
            /* Index list */
            .index-list { gap: 0.3rem; }
            .index-item { padding: 0.6rem; }
            .item-number { font-size: 0.75rem; margin-left: 0.5rem; width: 24px; height: 24px; }
            .item-name { font-size: 0.95rem; }
            .item-page { font-size: 0.75rem; padding: 0.2rem 0.4rem; }
            
            /* Share App responsive updates for extremely small screens */
            .share-app-card {
                padding: 1rem;
                border-radius: 1rem;
            }
            .share-app-title {
                font-size: var(--text-section-title);
                font-weight: 700;
    line-height: 1.4;
}
            .share-app-subtitle {
                font-size: 0.85rem;
            }
            .share-app-url-input {
                font-size: 0.78rem !important;
            }
            .share-btn-action {
                font-size: 0.8rem;
                padding: 0.45rem 0.6rem;
            }
            .share-btn-action i, 
            .share-btn-action svg {
                width: 12px !important;
                height: 12px !important;
            }
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .modal-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .modal-content {
            background: var(--cream);
            width: 90%;
            max-width: 500px;
            max-height: 85vh;
            border-radius: 1.5rem;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transform: translateY(20px);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .modal-overlay.show .modal-content {
            transform: translateY(0);
        }
.modal-overlay-inline { z-index: 10000; }
.modal-content-inline { max-width: 400px; text-align: right; font-family: 'Readex Pro', sans-serif; }
.modal-content-inline-2 { padding: 2rem; text-align: center; background: linear-gradient(135deg, var(--cream) 0%, #fff 100%); }
        
        /* Quick Search Styles */
        .quick-search-section {
            margin-bottom: 2.5rem;
            position: relative;
        }

        .search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: var(--bg-glass);
            backdrop-filter: blur(10px);
            border-radius: 1.2rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            border: 1px solid rgba(255,255,255,0.6);
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .search-input-wrapper:focus-within {
            border-color: var(--navy-light);
            box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
            transform: translateY(-2px);
        }

        .search-icon {
            position: absolute;
            right: 1.2rem;
            color: var(--ink-light);
            width: 20px;
            height: 20px;
            pointer-events: none;
        }

        .quick-search-input {
            width: 100%;
            padding: 1.2rem 1.2rem 1.2rem 3rem;
            border: none;
            background: transparent;
            font-size: 0.9rem;
            color: var(--ink);
            font-family: 'Readex Pro', sans-serif;
            outline: none;
            padding-right: 3.5rem;
        }

        .quick-search-input::placeholder {
            color: #d0d0d0;
            opacity: 1;
        }
        
        ::placeholder {
            color: #d0d0d0;
            opacity: 1;
        }

        @media (max-width: 480px) {
            ::placeholder {
                font-size: 0.9em;
            }
        }

        .clear-search-btn {
            position: absolute;
            left: 0.8rem;
            background: none;
            border: none;
            color: var(--ink-light);
            cursor: pointer;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s, color 0.2s;
        }

        .clear-search-btn:hover {
            background: rgba(30, 58, 138, 0.05);
            color: var(--navy);
        }
.clear-search-btn-inline { display: none; }

        .search-results-container {
            margin-top: 1rem;
            background: white;
            border-radius: 0.2rem;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            border: 1px solid rgba(30, 58, 138, 0.1);
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px);
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            max-height: 0;
			font-family: Arial, sans-serif !important;
        }

        .search-results-container.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
            max-height: 500px; 
            overflow-y: auto;
        }

        .search-loader {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            color: var(--ink-light);
            gap: 1rem;
            flex-direction: column;
        }

        .search-results-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .search-result-item {
            padding: 1rem 1.2rem;
            border-bottom: 1px solid rgba(30, 58, 138, 0.05);
            cursor: pointer;
            transition: background 0.2s;
            text-align: right;
            display: block;
			
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background: rgba(30, 58, 138, 0.02);
        }

        .result-sura-info {
            font-size: 0.7rem;
           color: var(--ink-light);
            font-family: 'Readex Pro', sans-serif;
             
            margin-bottom: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .result-aya-text {
            font-size: 1.15rem;
            line-height: 1.4;
            color: var(--ink);
           font-family: 'Arial', sans-serif;
        }

        .aya-highlight {
            color: var(--navy);
            background: rgba(212, 175, 55, 0.2);
            border-radius: 4px;
            padding: 0 2px;
            font-weight: bold;
        }

        /* Expanded Card View for Ayah */
        .aya-expanded-card {
            padding: 1.5rem;
            text-align: center;
            animation: fadeIn 0.3s ease;
			 font-family: 'Arial', sans-serif;
        }

        .expanded-verse-text {
            font-size: 1.2rem;
            line-height: 1.3;
            color: var(--ink);
            margin-bottom: 1.5rem;
             font-family: 'Arial', sans-serif;
        }

        .expanded-sura-info {
            color: var(--ink-light);
            font-family: 'Readex Pro', sans-serif;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(30, 58, 138, 0.05);
            padding: 0.4rem 1rem;
            border-radius: 20px;
        }

        .expanded-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .ayah-action-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1rem;
            background: rgba(30, 58, 138, 0.05);
            color: var(--navy);
            border: none;
            border-radius: 0.8rem;
            font-size: 0.75rem;
            font-family: 'Readex Pro', sans-serif;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }

        .ayah-action-btn:hover {
            background: var(--navy);
            color: white;
            transform: translateY(-2px);
        }

        .tafseer-box {
            margin-top: 1.5rem;
            padding: 1.2rem;
            background: rgba(212, 175, 55, 0.05);
            border: 1px solid rgba(212, 175, 55, 0.2);
            border-radius: 0.8rem;
            text-align: right;
            font-family: 'Readex Pro', sans-serif;
            font-size: 1rem;
            line-height: 1.8;
            display: none;
            color: var(--ink);
        }

        .tafseer-box.show {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(30, 58, 138, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: white;
        }
        .modal-title {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--navy);
            margin: 0;
        }
.modal-title-inline { font-family: 'Readex Pro', sans-serif; }
        .close-modal-btn {
            background: none;
            border: none;
            color: var(--ink-light);
            cursor: pointer;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s, color 0.2s;
        }
        .close-modal-btn:hover {
            background: rgba(30, 58, 138, 0.05);
            color: var(--navy);
        }
.close-modal-btn-inline { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,0.05); width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:none; cursor:pointer; }
        
        .modal-tabs {
            display: flex;
            background: white;
            border-bottom: 1px solid rgba(30, 58, 138, 0.1);
        }
        .modal-tab {
            flex: 1;
            padding: 0.9rem;
            background: none;
            border: none;
            font-size: 1rem;
            font-weight: 500;
            color: var(--ink-light);
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            font-family: 'Readex Pro', sans-serif;
        }
        .modal-tab.active {
            color: var(--navy);
            border-bottom-color: var(--navy);
            background: rgba(30, 58, 138, 0.02);
        }
        
        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 1rem;
            -webkit-overflow-scrolling: touch;
        }
        
        .index-list {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .index-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem;
            background: white;
            border-radius: 0.8rem;
            text-decoration: none;
            color: var(--ink);
            border: 1px solid rgba(30, 58, 138, 0.05);
            transition: all 0.2s;
        }
        .index-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border-color: rgba(30, 58, 138, 0.15);
        }
        .item-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: rgba(30, 58, 138, 0.05);
            color: var(--navy);
            border-radius: 8px;
            font-weight: bold;
            font-size: 0.9rem;
            margin-left: 1rem;
        }
        .item-name {
            flex: 1;
            font-size: 0.95rem;
        
            color: var(--navy);
            text-align: right;
        }
        .item-page {
            font-size: 0.9rem;
            color: var(--ink-light);
            background: var(--cream);
            padding: 0.3rem 0.6rem;
            border-radius: 12px;
            font-family: 'Readex Pro', sans-serif;
        }
        .modal-loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem 0;
            color: var(--ink-light);
        }
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(30, 58, 138, 0.1);
            border-top-color: var(--navy);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }
.spinner-inline { border-top-color: #d4af37; }
.spinner-inline-2 { display:inline-block; border-top-color:var(--navy); width:12px; height:12px; border-width:2px; margin-right:5px; vertical-align:middle; }
        @keyframes spin { 
            to { transform: rotate(360deg); } 
        }

        /* Widgets Styling */
        .widget-card {
            
            border-radius: 1.5rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            
            position: relative;
            overflow: hidden;
        }

        .widget-title {
            color: var(--navy);
            margin: 0 0 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: var(--text-section-title);
            font-weight: 700;
            line-height: 1.4;
}

        .widget-title svg {
            color: var(--gold);
        }

        .widget-desc {
            color: var(--ink-light);
            font-size: var(--text-sm);
            margin: 0 0 1rem 0;
            line-height: 1.5;
            opacity: 0.7;
    font-weight: 400;
}

        .section-divider {
            border: none;
            border-top: 1px solid rgba(30, 58, 138, 0.1);
            margin: 1rem 0;
        }

        .merged-search-ai .quick-search-section,
        .merged-search-ai .ai-assistant-widget {
            padding: 0;
        }

        /* AI Input Wrapper */
        .ai-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 1rem;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
            border: 1px solid rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.3s;
        }

        .ai-input-wrapper:focus-within {
            border-color: var(--navy-light);
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
        }

        .ai-input {
            width: 100%;
            padding: 1rem 1rem 1rem 3.5rem;
            border: none;
            background: transparent;
            font-size: 1rem;
            color: var(--ink);
            outline: none;
        }

        .ai-btn {
            position: absolute;
            left: 0.5rem;
            background: var(--navy);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .ai-btn:hover {
            transform: scale(1.05);
            background: var(--gold);
        }

        .ai-btn:disabled {
            background: var(--ink-light);
            cursor: not-allowed;
            transform: none;
        }

        /* AI Results */
        .ai-response-container {
            margin-top: 1rem;
            border-top: 1px solid rgba(0,0,0,0.05);
            padding-top: 1rem;
        }

        .ai-loader {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--navy-light);
            font-weight: 500;
            font-size: 0.95rem;
            justify-content: center;
            padding: 1rem;
        }

        .ai-pulse {
            width: 12px;
            height: 12px;
            background-color: var(--gold);
            border-radius: 50%;
            animation: aiPulse 1.5s infinite ease-in-out;
        }

        @keyframes aiPulse {
            0% { transform: scale(0.8); opacity: 0.5; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(0.8); opacity: 0.5; }
        }

        .ai-result-box {
            background: rgba(255, 255, 255, 0.8);
            border-radius: 1rem;
            padding: 1.25rem;
            border: 1px solid rgba(37, 99, 235, 0.1);
        }

        .ai-result-sura {
            font-size: 0.9rem;
            color: var(--navy-light);
            font-weight: bold;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        
        .ai-result-sura::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            background: var(--gold);
            border-radius: 50%;
        }

        .ai-result-verse {
            font-size: 1.4rem;
            color: var(--ink);
            line-height: 1.8;
            margin-bottom: 1rem;
            font-family: 'Readex Pro', sans-serif;
            text-align: center;
        }

        .ai-result-tafseer {
            font-size: 0.95rem;
            color: var(--ink-light);
            line-height: 1.6;
            margin-bottom: 1rem;
            padding: 0.75rem;
            background: rgba(0,0,0,0.02);
            border-radius: 0.75rem;
            border-right: 3px solid var(--gold);
        }

        .ai-result-spiritual {
            font-size: 0.95rem;
            color: var(--navy);
            line-height: 1.6;
            margin-bottom: 1.25rem;
            font-style: italic;
        }

        .ai-go-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            padding: 0.75rem;
            background: var(--navy);
            color: white;
            text-decoration: none;
            border-radius: 0.75rem;
            font-weight: bold;
            transition: all 0.2s;
        }

        .ai-go-btn:hover {
            background: var(--gold);
            transform: translateY(-2px);
        }
        
        .ai-error-box {
            color: #dc2626;
            background: #fee2e2;
            padding: 1rem;
            border-radius: 0.75rem;
            font-size: 0.9rem;
            text-align: center;
        }

        /* Share App Card Styles */
        .share-app-card {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid rgba(212, 175, 55, 0.2);
            padding: 2rem;
            border-radius: 1.5rem;
            margin-top: 2rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            box-shadow: 0 10px 30px rgba(30, 58, 138, 0.03);
            backdrop-filter: blur(8px);
            font-family: 'Readex Pro', sans-serif;
            position: relative;
            overflow: hidden;
            text-align: right;
        }

        .share-app-card::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
        }

        .share-app-icon-wrapper {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.1);
            color: var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
        }

        .share-app-icon-wrapper i, .share-app-icon-wrapper svg {
            width: 28px;
            height: 28px;
        }

        .share-app-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            text-align: right;
            width: 100%;
        }

        .share-app-title {
            color: var(--navy);
            margin: 0;
            font-size: var(--text-section-title);
            font-weight: 700;
            line-height: 1.4;
}

        .share-app-subtitle {
            margin: 0 0 0.8rem 0;
            font-size: 0.9rem;
            color: var(--ink-light);
            line-height: 1.6;
        }

        .share-app-input-wrapper {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: var(--cream);
            border: 1px solid rgba(30, 58, 138, 0.08);
            padding: 0.4rem;
            border-radius: 1rem;
            width: 100%;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
        }

        .share-app-url-input {
            flex: 1;
            border: none;
            background: transparent;
            color: var(--navy);
            font-family: 'Readex Pro', sans-serif;
            font-size: 1rem;
            padding: 0.5rem 0.8rem;
            direction: ltr;
            outline: none;
            width: 100%;
        }

        .share-app-actions-btn-group {
            display: flex;
            gap: 0.5rem;
        }

        .share-btn-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 0.75rem;
            font-family: 'Readex Pro', sans-serif;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .copy-action-btn {
            background: #f1f5f9;
            color: var(--ink-light);
        }

        .copy-action-btn:hover {
            background: #e2e8f0;
            color: var(--ink);
        }

        .copy-action-btn.success-state {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
        }

        .share-now-btn {
            background: linear-gradient(135deg, var(--navy-light), var(--navy));
            color: white;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
            font-weight: 600;
}

        .share-now-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
            filter: brightness(1.1);
        }

        /* Toast notifications system */
        .tibyan-toast-container {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            z-index: 99999;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            opacity: 0;
            pointer-events: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .tibyan-toast-container.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        .tibyan-toast {
            background: rgba(30, 41, 59, 0.95);
            backdrop-filter: blur(8px);
            color: white;
            padding: 0.8rem 1.6rem;
            border-radius: 50px;
            font-family: 'Readex Pro', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            border: 1px solid rgba(255,255,255,0.1);
        }

        .tibyan-toast.success {
            border-left: 4px solid var(--gold);
        }

        .tibyan-toast.error {
            border-left: 4px solid #ef4444;
        }

        .tibyan-toast svg {
            width: 18px;
            height: 18px;
            color: var(--gold);
        }

        /* Responsive refinements for share app card */
        @media (max-width: 768px) {
            .share-app-card {
                flex-direction: column;
                padding: 1.5rem;
                text-align: center;
                gap: 1rem;
            }

            .share-app-content {
                text-align: center;
            }

            .share-app-input-wrapper {
                flex-direction: column;
                padding: 0.75rem;
                gap: 0.75rem;
            }

            .share-app-url-input {
                text-align: center;
            }

            .share-app-actions-btn-group {
                width: 100%;
            }

            .share-btn-action {
                flex: 1;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .share-app-card {
                padding: 1.2rem;
                margin-top: 1.5rem;
                margin-bottom: 1.5rem;
                border-radius: 1.2rem;
            }

            .share-app-title {
                font-size: var(--text-section-title);
                font-weight: 700;
    line-height: 1.4;
}

            .share-app-subtitle {
                font-size: 0.95rem;
            }

            .share-app-url-input {
                font-size: 0.82rem !important;
                padding: 0.4rem;
            }

            .share-btn-action {
                font-size: 0.85rem;
                padding: 0.5rem 0.8rem;
            }

            .share-btn-action i, 
            .share-btn-action svg {
                width: 14px !important;
                height: 14px !important;
            }
            
            .share-app-input-wrapper {
                border-radius: 0.8rem;
            }
        }
    

.hidden { margin-bottom: 1rem; display: none !important; gap: 0.5rem; width: 100%; }

.inline-elem-2 { flex: 1; padding: 1rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--cream); color: var(--ink); font-family: 'Readex Pro', sans-serif; font-size: 1.1rem; outline: none; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.icon-md { width: 20px; height: 20px; }

.inline-elem-3 { position: absolute; left: -9999px; opacity: 0; }

.inline-elem-7 { margin-bottom: 1rem; color: var(--ink-light); font-family: 'Readex Pro', sans-serif; font-size: 0.95rem; }

.inline-elem-8 { width: 100%; padding: 1rem; margin-bottom: 1rem; border-radius: 0.8rem; border: 1px solid rgba(0,0,0,0.1); font-family: 'Readex Pro', sans-serif; font-size: 1rem; outline: none; box-sizing: border-box; }

.inline-elem-12 { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 0; }

.inline-elem-14 { color: var(--ink-light); margin-top: 1rem; font-family: 'Readex Pro', sans-serif; font-weight: bold; }

.inline-elem-15 { display: none; text-align: center; }

.inline-elem-16 { background: rgba(212, 175, 55, 0.15); color: #927515; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: bold; margin: 0 auto 1.5rem auto; display:inline-block; }

.inline-elem-17 { font-family: 'Readex Pro', sans-serif; font-size: 1.8rem; line-height: 2.2; color: var(--navy); margin-bottom: 1.5rem; text-align: center; }

.inline-elem-18 { background: rgba(30, 58, 138, 0.03); border: 1px solid rgba(30, 58, 138, 0.1); border-radius: 12px; padding: 1.2rem; margin-bottom: 1rem; font-family: 'Readex Pro', sans-serif; font-size: 1.05rem; line-height: 1.7; color: var(--ink); text-align: right; }

.inline-elem-19 { background: rgba(212, 175, 55, 0.05); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 12px; padding: 1.2rem; font-family: 'Readex Pro', sans-serif; font-size: 1.15rem; line-height: 1.8; color: var(--ink); text-align: right; display: none; }

.inline-elem-21 { padding: 1rem; text-align: center; color: var(--ink-light); }

.icon-xs { width: 12px; height: 12px; }

.icon-sm { width: 16px; height: 16px; }

