/*
  Avaykhis - Dark Mode
  ---------------------
  فقط وقتی فعال می‌شود که <html data-theme="dark"> باشد.
  بعد از white-theme.css و motion.css لود می‌شود.
  برای حذف کامل: لینک این فایل از header.php + بلوک اسکریپت و دکمه از header/footer پاک شود.
*/

html[data-theme="dark"]{
  color-scheme:dark;
  --dk-bg:#13101b;      /* زمینه صفحه */
  --dk-card:#1c1728;    /* کارت‌ها و هدر */
  --dk-tint:#251f35;    /* ردیف‌های راه‌راه / باکس‌های ملایم */
  --dk-tint2:#2d2641;   /* هاور / دکمه‌های خنثی */
  --dk-line:#3a3054;    /* حاشیه‌ها */
  --dk-text:#e7e3f0;    /* متن اصلی */
  --dk-text2:#bdb5d0;   /* متن ثانویه */
  --dk-muted:#9a92b1;   /* متن کم‌رنگ */
  --dk-head:#cdbcf4;    /* عنوان‌ها و لینک‌های بنفش */
  --dk-acc:#a287e0;     /* تاکید روشن‌تر برای خواناتر بودن روی تیره */
  /* متغیرهای motion.css */
  --av-tint:#251f35;
  --av-line:#3a3054;
  --av-glow:0 8px 22px -6px rgba(0,0,0,.6);
}

/* ---------- پایه (با :where تا اولویتی نسبت به بقیه‌ی قاعده‌ها نداشته باشد) ---------- */
:where(html[data-theme="dark"]) a{color:var(--dk-text);}
:where(html[data-theme="dark"]) a:hover{color:var(--dk-acc);}
:where(html[data-theme="dark"]) table,
:where(html[data-theme="dark"]) tr,
:where(html[data-theme="dark"]) td{color:var(--dk-text2);}
html[data-theme="dark"] body{background:var(--dk-bg) !important;color:var(--dk-text);}
html[data-theme="dark"]{scrollbar-color:var(--av-p4) var(--dk-bg);}
html[data-theme="dark"] ::-webkit-scrollbar-track{background:var(--dk-bg);}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{border-color:var(--dk-bg);}
html[data-theme="dark"] img{opacity:.93;}
html[data-theme="dark"] .RcBlogLogo,html[data-theme="dark"] .RcMBlogLogo{filter:brightness(1.15);}

