/*
Theme Name: Romancity Custom Avaykhis
*/
#RcHeader{Height:Auto;}
.RcLinksArchive{Float:Left;Margin:8px 0px 0px 10px;Overflow:Hidden;}
.RcLinksArchive a{Display:Inline-Block;Padding:5px 10px 5px 10px;Background:#d30008;Font-Weight:Bold;Color:#ffffff;Text-Align:Center;Border-Radius:6px;Transition-Duration:0.3s;}
.RcLinksArchive a:hover{Background:#ab0108;}
.RcLinksSocialN{Display:Block;Margin:10px 5px 10px 5px;Text-Align:Center;Overflow:Hidden;}
.RcLinksSocialN a{Display:Block;Padding:20px 15px 20px 15px;Background:#e9e9e9;Font-Size:15px;Font-Weight:Bold;Color:#ffffff;Text-Align:Right;Border-Radius:8px;Transition-Duration:0.3s;Overflow:Hidden;}
.RcLinksSocialN a:hover{Opacity:90%;Color:#ffffff;}
.RcLinksSocialN i{Float:Left;Margin:-2px 5px -2px 0px;Font-Size:27px;}
.RcLinksSocialN.RcTelegramN a{Background:linear-gradient(90deg,#32abe0,#2394c6) !important;}
.RcLinksSocialN.RcInstagramN a{Background:linear-gradient(90deg,#E1306C,#833AB4) !important;}
.RcBlock .RcTabList.RcTabListP{Margin-Top:0px;}
.RcBlock .RcTabList.RcTabListP li{Border-Radius:5px;}
.RcBlock .RcTabList.RcTabListP li a{Border-Radius:5px;}
.RcLinksAuthors.RcLinksArchive li{Background:#f2f2f2 !important;}
.edd_purchase_submit_wrapper{Text-Align:Center;}
.edd-add-to-cart{Font-Family:'Vazirmatn',Tahoma,sans-serif !important;}
@media screen and (max-width:840px){
.RcTopTitle{Display:Block;}}
/* ══ دکمه‌ی خرید (Easy Digital Downloads): سبز، براق و انیمیشنی ══ */
.edd_purchase_submit_wrapper{Margin:18px 0px;}
.edd_purchase_submit_wrapper .edd-add-to-cart.button,
.edd_purchase_submit_wrapper .edd_go_to_checkout.button{
  Position:Relative;Display:Inline-Block;Overflow:Hidden;Min-Width:260px;Max-Width:100%;
  Padding:15px 34px !important;Border:None !important;Border-Radius:50px !important;
  Background:linear-gradient(135deg,#43e97b 0%,#1fb868 50%,#0f9d58 100%) !important;
  Background-Size:200% 200% !important;
  Color:#fff !important;Font-Size:15px !important;Font-Weight:Bold !important;Line-Height:1.6 !important;
  Text-Shadow:0px 1px 2px rgba(0,0,0,.25);Text-Decoration:None !important;Cursor:Pointer;
  Box-Shadow:0px 6px 18px rgba(31,184,104,.45),inset 0px 1px 0px rgba(255,255,255,.35) !important;
  Animation:rcwBuyPulse 2.4s ease-in-out infinite,rcwBuyFlow 5s ease infinite;
  Transition:transform .25s ease,box-shadow .25s ease;
}
/* خط نورانی که روی دکمه رد می‌شود */
.edd_purchase_submit_wrapper .edd-add-to-cart.button::before,
.edd_purchase_submit_wrapper .edd_go_to_checkout.button::before{
  Content:"";Position:Absolute;Top:0px;Left:-80%;Width:50%;Height:100%;
  Background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  Transform:skewX(-20deg);Animation:rcwBuyShine 3.2s ease-in-out infinite;Pointer-Events:None;
}
.edd_purchase_submit_wrapper .edd-add-to-cart.button:hover,
.edd_purchase_submit_wrapper .edd_go_to_checkout.button:hover{
  Transform:translateY(-3px) scale(1.03);
  Box-Shadow:0px 12px 26px rgba(31,184,104,.55),inset 0px 1px 0px rgba(255,255,255,.4) !important;
}
.edd_purchase_submit_wrapper .edd-add-to-cart.button:active,
.edd_purchase_submit_wrapper .edd_go_to_checkout.button:active{
  Transform:translateY(0px) scale(.97);
  Box-Shadow:0px 3px 8px rgba(31,184,104,.4) !important;
}
.edd_purchase_submit_wrapper .edd-add-to-cart.button:focus-visible{Outline:3px solid rgba(67,233,123,.5);Outline-Offset:3px;}
/* حالت بارگذاری */
.edd_purchase_submit_wrapper .edd-loading{Border-Color:rgba(255,255,255,.35) !important;Border-Top-Color:#fff !important;}
.edd_purchase_submit_wrapper .edd-add-to-cart[data-edd-loading]{Opacity:.85;Animation:none;}
/* پیام «به سبد خرید اضافه شد» */
.edd_purchase_submit_wrapper .edd-cart-added-alert{
  Display:Inline-Flex;Align-Items:Center;Gap:8px;Margin-Top:12px;Padding:8px 18px;
  Background:#e8f9ef;Color:#0f7a43;Font-weight:bold;Border:1px solid #b5ebcb;Border-Radius:30px;
  Animation:rcwBuyPop .45s cubic-bezier(.2,1.4,.4,1);
}
.edd_purchase_submit_wrapper .edd-cart-added-alert .edd-icon-check{Width:22px;Height:22px;Fill:#1fb868;}
/* دکمه‌ی «پرداخت + دانلود فوری» بعد از افزودن به سبد */
.edd_purchase_submit_wrapper .edd_go_to_checkout.button{Margin-Top:10px;Animation:rcwBuyPulse 2.4s ease-in-out infinite,rcwBuyFlow 5s ease infinite,rcwBuyPop .45s cubic-bezier(.2,1.4,.4,1);}

@keyframes rcwBuyPulse{
  0%,100%{box-shadow:0px 6px 18px rgba(31,184,104,.45),0px 0px 0px 0px rgba(31,184,104,.45),inset 0px 1px 0px rgba(255,255,255,.35);}
  50%{box-shadow:0px 6px 18px rgba(31,184,104,.45),0px 0px 0px 12px rgba(31,184,104,0),inset 0px 1px 0px rgba(255,255,255,.35);}
}
@keyframes rcwBuyFlow{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}
@keyframes rcwBuyShine{0%{left:-80%;}55%,100%{left:140%;}}
@keyframes rcwBuyPop{0%{opacity:0;transform:scale(.7) translateY(8px);}100%{opacity:1;transform:scale(1) translateY(0px);}}
@media screen and (max-width:480px){
  .edd_purchase_submit_wrapper .edd-add-to-cart.button,.edd_purchase_submit_wrapper .edd_go_to_checkout.button{Display:Block;Width:100%;Min-Width:0;Padding:14px 16px !important;}
}

/* رفع نمایش دوباره‌ی دکمه: نسخه‌ی بدون‌جاوااسکریپت (input.edd-no-js) همیشه مخفی بماند */
.edd_purchase_submit_wrapper .edd-add-to-cart.edd-no-js,
.edd_purchase_submit_wrapper input.edd-add-to-cart{Display:None !important;}
.edd_purchase_submit_wrapper button.edd-add-to-cart.edd-has-js{Display:Inline-Block;}
/* لینک «پرداخت» تا قبل از افزودن به سبد مخفی بماند (EDD با استایل inline آن را نشان می‌دهد) */
.edd_purchase_submit_wrapper .edd_go_to_checkout[style*="display:none"],
.edd_purchase_submit_wrapper .edd_go_to_checkout[style*="display: none"]{Display:None !important;}

/* ══ دکمه‌ی «مشاهده همه» اسلایدرهای بالا: هماهنگ با رنگ بنفش/یاسی قالب ══ */
.RcTopBar .RcLinksArchive{Overflow:Visible;Margin:6px 0px 0px 10px;}
.RcTopBar .RcLinksArchive a{
  Position:Relative;Display:Inline-Flex;Align-Items:center;Gap:6px;Overflow:Hidden;
  Padding:6px 16px 6px 12px;Border-radius:30px;
  Background:linear-gradient(135deg,#8f6bd1,#7955b9 55%,#583c90);
  Color:#fff !important;Font-size:13px;Font-weight:bold;Line-height:1.7;Text-decoration:None;
  Box-shadow:0px 3px 10px rgba(121,85,185,.35),inset 0px 1px 0px rgba(255,255,255,.25);
  Transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
}
/* فلش کوچک (در حالت راست‌به‌چپ به سمت چپ اشاره می‌کند) */
.RcTopBar .RcLinksArchive a::after{
  Content:"\f060";Font-family:"Font Awesome 5 Free";Font-weight:900;Font-size:11px;
  Display:Inline-Block;Transition:transform .25s ease;
}
/* برق ملایم هنگام هاور */
.RcTopBar .RcLinksArchive a::before{
  Content:"";Position:Absolute;Top:0px;Left:-70%;Width:50%;Height:100%;
  Background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);
  Transform:skewX(-20deg);Transition:left .6s ease;Pointer-events:None;
}
.RcTopBar .RcLinksArchive a:hover{
  Background:linear-gradient(135deg,#9a78da,#7f5cc2 55%,#5f4399);
  Transform:translateY(-2px);
  Box-shadow:0px 7px 16px rgba(121,85,185,.45),inset 0px 1px 0px rgba(255,255,255,.3);
}
.RcTopBar .RcLinksArchive a:hover::before{Left:130%;}
.RcTopBar .RcLinksArchive a:hover::after{Transform:translateX(-4px);}
.RcTopBar .RcLinksArchive a:active{Transform:translateY(0px) scale(.97);}

/* حذف المنت TkMSocialFixed (شبکه اجتماعی ثابت) */
.TkMSocialFixed,#TkMSocialFixed{Display:None !important;}
.RcSocialSingle{Display:None !important;}

/* ══ بلوک «موضوعات» سایدبار: هر سطر ۲ دسته + آیکن واحد یاسی ══ */
.RcBlock .RcLinksCat > ul{Display:Grid;Grid-Template-Columns:repeat(2,minmax(0,1fr));Gap:6px;Margin:0px;Padding:0px;}
.RcBlock .RcLinksCat > ul > li{Display:Flex;Flex-Wrap:Wrap;Align-Items:Center;Gap:6px;Box-Sizing:Border-Box;Min-Width:0;Margin:0px !important;Padding:8px 8px;
  Background:#f5f1fc;Border:1px Solid #e6def5;Border-Radius:8px;Font-Size:12px;Line-Height:1.6;Transition:background-color .2s,border-color .2s,transform .25s;}
.RcBlock .RcLinksCat > ul > li:hover{Background:#ece6f7;Border-Color:#c9b8ec;}
.RcBlock .RcLinksCat > ul > li.current-cat{Background:#e6def5;Border-Color:#b9a2ee;}
/* آیکن واحد (پوشه) با یک رنگ یاسی برای همه‌ی دسته‌ها و زیردسته‌ها */
.RcBlock .RcLinksCat ul li:before,
.RcBlock .RcLinksCat ul li.RcTitleCat:before,
.RcBlock .RcLinksCat ul li:hover:before,
.RcBlock .RcLinksCat ul ul li:before{
  Content:"\f07b" !important;Font-Family:"Font Awesome 5 Free" !important;Font-Weight:900 !important;
  Float:None !important;Flex:0 0 auto;Width:Auto !important;Height:Auto !important;Margin:0px !important;Padding:0px !important;
  Background:None !important;Border:0px !important;Border-Radius:0px !important;
  Font-Size:13px;Line-Height:1;Color:#9b7fd6 !important;}
.RcBlock .RcLinksCat ul li a{Flex:1 1 0;Min-Width:0;Overflow-Wrap:Anywhere;}
.RcBlock .RcLinksCat ul li span{Float:None !important;Flex:0 0 auto;Margin:0px 0px 0px auto;}
/* زیردسته‌ها زیر دسته‌ی والد، تمام‌عرض */
.RcBlock .RcLinksCat ul li ul{Flex:0 0 100%;Width:100%;Margin:2px 0px 0px 0px !important;Padding:0px;}
.RcBlock .RcLinksCat ul li ul li{Display:Flex;Align-Items:Center;Gap:6px;Margin:4px 10px 0px 0px !important;Padding:5px 6px;Background:#fff;Border:1px Solid #e6def5;Border-Radius:6px;}

/* ══ سلسله‌مراتب تایپوگرافی: وزن و اندازه‌ی فونت (فونت وزیرمتن: وزن‌های ۴۰۰، ۵۰۰، ۷۰۰، ۸۰۰) ══ */
/* متن اصلی و خلاصه‌ی رمان: کمی بزرگ‌تر و با فاصله‌ی خط خواناتر */
body .RcText,body .RcTextSummary{Font-Size:14.5px;Line-Height:2;}
body .RcTextLine{Font-Size:13.5px;Line-Height:1.9;}
body .RcTitleLine{Font-Weight:800;Color:#583c90;}
body .RcBodyComment{Font-Size:13px;Line-Height:2;}

/* عنوان بلوک‌ها */
body .RcTop .RcTitle{Font-Size:15px;Font-Weight:800;}
body #RcSideBar .RcTop .RcTitle{Font-Size:14.5px;}
body #RcPostBar h2.RcTitle{Font-Size:15.5px;}
body #RcPostBar h1.RcTitle{Font-Size:18px;Line-Height:1.7;}
body .RcBlock.RcCTop .RcTitle{Font-Size:18px;Font-Weight:800;}
body .RcBlock.RcCTop .RcDesc{Font-Weight:500;}
body .RcTopBar .RcTopTitle,body #RcBottomBar .RcTopTitle{Width:Auto;Min-Width:120px;Box-Sizing:Border-Box;Padding:10px 16px;Font-Size:14px;Font-Weight:800;}

/* منو و مسیر صفحه */
body .RcMenu li a{Font-Size:14px;Font-Weight:700;}
body .RcBlock.RcBread .RcBreadTitle{Font-Size:13.5px;Font-Weight:600;}
body .RcBlock.RcBread .RcBreadTitle .breadcrumb_last,body .RcBlock.RcBread .RcBreadTitle .last{Font-Weight:800;}

/* روی کاور اسلایدرها (نام رمان) */
body .RcItem .RcBody{Font-Size:14px;Font-Weight:700;Line-Height:1.8;}

/* مشخصات رمان و جعبه‌ها */
body .RcDlTitle{Font-Size:14px;Font-Weight:800;}
body .RcDownload li .RcInfoIcon span{Font-Weight:800;}
body .RcDownload .RcInfo li > span{Font-Weight:600;}
body .RcDownload.RcDlIndex .RcInfo li{Font-Size:12.5px;}
body .RcDateTime li{Font-Size:12px;Font-Weight:500;}
body .RcMorePost a{Font-Size:13.5px;Font-Weight:800;}

/* لیست‌ها و ابزارک‌های سایدبار */
body .RcLinks1 li a,body .RcLinks2 li a,body .RcWidget ul li a{Font-Weight:600;}
body .RcLinks1 li,body .RcLinks2 li,body .RcWidget ul li{Font-Size:13px;}
body .RcBlock .RcLinksCat ul li a{Font-Size:12.5px;Font-Weight:600;}
body .RcLinksTag a{Font-Size:12px !important;Font-Weight:600;}
body .RcBlock .RcTabList li a{Font-Size:13px;Font-Weight:800;}

/* کامنت‌ها */
body .RcNameComment,body .RcNameComment a{Font-Weight:800;}
body .RcSendComment label,body .RcSendComment .comment-reply-title{Font-Weight:700;}

/* فوتر */
body .RcBFooter .RcTop .RcTitle{Font-Size:14.5px;Font-Weight:800;}
body .RcCFooter{Font-Weight:500;Line-Height:2;}
body .RcCFooter a{Font-Weight:800;}

/* عنوان‌های h2 و h3 داخل متن/توضیحات نوشته (ادامه مطلب) */
body .RcText h1{Font-Size:26px;Font-Weight:900;Line-Height:1.7;Margin:24px 0 12px;}
body .RcText h2{Font-Size:22px;Font-Weight:900;Line-Height:1.8;Margin:22px 0 10px;}
body .RcText h3{Font-Size:19px;Font-Weight:800;Line-Height:1.8;Margin:18px 0 8px;}
@media (max-width:600px){
body .RcText h1{Font-Size:23px;}
body .RcText h2{Font-Size:20px;}
body .RcText h3{Font-Size:17.5px;}
}

/* موبایل: اسلایدرهای رمان‌های ویژه / جدیدترین / آنلاین — ۲ کارت در هر سطر و اسکرول دوتا‌دوتا */
@media screen and (max-width:640px){
body .RcSpecial .RcItem,body .RcSpecial2 .RcItem{Display:Block;}
body .RcSpecial .RcItem li img,body .RcSpecial2 .RcItem li img{Float:None;Display:Block;Margin:5px auto;Width:calc(100% - 10px) !important;Height:Auto !important;Aspect-Ratio:194/240;Object-Fit:Cover;}
body .RcSpecial .RcItem .RcBody,body .RcSpecial2 .RcItem .RcBody{Top:5px;Right:5px;Margin:0;Width:calc(100% - 10px) !important;Height:calc(100% - 10px) !important;}
body .RcSpecial,body .RcSpecial2{Max-Height:none;}
}

/* ───────── هدر بلوک‌ها (RcTop): آیکن + عنوان هم‌تراز؛ در صفحه‌ی نوشته، تاریخ/ساعت/دسته در سطر جدا — دسکتاپ و موبایل ───────── */
body #RcPostBar .RcTop,body #RcSideBar .RcTop{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;width:fit-content;max-width:100%;box-sizing:border-box;padding:6px 6px 9px;margin:0 0 8px;overflow:visible;}
body #RcPostBar .RcTop .RcIcon,body #RcSideBar .RcTop .RcIcon{float:none;flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:34px;height:34px;margin:0;padding:0;border-radius:8px;}
body #RcPostBar .RcTop .RcIcon i,body #RcSideBar .RcTop .RcIcon i{margin:0;font-size:16px;line-height:1;}
body #RcPostBar .RcTop .RcTitle,body #RcSideBar .RcTop .RcTitle{flex:0 1 auto;min-width:0;width:auto;height:auto;margin:0;padding:0;line-height:1.8;font-size:15px;font-weight:800;text-align:right;overflow:visible;white-space:normal;overflow-wrap:anywhere;}
/* هدر نوشته: تمام‌عرض، عنوان کنار آیکن، و ردیف اطلاعات زیرش */
body #RcPostBar .RcTop.RcTopPost{width:100%;padding:8px 6px 12px;}
body #RcPostBar .RcTop.RcTopPost .RcTitle{flex:1 1 0;font-size:17px;line-height:1.9;}
body #RcPostBar .RcTop .RcTextTop.RcText3{flex:0 0 100%;width:100%;margin:10px 0 0;padding:9px 0 0;border-top:1px dashed rgba(121,85,185,.35);font-size:12px;line-height:1.7;overflow:visible;}
body #RcPostBar .RcTop .RcDateTime{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:0;padding:0;}
body #RcPostBar .RcTop .RcDateTime li{float:none;margin:0;font-size:12px;line-height:1.7;display:inline-flex;align-items:center;}
body #RcPostBar .RcTop .RcDateTime li i{margin:0 0 0 6px;font-size:12px;}
@media screen and (max-width:640px){
body #RcPostBar .RcTop,body #RcSideBar .RcTop{gap:0 8px;padding:6px 4px 8px;}
body #RcPostBar .RcTop .RcIcon,body #RcSideBar .RcTop .RcIcon{width:30px;height:30px;}
body #RcPostBar .RcTop .RcTitle,body #RcSideBar .RcTop .RcTitle{font-size:14px;}
body #RcPostBar .RcTop.RcTopPost .RcTitle{font-size:15.5px;}
body #RcPostBar .RcTop .RcDateTime{gap:4px 14px;}
body #RcPostBar .RcTop .RcDateTime li:last-child{flex-basis:100%;}
}
html[data-theme="dark"] body #RcPostBar .RcTop .RcTextTop.RcText3{border-top-color:rgba(157,127,220,.3);}

/* ───────── نوار بلوک‌های بالا (RcTopBar): عنوان (راست) + «مشاهده همه» (چپ) در یک ردیف هم‌تراز، اسلایدر زیرشان — دسکتاپ و موبایل ───────── */
body .RcTopBar .TempKade{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 12px;box-sizing:border-box;}
body .RcTopBar .RcTopTitle{order:1;display:flex;align-items:center;justify-content:center;gap:8px;float:none;box-sizing:border-box;width:auto;min-width:130px;margin:0 12px 0 0;padding:10px 18px;font-size:14px;font-weight:800;line-height:1.7;white-space:nowrap;border-radius:0 0 10px 10px;}
body .RcTopBar .RcTopTitle i{padding:0;margin:0;font-size:15px;line-height:1;}
body .RcTopBar .RcLinksArchive{order:2;float:none;display:flex;align-items:center;margin:0 0 0 12px;overflow:visible;}
body .RcTopBar .RcLinksArchive a{padding:6px 16px 6px 12px;font-size:13px;line-height:1.7;white-space:nowrap;}
body .RcTopBar .RcSpecial,body .RcTopBar .RcSpecial2{order:3;flex:0 0 100%;width:100%;margin:10px 0 6px;box-sizing:border-box;}
@media screen and (max-width:640px){
body .RcTopBar .RcTopTitle{min-width:0;margin-right:10px;padding:8px 14px;font-size:13.5px;border-radius:0 0 8px 8px;}
body .RcTopBar .RcLinksArchive{margin-left:10px;}
body .RcTopBar .RcLinksArchive a{padding:5px 12px 5px 10px;font-size:12px;gap:5px;}
body .RcTopBar .RcSpecial,body .RcTopBar .RcSpecial2{margin:8px 0 4px;}
}

/* منوی ثابت در موبایل: از لحظه‌ی اول ثابت است؛ padding جای خالی منو را پر می‌کند (مقدار دقیق را fixed.min.js تنظیم می‌کند) */
@media screen and (max-width:840px){
body.RcFixedMobile{padding-top:var(--rc-fixed-h,56px);}
body.RcFixedMobile #RcFixed.RcFixedMenu{animation:none;}
/* لوگوی بزرگ هدر در موبایل مخفی می‌شود (لوگوی کوچک داخل خود منوی ثابت هست) */
body.RcFixedMobile .RcBlogBar{display:none;}
body.RcFixedMobile #RcHeader:not(:has(.RcSearchBar)){display:none;}

/* ردیف منوی ثابت: دکمه‌ها و لوگو همیشه در یک ردیف و هم‌تراز (بدون شناور بودن)،
   تا موقع بارگذاری فونت/آیکون‌ها لوگو به خط دوم نیفتد و بعد بالا نپرد */
body.RcFixedMobile #RcFixed .TempKade2{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;margin:0 auto;}
body.RcFixedMobile #RcFixed .TempKade2>*{float:none;flex:0 0 auto;}
body.RcFixedMobile #RcFixed .TempKade2>.RcMLogoWrap{display:flex;align-items:center;height:42px;margin:0;margin-inline-start:auto;padding:0;line-height:0;font-size:0;}
body.RcFixedMobile #RcFixed .RcMLogoWrap a{display:flex;align-items:center;height:42px;line-height:0;}
body.RcFixedMobile #RcFixed .RcMLogoWrap .RcMBlogLogo{display:block;float:none;flex:0 0 auto;width:54px;height:42px;margin:0;}
body.RcFixedMobile #RcFixed .rcw-theme-toggle,
body.RcFixedMobile #RcFixed .rcw-login-btn,
body.RcFixedMobile #RcFixed .rcw-author-btn{float:none;}
}
@media screen and (max-width:360px){
body.RcFixedMobile #RcFixed .rcw-author-btn{padding:0 9px;font-size:12px;}
body.RcFixedMobile #RcFixed .RcMLogoWrap .RcMBlogLogo{width:46px;}
}

/* ───────── منوی موبایل: رنگ‌بندی ساده‌تر و یکدست (یک رنگ اصلی بنفش + طیف‌های روشن‌تر همان) ───────── */
@media screen and (max-width:840px){
/* نوار منو: حاشیه و سایه‌ی ملایم‌تر */
body.RcFixedMobile #RcMenuBar #RcFixed.RcFixedMenu{border-bottom:1px solid #e6def5;box-shadow:0 4px 14px -8px rgba(88,60,144,.35) !important;}
html[data-theme="dark"] body.RcFixedMobile #RcMenuBar #RcFixed.RcFixedMenu{border-bottom:1px solid rgba(157,127,220,.25);box-shadow:0 6px 18px -10px rgba(0,0,0,.7) !important;}

/* لوگو: بدون پس‌زمینه‌ی بنفش */
#RcMenuBar #RcFixed .RcMBlogLogo{background-color:transparent !important;}
html[data-theme="dark"] #RcMenuBar #RcFixed .RcMBlogLogo{background-color:#fff !important;background-size:84% !important;filter:none;}

/* دکمه‌ی منو: همان بنفش اصلی، بدون سایه */
#RcMenuBar .RcMenu2 .RcMenu li a.RcBar{background:#583c90;color:#fff;box-shadow:none;}

/* دکمه‌های آیکنی (حالت تیره / ورود): کم‌رنگ و هم‌خانواده با بنفش */
#RcMenuBar .rcw-theme-toggle,
#RcMenuBar .rcw-login-btn{background:#f3eefb;color:#583c90;border:1px solid #e3d9f4;box-shadow:none;}
#RcMenuBar .rcw-theme-toggle:hover,
#RcMenuBar .rcw-login-btn:hover{background:#e9e0f8;color:#583c90;box-shadow:none;filter:none;transform:none;}
html[data-theme="dark"] #RcMenuBar .rcw-theme-toggle,
html[data-theme="dark"] #RcMenuBar .rcw-login-btn{background:rgba(157,127,220,.14);color:#d7c8f6;border:1px solid rgba(157,127,220,.3);box-shadow:none;}
html[data-theme="dark"] #RcMenuBar .rcw-theme-toggle:hover,
html[data-theme="dark"] #RcMenuBar .rcw-login-btn:hover{background:rgba(157,127,220,.24);color:#fff;}

/* «نویسنده شو»: دکمه‌ی خطی (outline) تا فقط یک دکمه‌ی توپر در نوار باشد */
#RcMenuBar .rcw-author-btn{background:transparent;color:#583c90 !important;border:1.5px solid #7955b9;box-shadow:none;}
#RcMenuBar .rcw-author-btn:hover{background:#7955b9;color:#fff !important;filter:none;transform:none;}
html[data-theme="dark"] #RcMenuBar .rcw-author-btn{background:transparent;color:#d7c8f6 !important;border-color:#9d7fdc;}
html[data-theme="dark"] #RcMenuBar .rcw-author-btn:hover{background:#7955b9;color:#fff !important;}
}

/* ───────── کاور رمان (RcImgPost) + مشخصات کنار کاور (RcWCoverInfo): ردیف مرتب و هم‌قد — دسکتاپ و موبایل ───────── */
/* کاور تنها (بدون مشخصات): وسط‌چین، گوشه‌گرد، سایه‌ی ملایم */
body #RcPostBar .RcImgPost{text-align:center;margin:0 0 12px;}
body #RcPostBar .RcImgPost img{border-radius:12px;box-shadow:0 6px 18px -8px rgba(88,60,144,.45);}
body #RcPostBar .RcImgPost .rcw-cover{margin:0;}
body #RcPostBar .RcImgPost .rcw-ongoing{border-radius:0 0 12px 12px;}

/* ردیف کاور + مشخصات: دسکتاپ — کاور راست با عرض مشخص، مشخصات چپ و هم‌قد کاور */
body #RcPostBar .RcWCoverRow.has-cover.has-info{display:flex;flex-direction:row;align-items:stretch;gap:18px;margin:0 0 14px;}
body #RcPostBar .RcWCoverRow.has-cover.has-info .RcImgPost{flex:0 0 36%;max-width:340px;min-width:200px;margin:0;align-self:flex-start;}
body #RcPostBar .RcWCoverRow.has-cover.has-info .RcImgPost .rcw-cover{display:block;width:100%;max-width:100%;}
body #RcPostBar .RcWCoverRow.has-cover.has-info .RcImgPost img{display:block;width:100%;max-width:100%;height:auto;margin:0;}
body #RcPostBar .RcWCoverRow.has-info .RcWCoverInfo{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px;}
/* اگر کاور نیست، مشخصات تمام‌عرض */
body #RcPostBar .RcWCoverRow:not(.has-cover) .RcWCoverInfo{width:100%;}

/* تیتر هر بخش (مشخصات رمان / درباره‌ی نویسنده): ساده و راست‌چین، بدون زبانه‌ی شناور */
body #RcPostBar .RcWCoverInfo .RcDlTitle{display:flex;align-items:center;gap:8px;width:auto;margin:0;padding:0 2px;background:none;border-radius:0;text-align:right;font-size:14px;font-weight:800;line-height:1.7;overflow:visible;}
body #RcPostBar .RcWCoverInfo .RcDlTitle i{margin:0;color:#7955b9;font-size:14px;}
body #RcPostBar .RcWCoverInfo .RcDownload{margin:0 0 8px;padding:10px;text-align:right;border-radius:12px;box-sizing:border-box;}
body #RcPostBar .RcWCoverInfo .RcDownload:last-child{margin-bottom:0;}

/* ردیف‌های مشخصات: ارتفاع و گردی یکسان، برچسب ثابت‌عرض + مقدار */
body #RcPostBar .RcWCoverInfo .RcInfo{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;}
body #RcPostBar .RcWCoverInfo .RcInfo li{display:flex;align-items:stretch;width:100%;min-height:42px;margin:0;border-radius:8px;overflow:hidden;font-size:13px;line-height:1.8;}
body #RcPostBar .RcWCoverInfo .RcInfo li .RcInfoIcon{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex:0 0 40%;width:auto;margin:0;padding:8px 12px;border-radius:0;text-align:right;box-sizing:border-box;}
body #RcPostBar .RcWCoverInfo .RcInfo li .RcInfoIcon i{flex:0 0 18px;width:18px;margin:0;padding:0;font-size:14px;text-align:center;}
body #RcPostBar .RcWCoverInfo .RcInfo li .RcInfoIcon span{float:none;font-size:12.5px;line-height:1.6;}
body #RcPostBar .RcWCoverInfo .RcInfo li > span{float:none;display:flex;align-items:center;flex:1 1 0;width:auto;min-width:0;margin:0;padding:8px 12px;text-align:right;overflow-wrap:anywhere;}

/* کارت نویسنده */
body #RcPostBar .RcWAuthorCard{display:flex;align-items:center;gap:12px;padding:6px 4px;text-align:right;}
body #RcPostBar .RcWAuthorImg{flex:0 0 60px;width:60px;height:60px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px rgba(121,85,185,.25);}
body #RcPostBar .RcWAuthorBody{flex:1 1 0;min-width:0;}
body #RcPostBar .RcWAuthorName{display:block;margin:0 0 2px;font-size:14px;font-weight:800;}
body #RcPostBar .RcWAuthorBio{margin:0;font-size:12.5px;line-height:1.9;}

/* موبایل: کاور بالا (وسط، عرض مناسب)، مشخصات تمام‌عرض زیرش */
@media screen and (max-width:640px){
body #RcPostBar .RcWCoverRow.has-cover.has-info{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px;}
body #RcPostBar .RcWCoverRow.has-cover.has-info .RcImgPost{flex:none;width:64%;max-width:280px;min-width:0;margin:0 auto;align-self:center;}
body #RcPostBar .RcWCoverRow.has-info .RcWCoverInfo{flex:none;width:100%;}
body #RcPostBar .RcWCoverInfo .RcInfo li .RcInfoIcon{flex-basis:42%;padding:8px 10px;}
body #RcPostBar .RcWCoverInfo .RcInfo li > span{padding:8px 10px;}
body #RcPostBar .RcWAuthorImg{flex-basis:52px;width:52px;height:52px;}
}

/* ───────── فرم خرید رمان تکی (زیر مشخصات رمان و درباره‌ی نویسنده) ───────── */
body #RcPostBar .RcWCoverInfo .RcWBuy{margin:0;padding:10px;text-align:center;border-radius:12px;box-sizing:border-box;}
body #RcPostBar .RcWBuy .edd_purchase_submit_wrapper{display:block;width:100%;}
body #RcPostBar .RcWBuy .edd-add-to-cart,
body #RcPostBar .RcWBuy .edd_go_to_checkout{display:block;width:100%;box-sizing:border-box;margin:0;text-align:center;font-family:inherit;font-weight:800;}


/* ───────── متن محتوای صفحه رمان (ادامه مطلب): همیشه راست‌چین، حتی اگر داخل متن justify/center یا inline-style باشد ───────── */
body #RcPostBar .RcBlock .RcText,
body #RcPostBar .RcBlock .RcText p,
body #RcPostBar .RcBlock .RcText div,
body #RcPostBar .RcBlock .RcText span,
body #RcPostBar .RcBlock .RcText li,
body #RcPostBar .RcBlock .RcText blockquote,
body #RcPostBar .RcBlock .RcText h1,
body #RcPostBar .RcBlock .RcText h2,
body #RcPostBar .RcBlock .RcText h3,
body #RcPostBar .RcBlock .RcText h4,
body #RcPostBar .RcBlock .RcText h5,
body #RcPostBar .RcBlock .RcText h6,
body #RcPostBar .RcBlock .RcTextSummary,
body #RcPostBar .RcBlock .RcTextSummary p{text-align:right !important;direction:rtl;}


/* ───────── ویجت امتیازدهی رمان (افزونه Rate My Post): وسط‌چین، کارت نرم هماهنگ با قالب ───────── */
body .rmp-widgets-container{
  max-width:520px;width:100%;box-sizing:border-box;margin:22px auto;padding:0;
  text-align:center;direction:rtl;font-family:inherit;
}
body .rmp-widgets-container .rmp-rating-widget{
  position:relative;overflow:hidden;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:26px 22px 22px;
  background:linear-gradient(160deg,#f7f3fe 0%,#efe8fb 55%,#f9f6ff 100%);
  border:1px solid var(--av-line,#e6def5);border-radius:20px;
  box-shadow:0 10px 28px -12px rgba(121,85,185,.35),inset 0 1px 0 rgba(255,255,255,.9);
}
/* هاله‌ی نرم گوشه‌ها */
body .rmp-widgets-container .rmp-rating-widget::before,
body .rmp-widgets-container .rmp-rating-widget::after{
  content:"";position:absolute;width:180px;height:180px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(129,90,198,.16),transparent 68%);
}
body .rmp-widgets-container .rmp-rating-widget::before{top:-80px;right:-60px;}
body .rmp-widgets-container .rmp-rating-widget::after{bottom:-90px;left:-60px;}
body .rmp-widgets-container .rmp-rating-widget > *{position:relative;z-index:1;}

/* عنوان‌ها */
body .rmp-widgets-container .rmp-heading{margin:0;padding:0;text-align:center;line-height:1.9;}
body .rmp-widgets-container .rmp-heading--title{font-size:17px;font-weight:800;color:#583c90;}
body .rmp-widgets-container .rmp-heading--subtitle{font-size:13px;font-weight:500;color:#7d7396;}

/* ستاره‌ها */
body .rmp-widgets-container .rmp-rating-widget__icons{display:flex;justify-content:center;width:100%;margin:8px 0 0;}
body .rmp-widgets-container .rmp-rating-widget__icons-list{
  display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:4px;
  margin:0;padding:0;list-style:none;
}
body .rmp-widgets-container .rmp-rating-widget__icons-list__icon{
  margin:0 !important;padding:2px 3px;list-style:none;line-height:1;
  transition:transform .2s ease,filter .2s ease;
}
body .rmp-widgets-container .rmp-rating-widget__icons-list__icon:hover{transform:translateY(-3px) scale(1.18);filter:drop-shadow(0 4px 6px rgba(245,166,35,.45));}
body .rmp-widgets-container .rmp-rating-widget__icons-list__icon:focus-visible{outline:2px solid #815ac6;outline-offset:3px;border-radius:8px;}
body .rmp-widgets-container .rmp-icon--ratings{font-size:34px !important;color:#d9d0ea;transition:color .2s ease;}
body .rmp-widgets-container .rmp-icon--ratings.rmp-icon--full-highlight{color:#f5a623;}
body .rmp-widgets-container .rmp-icon--ratings.rmp-icon--hovered{color:#ffb938;}
/* نیم‌ستاره (صفحه راست‌به‌چپ است: پر شدن از سمت راست) */
body .rmp-widgets-container .rmp-icon--ratings.rmp-icon--half-highlight{
  color:transparent;background:linear-gradient(to left,#f5a623 50%,#d9d0ea 50%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}

/* متن توصیفی هنگام هاور */
body .rmp-widgets-container .rmp-rating-widget__hover-text{
  min-height:26px;margin:2px 0 0;padding:0;font-size:14px;font-weight:800;color:#6647a4;text-align:center;
}

/* دکمه ثبت */
body .rmp-widgets-container .rmp-rating-widget__submit-btn.rmp-btn{
  display:inline-block;margin:4px 0 2px;padding:10px 34px;border:0;border-radius:50px;cursor:pointer;
  background:linear-gradient(135deg,#7955b9,#583c90);color:#fff;font-family:inherit;font-size:14px;font-weight:800;line-height:1.6;
  box-shadow:0 8px 18px -6px rgba(88,60,144,.6);
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
body .rmp-widgets-container .rmp-rating-widget__submit-btn.rmp-btn:hover{transform:translateY(-2px);box-shadow:0 12px 22px -6px rgba(88,60,144,.7);}
body .rmp-widgets-container .rmp-rating-widget__submit-btn.rmp-btn:active{transform:translateY(0) scale(.97);}
body .rmp-widgets-container .rmp-rating-widget__submit-btn.rmp-btn:disabled,
body .rmp-widgets-container .rmp-rating-widget__submit-btn.rmp-btn[disabled]{opacity:.55;cursor:not-allowed;transform:none;}
body .rmp-widgets-container .rmp-rating-widget__submit-btn.rmp-btn:focus-visible{outline:3px solid rgba(129,90,198,.4);outline-offset:3px;}

/* نتیجه: امتیاز کل و تعداد رای */
body .rmp-widgets-container .rmp-rating-widget__results{
  display:inline-block;margin:10px 0 0;padding:6px 18px;
  background:rgba(255,255,255,.75);border:1px solid var(--av-line,#e6def5);border-radius:50px;
  font-size:13px;font-weight:600;color:#6b6283;text-align:center;
}
body .rmp-widgets-container .rmp-rating-widget__results__rating,
body .rmp-widgets-container .rmp-rating-widget__results__votes{font-weight:800;color:#583c90;}
body .rmp-widgets-container .rmp-rating-widget__results__rating{color:#e08e0b;}
body .rmp-widgets-container .rmp-rating-widget__not-rated{margin:6px 0 0;font-size:13px;color:#7d7396;text-align:center;}
body .rmp-widgets-container .rmp-rating-widget__not-rated--hidden{display:none;}
body .rmp-widgets-container .rmp-rating-widget__msg{margin:4px 0 0;font-size:13px;font-weight:700;color:#0f7a43;text-align:center;}
body .rmp-widgets-container .rmp-rating-widget__msg:empty{display:none;}

/* موبایل */
@media screen and (max-width:480px){
  body .rmp-widgets-container{margin:16px auto;}
  body .rmp-widgets-container .rmp-rating-widget{padding:20px 12px 18px;border-radius:16px;}
  body .rmp-widgets-container .rmp-icon--ratings{font-size:29px !important;}
  body .rmp-widgets-container .rmp-heading--title{font-size:15px;}
}

/* حالت تاریک */
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget{
  background:linear-gradient(160deg,#241d36 0%,#1c1728 60%,#221b33 100%);
  border-color:var(--dk-line,#3a3054);
  box-shadow:0 12px 28px -14px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget::before,
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget::after{background:radial-gradient(circle,rgba(162,135,224,.16),transparent 68%);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-heading--title{color:var(--dk-head,#cdbcf4);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-heading--subtitle{color:var(--dk-muted,#9a92b1);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-icon--ratings{color:#3f3560;}
html[data-theme="dark"] body .rmp-widgets-container .rmp-icon--ratings.rmp-icon--full-highlight{color:#ffbd45;}
html[data-theme="dark"] body .rmp-widgets-container .rmp-icon--ratings.rmp-icon--half-highlight{background:linear-gradient(to left,#ffbd45 50%,#3f3560 50%);-webkit-background-clip:text;background-clip:text;}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget__hover-text{color:var(--dk-acc,#a287e0);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget__results{background:rgba(255,255,255,.05);border-color:var(--dk-line,#3a3054);color:var(--dk-text2,#bdb5d0);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget__results__votes{color:var(--dk-head,#cdbcf4);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget__results__rating{color:#ffbd45;}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget__not-rated{color:var(--dk-muted,#9a92b1);}
html[data-theme="dark"] body .rmp-widgets-container .rmp-rating-widget__msg{color:#5fe3a1;}


/* ───────── صفحه پرداخت (Easy Digital Downloads): کارت‌های نرم، فرم مرتب، دکمه‌ی خرید سبز ───────── */
body #edd_checkout_wrap{max-width:640px;margin:0 auto;direction:rtl;text-align:right;font-family:inherit;}
body #edd_checkout_wrap *{box-sizing:border-box;}

/* سبد خرید */
body #edd_checkout_cart_wrap{margin:0 0 18px;padding:6px;background:linear-gradient(160deg,#f7f3fe,#efe8fb);border:1px solid var(--av-line,#e6def5);border-radius:18px;box-shadow:0 10px 26px -14px rgba(121,85,185,.4);overflow:hidden;}
body #edd_checkout_cart{width:100%;margin:0;border:0;border-collapse:separate;border-spacing:0;background:transparent;}
body #edd_checkout_cart th,
body #edd_checkout_cart td{border:0;background:transparent;padding:12px 14px;vertical-align:middle;font-size:14px;color:#4a4163;}
body #edd_checkout_cart thead th{font-size:12.5px;font-weight:800;color:#6647a4;border-bottom:1px solid var(--av-line,#e6def5);}
body #edd_checkout_cart .edd_cart_item td{border-bottom:1px dashed var(--av-line,#e6def5);}
body #edd_checkout_cart .edd_checkout_cart_item_title{font-weight:800;color:#3d2d66;}
body #edd_checkout_cart .edd_cart_item_price{font-weight:800;color:#583c90;white-space:nowrap;}
body #edd_checkout_cart .edd_cart_actions{text-align:center;}
body #edd_checkout_cart .edd_cart_remove_item_btn{display:inline-block;padding:4px 14px;border-radius:50px;background:#fdecee;color:#d30008 !important;font-size:12.5px;font-weight:800;text-decoration:none;transition:background .2s,color .2s;}
body #edd_checkout_cart .edd_cart_remove_item_btn:hover{background:#d30008;color:#fff !important;}
body #edd_checkout_cart .edd_cart_footer_row th{padding:14px;text-align:left;font-size:15px;font-weight:800;color:#583c90;}
body #edd_checkout_cart .edd_cart_footer_row .edd_cart_total{border-top:0;text-align:center;}
body #edd_checkout_cart .edd_cart_amount{display:inline-block;margin-right:6px;padding:4px 14px;border-radius:50px;background:#fff;border:1px solid var(--av-line,#e6def5);color:#0f7a43;font-weight:800;}

/* فرم */
body #edd_checkout_form_wrap{clear:both;}
body #edd_checkout_form_wrap fieldset{margin:0 0 16px;padding:18px 18px 8px;background:#fff;border:1px solid var(--av-line,#e6def5);border-radius:18px;box-shadow:0 8px 22px -16px rgba(121,85,185,.45);}
body #edd_checkout_form_wrap legend{padding:4px 16px;margin:0 6px;border-radius:50px;background:linear-gradient(135deg,#7955b9,#583c90);color:#fff;font-size:13px;font-weight:800;}
body #edd_checkout_form_wrap fieldset > div,
body #edd_checkout_form_wrap fieldset > p:not(#edd_final_total_wrap){margin:0 0 14px;}
body #edd_checkout_form_wrap .edd-label{display:block;margin:0 0 3px;font-size:13.5px;font-weight:800;color:#3d2d66;}
body #edd_checkout_form_wrap .edd-required-indicator{margin-right:3px;color:#d30008;}
body #edd_checkout_form_wrap .edd-description{margin:0 0 7px;font-size:12px;line-height:1.8;color:#8a82a1;}
body #edd_checkout_form_wrap .edd-input,
body #edd_checkout_form_wrap input[type="text"],
body #edd_checkout_form_wrap input[type="email"],
body #edd_checkout_form_wrap input[type="password"],
body #edd_checkout_form_wrap select,
body #edd_checkout_form_wrap textarea{
  display:block;width:100%;height:auto;margin:0;padding:11px 14px;
  background:#faf8fe;border:1.5px solid #e1d8f2;border-radius:12px;
  color:#3d2d66;font-family:inherit;font-size:14px;line-height:1.6;box-shadow:none;outline:0;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
body #edd_checkout_form_wrap .edd_email,
body #edd_checkout_form_wrap #edd-email{direction:ltr;text-align:left;}
body #edd_checkout_form_wrap .edd-input:focus,
body #edd_checkout_form_wrap input[type="text"]:focus,
body #edd_checkout_form_wrap select:focus,
body #edd_checkout_form_wrap textarea:focus{background:#fff;border-color:#815ac6;box-shadow:0 0 0 4px rgba(129,90,198,.15);}
body #edd_checkout_form_wrap .edd-input.error{border-color:#d30008;}

/* جمع کل + دکمه‌ی خرید */
body #edd_checkout_form_wrap #edd_purchase_submit{text-align:center;padding-bottom:20px;background:linear-gradient(160deg,#f7f3fe,#efe8fb);}
body #edd_final_total_wrap{margin:0 0 14px;font-size:15px;color:#4a4163;}
body #edd_final_total_wrap strong{font-weight:800;}
body #edd_final_total_wrap .edd_cart_amount{display:inline-block;margin-right:6px;padding:4px 16px;border-radius:50px;background:#fff;border:1px solid var(--av-line,#e6def5);color:#0f7a43;font-weight:800;}
body #edd_checkout_form_wrap #edd-purchase-button.edd-submit,
body #edd_checkout_form_wrap input.edd-submit.button{
  position:relative;display:block;width:100%;max-width:340px;margin:0 auto;padding:14px 30px !important;
  border:0 !important;border-radius:50px !important;cursor:pointer;
  background:linear-gradient(135deg,#43e97b 0%,#1fb868 50%,#0f9d58 100%) !important;color:#fff !important;
  font-family:inherit;font-size:16px !important;font-weight:800 !important;line-height:1.6;text-shadow:0 1px 2px rgba(0,0,0,.25);
  box-shadow:0 8px 20px rgba(31,184,104,.45),inset 0 1px 0 rgba(255,255,255,.35) !important;
  transition:transform .25s ease,box-shadow .25s ease;
}
body #edd_checkout_form_wrap #edd-purchase-button.edd-submit:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(31,184,104,.55),inset 0 1px 0 rgba(255,255,255,.4) !important;}
body #edd_checkout_form_wrap #edd-purchase-button.edd-submit:active{transform:scale(.97);}
body #edd_checkout_form_wrap #edd-purchase-button.edd-submit:focus-visible{outline:3px solid rgba(67,233,123,.5);outline-offset:3px;}
body #edd_checkout_form_wrap #edd-purchase-button[disabled]{opacity:.6;cursor:wait;}

/* پیام‌ها */
body #edd_checkout_wrap .edd_errors,
body #edd_checkout_wrap .edd-alert-error{margin:0 0 14px;padding:12px 16px;border-radius:12px;background:#fdecee;border:1px solid #f6c3c7;color:#b0060d;font-size:13.5px;font-weight:700;}
body #edd_checkout_wrap .edd-alert-success{margin:0 0 14px;padding:12px 16px;border-radius:12px;background:#e8f9ef;border:1px solid #b5ebcb;color:#0f7a43;font-size:13.5px;font-weight:700;}

@media screen and (max-width:480px){
  body #edd_checkout_cart th,body #edd_checkout_cart td{padding:10px 8px;font-size:13px;}
  body #edd_checkout_form_wrap fieldset{padding:16px 12px 6px;border-radius:14px;}
}

/* حالت تاریک */
html[data-theme="dark"] body #edd_checkout_cart_wrap{background:linear-gradient(160deg,#241d36,#1c1728);border-color:var(--dk-line,#3a3054);box-shadow:0 12px 26px -14px rgba(0,0,0,.75);}
html[data-theme="dark"] body #edd_checkout_cart th,
html[data-theme="dark"] body #edd_checkout_cart td{color:var(--dk-text2,#bdb5d0);}
html[data-theme="dark"] body #edd_checkout_cart thead th{color:var(--dk-head,#cdbcf4);border-color:var(--dk-line,#3a3054);}
html[data-theme="dark"] body #edd_checkout_cart .edd_cart_item td{border-color:var(--dk-line,#3a3054);}
html[data-theme="dark"] body #edd_checkout_cart .edd_checkout_cart_item_title{color:var(--dk-text,#e7e3f0);}
html[data-theme="dark"] body #edd_checkout_cart .edd_cart_item_price,
html[data-theme="dark"] body #edd_checkout_cart .edd_cart_footer_row th{color:var(--dk-head,#cdbcf4);}
html[data-theme="dark"] body #edd_checkout_cart .edd_cart_remove_item_btn{background:rgba(211,0,8,.18);color:#ff8a90 !important;}
html[data-theme="dark"] body #edd_checkout_cart .edd_cart_remove_item_btn:hover{background:#d30008;color:#fff !important;}
html[data-theme="dark"] body #edd_checkout_wrap .edd_cart_amount{background:rgba(255,255,255,.06);border-color:var(--dk-line,#3a3054);color:#5fe3a1;}
html[data-theme="dark"] body #edd_checkout_form_wrap fieldset{background:var(--dk-card,#1c1728);border-color:var(--dk-line,#3a3054);box-shadow:0 10px 24px -16px rgba(0,0,0,.8);}
html[data-theme="dark"] body #edd_checkout_form_wrap #edd_purchase_submit{background:linear-gradient(160deg,#241d36,#1c1728);}
html[data-theme="dark"] body #edd_checkout_form_wrap .edd-label{color:var(--dk-text,#e7e3f0);}
html[data-theme="dark"] body #edd_checkout_form_wrap .edd-description{color:var(--dk-muted,#9a92b1);}
html[data-theme="dark"] body #edd_checkout_form_wrap .edd-input,
html[data-theme="dark"] body #edd_checkout_form_wrap input[type="text"],
html[data-theme="dark"] body #edd_checkout_form_wrap select,
html[data-theme="dark"] body #edd_checkout_form_wrap textarea{background:var(--dk-tint,#251f35);border-color:var(--dk-line,#3a3054);color:var(--dk-text,#e7e3f0);}
html[data-theme="dark"] body #edd_checkout_form_wrap .edd-input:focus,
html[data-theme="dark"] body #edd_checkout_form_wrap input[type="text"]:focus{background:var(--dk-tint2,#2d2641);border-color:var(--dk-acc,#a287e0);box-shadow:0 0 0 4px rgba(162,135,224,.2);}
html[data-theme="dark"] body #edd_final_total_wrap{color:var(--dk-text2,#bdb5d0);}
html[data-theme="dark"] body #edd_checkout_wrap .edd_errors,
html[data-theme="dark"] body #edd_checkout_wrap .edd-alert-error{background:rgba(211,0,8,.15);border-color:rgba(255,138,144,.35);color:#ff9ca1;}


/* ───────── لینک‌های داخل متن مطالب: رنگ‌دار و قابل تشخیص (به‌جای هم‌رنگ بودن با متن) ───────── */
body .RcText a,
body .RcText2 a{
  color:#7955b9;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}
body .RcText a:hover,
body .RcText2 a:hover{color:#583c90;}
html[data-theme="dark"] body .RcText a,
html[data-theme="dark"] body .RcText2 a{color:#b79cf0;}
html[data-theme="dark"] body .RcText a:hover,
html[data-theme="dark"] body .RcText2 a:hover{color:#fff;}


/* تسویه‌ی رمان‌های پارت‌گذاری‌شده: «اطلاعات شما» و «ایجاد حساب» در یک کادر (کلاس‌ها را اسکریپت paywall.php می‌گذارد) */
body #edd_checkout_form_wrap fieldset.rcw-merge-top{margin-bottom:0 !important;border-bottom-width:0 !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important;box-shadow:none !important;}
body #edd_checkout_form_wrap fieldset.rcw-merge-bottom{margin-top:0 !important;padding-top:0 !important;border-top-width:0 !important;border-top-left-radius:0 !important;border-top-right-radius:0 !important;}
body #edd_checkout_form_wrap fieldset.rcw-merge-bottom > legend{display:none !important;}

/* ادغام «ایجاد حساب» در «اطلاعات شما» */
body #edd_checkout_form_wrap #edd_register_account_fields.avks-merged-empty{display:none !important;border:0;margin:0;padding:0;}
body #edd_checkout_form_wrap #edd_checkout_user_info #edd-user-login-wrap,
body #edd_checkout_form_wrap #edd_checkout_user_info #edd-user-pass-wrap,
body #edd_checkout_form_wrap #edd_checkout_user_info #edd-user-pass-confirm-wrap{margin:0 0 14px;}

/* ===== استایل باکس «اطلاعات شما» ===== */
body #edd_checkout_form_wrap #edd_checkout_user_info{
  position:relative;margin:0 0 18px;padding:26px 20px 10px;overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#fbf9ff 100%);
  border:1px solid var(--av-line,#e6def5);border-radius:22px;
  box-shadow:0 14px 34px -18px rgba(121,85,185,.55);
}
body #edd_checkout_form_wrap #edd_checkout_user_info::before{
  content:"";position:absolute;top:0;right:0;left:0;height:5px;
  background:linear-gradient(90deg,#43e97b,#815ac6,#583c90);
}
body #edd_checkout_form_wrap #edd_checkout_user_info legend{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 6px;padding:7px 20px;
  background:linear-gradient(135deg,#815ac6,#583c90);border-radius:50px;
  font-size:14px;box-shadow:0 6px 16px -6px rgba(88,60,144,.6);
}
body #edd_checkout_form_wrap #edd_checkout_user_info legend::before{
  content:"\1F464";font-size:15px;line-height:1;
}
body #edd_checkout_form_wrap #edd_checkout_user_info > p,
body #edd_checkout_form_wrap #edd_checkout_user_info > div{
  margin:0 0 16px;padding:12px 14px 14px;background:#fff;
  border:1px solid #efe9fa;border-radius:14px;
  transition:border-color .2s,box-shadow .2s;
}
body #edd_checkout_form_wrap #edd_checkout_user_info > p:focus-within,
body #edd_checkout_form_wrap #edd_checkout_user_info > div:focus-within{
  border-color:#cdbcf4;box-shadow:0 6px 18px -12px rgba(129,90,198,.6);
}
body #edd_checkout_form_wrap #edd_checkout_user_info .edd-label{font-size:13.5px;margin-bottom:2px;}
body #edd_checkout_form_wrap #edd_checkout_user_info .edd-description{margin-bottom:9px;}
body #edd_checkout_form_wrap #edd_checkout_user_info .edd-input{background:#faf8fe;}
body #edd_checkout_form_wrap #edd_checkout_user_info #edd-user-pass-wrap,
body #edd_checkout_form_wrap #edd_checkout_user_info #edd-user-pass-confirm-wrap{border-style:dashed;}

html[data-theme="dark"] body #edd_checkout_form_wrap #edd_checkout_user_info{
  background:linear-gradient(180deg,#1c1728,#191424);border-color:var(--dk-line,#3a3054);
  box-shadow:0 14px 30px -16px rgba(0,0,0,.85);
}
html[data-theme="dark"] body #edd_checkout_form_wrap #edd_checkout_user_info > p,
html[data-theme="dark"] body #edd_checkout_form_wrap #edd_checkout_user_info > div{
  background:var(--dk-card,#1c1728);border-color:var(--dk-line,#3a3054);
}
html[data-theme="dark"] body #edd_checkout_form_wrap #edd_checkout_user_info > p:focus-within,
html[data-theme="dark"] body #edd_checkout_form_wrap #edd_checkout_user_info > div:focus-within{
  border-color:var(--dk-acc,#a287e0);box-shadow:0 6px 18px -12px rgba(162,135,224,.7);
}
@media screen and (max-width:480px){
  body #edd_checkout_form_wrap #edd_checkout_user_info{padding:24px 12px 4px;border-radius:18px;}
  body #edd_checkout_form_wrap #edd_checkout_user_info > p,
  body #edd_checkout_form_wrap #edd_checkout_user_info > div{padding:10px 10px 12px;}
}
