/* ============================================================
   MIRACLE PAGE LAYOUT v2 – مطابق تصویر مرجع
   ============================================================ */

/* چیدمان سه‌ستونه اصلی */
.miracle-layout {
    display: grid;
    grid-template-columns: 260px 1fr 68px;
    gap: 24px;
    padding: 20px 0 40px;
    align-items: start;
}

/* ============================================================
   ستون راست: اطلاعات مقاله + فهرست مطالب
   ============================================================ */
.miracle-sidebar-info {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-left: 4px;
}

.miracle-sidebar-info::-webkit-scrollbar { width: 3px; }
.miracle-sidebar-info::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 2px;
}

/* کارت "در این مقاله" */
.toc-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 14px;
}

.toc-box-title {
    font-size: .88rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.toc-box-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--gold);
    border-radius: 2px;
}

.toc-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px;
}

.toc-box-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text-soft);
    font-size: .8rem;
    border-radius: 8px;
    transition: all .2s;
    position: relative;
}

.toc-box-list li a::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--text-light);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all .2s;
}

.toc-box-list li a:hover,
.toc-box-list li a.active {
    background: var(--gold-soft);
    color: var(--gold-deep);
    font-weight: 700;
}

.toc-box-list li a:hover::before,
.toc-box-list li a.active::before {
    background: var(--gold);
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(232,185,62,.2);
}

/* لینک بازگشت به بالا */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 700;
    transition: all .25s;
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--gold-soft);
    color: var(--gold-deep);
    border-color: var(--gold);
}

/* ============================================================
   ستون چپ: دکمه‌های شناور شبکه‌های اجتماعی
   ============================================================ */
.miracle-sidebar-social {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 6px 0;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    width: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.2,.9,.3,1.3);
    text-decoration: none;
    color: var(--text-soft);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
}

.social-btn .icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-btn .count {
    color: var(--text-mute);
    font-size: .65rem;
    font-weight: 800;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    border-color: var(--gold);
}

