/* ================= کادر اصلی هر آیه و ابزارها ================= */
.q19-verse-card {
    background: var(--bg-card) !important;
    border: 1.8px solid var(--card-border) !important;
    border-radius: 18px !important;
    padding: 22px 24px !important;
    margin-bottom: 26px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
html:not(.q19-theme-cream) .q19-verse-card {
    background: rgba(13, 21, 39, 0.92) !important;
    border-color: rgba(0, 245, 212, 0.28) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.q19-verse-tools {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-right: 12px !important;
    vertical-align: middle !important;
}
.q19-btn-bm, .q19-btn-cp {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--card-border) !important;
    color: var(--text-muted) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.q19-btn-bm:hover, .q19-btn-cp:hover {
    border-color: var(--border-neon) !important;
    color: var(--border-neon) !important;
}

/* مخفی‌سازی گزینه‌های نوار ابزار */
body.q19-hide-en .quran-en-row, body.q19-hide-en .quran-en-footnote, body.q19-hide-en .quran-en-basmalah,
body.q19-hide-en .quran-en-surah-title, body.q19-hide-en .en-subheading-clean, body.q19-hide-en [class*="en-subheading"],
body.q19-hide-en [class*="english"], body.q19-hide-en p:has([class*="english"]), body.q19-hide-en p:has(> a[href*="appendix"]) { display: none !important; }

body.q19-hide-titles .fa-subheading-box, body.q19-hide-titles [class*="fa-subheading"],
body.q19-hide-titles .en-subheading-clean, body.q19-hide-titles [class*="en-subheading"],
body.q19-hide-titles .quran-en-surah-title { display: none !important; }

body.q19-hide-fn .quran-fa-footnote, body.q19-hide-fn [class*="fa-footnote"],
body.q19-hide-fn .quran-en-footnote, body.q19-hide-fn [class*="en-footnote"] { display: none !important; }

body.q19-hide-fa .quran-fa-row, body.q19-hide-fa .quran-fa-basmalah,
body.q19-hide-fa .fa-subheading-box, body.q19-hide-fa .quran-fa-footnote { display: none !important; }

body.q19-hide-ar .quran-arabic-row, body.q19-hide-ar .quran-arabic-basmalah { display: none !important; }

/* تب‌های کاوشگر ریشه */
.q19-dossier-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 16px 0 18px !important;
}
.q19-d-tab {
    padding: 9px 26px !important;
    border-radius: 25px !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

html:not(.q19-theme-cream) .q19-d-tab {
    background: #131f38 !important;
    color: #e2e8f0 !important;
    border: 1.8px solid #334b73 !important;
}
html:not(.q19-theme-cream) #tabExactOnly.is-active {
    background: #fbbf24 !important;
    color: #000000 !important;
    border-color: #f59e0b !important;
    font-weight: 900 !important;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.6) !important;
}
html:not(.q19-theme-cream) #tabAllRoot.is-active {
    background: #00f5d4 !important;
    color: #042f2e !important;
    border-color: #00f5d4 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.6) !important;
}

html.q19-theme-cream .q19-d-tab {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 2px solid #cbd5e1 !important;
}
html.q19-theme-cream #tabExactOnly.is-active {
    background: #9a5b02 !important;
    color: #ffffff !important;
    border-color: #78350f !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 12px rgba(154, 91, 2, 0.45) !important;
}
html.q19-theme-cream #tabAllRoot.is-active {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0f766e !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.45) !important;
}

.q19-gold-border-focus {
    border: 3px solid #fbbf24 !important;
    border-radius: 16px !important;
    padding: 10px 14px !important;
    background: rgba(251, 191, 36, 0.08) !important;
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.85) !important;
    scroll-margin-top: 145px !important;
}
html.q19-theme-cream .q19-gold-border-focus {
    border: 3.5px solid #b45309 !important;
    background: #fefce8 !important;
    box-shadow: 0 0 25px rgba(180, 83, 9, 0.6) !important;
    scroll-margin-top: 145px !important;
}

