/* ═══════════════════════════════════════════════════════════════════════
   ناتمام — پنجرهٔ بازشوی مطلب + کامنت‌ها
   نسخه: 5.0.0 — یکدست‌سازی کامل (بدون تناقض)
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════ ۱) مودال اصلی ═══════ */
.reader-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.75);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    direction: rtl;
}
.reader-modal-bg.is-open {
    opacity: 1;
    visibility: visible;
}

.reader-modal {
    background: #fbf9f3;
    width: 100%;
    max-width: 860px;
    max-height: calc(100vh - 40px);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.88) translateY(60px);
    opacity: 0;
    transition: transform .7s cubic-bezier(0.22, 1.15, 0.36, 1), opacity .5s ease;
    direction: rtl;
    will-change: transform, opacity;
}
.reader-modal-bg.is-open .reader-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.reader-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0F3641, #2A6E80, #D99A2B);
    z-index: 5;
}

/* ═══════ ۲) نوار بالا ═══════ */
.reader-modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(15, 54, 65, .10);
    background: #fbf9f3;
    flex-shrink: 0;
    z-index: 3;
}
.reader-modal__top-left,
.reader-modal__top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reader-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F3641 0%, #2A6E80 100%);
    color: #fbf9f3;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    box-shadow: 0 3px 8px rgba(15, 54, 65, .20);
    flex-shrink: 0;
}
.reader-modal__btn:hover {
    transform: translateY(-1px) scale(1.05);
    background: linear-gradient(135deg, #D99A2B 0%, #8B5E14 100%);
    color: #1a1e22;
}
.reader-modal__btn svg { width: 18px; height: 18px; stroke-width: 2; }
.reader-modal__btn--close:hover {
    background: linear-gradient(135deg, #a8271c 0%, #7f1c14 100%);
    color: #fff;
}
.reader-modal__title {
    font-size: .9rem;
    font-weight: 800;
    color: #0F3641;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    text-align: center;
    flex: 1;
    min-width: 0;
}

/* ═══════ ۳) بدنهٔ مودال ═══════ */
.reader-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 34px 40px;
    background: #fbf9f3;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.reader-modal__body::-webkit-scrollbar { width: 8px; }
.reader-modal__body::-webkit-scrollbar-thumb {
    background: rgba(139, 94, 20, .35);
    border-radius: 10px;
}

/* ═══════ ۴) محتوای مقاله ═══════ */
.reader-modal__content {
    max-width: 720px;
    margin: 0 auto;
    color: #1a1e22;
    font-size: 1.08rem;
    line-height: 2.15;
}
.reader-modal__content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F3641;
    margin-bottom: 16px;
    line-height: 1.45;
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(217, 154, 43, .30);
}
.reader-modal__content h2 { font-size: 1.3rem; margin: 28px 0 12px; color: #0F3641; }
.reader-modal__content h3 { font-size: 1.12rem; margin: 22px 0 10px; color: #0F3641; }
.reader-modal__content p { margin-bottom: 18px; font-size: 1.08rem; text-align: justify; line-height: 2.15; }
.reader-modal__content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(15, 54, 65, .10);
}
.reader-modal__content blockquote {
    border-right: 4px solid #D99A2B;
    padding: 12px 18px;
    margin: 20px 0;
    font-style: italic;
    background: rgba(217, 154, 43, .06);
    border-radius: 6px;
    color: #3a4044;
}
.reader-modal__content ul,
.reader-modal__content ol { padding-right: 26px; margin: 14px 0; }
.reader-modal__content li { margin-bottom: 8px; }
.reader-modal__content a { color: #2A6E80; text-decoration: underline; }

.reader-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    color: #8B5E14;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(15, 54, 65, .15);
}
.reader-modal__meta span::before { content: '◆ '; color: #D99A2B; font-size: .65rem; }

.reader-modal__cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 6px 16px rgba(15, 54, 65, .12);
}
.reader-modal__loading {
    text-align: center;
    padding: 80px 20px;
    color: #8a7d63;
    font-size: .95rem;
}
.reader-modal__loading::before {
    content: '';
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    border: 3px solid rgba(42, 110, 128, .20);
    border-top-color: #2A6E80;
    border-radius: 50%;
    animation: readerSpin .9s linear infinite;
}
@keyframes readerSpin { to { transform: rotate(360deg); } }

.reader-modal__end {
    max-width: 720px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 2px dashed rgba(15, 54, 65, .15);
}

/* ═══════ ۵) دکمهٔ صفحهٔ کامل ═══════ */
.reader-fullpage-bar {
    display: flex;
    justify-content: center;
    margin: 24px 0 20px;
    padding-top: 22px;
    border-top: 1px dashed rgba(15, 54, 65, .15);
}
.reader-fullpage-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(42, 110, 128, .08);
    border: 1.5px solid rgba(42, 110, 128, .30);
    border-radius: 10px;
    color: #0F3641;
    font-family: inherit;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s ease;
}
.reader-fullpage-btn:hover {
    background: rgba(42, 110, 128, .16);
    border-color: rgba(42, 110, 128, .55);
    transform: translateY(-2px);
    color: #D99A2B;
}
.reader-fullpage-btn svg { width: 16px; height: 16px; color: #D99A2B; }

/* ═══════ ۶) لایک + اشتراک‌گذاری ═══════ */
.reader-engagement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
    padding: 12px 16px;
    background: #fbf9f3;
    border: 1px solid rgba(15, 54, 65, .10);
    border-radius: 12px;
    flex-wrap: wrap;
}
.reader-engagement__group { display: flex; gap: 6px; align-items: center; }

.big-like-btn,
.big-dislike-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid rgba(15, 54, 65, .14);
    border-radius: 100px;
    color: #8a7d63;
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: all .22s ease;
    line-height: 1;
}
.big-like-btn:hover,
.big-dislike-btn:hover { border-color: #D99A2B; color: #D99A2B; }
.big-like-btn.is-active {
    background: linear-gradient(135deg, #D99A2B, #8B5E14);
    color: #fff;
    border-color: transparent;
}
.big-like-btn.is-active svg { fill: #fff; stroke: #fff; }
.big-dislike-btn.is-active {
    background: linear-gradient(135deg, #a8271c, #7f1c14);
    color: #fff;
    border-color: transparent;
}
.big-like-btn svg,
.big-dislike-btn svg { width: 15px; height: 15px; }
.big-like-btn__count { font-size: .74rem; font-weight: 800; opacity: .85; }

.reader-share-group { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.reader-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 54, 65, .14);
    color: #5e6260;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
}
.reader-share-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.reader-share-btn svg { width: 14px; height: 14px; }
.reader-share-btn[data-platform="telegram"]:hover { background: #0088cc; }
.reader-share-btn[data-platform="whatsapp"]:hover { background: #25D366; }
.reader-share-btn[data-platform="facebook"]:hover { background: #1877F2; }
.reader-share-btn[data-platform="twitter"]:hover  { background: #000; }
.reader-share-btn[data-platform="eitaa"]:hover    { background: #e67e22; }
.reader-share-btn[data-platform="bale"]:hover     { background: #27ae60; }
.reader-share-btn[data-platform="copy"]:hover     { background: #2A6E80; }

/* ═══════ ۷) بخش کامنت‌ها ═══════ */
.reader-comments {
    margin-top: 24px;
    background: #fff;
    border: 1px solid rgba(15, 54, 65, .08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}
.reader-comments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(15, 54, 65, .06);
    background: #fff;
}
.reader-comments__title {
    font-size: 1rem;
    font-weight: 800;
    color: #0F3641;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reader-comments__count { color: #8a7d63; font-weight: 400; font-size: .88rem; }
.reader-comments__empty {
    text-align: center;
    padding: 40px 20px;
    color: #8a7d63;
    font-size: .86rem;
    background: #fff;
}

/* ═══════ ۸) لیست کامنت‌ها — سبک توییتری/اینستاگرام (flat) ═══════ */
.ig-comment-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
}

.ig-comment {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eff3f4;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    animation: igFadeIn .2s ease;
    box-sizing: border-box;
    position: static;
    float: none;
    max-width: 100%;
}
@keyframes igFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ig-comment:last-child { border-bottom: none; }
.ig-comment:hover { background: #fafbfc; }

/* آواتار */
.ig-comment__avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F3641, #2A6E80);
    color: #D99A2B;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: .82rem;
    flex-shrink: 0;
    overflow: hidden;
}
.ig-comment__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* بدنه */
.ig-comment__body {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: visible;
}

/* خط نام + متن */
.ig-comment__line {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    font-size: .86rem;
    line-height: 1.55;
    color: #0f1419;
}
.ig-comment__name {
    display: inline;
    font-size: .86rem;
    font-weight: 800;
    color: #0f1419;
    margin: 0 6px 0 0;
    padding: 0;
}
.ig-comment__text {
    display: inline;
    font-size: .86rem;
    font-weight: 400;
    color: #0f1419;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    margin: 0;
    padding: 0;
}
.ig-comment__text .mention {
    color: #1d9bf0;
    font-weight: 700;
    background: transparent;
    padding: 0;
}

/* متا */
.ig-comment__meta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 3px;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    font-size: .74rem;
    color: #8b98a5;
    font-weight: 600;
}
.ig-comment__time {
    font-size: .72rem;
    color: #8b98a5;
    font-weight: 400;
}
.ig-comment__action-link {
    background: transparent;
    border: 0;
    color: #536471;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    margin: 0;
    border-radius: 6px;
    transition: color .2s ease;
}
.ig-comment__action-link:hover { color: #1d9bf0; background: rgba(29,155,240,.08); }
.ig-comment__likes-count { color: #8b98a5; font-size: .72rem; font-weight: 600; }

/* ستون قلب */
.ig-comment__like-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 28px;
    padding: 0;
    margin: 0;
}
.ig-comment__heart {
    background: transparent;
    border: 0;
    color: #8b98a5;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color .15s, transform .2s;
    display: grid;
    place-items: center;
}
.ig-comment__heart:hover { color: #f91880; transform: scale(1.15); }
.ig-comment__heart svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}
.ig-comment__heart.is-active { color: #f91880; }
.ig-comment__heart.is-active svg { fill: #f91880; stroke: #f91880; }
.ig-comment__heart-count {
    font-size: .68rem;
    color: #8b98a5;
    font-weight: 700;
    min-height: 1em;
    line-height: 1;
}

/* صوت */
.ig-comment__audio {
    margin-top: 6px;
    padding: 6px;
    background: #f7f9f9;
    border-radius: 10px;
    border: 0;
}
.ig-comment__audio audio { width: 100%; height: 32px; }

/* فرم پاسخ */
.ig-comment__reply-form {
    display: none;
    margin-top: 8px;
    padding: 8px;
    background: #f7f9f9;
    border-radius: 10px;
    border: 0;
}
.ig-comment__reply-form.show { display: block; }
.ig-comment__reply-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: .82rem;
    line-height: 1.5;
    resize: none;
    min-height: 40px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    color: #0f1419;
}
.ig-comment__reply-form textarea:focus { border-color: #1d9bf0; }
.ig-comment__reply-form .reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    gap: 6px;
}
.ig-comment__reply-form .reply-send {
    padding: 6px 16px;
    border-radius: 100px;
    background: #0f1419;
    color: #fff;
    border: 0;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}
.ig-comment__reply-form .reply-send:hover { background: #272c30; }
.ig-comment__reply-form .reply-send:disabled { opacity: .5; cursor: not-allowed; }

/* دکمهٔ نمایش بیشتر */
.nat-cm__more {
    display: block;
    width: 100%;
    padding: 11px 14px;
    margin: 6px 0 0 0;
    background: rgba(15,31,56,.04);
    border: 1.5px solid #0F1F38;
    border-radius: 10px;
    color: #0F1F38;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    box-sizing: border-box;
}
.nat-cm__more:hover {
    background: #0F1F38;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,31,56,.28);
}

/* ═══════ ۹) فرم کامنت جدید ═══════ */
.ig-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #fff;
    border: none;
    border-top: 1px solid rgba(15,54,65,.06);
    border-radius: 0;
    margin: 0;
}

.ig-comment-form__guest {
    display: flex;
    gap: 8px;
    padding: 10px 18px 4px;
    flex-wrap: wrap;
}
.ig-comment-form__guest input {
    flex: 1;
    min-width: 130px;
    padding: 9px 14px;
    border: 1px solid rgba(15,54,65,.14);
    border-radius: 100px;
    background: #fbf9f3;
    font-family: inherit;
    font-size: .8rem;
    outline: none;
}
.ig-comment-form__guest input:focus { border-color: #2A6E80; background: #fff; }

.ig-comment-form__bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 12px;
    border-top: 1px solid rgba(15,54,65,.06);
}

.ig-comment-form__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F3641, #2A6E80);
    color: #D99A2B;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px #fbf9f3, inset 0 0 0 3px #D99A2B;
}

.ig-comment-form__input-wrap { flex: 1; min-width: 0; }
.ig-comment-form__input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(15,54,65,.14);
    border-radius: 100px;
    background: #fbf9f3;
    font-family: inherit;
    font-size: .86rem;
    outline: none;
    transition: all .2s ease;
    resize: none;
    min-height: 40px;
    max-height: 100px;
    line-height: 1.6;
    box-sizing: border-box;
}
.ig-comment-form__input:focus { border-color: #2A6E80; background: #fff; }

.ig-comment-form__icons { display: flex; gap: 4px; flex-shrink: 0; }
.ig-comment-form__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #8a7d63;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s ease;
    padding: 0;
}
.ig-comment-form__icon-btn:hover { background: rgba(15,54,65,.06); color: #0F3641; }
.ig-comment-form__icon-btn.is-recording {
    background: #ed4956;
    color: #fff;
    animation: recPulse 1.2s infinite;
}
@keyframes recPulse { 50% { transform: scale(1.1); } }
.ig-comment-form__icon-btn svg { width: 20px; height: 20px; }

.ig-comment-form__submit {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #0095f6;
    font-family: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ig-comment-form__submit.is-visible { opacity: 1; pointer-events: auto; }
.ig-comment-form__submit:hover { color: #00376b; }
.ig-comment-form__submit:disabled { opacity: .4; cursor: not-allowed; }
.ig-comment-form__submit svg { width: 14px; height: 14px; }

/* ═══════ ۱۰) ضبط صوت ═══════ */
.audio-recorder {
    display: none;
    margin: 8px 18px;
    padding: 12px;
    background: rgba(42,110,128,.06);
    border: 1px solid rgba(42,110,128,.20);
    border-radius: 12px;
}
.audio-recorder.show { display: block; }
.audio-recorder__wave {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 8px;
}
.audio-recorder__wave span {
    display: block;
    width: 3px;
    background: linear-gradient(180deg, #2A6E80, #D99A2B);
    border-radius: 2px;
    animation: waveAnim 1s ease-in-out infinite;
}
@keyframes waveAnim {
    0%, 100% { height: 8px; opacity: .5; }
    50% { height: 32px; opacity: 1; }
}
.audio-recorder__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .76rem;
    color: #5e6260;
    font-weight: 700;
    flex-wrap: wrap;
    gap: 8px;
}
.audio-recorder__time {
    color: #ed4956;
    font-family: 'Courier New', monospace;
    font-size: .84rem;
}
.audio-recorder__actions { display: flex; gap: 6px; }
.audio-recorder__actions button {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}
.audio-recorder__send { background: #0095f6; color: #fff; }
.audio-recorder__cancel { background: rgba(168,39,28,.10); color: #a8271c; }

/* ═══════ ۱۱) مطالب مرتبط ═══════ */
.reader-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed rgba(15, 54, 65, .15);
}
.reader-related__title {
    font-size: .95rem;
    font-weight: 800;
    color: #0F3641;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 54, 65, .10);
}
.reader-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.reader-related__card {
    display: block;
    background: #fff;
    border: 1px solid rgba(15, 54, 65, .08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.reader-related__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 54, 65, .10);
    border-color: rgba(42, 110, 128, .25);
}
.reader-related__img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #eee9db;
}
.reader-related__body { padding: 8px 10px 10px; }
.reader-related__cat { font-size: .62rem; font-weight: 800; color: #8B5E14; }
.reader-related__body h4 {
    font-size: .78rem;
    line-height: 1.5;
    margin: 4px 0 0;
    color: #0F3641;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════ ۱۲) Paywall ═══════ */
.paywall-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.paywall-modal.is-open { opacity: 1; visibility: visible; }
.paywall-modal__bg { position: absolute; inset: 0; background: rgba(10, 15, 26, .78); }
.paywall-modal__inner {
    position: relative;
    background: linear-gradient(180deg, #fbf9f3, #f5efe0);
    border-radius: 20px;
    padding: 40px 32px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    transform: scale(.96) translateY(20px);
    transition: transform .3s cubic-bezier(.34, 1.4, .64, 1);
}
.paywall-modal.is-open .paywall-modal__inner { transform: scale(1) translateY(0); }
.paywall-modal__inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #D99A2B, #8B5E14, #D99A2B);
}
.paywall-modal__close {
    position: absolute;
    top: 12px; left: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(15, 54, 65, .06);
    border: none;
    color: #5e6260;
    font-size: 1.3rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.paywall-modal__icon { font-size: 3rem; margin-bottom: 14px; }
.paywall-modal__inner h2 { font-size: 1.35rem; color: #0F3641; margin: 0 0 12px; }
.paywall-modal__inner p { font-size: .92rem; color: #5e6260; line-height: 1.9; margin: 0 0 24px; }
.paywall-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.paywall-modal__btn {
    padding: 14px;
    border-radius: 11px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
}
.paywall-modal__btn--primary {
    background: linear-gradient(135deg, #D99A2B, #8B5E14);
    color: #1a1e22;
    box-shadow: 0 8px 22px rgba(217, 154, 43, .40);
}
.paywall-modal__btn--primary:hover { transform: translateY(-2px); }
.paywall-modal__btn--ghost {
    background: transparent;
    color: #5e6260;
    border: 1.5px solid #d8d2be;
}

/* ═══════ ۱۳) قفل صفحه ═══════ */
body.reader-modal-open { overflow: hidden !important; }

/* ═══════ ۱۴) موبایل ═══════ */
@media (max-width: 720px) {
    .reader-modal-bg { padding: 0; align-items: stretch; }
    .reader-modal {
        max-width: 100vw;
        width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        transform: translateY(100%);
        transition-duration: .5s;
    }
    .reader-modal-bg.is-open .reader-modal { transform: translateY(0); }
    .reader-modal::before { border-radius: 0; }
    .reader-modal__top { padding: 12px 14px; }
    .reader-modal__title { font-size: .82rem; }
    .reader-modal__btn { width: 38px; height: 38px; }
    .reader-modal__btn svg { width: 16px; height: 16px; }
    .reader-modal__body { padding: 20px 16px 60px; }
    .reader-modal__content { font-size: 1rem; line-height: 2; }
    .reader-modal__content h1 { font-size: 1.35rem; }
    .reader-engagement { flex-direction: column; align-items: stretch; }
    .reader-engagement__group { justify-content: center; }
    .reader-share-group { justify-content: center; }
    .reader-related__grid { grid-template-columns: 1fr 1fr; }
    .ig-comment { padding: 10px 12px; gap: 8px; }
    .ig-comment__avatar { width: 32px; height: 32px; min-width: 32px; font-size: .72rem; }
    .ig-comment__name,
    .ig-comment__text { font-size: .82rem; }
    .ig-comment-form__guest { padding: 8px 12px 2px; flex-direction: column; }
    .ig-comment-form__bottom { padding: 6px 10px 10px; }
    .nat-cm__more { width: 100%; }
}

/* ═══════ ۱۵) انیمیشن سینمایی — فقط برای prefers-reduced-motion ═══════ */
@media (prefers-reduced-motion: reduce) {
    .reader-modal-bg { transition-duration: .5s; }
    .reader-modal { transition-duration: .7s, .5s; }
}