/* رنگ اختصاصی هر شبکه */
.social-btn.view:hover { background: #e0e7ff; color: #4f46e5; border-color: #4f46e5; }
.social-btn.like:hover { background: #fce7f3; color: #ec4899; border-color: #ec4899; }
.social-btn.save:hover { background: #fef3c7; color: #d97706; border-color: #d97706; }
.social-btn.share:hover { background: #dbeafe; color: #2563eb; border-color: #2563eb; }
.social-btn.print:hover { background: #f3f4f6; color: #374151; border-color: #374151; }
.social-btn.edit:hover { background: #fee2e2; color: #dc2626; border-color: #dc2626; }

.social-btn.telegram:hover { background: #e0f2fe; color: #0284c7; border-color: #0284c7; }
.social-btn.twitter:hover { background: #f3f4f6; color: #000; border-color: #000; }
.social-btn.instagram:hover { background: linear-gradient(135deg, #fef3c7, #fce7f3); color: #e1306c; border-color: #e1306c; }
.social-btn.whatsapp:hover { background: #dcfce7; color: #16a34a; border-color: #16a34a; }
.social-btn.telegram svg,
.social-btn.twitter svg,
.social-btn.instagram svg { width: 18px; height: 18px; fill: currentColor; }

/* لایک فعال */
.social-btn.like.active {
    background: #fce7f3;
    color: #ec4899;
    border-color: #ec4899;
}

/* ============================================================
   ستون وسط: محتوای مقاله
   ============================================================ */
.miracle-content-wrapper {
    min-width: 0;
}

/* هدر مقاله: عنوان + هیرو کنار هم */
.miracle-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
    align-items: center;
}

.miracle-header-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.miracle-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-soft);
    color: var(--gold-deep);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 800;
    align-self: flex-start;
    border: 1px solid rgba(232,185,62,.3);
}

.miracle-category-badge.special {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
}

.miracle-main-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.miracle-subtitle {
    font-size: 1rem;
    color: var(--text-mute);
    margin: 0;
    line-height: 1.8;
}

.miracle-header-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-soft);
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.miracle-header-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.miracle-header-meta .icon {
    color: var(--gold);
    font-size: .9rem;
}

.miracle-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #000;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.miracle-hero img,
.miracle-hero iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.miracle-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s;
}

.miracle-hero-overlay:hover {
    background: rgba(0,0,0,.3);
}

.play-button {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    animation: playPulse 2s ease-in-out infinite;
    position: relative;
}

.play-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #1a1a2e;
    margin-right: -6px;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
    50% { transform: scale(1.05); box-shadow: 0 12px 44px rgba(232,185,62,.4); }
}

/* نوار آمار (بازدید، لایک، نظر، اشتراک) */
.miracle-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.miracle-stats-strip .stats-left {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.miracle-stats-strip .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--text-soft);
    font-weight: 600;
}

.miracle-stats-strip .stat-item .icon {
    font-size: 1rem;
    color: var(--gold);
}

.miracle-stats-strip .share-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-mute);
}

/* ============================================================
   بخش‌های مقاله (سکشن‌ها)
   ============================================================ */
.article-section-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 16px;
    transition: all .25s;
}

.article-section-v2:hover {
    border-color: var(--border-strong);
}

.article-section-v2 .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.article-section-v2 .section-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-section-v2 .section-icon {
    width: 36px;
    height: 36px;
    background: var(--gold-soft);
    color: var(--gold-deep);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.article-section-v2 .section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.article-section-v2 .section-body {
    font-size: .92rem;
    line-height: 2;
    color: var(--text-soft);
}

.article-section-v2 .section-body p {
    margin: 0 0 12px;
}

.article-section-v2 .section-body p:last-child {
    margin-bottom: 0;
}

/* آیه در جعبه طلایی */
.verse-highlight {
    background: linear-gradient(135deg, #fef9e8 0%, #fdf3d0 100%);
    border-right: 4px solid var(--gold);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 12px 0;
    position: relative;
}

html[data-theme="dark"] .verse-highlight {
    background: linear-gradient(135deg, rgba(232,185,62,.1), rgba(232,185,62,.05));
}

.verse-highlight::before {
    content: '❝';
    position: absolute;
    top: 6px;
    right: 16px;
    font-size: 2.2rem;
    color: var(--gold);
    opacity: .25;
    line-height: 1;
}

.verse-arabic-text {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 1.4rem;
    line-height: 2.2;
    color: var(--text);
    text-align: center;
    margin: 0 0 12px;
    font-weight: 700;
    direction: rtl;
}

.verse-ref-text {
    text-align: center;
    color: var(--gold-deep);
    font-size: .82rem;
    font-weight: 700;
}

/* کارت‌های واژگان */
.vocab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.vocab-card-v2 {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all .25s;
}

.vocab-card-v2:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
    transform: translateY(-3px);
}

.vocab-card-v2 .vocab-word {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold-deep);
    margin-bottom: 6px;
    font-family: 'Amiri', serif;
}

.vocab-card-v2 .vocab-desc {
    font-size: .82rem;
    color: var(--text-mute);
    line-height: 1.7;
}

/* شواهد علمی */
.evidence-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.evidence-card-v2 {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.evidence-card-v2:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232,185,62,.15);
}

.evidence-card-v2 .icon {
    width: 42px;
    height: 42px;
    background: var(--gold-soft);
    color: var(--gold-deep);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.evidence-card-v2 .title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
}