/* ---------- هدر ---------- */
html[data-theme="dark"] #RcHeader{background:linear-gradient(180deg,var(--dk-card) 0%,#171222 100%);box-shadow:0 3px 0 0 var(--av-p4),0 8px 22px -12px rgba(0,0,0,.7);}
html[data-theme="dark"] .RcSearch{background:var(--dk-tint);border:1px solid var(--dk-line);}
html[data-theme="dark"] .RcSearch:focus-within{background:var(--dk-tint2);border-color:var(--av-p4);box-shadow:0 0 0 4px rgba(121,85,185,.25);}
html[data-theme="dark"] .RcSearch input[type="text"]{background:transparent;color:var(--dk-text);}
html[data-theme="dark"] .RcSearch input[type="text"]::placeholder{color:var(--dk-muted);}
html[data-theme="dark"] .RcSearch button[type="submit"] i{color:var(--dk-head);}
html[data-theme="dark"] .RcSearch button[type="submit"]:hover i{color:#fff;}
html[data-theme="dark"] .RcBlogTitle{background:linear-gradient(90deg,#cdbcf4,#a287e0,#e0d4fa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;}
html[data-theme="dark"] .RcBlogDesc{color:var(--dk-muted);}

/* ---------- منو ---------- */
html[data-theme="dark"] #RcMenuBar .RcBlock{background:var(--dk-card);border-bottom:1px solid var(--dk-line);}
html[data-theme="dark"] .RcFixedMenu{background:var(--dk-card);border-bottom-color:var(--av-p4);box-shadow:0 8px 24px -10px rgba(0,0,0,.8) !important;}
html[data-theme="dark"] .RcMenu li a{color:var(--dk-head);}
html[data-theme="dark"] .RcMenu li a:hover{background:#7955b9;color:#fff;}
html[data-theme="dark"] .RcMenu li.RcSelect a{background:var(--dk-tint);color:var(--dk-head);box-shadow:inset 0 -3px 0 0 #7955b9;}
html[data-theme="dark"] .RcMenu li.RcSelect a:hover{background:#7955b9;color:#fff;}
html[data-theme="dark"] .RcMenuList ul li a{color:var(--dk-head);}
html[data-theme="dark"] .RcMenuList ul li:hover a{background:#7955b9;color:#fff;}
html[data-theme="dark"] .RcMenuList ul ul{background:var(--dk-card);border:1px solid var(--dk-line);box-shadow:0 14px 28px -10px rgba(0,0,0,.8);}
html[data-theme="dark"] .RcMenuList ul ul li a{background:var(--dk-tint) !important;color:var(--dk-head);border-right-color:#7955b9;}
html[data-theme="dark"] .RcMenuList ul ul li a:hover{background:#7955b9 !important;color:#fff;}
html[data-theme="dark"] .RcCategory select{background:var(--dk-tint);color:var(--dk-head);border:1px solid #7955b9 !important;}
html[data-theme="dark"] .RcCategory select:hover{background:var(--dk-tint2);}

/* ---------- نوار بالا / اسلایدرها ---------- */
html[data-theme="dark"] .RcTopBar .RcBlock{background:var(--dk-bg);border-bottom:2px solid var(--dk-line);}
html[data-theme="dark"] .RcTopBar .RcBlock.RcBlock2{background:var(--dk-card);border-top:1px solid var(--dk-line);border-bottom:2px solid var(--dk-line);}
html[data-theme="dark"] .RcTopTitle{color:var(--dk-head);}
html[data-theme="dark"] .owl-theme .owl-dots .owl-dot span{border-color:#7955b9;}
html[data-theme="dark"] .owl-theme .owl-dots .owl-dot.active span,
html[data-theme="dark"] .owl-theme .owl-dots .owl-dot:hover span{background:#7955b9;}

/* ---------- بلوک‌های عمومی ---------- */
html[data-theme="dark"] #RcAdsBar{background:var(--dk-card);border-top:1px solid var(--dk-line);border-bottom:1px solid var(--dk-line);}
html[data-theme="dark"] .RcBlockSlider{background:var(--dk-card);border:1px solid var(--dk-line);box-shadow:0 2px 8px 0 rgba(0,0,0,.5);}
html[data-theme="dark"] .RcBlock.RcBread{background:var(--dk-tint) !important;}
html[data-theme="dark"] .RcBlock.RcCTop{background:var(--dk-tint) !important;}
html[data-theme="dark"] .RcBlock.RcCTop .RcDesc{color:var(--dk-text2);}
html[data-theme="dark"] .RcBlock.RcCat{background:var(--dk-card) !important;}
html[data-theme="dark"] .RcBlock.RcCat .RcTop{border-color:#7955b9 !important;}
html[data-theme="dark"] .RcBlock.RcCat .RcIcon{background:#7955b9 !important;}
html[data-theme="dark"] .RcBlock.RcCat .RcIcon i{color:#fff !important;}
html[data-theme="dark"] #RcPostBar .RcBlock.RcPage{background:var(--dk-tint);}

/* ---------- کارت‌ها ---------- */
html[data-theme="dark"] #RcPostBar .RcBlock,
html[data-theme="dark"] #RcSideBar .RcBlock{background:var(--dk-card);border:1px solid var(--dk-line);box-shadow:0 2px 8px 0 rgba(0,0,0,.45);}
html[data-theme="dark"] #RcPostBar .RcBlock:hover,
html[data-theme="dark"] #RcSideBar .RcBlock:hover{border-color:#4b3e70;box-shadow:0 10px 28px -12px rgba(0,0,0,.8);}
html[data-theme="dark"] #RcPostBar .RcBlock.RcBlockSlider{background:var(--dk-card);}
html[data-theme="dark"] .RcTop .RcTitle,
html[data-theme="dark"] .RcTop .RcTitle a{color:var(--dk-head);}
html[data-theme="dark"] .RcTop .RcTitle a:hover{color:#fff;}
html[data-theme="dark"] .RcImgLine img{background:var(--dk-tint);box-shadow:0 6px 16px -8px rgba(0,0,0,.8);}
html[data-theme="dark"] .RcText2{background:var(--dk-tint);}
html[data-theme="dark"] .RcTextLine,
html[data-theme="dark"] .RcText,
html[data-theme="dark"] .RcTextSummary,
html[data-theme="dark"] .RcText2,
html[data-theme="dark"] .RcText3,
html[data-theme="dark"] .RcText a,
html[data-theme="dark"] .RcText2 a{color:var(--dk-text);}
html[data-theme="dark"] .RcText a:hover,
html[data-theme="dark"] .RcText2 a:hover{color:var(--dk-acc);}
html[data-theme="dark"] #RcPostBar blockquote{background:var(--dk-tint);color:var(--dk-text);}
html[data-theme="dark"] .RcTextBottom,
html[data-theme="dark"] .RcShortLink{border-top-color:var(--dk-line);}
html[data-theme="dark"] .RcShortLink input{background:var(--dk-tint);color:var(--dk-head);}
html[data-theme="dark"] .RcSubscribe li a,
html[data-theme="dark"] .RcAuthorSocial li a{background:var(--dk-tint);color:var(--dk-text);}
html[data-theme="dark"] .TkLikesCount{color:var(--dk-text);}

/* ---------- لیست‌ها / برچسب‌ها / تب‌ها ---------- */
html[data-theme="dark"] .RcLinks1 li,
html[data-theme="dark"] .RcLinks2 li,
html[data-theme="dark"] .RcWidget ul li{color:var(--dk-text2);}
html[data-theme="dark"] .RcLinks1 li:nth-child(odd),
html[data-theme="dark"] .RcWidget ul li:nth-child(odd),
html[data-theme="dark"] .RcLinks2 li:nth-child(odd){background:var(--dk-tint);}
html[data-theme="dark"] #RcPostBar .RcLinks1 li{background:var(--dk-card);}
html[data-theme="dark"] #RcPostBar .RcLinks1 li:nth-child(odd){background:var(--dk-tint);}
html[data-theme="dark"] .RcLinks1 li:hover,
html[data-theme="dark"] .RcLinks2 li:hover,
html[data-theme="dark"] .RcWidget ul li:hover{background-color:var(--dk-tint2) !important;}
html[data-theme="dark"] .RcLinks1 li i,
html[data-theme="dark"] .RcLinks2 li i{color:var(--dk-acc);}
html[data-theme="dark"] .RcLinks2 li .RcLinksI img{background:var(--dk-tint);}
html[data-theme="dark"] .RcLinksTag a{background:var(--dk-tint);color:var(--dk-head);}
html[data-theme="dark"] .RcLinksTag a:hover{background:#7955b9 !important;color:#fff !important;}
html[data-theme="dark"] .RcBlock .RcTabList li a{background:var(--dk-tint);color:var(--dk-head);}
html[data-theme="dark"] .RcBlock .RcTabList li a:hover,
html[data-theme="dark"] .RcBlock .RcTabList li.active a,
html[data-theme="dark"] .RcBlock .RcTabList li.active,
html[data-theme="dark"] .RcBlock .RcTabList li.active a:hover,
html[data-theme="dark"] .RcBlock .RcTabList li.active:hover{background:#7955b9;color:#fff;}
html[data-theme="dark"] .RcLinksCat ul li span,
html[data-theme="dark"] .RcWidget ul li span{background:var(--dk-tint2);color:var(--dk-head);}
html[data-theme="dark"] .RcLinksAuthors li,
html[data-theme="dark"] .RcLinksAuthors.RcLinksArchive li{background:var(--dk-tint) !important;--g1:#9d7fdc;--g2:#6647a4;}
html[data-theme="dark"] .RcLinksAuthors li a{color:var(--dk-head);}
html[data-theme="dark"] .RcLinksAuthors li span{background:var(--dk-tint2);color:var(--dk-text2);}
html[data-theme="dark"] .RcLinksAuthors li:hover{background:linear-gradient(135deg,var(--dk-tint),var(--dk-tint2)) !important;}
html[data-theme="dark"] .RcLinksAuthors li:hover a{color:#fff;}

/* ---------- باکس مشخصات و دانلود ---------- */
html[data-theme="dark"] .RcDownload{background:var(--dk-tint);border:1px solid var(--dk-line);color:var(--dk-text);}
html[data-theme="dark"] .RcDlTitle{background:var(--dk-tint);color:var(--dk-head);}
html[data-theme="dark"] .RcDownload.RcDlIndex{background:none;border:none;border-top:1px dotted var(--dk-line);}
html[data-theme="dark"] .RcDownload.RcDlIndex .RcInfo li{background:var(--dk-tint);}
html[data-theme="dark"] .RcDownload.RcDlIndex .RcInfo li span,
html[data-theme="dark"] .RcInfo li span{color:var(--dk-text);}

/* ---------- دیدگاه‌ها ---------- */
html[data-theme="dark"] .RcSendComment,
html[data-theme="dark"] .RcComment li{background:var(--dk-tint);border:1px solid var(--dk-line);}
html[data-theme="dark"] .RcBodyComment{color:var(--dk-text);}
html[data-theme="dark"] .RcComment li ul.children li.odd{background:#211b30 !important;}
html[data-theme="dark"] .RcComment li ul.children li.even{background:#2a2340 !important;}
html[data-theme="dark"] .RcComment li ul.children li{border-color:#7955b9;}
html[data-theme="dark"] .RcComment li ul.children li .RcNameComment i{color:var(--dk-head) !important;}
html[data-theme="dark"] .RcComment li ul.children li .RcAvatarComment img{border-color:#6647a4 !important;}

/* ---------- صفحه‌بندی ---------- */
html[data-theme="dark"] .pagination{color:var(--dk-text);}
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span{background:var(--dk-tint);color:var(--dk-head);}
html[data-theme="dark"] .pagination a:hover,
html[data-theme="dark"] .pagination span:hover,
html[data-theme="dark"] .pagination span,
html[data-theme="dark"] .pagination .current,
html[data-theme="dark"] .pagination .current span:hover{background:#7955b9;color:#fff !important;}
html[data-theme="dark"] .pagination a:hover{background:#7955b9;color:#fff !important;}

/* ---------- فرم‌ها ---------- */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{background:var(--dk-tint);color:var(--dk-text);border-color:var(--dk-line);}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:var(--dk-muted);}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus{border-color:#7955b9;box-shadow:0 0 0 3px rgba(121,85,185,.3);}
html[data-theme="dark"] .RcSendComment input,
html[data-theme="dark"] .RcSendComment textarea,
html[data-theme="dark"] .RcSendComment select,
html[data-theme="dark"] .RcComment input,
html[data-theme="dark"] .RcComment textarea,
html[data-theme="dark"] .RcComment select{background:var(--dk-card);}
html[data-theme="dark"] select option{background:var(--dk-card);color:var(--dk-text);}

/* ---------- فوتر ---------- */
html[data-theme="dark"] #RcFooterBar{background:var(--dk-card);box-shadow:inset 0 3px 0 var(--av-p4);}
html[data-theme="dark"] .RcBFooter .RcTop .RcTitle{color:var(--dk-head);}
html[data-theme="dark"] .RcBFooter .RcText{color:var(--dk-text);}
html[data-theme="dark"] .RcBFooter .RcLinks1 li:nth-child(odd){background:var(--dk-tint);}
html[data-theme="dark"] .RcBFooter .RcLinks1 li a{color:var(--dk-head);}
html[data-theme="dark"] .RcBFooter .RcLinks1 li a:hover{color:#fff;}
html[data-theme="dark"] .RcBFooter .RcLinks1.RcLiIcon li i{color:var(--dk-acc);}
html[data-theme="dark"] .RcStatistics li{background:var(--dk-tint);color:var(--dk-head);border:1px solid var(--dk-line);}
html[data-theme="dark"] .RcStatistics li i{color:var(--dk-acc);}
html[data-theme="dark"] .RcCFooter{background:linear-gradient(180deg,var(--dk-card),#171222);color:var(--dk-text2);border-top:1px solid var(--dk-line);}
html[data-theme="dark"] .RcCFooter a{color:var(--dk-head);}
html[data-theme="dark"] .RcCFooter a:hover{color:#fff;}
html[data-theme="dark"] .RcCFooter i{color:var(--dk-acc);}
html[data-theme="dark"] .RcFooterL a{background:#7955b9;color:#fff !important;}
html[data-theme="dark"] .RcFooterL a:hover{background:#6647a4;}

/* ---------- موبایل ---------- */
@media screen and (max-width:840px){
  html[data-theme="dark"] .RcSearchBar{background:var(--dk-tint);}
  html[data-theme="dark"] .RcSearch{background:var(--dk-card);}
  html[data-theme="dark"] .RcMenu2 .RcMenu li a.RcBar{background:#583c90;color:#fff;}
  html[data-theme="dark"] .RcMenu2 ul ul{background:var(--dk-card);border:1px solid var(--dk-line);box-shadow:0 4px 10px 0 rgba(0,0,0,.6);}
  html[data-theme="dark"] .RcMenu2 ul ul li a{background:var(--dk-tint) !important;color:var(--dk-head);border-right-color:#7955b9;}
  html[data-theme="dark"] .RcMenu2 ul ul li a:hover{background:#7955b9 !important;color:#fff;}
  html[data-theme="dark"] #RcPostBar .RcLinks1 li:nth-child(odd){background:var(--dk-tint);}
}

/* ---------- کارت‌های صفحه «نویسنده شو» ---------- */
html[data-theme="dark"] .RcContactBox{background:var(--dk-card);border-color:var(--dk-line);color:var(--dk-text);box-shadow:0 4px 14px -8px rgba(0,0,0,.8);}
html[data-theme="dark"] .RcContactBox:hover{color:var(--dk-text);}
html[data-theme="dark"] .RcCtHint{color:var(--dk-muted);}

/* ---------- هشدارها ---------- */
html[data-theme="dark"] .RcError2{background:#4a3d08;color:#ffe9a0;border-color:#8a7410;}

/* ---------- سیستم نویسندگی / داشبورد ---------- */
html[data-theme="dark"] .RcWBox{background:var(--dk-card);box-shadow:0 2px 5px 0 rgba(0,0,0,.5);}
html[data-theme="dark"] .RcWBoxHead h3{color:var(--dk-text);}
html[data-theme="dark"] .RcWAlert{background:#3a3010;border-color:#6b5a14;border-right-color:#ffd800;color:var(--dk-text);}
html[data-theme="dark"] .RcWAlertOk{background:#10321f;border-color:#1f6a40;border-right-color:#03d552;}
html[data-theme="dark"] .RcWAlertOk>i{color:#3ddc84;}
html[data-theme="dark"] .RcWCode strong,
html[data-theme="dark"] .RcWAlert a{color:var(--dk-head);}
html[data-theme="dark"] .RcWSec{background:var(--dk-tint);}
html[data-theme="dark"] .RcWSecTitle{color:var(--dk-head);border-bottom-color:var(--dk-line);}
html[data-theme="dark"] .RcWNote{color:var(--dk-text2);}
html[data-theme="dark"] .RcWLabel{color:var(--dk-text);}
html[data-theme="dark"] .RcWHint,
html[data-theme="dark"] .RcWFile small,
html[data-theme="dark"] .RcWEmpty,
html[data-theme="dark"] .RcWPartInfo small,
html[data-theme="dark"] .RcWChDate,
html[data-theme="dark"] .RcWLockNote{color:var(--dk-muted);}
html[data-theme="dark"] .RcWInput,
html[data-theme="dark"] .RcWForm input[type="text"],
html[data-theme="dark"] .RcWForm input[type="email"],
html[data-theme="dark"] .RcWForm input[type="tel"],
html[data-theme="dark"] .RcWForm select,
html[data-theme="dark"] .RcWForm textarea{background:var(--dk-card);border-color:#4a3f6b;color:var(--dk-text);}
html[data-theme="dark"] .RcWInput:focus{border-color:#9d7fdc;box-shadow:0 0 0 2px rgba(157,127,220,.35);}
html[data-theme="dark"] .RcWFile{background:var(--dk-card);border-color:#4a3f6b;}
html[data-theme="dark"] .RcWFile:hover{border-color:#9d7fdc;background:var(--dk-tint2);}
html[data-theme="dark"] .RcWAltLink a{color:var(--dk-acc);}
html[data-theme="dark"] .RcWBtnGhost{background:var(--dk-tint2);color:var(--dk-text);}
html[data-theme="dark"] .RcWBtnGhost:hover,
html[data-theme="dark"] .RcWBtnGhost:focus{background:#3a3054;color:#fff;}
html[data-theme="dark"] .RcWMsg.is-ok{color:#3ddc84;}
html[data-theme="dark"] .RcWMsg.is-err{color:#ff7b82;}
html[data-theme="dark"] .RcWDashHead{background:#2b2145;}
html[data-theme="dark"] .RcWWho img{background:var(--dk-card);}
html[data-theme="dark"] .RcWTab{background:var(--dk-tint);color:var(--dk-text2);}
html[data-theme="dark"] .RcWTab:hover{background:var(--dk-tint2);}
html[data-theme="dark"] .RcWTab.is-active{background:#7955b9;color:#fff;}
html[data-theme="dark"] .RcWCoverPrev{background:var(--dk-card);border-color:#4a3f6b;color:var(--dk-muted);}
html[data-theme="dark"] .RcWCoverPrev i{color:#5d5280;}
html[data-theme="dark"] .RcWGenre span{background:var(--dk-card);border-color:#4a3f6b;color:var(--dk-text);}
html[data-theme="dark"] .RcWGenre input:checked+span{background:#7955b9;border-color:#7955b9;color:#fff;}
html[data-theme="dark"] .RcWEmpty i{color:#4a3f6b;}
html[data-theme="dark"] .RcWNovel{background:var(--dk-tint);}
html[data-theme="dark"] .RcWNovelCover{background:var(--dk-tint2);}
html[data-theme="dark"] .RcWNovelBody h4{color:var(--dk-text);}
html[data-theme="dark"] .RcWNovelMeta{color:var(--dk-text2);}
html[data-theme="dark"] .RcWNovelMeta i{color:var(--dk-acc);}
html[data-theme="dark"] .RcWParts{border-top-color:var(--dk-line);}
html[data-theme="dark"] .RcWPartsToggle{background:var(--dk-tint2);color:var(--dk-text2);}
html[data-theme="dark"] .RcWPart{background:var(--dk-card);}
html[data-theme="dark"] .RcWPartInfo strong{color:var(--dk-text);}
html[data-theme="dark"] .RcWPartActs button{background:var(--dk-tint2);color:var(--dk-text2);}
html[data-theme="dark"] .RcWPartActs button:hover{background:#7955b9;color:#fff;}
html[data-theme="dark"] .RcWPartActs .rcw-part-del:hover{background:#f13f3f;color:#fff;}
html[data-theme="dark"] .RcWPartActs button[disabled]:hover{background:var(--dk-tint2);color:var(--dk-text2);}
html[data-theme="dark"] .RcWModal{background:rgba(0,0,0,.8);}
html[data-theme="dark"] .RcWModalBox{background:var(--dk-card);color:var(--dk-text);}
html[data-theme="dark"] .RcWModalHead h4{color:var(--dk-text);}
html[data-theme="dark"] .RcWModalClose{background:var(--dk-tint2);color:var(--dk-text);}
html[data-theme="dark"] .RcWModalClose:hover{background:#f13f3f;color:#fff;}

/* ---------- فهرست پارت‌ها در صفحه رمان ---------- */
html[data-theme="dark"] .RcWChapter{background:var(--dk-tint);color:var(--dk-text);}
html[data-theme="dark"] a.RcWChapter:hover{background:#7955b9;color:#fff;}
html[data-theme="dark"] a.RcWChapter:hover .RcWChDate{color:#e9e9e9;}
html[data-theme="dark"] .RcWChRead{color:var(--dk-acc);}
html[data-theme="dark"] a.RcWChapter:hover .RcWChRead{color:#fff;}
html[data-theme="dark"] .RcWSeason{background:#4d3480;}
html[data-theme="dark"] .RcWSellTag{color:#ffc857;}
html[data-theme="dark"] .RcWLockBox{background:var(--dk-tint);color:var(--dk-text);}
html[data-theme="dark"] .RcWLockBox h4,
html[data-theme="dark"] .RcWLockPrice{color:var(--dk-head);}
html[data-theme="dark"] .RcWBuyBtn{color:#fff !important;}

/* ---------- پارت‌خوان آنلاین ---------- */
html[data-theme="dark"] .RcWReader{background:#0f0c16;}
html[data-theme="dark"] .RcWReaderBar{background:#2b2145;}
html[data-theme="dark"] .RcWReaderText{background:var(--dk-card);color:#ddd8e9;box-shadow:0 2px 5px 0 rgba(0,0,0,.6);}
html[data-theme="dark"] .RcWReaderMsg{color:var(--dk-head);}
html[data-theme="dark"] .RcWReaderNav{background:var(--dk-tint);}

/* ---------- کارت نویسنده زیر مشخصات رمان ---------- */
html[data-theme="dark"] #RcPostBar .RcWAuthorName{color:var(--dk-head);}
html[data-theme="dark"] #RcPostBar .RcWAuthorBio{color:var(--dk-text2);opacity:1;}

/* ---------- برچسب «در حال پارت‌گذاری» ---------- */
html[data-theme="dark"] .rcw-ongoing{background:linear-gradient(90deg,rgba(100,70,165,.95),rgba(66,42,112,.95));}

/* ---------- دکمه تغییر حالت روشن/تیره (داخل نوار منوی هدر) ---------- */
.rcw-theme-toggle{float:left;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:42px;height:42px;margin:0 4px;padding:0;
  background:linear-gradient(135deg,#ffc933,#ff9d00);color:#3b2a00;font-size:17px;line-height:1;border:0;border-radius:8px;cursor:pointer;
  box-shadow:0 3px 10px -3px rgba(255,157,0,.7),inset 0 1px 0 rgba(255,255,255,.45);
  transition:transform .25s ease,box-shadow .25s ease,filter .25s ease;}
.rcw-theme-toggle i{margin:0 !important;}
.rcw-theme-toggle:hover{transform:translateY(-2px);filter:brightness(1.07);box-shadow:0 8px 16px -6px rgba(255,157,0,.8),inset 0 1px 0 rgba(255,255,255,.5);}
.rcw-theme-toggle:active{transform:scale(.94);}
.rcw-theme-toggle:focus-visible{outline:3px solid rgba(157,127,220,.8);outline-offset:2px;}
.rcw-theme-toggle .rcw-ic-sun{display:none;}
html[data-theme="dark"] .rcw-theme-toggle{background:linear-gradient(135deg,#ffe27a,#ffbe1f);color:#4a3200;box-shadow:0 3px 12px -3px rgba(255,200,60,.55),inset 0 1px 0 rgba(255,255,255,.5);}
html[data-theme="dark"] .rcw-theme-toggle .rcw-ic-moon{display:none;}
html[data-theme="dark"] .rcw-theme-toggle .rcw-ic-sun{display:inline;}
/* موبایل: کنار آیکن منوی همبرگری */

/* ---------- دکمه ورود به سایت / حساب کاربری (کنار دکمه دارک مود) ---------- */
.rcw-login-btn{float:left;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:42px;height:42px;margin:0 4px;padding:0;
  background:linear-gradient(135deg,#2fd4c0,#0f9a8c);color:#fff;font-size:17px;line-height:1;text-decoration:none;border:0;border-radius:8px;cursor:pointer;
  box-shadow:0 3px 10px -3px rgba(15,154,140,.7),inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .25s ease,box-shadow .25s ease,filter .25s ease;}
.rcw-login-btn i{margin:0 !important;}
.rcw-login-btn:hover{color:#fff;transform:translateY(-2px);filter:brightness(1.08);box-shadow:0 8px 16px -6px rgba(15,154,140,.8),inset 0 1px 0 rgba(255,255,255,.45);}
.rcw-login-btn:active{transform:scale(.94);}
.rcw-login-btn:focus-visible{outline:3px solid rgba(157,127,220,.8);outline-offset:2px;}
html[data-theme="dark"] .rcw-login-btn{background:linear-gradient(135deg,#27b9a8,#0c7a6f);color:#fff;}
html[data-theme="dark"] .rcw-login-btn:hover{color:#fff;}

/* موبایل: کنار آیکن منوی همبرگری (همبرگری راست، بعد دارک مود، بعد ورود) */
/* دکمه «نویسنده شو» در نوار منو — فقط موبایل (کنار همبرگری) */
.rcw-author-btn{display:none;}
@media screen and (max-width:840px){
  .rcw-author-btn{float:right;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:42px;margin:0 4px 0 0;padding:0 14px;
    background:linear-gradient(135deg,#f0659f,#b8307c);color:#fff !important;font-size:13px;font-weight:800;line-height:1;white-space:nowrap;text-decoration:none;border-radius:8px;
    box-shadow:0 3px 10px -3px rgba(184,48,124,.7),inset 0 1px 0 rgba(255,255,255,.4);transition:transform .25s ease,filter .25s ease;}
  .rcw-author-btn:hover{filter:brightness(1.08);transform:translateY(-2px);}
  .rcw-author-btn:active{transform:scale(.94);}
  html[data-theme="dark"] .rcw-author-btn{background:linear-gradient(135deg,#d44a8a,#8f2262);}
  .rcw-theme-toggle,.rcw-login-btn{float:right;}
  .rcw-theme-toggle{margin:0 4px 0 0;}
  .rcw-login-btn{margin:0 4px 0 0;}
}
@media print{.rcw-theme-toggle,.rcw-login-btn,.rcw-author-btn{display:none !important;}}

/* ---------- بلوک موضوعات ---------- */
html[data-theme="dark"] .RcBlock .RcLinksCat > ul > li{background:var(--dk-tint);border-color:var(--dk-line);}
html[data-theme="dark"] .RcBlock .RcLinksCat > ul > li:hover{background:var(--dk-tint2);border-color:#5a4a86;}
html[data-theme="dark"] .RcBlock .RcLinksCat > ul > li.current-cat{background:var(--dk-tint2);border-color:#7a62b4;}
html[data-theme="dark"] .RcBlock .RcLinksCat ul li:before,
html[data-theme="dark"] .RcBlock .RcLinksCat ul li.RcTitleCat:before,
html[data-theme="dark"] .RcBlock .RcLinksCat ul li:hover:before,
html[data-theme="dark"] .RcBlock .RcLinksCat ul ul li:before{color:#b9a2ee !important;}
html[data-theme="dark"] .RcBlock .RcLinksCat ul li a{color:var(--dk-text);}
html[data-theme="dark"] .RcBlock .RcLinksCat ul li a:hover{color:#fff;}
html[data-theme="dark"] .RcBlock .RcLinksCat ul li ul li{background:var(--dk-card);border-color:var(--dk-line);}

/* ---------- تایپوگرافی: عنوان «خلاصه رمان» ---------- */
html[data-theme="dark"] body .RcTitleLine{color:var(--dk-head);}

/* ── آمار و فیلتر داشبورد نویسنده ── */
html[data-theme="dark"] .RcWStat{background:var(--dk-card);box-shadow:0 2px 5px 0 rgba(0,0,0,.5);}
html[data-theme="dark"] .RcWStat i{color:var(--dk-acc);}
html[data-theme="dark"] .RcWStat b{color:var(--dk-head);}
html[data-theme="dark"] .RcWStat span{color:var(--dk-muted);}
html[data-theme="dark"] .RcWTable th{background:var(--dk-tint2);color:var(--dk-text2);}
html[data-theme="dark"] .RcWTable td{border-bottom-color:var(--dk-line);color:var(--dk-text);}
html[data-theme="dark"] .RcWTable tr:hover td{background:var(--dk-tint);}
html[data-theme="dark"] .RcWOff{background:var(--dk-tint2);color:var(--dk-muted);}