html:not(.q19-theme-cream) .god-neon-gold,
html:not(.q19-theme-cream) [style*="color: #dba93e"],
html:not(.q19-theme-cream) [style*="color: #c27803"] {
    color: #fbbf24 !important; font-weight: 900 !important; text-shadow: 0 0 10px rgba(251, 191, 36, 0.9) !important;
}
html.q19-theme-cream .god-neon-gold,
html.q19-theme-cream [style*="color: #dba93e"],
html.q19-theme-cream [style*="color: #c27803"] {
    color: #b45309 !important; font-weight: 900 !important;
}

.quran-arabic-row {
    position: relative !important; padding-bottom: 42px !important; line-height: 2.4 !important;
    font-family: 'UthmanTN', 'Noto Naskh Arabic', 'Tahoma', sans-serif !important; font-size: 29px !important; direction: rtl !important;
}
.q19-touch-word { display: inline !important; cursor: pointer !important; padding: 1px 4px !important; border-radius: 4px !important; }
.q19-touch-word:hover, .q19-touch-word.is-active-word { background: rgba(0, 245, 212, 0.25) !important; }
html.q19-theme-cream .q19-touch-word:hover, html.q19-theme-cream .q19-touch-word.is-active-word { background: #ccfbf1 !important; }

/* دکمه صوت آیه */
.q19-arabic-audio-btn {
    position: absolute; left: 12px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1.5px solid var(--border-neon, #0d9488); background: var(--bg-card); color: var(--neon-cyan);
    transition: all 0.2s ease;
}
.q19-arabic-audio-btn:hover { transform: scale(1.1); border-color: var(--neon-gold); }
.q19-arabic-audio-btn.is-active-playing { background: #10b981 !important; color: #fff !important; border-color: #059669 !important; }

.q19-badge-pill, #q19BookmarksCountBadge {
    font-size: 14px !important; font-weight: 900 !important; padding: 2px 8px !important;
    min-width: 24px !important; height: 22px !important; display: inline-flex !important;
    align-items: center !important; justify-content: center !important; border-radius: 20px !important;
}
.q19-mobile-badge, #q19MobileBookmarksBadge { font-size: 13px !important; min-width: 22px !important; height: 22px !important; }

.q19-word-popup {
    display: none; position: absolute; z-index: 99999; background: #0b1329; border: 2px solid #00f5d4;
    border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); min-width: 220px; max-width: 340px; text-align: center;
}
html.q19-theme-cream .q19-word-popup { background: #ffffff; border-color: #0d9488; }
.q19-pop-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--card-border, #334b73); padding-bottom: 6px; margin-bottom: 8px; }
.q19-pop-root-badge { background: rgba(0,245,212,0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); border-radius: 8px; padding: 2px 12px; font-family: 'UthmanTN', 'Noto Naskh Arabic', serif; font-size: 18px; font-weight: 900; }
html.q19-theme-cream .q19-pop-root-badge { color: #b45309; background: #fef3c7; border-color: #f59e0b; }
.q19-pop-btn-audio { background: #10b981; border: none; color: #fff; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
.q19-pop-meaning-box { font-size: 15px; font-weight: 800; margin: 8px 0; padding: 6px 10px; border-radius: 8px; background: rgba(0, 245, 212, 0.08); color: #00f5d4; }
html.q19-theme-cream .q19-pop-meaning-box { background: #f0fdfa; color: #0f766e; }
.q19-pop-btn-dossier { background: rgba(0, 245, 212, 0.15); border: 1px solid var(--border-neon, #0d9488); color: var(--neon-cyan, #0d9488); border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; width: 100%; margin-top: 4px; }

.q19-dossier-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 999999; align-items: center; justify-content: center; padding: 16px; }
.q19-dossier-modal.active { display: flex; }
.q19-dossier-card { width: 100%; max-width: 920px; max-height: 88vh; overflow-y: auto; background: #0d1527; border: 2px solid #00f5d4; border-radius: 22px; padding: 24px 28px; color: #f1f5f9; }
html.q19-theme-cream .q19-dossier-card { background: #ffffff; border-color: #0d9488; color: #0f172a; }

.q19-snippet-box { background: #131f38; border: 1.5px solid #22324f; border-radius: 14px; padding: 16px 18px; cursor: pointer; margin-bottom: 12px; }
html.q19-theme-cream .q19-snippet-box { background: #f8fafc; border-color: #e2e8f0; }
.q19-snip-ar { font-family: 'UthmanTN', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 2.3; text-align: right; margin: 6px 0 8px; }
.q19-snip-fa { font-size: 15px; color: #cbd5e1; font-weight: 600; line-height: 1.85; text-align: justify; }
html.q19-theme-cream .q19-snip-fa { color: #1e293b; }

.q19-hl-exact { background: rgba(245, 158, 11, 0.3) !important; color: #fbbf24 !important; border: 2px solid #f59e0b !important; border-radius: 6px; padding: 1px 8px; font-weight: 900; display: inline-block; }
html.q19-theme-cream .q19-hl-exact { background: #fef3c7 !important; color: #92400e !important; }
.q19-hl-root { background: rgba(0, 245, 212, 0.25) !important; color: #00f5d4 !important; border: 2px solid #00f5d4 !important; border-radius: 6px; padding: 1px 8px; font-weight: 900; display: inline-block; }
html.q19-theme-cream .q19-hl-root { background: #ccfbf1 !important; color: #0f766e !important; }

.q19-tg-glass-btn {
    position: fixed !important; right: 14px !important; bottom: 16px !important; z-index: 9960 !important;
    width: 44px !important; height: 44px !important; border-radius: 50% !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    text-decoration: none !important; backdrop-filter: blur(10px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(160%) !important; opacity: 0.92 !important;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease !important;
}
.q19-tg-glass-btn:hover { transform: scale(1.09) !important; opacity: 1 !important; }
html.q19-theme-cream .q19-tg-glass-btn, html.q19-theme-light .q19-tg-glass-btn {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 2px solid #0284c7 !important;
    color: #0369a1 !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.28) !important;
}
html:not(.q19-theme-cream):not(.q19-theme-light) .q19-tg-glass-btn {
    background: rgba(10, 24, 52, 0.72) !important;
    border: 2px solid #38bdf8 !important;
    color: #7dd3fc !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45) !important;
}
body.q19-has-audio-player .q19-tg-glass-btn { bottom: 72px !important; }
@media (max-width: 600px) {
    .q19-tg-glass-btn { right: 10px !important; bottom: 12px !important; width: 40px !important; height: 40px !important; }
    body.q19-has-audio-player .q19-tg-glass-btn { bottom: 68px !important; }
}

/* ===== FROSTED-GLASS STYLE FOR پرش به آیه (.q19-floating-btn) ===== */
.q19-floating-btn {
    backdrop-filter: blur(9px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(9px) saturate(145%) !important;
    opacity: 0.88 !important;
    transition: all 0.2s ease !important;
}
.q19-floating-btn:hover { opacity: 1 !important; transform: translateY(-1px) !important; }
html.q19-theme-cream .q19-floating-btn, html.q19-theme-light .q19-floating-btn {
    background: rgba(255, 253, 247, 0.54) !important;
    color: #064e3b !important;
    border: 1.8px solid rgba(5, 150, 105, 0.7) !important;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.16) !important;
}
html:not(.q19-theme-cream):not(.q19-theme-light) .q19-floating-btn {
    background: rgba(9, 17, 38, 0.52) !important;
    color: #a7f3d0 !important;
    border: 1.8px solid rgba(0, 245, 212, 0.68) !important;
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.28) !important;
}