/* دو ستونی موافق/مخالف */
.opposing-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.opposing-card-v2 {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.opposing-card-v2.pro .border { border-right: 3px solid #22c55e; }
.opposing-card-v2.con .border { border-right: 3px solid #f43f5e; }

.opposing-card-v2 h4 {
    font-size: .88rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
    padding-right: 12px;
    position: relative;
}

.opposing-card-v2.pro h4::before {
    content: '';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 14px;
    background: #22c55e;
    border-radius: 2px;
}

.opposing-card-v2.con h4::before {
    content: '';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 14px;
    background: #f43f5e;
    border-radius: 2px;
}

.opposing-card-v2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.opposing-card-v2 li {
    font-size: .82rem;
    color: var(--text-soft);
    padding-right: 16px;
    position: relative;
    line-height: 1.7;
}

.opposing-card-v2 li::before {
    content: '◆';
    position: absolute;
    right: 0;
    top: 7px;
    font-size: .55rem;
    color: var(--gold);
}

/* منابع */
.sources-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.source-card-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all .2s;
}

.source-card-v2:hover {
    border-color: var(--gold);
    transform: translateX(-4px);
}

.source-card-v2 .num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gold-soft);
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.source-card-v2 .info { flex: 1; min-width: 0; }

.source-card-v2 .name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card-v2 .author {
    font-size: .72rem;
    color: var(--text-mute);
    margin: 0;
}

/* ============================================================
   مقالات مرتبط (اسلایدر)
   ============================================================ */
.related-slider {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-slider .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.related-slider .head h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    padding-right: 14px;
    border-right: 4px solid var(--gold);
}

.related-slider .head a {
    font-size: .85rem;
    color: var(--gold-deep);
    font-weight: 700;
}

.related-slider .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ============================================================
   نظرات کاربران (کارت‌های زیبا)
   ============================================================ */
.comments-section-v2 {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.comments-section-v2 h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 20px;
    padding-right: 14px;
    border-right: 4px solid var(--gold);
}

.comment-card-v2 {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all .25s;
}

.comment-card-v2:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(232,185,62,.1);
}

.comment-card-v2 .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(232,185,62,.3);
}

.comment-card-v2 .body { flex: 1; min-width: 0; }

.comment-card-v2 .head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-card-v2 .name {
    font-size: .9rem;
    font-weight: 800;
    color: var(--text);
}

.comment-card-v2 .date {
    font-size: .72rem;
    color: var(--text-mute);
}

.comment-card-v2 .stars {
    color: var(--gold);
    font-size: .8rem;
    letter-spacing: 1px;
    margin-right: auto;
}

.comment-card-v2 .text {
    font-size: .88rem;
    color: var(--text-soft);
    line-height: 1.9;
    margin: 0 0 10px;
}

.comment-card-v2 .actions {
    display: flex;
    gap: 12px;
    font-size: .75rem;
    color: var(--text-mute);
}

.comment-card-v2 .actions a {
    color: var(--text-mute);
    transition: color .2s;
}

.comment-card-v2 .actions a:hover {
    color: var(--gold-deep);
}

/* ============================================================
   ریسپانسیو
   ============================================================ */
@media (max-width: 1200px) {
    .miracle-layout {
        grid-template-columns: 220px 1fr 60px;
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .miracle-layout {
        grid-template-columns: 1fr;
    }

    .miracle-sidebar-info {
        position: static;
        max-height: none;
        order: 2;
    }

    .miracle-sidebar-social {
        position: static;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        order: 3;
        padding: 20px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        margin: 20px 0;
    }

    .social-btn { width: 50px; }

    .miracle-content-wrapper { order: 1; }

    .miracle-header {
        grid-template-columns: 1fr;
    }

    .miracle-main-title { font-size: 1.7rem; }

    .evidence-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-slider .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .sources-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .miracle-main-title { font-size: 1.4rem; }
    .miracle-subtitle { font-size: .9rem; }
    .opposing-grid-v2 { grid-template-columns: 1fr; }
    .related-slider .cards { grid-template-columns: 1fr; }
    .miracle-stats-strip { padding: 12px; }
    .miracle-stats-strip .stats-left { gap: 14px; }
    .article-section-v2 { padding: 16px; }
    .comment-card-v2 { padding: 14px; }
}
/* ============================================================
   FLOATING LEFT SIDEBAR – دقیقاً مطابق تصویر
   منوی شناور سمت چپ صفحه (Fixed در viewport)
   ============================================================ */

.qt-float-sidebar {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 6px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, .06),
        0 20px 40px rgba(0, 0, 0, .08);
    transition: box-shadow .3s;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.qt-float-sidebar::-webkit-scrollbar {
    display: none;
}

.qt-float-sidebar:hover {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, .08),
        0 24px 48px rgba(232, 185, 62, .15);
}

/* هر دکمه */
.qt-float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 46px;
    height: 54px;
    border-radius: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    font-family: inherit;
    text-decoration: none;
    transition: all .25s cubic-bezier(.2, .9, .3, 1.4);
    position: relative;
    flex-shrink: 0;
}

.qt-float-btn .icon {
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform .3s;
}

.qt-float-btn .icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.qt-float-btn .num {
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    opacity: .85;
}

.qt-float-btn:hover {
    background: var(--bg-alt);
    color: var(--text);
    transform: translateX(-3px);
}

.qt-float-btn:hover .icon {
    transform: scale(1.15);
}

/* رنگ اختصاصی هر دکمه در hover */
.qt-float-btn.f-view:hover      { background: rgba(79, 70, 229, .1); color: #4f46e5; }
.qt-float-btn.f-like:hover      { background: rgba(236, 72, 153, .1); color: #ec4899; }
.qt-float-btn.f-save:hover      { background: rgba(217, 119, 6, .1); color: #d97706; }
.qt-float-btn.f-share:hover     { background: rgba(37, 99, 235, .1); color: #2563eb; }
.qt-float-btn.f-print:hover     { background: rgba(55, 65, 81, .1); color: #374151; }
.qt-float-btn.f-edit:hover      { background: rgba(220, 38, 38, .1); color: #dc2626; }
.qt-float-btn.f-telegram:hover  { background: rgba(2, 132, 199, .1); color: #0284c7; }
.qt-float-btn.f-twitter:hover   { background: rgba(0, 0, 0, .08); color: #000; }
.qt-float-btn.f-instagram:hover { background: linear-gradient(135deg, rgba(253, 224, 71, .2), rgba(236, 72, 153, .2)); color: #e1306c; }
.qt-float-btn.f-whatsapp:hover  { background: rgba(22, 163, 74, .1); color: #16a34a; }

/* دکمه فعال (پسندیده شده / ویرایش / طلایی) */
.qt-float-btn.active,
.qt-float-btn.gold {
    background: linear-gradient(135deg, #f0c950, #e8b93e);
    color: #fff;
    box-shadow:
        0 4px 12px rgba(232, 185, 62, .35),
        inset 0 1px 0 rgba(255, 255, 255, .4);
}

.qt-float-btn.active:hover,
.qt-float-btn.gold:hover {
    background: linear-gradient(135deg, #f7d76c, #f0c950);
    color: #fff;
    transform: translateX(-3px) scale(1.05);
    box-shadow:
        0 8px 20px rgba(232, 185, 62, .5),
        inset 0 1px 0 rgba(255, 255, 255, .5);
}

.qt-float-btn.active .num,
.qt-float-btn.gold .num {
    opacity: 1;
}

/* خط جداکننده بین گروه‌ها */
.qt-float-divider {
    width: 24px;
    height: 1px;
    background: var(--border);
    margin: 3px auto;
    flex-shrink: 0;
}

/* ============================================================
   جابجایی محتوای اصلی برای منوی شناور
   (چون منو Fixed است، نیاز به padding نداریم مگر در موبایل)
   ============================================================ */

/* ============================================================
   مخفی کردن در موبایل و تبلت (تا 1200px)
   در موبایل دکمه‌های شناور در پایین صفحه نمایش داده می‌شوند
   ============================================================ */
@media (max-width: 1200px) {
    .qt-float-sidebar {
        left: 10px;
        padding: 6px 4px;
    }
    .qt-float-btn {
        width: 42px;
        height: 50px;
    }
}

@media (max-width: 992px) {
    .qt-float-sidebar {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        border-radius: 20px 20px 0 0;
        padding: 8px 12px;
        max-height: 80px;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid var(--border);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .1);
        z-index: 999;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .qt-float-btn {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .qt-float-btn:hover {
        transform: translateY(-3px);
    }

    .qt-float-divider {
        width: 1px;
        height: 30px;
        margin: auto 4px;
    }

    /* padding پایین body برای جلوگیری از پوشیده شدن محتوا */
    body {
        padding-bottom: 72px;
    }
}

@media (max-width: 500px) {
    .qt-float-btn {
        width: 42px;
        height: 42px;
    }
    .qt-float-btn .icon {
        font-size: 1rem;
    }
    .qt-float-btn .num {
        font-size: .58rem;
    }
    body {
        padding-bottom: 64px;
    }
}