:root{
	--pfx-accent:#19c7ad;
	--pfx-text:#111827;
	--pfx-muted:#687386;
	--pfx-border:#e5eaf0;
	--pfx-bg:#f5f7fa;
	--pfx-card:#ffffff;
	--pfx-soft:#f0f4f8;
	--pfx-header:#ffffff;
	--pfx-nav:#0d1828;
	--pfx-footer:#0c1728;
	--pfx-footer-card:#142238;
	--pfx-site-width:1280px;
	--pfx-sidebar-width:320px;
	--pfx-radius:12px;
	--pfx-shadow:0 8px 30px rgba(15,23,42,.07);
}
html[data-theme="dark"]{
	--pfx-text:#edf3fa;
	--pfx-muted:#95a5b8;
	--pfx-border:#22334a;
	--pfx-bg:#091321;
	--pfx-card:#0f1c2e;
	--pfx-soft:#142238;
	--pfx-header:#0d1929;
	--pfx-nav:#091321;
	--pfx-footer:#07111f;
	--pfx-footer-card:#101e32;
	--pfx-shadow:0 10px 30px rgba(0,0,0,.22);
	color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
	margin:0;
	direction:rtl;
	font-family:Tahoma,Arial,sans-serif;
	color:var(--pfx-text);
	background:var(--pfx-bg);
	line-height:1.9;
	-webkit-font-smoothing:antialiased;
	transition:background .2s ease,color .2s ease;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:Tahoma,Arial,sans-serif}
.pfx-container{width:min(calc(100% - 32px),var(--pfx-site-width));margin-inline:auto}
body.pfx-layout-boxed .site-main>.pfx-container{background:var(--pfx-card);box-shadow:var(--pfx-shadow);padding:24px;border-radius:var(--pfx-radius)}
body.pfx-layout-fluid .pfx-container{width:100%;max-width:none;padding-inline:24px}

/* Pre-header: standalone and extensible */
.pfx-pre-header{background:#07111f;color:#c8d5e5;border-bottom:1px solid rgba(255,255,255,.07)}
.pfx-pre-header-inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.pfx-pre-header-content{display:flex;align-items:center;gap:14px;min-width:0;font-size:12px}
.pfx-theme-switcher{display:flex;gap:2px;background:#101d30;padding:3px;border-radius:8px}
.pfx-theme-switcher button{border:0;background:transparent;color:#93a4b8;padding:4px 8px;border-radius:6px;cursor:pointer;font-size:11px}
.pfx-theme-switcher button.is-active{background:var(--pfx-accent);color:#06231f}

/* Header inspired by image 1 */
.site-header{background:var(--pfx-header);border-bottom:1px solid var(--pfx-border);z-index:100}
.site-header.is-sticky{position:sticky;top:0}
.pfx-head-main{background:var(--pfx-header)}
.pfx-head-main-inner{min-height:74px;display:grid;grid-template-columns:180px minmax(280px,700px) 1fr;align-items:center;gap:24px}
.pfx-brand{min-width:0}
.pfx-logo-link{display:inline-flex;align-items:center}
.pfx-logo{max-width:180px;max-height:52px;width:auto;height:auto}
.pfx-logo-dark{display:none}
.pfx-logo-mobile{display:none}
html[data-theme="dark"] .pfx-logo-light{display:none}
html[data-theme="dark"] .pfx-logo-dark{display:block}
.pfx-text-logo{font-size:25px;font-weight:800;color:var(--pfx-accent)}
.pfx-header-search{width:100%}
.pfx-header-search .search-form{position:relative;display:block}
.pfx-header-search .search-field{
	width:100%;height:42px;border:1px solid var(--pfx-border);background:var(--pfx-soft);
	color:var(--pfx-text);padding:0 14px 0 48px;border-radius:9px;outline:0;
}
.pfx-header-search .search-field:focus{border-color:var(--pfx-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--pfx-accent) 15%,transparent)}
.pfx-header-search .search-submit{position:absolute;left:4px;top:4px;height:34px;padding:0 13px;border-radius:7px}
.pfx-header-tools{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.pfx-menu-toggle,.pfx-search-toggle{border:1px solid var(--pfx-border);background:var(--pfx-soft);color:var(--pfx-text);border-radius:9px;width:39px;height:39px;cursor:pointer}
.pfx-menu-toggle{display:none}
.pfx-search-toggle{display:none}

.pfx-nav-bar{background:var(--pfx-nav);color:#e7eef8}
.pfx-nav-inner{min-height:46px;display:flex;align-items:center}
.pfx-primary-nav{width:100%}
.pfx-primary-nav ul,.pfx-secondary-bar ul,.pfx-footer-menu ul,.pfx-mobile-panel ul{list-style:none;margin:0;padding:0}
.pfx-primary-nav>ul{display:flex;align-items:stretch;gap:2px}
.pfx-primary-nav li{position:relative}
.pfx-primary-nav>ul>li>a{min-height:46px;display:flex;align-items:center;gap:7px;padding:0 13px;font-size:13px;font-weight:700}
.pfx-primary-nav>ul>li:hover>a{background:rgba(255,255,255,.06);color:#fff}
.pfx-menu-icon{display:inline-grid;place-items:center;width:17px;height:17px;color:var(--pfx-accent)}
.pfx-menu-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pfx-primary-nav .sub-menu{
	display:none;position:absolute;z-index:150;right:0;top:100%;
	background:var(--pfx-card);color:var(--pfx-text);min-width:250px;padding:12px;
	border:1px solid var(--pfx-border);box-shadow:var(--pfx-shadow);border-radius:0 0 12px 12px;
}
.pfx-primary-nav li:hover>.sub-menu{display:grid}
.pfx-primary-nav .pfx-mega-cols-1>.sub-menu{grid-template-columns:1fr;min-width:260px}
.pfx-primary-nav .pfx-mega-cols-2>.sub-menu{grid-template-columns:repeat(2,minmax(190px,1fr));min-width:500px}
.pfx-primary-nav .pfx-mega-cols-3>.sub-menu{grid-template-columns:repeat(3,minmax(190px,1fr));min-width:740px}
.pfx-primary-nav .sub-menu>li>a{display:flex;align-items:center;gap:7px;padding:9px 10px;border-radius:8px;font-size:12px}
.pfx-primary-nav .sub-menu>li>a:hover{background:var(--pfx-soft);color:var(--pfx-accent)}
.pfx-primary-nav .sub-menu .sub-menu{position:static;display:block;min-width:0;border:0;box-shadow:none;padding:4px 12px;background:transparent}
.pfx-primary-nav .sub-menu .sub-menu a{font-size:11px;color:var(--pfx-muted)}

.pfx-secondary-bar{background:var(--pfx-card);border-bottom:1px solid var(--pfx-border)}
.pfx-secondary-bar ul{display:flex;gap:6px;min-height:36px;align-items:center;overflow-x:auto}
.pfx-secondary-bar a{font-size:11px;color:var(--pfx-muted);padding:5px 9px;border-radius:7px;white-space:nowrap}
.pfx-secondary-bar a:hover{background:var(--pfx-soft);color:var(--pfx-accent)}

.pfx-mobile-panel,.pfx-search-panel{background:var(--pfx-card);border-top:1px solid var(--pfx-border)}
.pfx-mobile-panel{padding:18px 24px}
.pfx-mobile-panel li{padding:6px 0}
.pfx-mobile-panel a{display:flex;align-items:center;gap:7px}
.pfx-search-panel{padding:14px 0}
.search-form{display:flex;gap:8px}
.search-field{flex:1;min-width:0;border:1px solid var(--pfx-border);background:var(--pfx-card);color:var(--pfx-text);padding:11px 14px;border-radius:9px}
.search-submit,.pfx-button{border:0;background:var(--pfx-accent);color:#05241f;padding:10px 18px;border-radius:9px;cursor:pointer;font-weight:700}

.site-main{padding:26px 0 56px}
.pfx-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--pfx-muted);margin-bottom:20px}
.pfx-breadcrumb a:hover{color:var(--pfx-accent)}

.pfx-content-layout{display:grid;grid-template-columns:minmax(0,1fr) var(--pfx-sidebar-width);gap:28px;align-items:start}
.pfx-sidebar-pos-left{grid-template-columns:var(--pfx-sidebar-width) minmax(0,1fr)}
.pfx-sidebar-pos-left .pfx-content{order:2}
.pfx-sidebar-pos-left .pfx-sidebar{order:1}
.pfx-sidebar-pos-none{display:block}
.pfx-sidebar-pos-none .pfx-sidebar{display:none}
.pfx-content{min-width:0}
.pfx-sidebar{display:grid;gap:18px}
.widget{background:var(--pfx-card);border:1px solid var(--pfx-border);border-radius:var(--pfx-radius);padding:18px}
.widget-title{margin:0 0 14px;font-size:16px}

.pfx-section-title{font-size:19px;margin:0}
.pfx-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px;padding-right:10px;border-right:3px solid var(--pfx-accent)}
.pfx-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pfx-card{background:var(--pfx-card);border:1px solid var(--pfx-border);border-radius:var(--pfx-radius);overflow:hidden;transition:.18s ease}
.pfx-card:hover{transform:translateY(-2px);box-shadow:var(--pfx-shadow)}
.pfx-card-media{display:block;aspect-ratio:16/9;background:var(--pfx-soft);overflow:hidden}
.pfx-card-media img{width:100%;height:100%;object-fit:cover}
.pfx-card-body{padding:13px}
.pfx-card-tax{color:var(--pfx-accent);font-size:10px;font-weight:700;margin-bottom:5px}
.pfx-card-title{font-size:14px;line-height:1.8;margin:0 0 7px}
.pfx-card-date,.pfx-list-meta,.pfx-post-meta{font-size:10px;color:var(--pfx-muted)}

.pfx-archive-header{background:var(--pfx-card);border:1px solid var(--pfx-border);border-radius:var(--pfx-radius);padding:22px;margin-bottom:22px}
.pfx-archive-header h1{margin:0;font-size:26px}
.pfx-archive-description{color:var(--pfx-muted);margin-top:10px}
.navigation.pagination{margin-top:28px}
.nav-links{display:flex;gap:8px;flex-wrap:wrap}
.page-numbers{min-width:38px;height:38px;display:grid;place-items:center;background:var(--pfx-card);border:1px solid var(--pfx-border);border-radius:9px}
.page-numbers.current{background:var(--pfx-accent);color:#05241f;border-color:var(--pfx-accent)}

.pfx-shortcode-slot:empty{display:none}
.pfx-ad{margin:18px auto;text-align:center;overflow:hidden}
.pfx-ad img{margin:auto}
.pfx-ad-mobile_sticky{display:none}

/* Professional footer inspired by image 1 + PersianFX structure */
.site-footer{background:var(--pfx-footer);color:#dbe5f1;margin-top:38px;padding-top:34px}
.pfx-footer-cta{
	display:grid;grid-template-columns:1fr 1.6fr;min-height:220px;
	background:linear-gradient(135deg,#113147,#0d514c);border:1px solid rgba(25,199,173,.25);
	border-radius:18px;overflow:hidden;margin-bottom:28px;
}
.pfx-footer-cta-art{position:relative;min-height:220px;background:linear-gradient(135deg,rgba(255,255,255,.06),transparent)}
.pfx-footer-cta-art:before{content:"";position:absolute;width:220px;height:220px;border:2px solid rgba(25,199,173,.25);border-radius:50%;left:15%;top:38%;filter:blur(.2px)}
.pfx-footer-cta-art span{position:absolute;width:8px;height:8px;background:var(--pfx-accent);border-radius:50%;box-shadow:0 0 20px var(--pfx-accent)}
.pfx-footer-cta-art span:nth-child(1){left:25%;top:55%}.pfx-footer-cta-art span:nth-child(2){left:50%;top:35%}.pfx-footer-cta-art span:nth-child(3){left:72%;top:60%}
.pfx-footer-cta-copy{padding:34px;align-self:center}
.pfx-footer-cta-copy h2{margin:0 0 8px;color:#fff;font-size:25px}
.pfx-footer-cta-copy p{margin:0 0 18px;color:#b8ccda;font-size:13px}

.pfx-footer-stats{display:grid;grid-template-columns:repeat(4,1fr);background:var(--pfx-footer-card);border:1px solid rgba(255,255,255,.06);border-radius:14px;margin-bottom:34px}
.pfx-footer-stat{text-align:center;padding:20px 12px;border-left:1px solid rgba(255,255,255,.06)}
.pfx-footer-stat:last-child{border-left:0}
.pfx-footer-stat-icon{color:var(--pfx-accent);font-size:22px}
.pfx-footer-stat strong{display:block;color:#fff;font-size:20px;margin:1px 0}
.pfx-footer-stat span{display:block;color:#93a4b8;font-size:11px}

.pfx-footer-main{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:34px;padding:4px 0 32px}
.pfx-footer-about .pfx-logo{max-width:170px}
.pfx-footer-about p{color:#9baabd;font-size:12px;line-height:2.1;max-width:390px}
.pfx-footer-menu a{display:flex;align-items:center;gap:6px;padding:5px 0;color:#cbd6e4;font-size:12px}
.pfx-footer-menu a:hover{color:var(--pfx-accent)}
.pfx-socials{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.pfx-socials a{border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:4px 9px;font-size:10px;color:#aebed0}
.pfx-socials a:hover{border-color:var(--pfx-accent);color:var(--pfx-accent)}
.pfx-footer-widgets{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding-bottom:28px}
.pfx-footer-widgets .widget{background:var(--pfx-footer-card);border-color:rgba(255,255,255,.06)}
.pfx-copyright{border-top:1px solid rgba(255,255,255,.07);padding:15px 0;font-size:10px;color:#8393a7}

.pfx-404{text-align:center;background:var(--pfx-card);border:1px solid var(--pfx-border);border-radius:var(--pfx-radius);padding:70px 20px}
.pfx-404-code{font-size:84px;font-weight:900;color:var(--pfx-accent);line-height:1}
.pfx-404 .search-form{max-width:560px;margin:25px auto}

@media (max-width:1100px){
	.pfx-primary-nav .pfx-mega-cols-3>.sub-menu{min-width:620px}
}
@media (max-width:1024px){
	.pfx-head-main-inner{grid-template-columns:auto 1fr auto}
	.pfx-brand{grid-column:2}
	.pfx-header-search{display:none}
	.pfx-header-tools{grid-column:3}
	.pfx-menu-toggle{display:inline-grid;place-items:center;grid-column:1}
	.pfx-search-toggle{display:inline-grid;place-items:center}
	.pfx-primary-nav{display:none}
	.pfx-nav-bar{display:none}
	.pfx-content-layout,.pfx-sidebar-pos-left{grid-template-columns:1fr}
	.pfx-sidebar-pos-left .pfx-content,.pfx-sidebar-pos-left .pfx-sidebar{order:initial}
	.pfx-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.pfx-footer-main{grid-template-columns:repeat(2,1fr)}
	.pfx-footer-widgets{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
	.pfx-container{width:min(calc(100% - 20px),var(--pfx-site-width))}
	.pfx-pre-header-inner{min-height:42px}
	.pfx-pre-header-content{display:none}
	.pfx-theme-switcher{margin-right:auto}
	.pfx-head-main-inner{min-height:62px;gap:10px}
	.pfx-logo-desktop{display:none!important}
	.pfx-logo-mobile{display:block;max-height:40px;max-width:145px}
	.pfx-post-grid{grid-template-columns:1fr}
	.pfx-footer-cta{grid-template-columns:1fr}
	.pfx-footer-cta-art{display:none}
	.pfx-footer-cta-copy{padding:26px 20px}
	.pfx-footer-stats{grid-template-columns:repeat(2,1fr)}
	.pfx-footer-stat:nth-child(2){border-left:0}
	.pfx-footer-stat:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.06)}
	.pfx-footer-main,.pfx-footer-widgets{grid-template-columns:1fr}
	.pfx-ad-mobile_sticky{display:block;position:fixed;bottom:0;left:0;right:0;z-index:999;background:var(--pfx-card);margin:0;padding:4px;border-top:1px solid var(--pfx-border)}
}


/* ===== PersianFX 1.2 polish ===== */
.site-header ul,
.pfx-secondary-bar ul,
.pfx-primary-nav ul,
.pfx-mobile-panel ul,
.site-footer ul,
.widget ul,
.widget ol{
	list-style:none;
	margin:0;
	padding:0;
}

.widget li{border-bottom:1px solid var(--pfx-border)}
.widget li:last-child{border-bottom:0}
.widget li>a{
	display:flex;
	align-items:center;
	gap:8px;
	padding:9px 7px;
	border-radius:8px;
	transition:background .18s ease,color .18s ease,padding .18s ease;
}
.widget li>a:hover{
	background:var(--pfx-soft);
	color:var(--pfx-accent);
	padding-right:11px;
}
.widget li>a:before{
	content:"";
	width:5px;height:5px;border-radius:50%;
	background:color-mix(in srgb,var(--pfx-accent) 45%,var(--pfx-border));
	flex:none;
}

.pfx-header-shell{background:var(--pfx-header)}
.pfx-header-layout{display:grid;align-items:center;gap:22px}
.pfx-brand-area{display:flex;align-items:center;min-width:0}
.pfx-nav-area{display:flex;align-items:center;gap:12px;min-width:0}
.pfx-primary-nav{flex:1;min-width:0}
.pfx-menu-search{width:310px;flex:0 0 310px}
.pfx-menu-search .search-form{display:block;position:relative}
.pfx-menu-search .search-field{
	width:100%;
	height:38px;
	border:1px solid var(--pfx-border);
	background:var(--pfx-soft);
	padding:0 12px 0 46px;
	border-radius:9px;
}
.pfx-menu-search .search-submit{
	position:absolute;
	left:4px;top:4px;
	height:30px;
	padding:0 10px;
	font-size:10px;
	border-radius:7px;
}
.pfx-nav-tools{display:flex;align-items:center;gap:8px}

body.pfx-header-stacked .pfx-header-layout{padding-top:14px}
body.pfx-header-stacked .pfx-brand-area{min-height:60px}
body.pfx-header-stacked .pfx-nav-area{
	margin-inline:calc((100vw - min(calc(100vw - 32px),var(--pfx-site-width))) / -2);
	padding-inline:max(16px,calc((100vw - var(--pfx-site-width)) / 2));
	background:var(--pfx-nav);
	color:#e7eef8;
	min-height:48px;
}
body.pfx-header-stacked .pfx-primary-nav .sub-menu{color:var(--pfx-text)}
body.pfx-header-stacked .pfx-menu-search .search-field{background:#132238;border-color:#23364d;color:#fff}
body.pfx-header-stacked .pfx-menu-search .search-field::placeholder{color:#8ea0b5}
body.pfx-header-stacked .pfx-header-layout{grid-template-columns:1fr}
body.pfx-header-inline .pfx-header-layout{grid-template-columns:auto minmax(0,1fr);min-height:76px}
body.pfx-header-inline .pfx-nav-area{min-height:76px}

body.pfx-logo-right .pfx-brand-area{justify-content:flex-start}
body.pfx-logo-center .pfx-brand-area{justify-content:center}
body.pfx-logo-left .pfx-brand-area{justify-content:flex-end}
body.pfx-header-inline.pfx-logo-left .pfx-brand-area{order:2}
body.pfx-header-inline.pfx-logo-left .pfx-nav-area{order:1}

.pfx-logo-link{min-width:120px}
.pfx-logo{display:block!important;object-fit:contain}
html[data-theme="light"] .pfx-logo-dark{display:none!important}
html[data-theme="dark"] .pfx-logo-light{display:none!important}
html[data-theme="dark"] .pfx-logo-dark{display:block!important}
.pfx-logo-mobile{display:none!important}

/* Image hover */
.pfx-image-hover{position:relative;overflow:hidden}
.pfx-image-hover img{transition:transform .32s ease,filter .32s ease}
.pfx-image-hover-layer{
	position:absolute;inset:0;
	background:linear-gradient(135deg,rgba(25,199,173,.05),rgba(7,17,31,.30));
	opacity:0;
	transition:opacity .25s ease;
	pointer-events:none;
}
.pfx-image-hover:hover img{transform:scale(1.035);filter:saturate(1.05)}
.pfx-image-hover:hover .pfx-image-hover-layer{opacity:1}

.pfx-card-whole-click{cursor:pointer}
.pfx-card-whole-click:focus-visible{outline:2px solid var(--pfx-accent);outline-offset:3px}

/* Meta */
.pfx-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;color:var(--pfx-muted);font-size:10px}
.pfx-meta-item{display:inline-flex;align-items:center;gap:5px}
.pfx-meta-item i{display:inline-grid;place-items:center;width:14px;height:14px;color:var(--pfx-accent)}
.pfx-meta-item svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pfx-card-meta{margin-top:8px}
.pfx-hero-meta{color:#dbe6ef;margin-top:5px}
.pfx-list-meta{margin-top:6px}

.pfx-read-more{
	display:inline-flex;align-items:center;gap:8px;
	margin-top:12px;padding:7px 11px;
	border:1px solid color-mix(in srgb,var(--pfx-accent) 38%,var(--pfx-border));
	border-radius:8px;color:var(--pfx-accent);
	font-size:10px;font-weight:700;
	transition:all .18s ease;
}
.pfx-read-more:hover{background:var(--pfx-accent);color:#05241f;transform:translateX(-2px)}

.pfx-card-title a:hover,.pfx-list-item h3 a:hover{color:var(--pfx-accent)}

@media(max-width:1024px){
	.pfx-header-layout{grid-template-columns:auto 1fr!important;min-height:64px!important;padding-block:8px!important}
	.pfx-brand-area{min-height:0!important}
	.pfx-nav-area{background:transparent!important;margin:0!important;padding:0!important;min-height:0!important;justify-content:flex-end}
	.pfx-primary-nav,.pfx-menu-search{display:none}
	.pfx-menu-toggle{display:inline-grid;place-items:center;margin-left:10px}
	.pfx-search-toggle{display:inline-grid;place-items:center}
	body.pfx-logo-center .pfx-brand-area,
	body.pfx-logo-left .pfx-brand-area,
	body.pfx-logo-right .pfx-brand-area{justify-content:flex-start}
	body.pfx-header-inline.pfx-logo-left .pfx-brand-area{order:initial}
	body.pfx-header-inline.pfx-logo-left .pfx-nav-area{order:initial}
}
@media(max-width:640px){
	.pfx-logo-desktop{display:none!important}
	.pfx-logo-mobile{display:block!important;max-width:145px;max-height:40px}
}


/* ===== PersianFX 1.3 refinements ===== */

/* Typography controls */
h1{font-size:var(--pfx-typo-h1-size);font-weight:var(--pfx-typo-h1-weight)}
h2{font-size:var(--pfx-typo-h2-size);font-weight:var(--pfx-typo-h2-weight)}
h3{font-size:var(--pfx-typo-h3-size);font-weight:var(--pfx-typo-h3-weight)}
h4{font-size:var(--pfx-typo-h4-size);font-weight:var(--pfx-typo-h4-weight)}
h5{font-size:var(--pfx-typo-h5-size);font-weight:var(--pfx-typo-h5-weight)}
h6{font-size:var(--pfx-typo-h6-size);font-weight:var(--pfx-typo-h6-weight)}

.pfx-article-header h1{font-size:var(--pfx-typo-post_title-size)!important;font-weight:var(--pfx-typo-post_title-weight)!important}
.entry-content{font-size:var(--pfx-typo-content-size)!important;font-weight:var(--pfx-typo-content-weight)!important}
.pfx-section-title{font-size:var(--pfx-typo-section_title-size)!important;font-weight:var(--pfx-typo-section_title-weight)!important}
.pfx-meta{font-size:var(--pfx-typo-meta-size)!important;font-weight:var(--pfx-typo-meta-weight)!important}
.pfx-primary-nav>ul>li>a{font-size:var(--pfx-typo-main_menu-size)!important;font-weight:var(--pfx-typo-main_menu-weight)!important}
.widget a{font-size:var(--pfx-typo-sidebar-size);font-weight:var(--pfx-typo-sidebar-weight)}
button,.pfx-button,.pfx-read-more,.search-submit{font-size:var(--pfx-typo-button-size);font-weight:var(--pfx-typo-button-weight)}
.site-footer{font-size:var(--pfx-typo-footer-size);font-weight:var(--pfx-typo-footer-weight)}

/* Breadcrumb */
.pfx-breadcrumb{
	background:var(--pfx-card);
	border:1px solid var(--pfx-border);
	border-radius:12px;
	padding:10px 14px;
	margin-bottom:20px;
	box-shadow:0 4px 16px rgba(15,23,42,.03);
}
.pfx-breadcrumb a{
	padding:2px 5px;
	border-radius:6px;
	transition:background .18s ease,color .18s ease;
}
.pfx-breadcrumb a:hover{
	background:var(--pfx-soft);
	color:var(--pfx-accent);
}

/* Main-menu hover: keep readable */
.pfx-primary-nav>ul>li>a{
	color:#e8f0f8;
	transition:background .18s ease,color .18s ease;
}
.pfx-primary-nav>ul>li:hover>a,
.pfx-primary-nav>ul>li.current-menu-item>a,
.pfx-primary-nav>ul>li.current-menu-ancestor>a{
	background:rgba(25,199,173,.13)!important;
	color:#ffffff!important;
}
.pfx-primary-nav>ul>li:hover>a .pfx-menu-icon,
.pfx-primary-nav>ul>li.current-menu-item>a .pfx-menu-icon{
	color:var(--pfx-accent);
}
body.pfx-header-inline .pfx-primary-nav>ul>li>a{
	color:var(--pfx-text);
}
body.pfx-header-inline .pfx-primary-nav>ul>li:hover>a,
body.pfx-header-inline .pfx-primary-nav>ul>li.current-menu-item>a{
	background:var(--pfx-soft)!important;
	color:var(--pfx-accent)!important;
}

/* Sidebar links: no bullets, compact, modern */
.pfx-sidebar ul,
.pfx-sidebar ol,
.pfx-sidebar .wp-block-latest-posts,
.pfx-sidebar .wp-block-categories-list,
.pfx-sidebar .wp-block-archives-list{
	list-style:none!important;
	padding:0!important;
	margin:0!important;
}
.pfx-sidebar li{
	list-style:none!important;
	margin:0;
	padding:0;
	border-bottom:1px solid var(--pfx-border);
}
.pfx-sidebar li::marker,
.pfx-sidebar li::before{
	content:none!important;
	display:none!important;
}
.pfx-sidebar li:last-child{border-bottom:0}
.pfx-sidebar li>a{
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	overflow:hidden;
	line-height:1.75;
	padding:9px 10px;
	margin:2px 0;
	border-radius:9px;
	color:var(--pfx-text);
	background:transparent;
	transition:background .18s ease,color .18s ease,transform .18s ease;
}
.pfx-sidebar li>a::before{display:none!important;content:none!important}
.pfx-sidebar li>a:hover{
	background:var(--pfx-soft);
	color:var(--pfx-accent);
	transform:translateX(-2px);
	padding-right:10px;
}
.pfx-sidebar .widget-title{
	position:relative;
	padding-right:11px;
}
.pfx-sidebar .widget-title:before{
	content:"";
	position:absolute;
	right:0;top:.4em;bottom:.4em;
	width:3px;border-radius:999px;
	background:var(--pfx-accent);
}

/* Footer simplified */
.site-footer{padding-top:36px}
.pfx-footer-main{
	display:grid;
	grid-template-columns:1.6fr repeat(3,1fr);
	gap:34px;
	padding:0 0 32px;
}


/* ===== PersianFX 1.4 additions ===== */
/* Linked meta */
.pfx-meta-item a{
	color:inherit;
	border-radius:6px;
	transition:color .18s ease,background .18s ease;
}
.pfx-meta-item a:hover{
	color:var(--pfx-accent);
	background:color-mix(in srgb,var(--pfx-accent) 8%,transparent);
}

/* Pagination */
.navigation.pagination{
	display:flex;
	justify-content:center;
	margin:28px auto 0;
	padding:14px 16px;
	background:var(--pfx-card);
	border:1px solid var(--pfx-border);
	border-radius:var(--pfx-radius);
	box-shadow:0 5px 18px rgba(15,23,42,.035);
}
.navigation.pagination .nav-links{
	width:100%;
	justify-content:center;
	align-items:center;
	gap:7px;
}
.navigation.pagination .page-numbers{
	transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.navigation.pagination a.page-numbers:hover{
	background:var(--pfx-soft);
	border-color:color-mix(in srgb,var(--pfx-accent) 42%,var(--pfx-border));
	color:var(--pfx-accent);
	transform:translateY(-1px);
}

/* Footer HTML + social icons */
.pfx-footer-about-text{color:#9baabd;line-height:2.1;max-width:440px}
.pfx-footer-about-text p{max-width:none;margin:8px 0}
.pfx-footer-about-text a{color:var(--pfx-accent);text-decoration:underline;text-underline-offset:3px}
.pfx-socials{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:10px;
	margin-top:16px;
}
.pfx-socials a{
	display:grid;
	place-items:center;
	width:var(--pfx-social-size,48px);
	height:var(--pfx-social-size,48px);
	padding:0;
	border:1px solid rgba(255,255,255,.13);
	border-radius:14px;
	background:rgba(255,255,255,.045);
	color:#d8e3ef;
	transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.pfx-socials a:hover{
	transform:translateY(-3px);
	border-color:var(--pfx-accent);
	background:rgba(25,199,173,.10);
	color:var(--pfx-accent);
}
.pfx-socials svg{
	width:56%;
	height:56%;
	fill:currentColor;
	stroke:currentColor;
	stroke-width:1.7;
}
.pfx-socials svg rect,
.pfx-socials svg circle{fill:none}


/* ==========================================================
   ORIGINAL CSS — fd_list_by_cat (from previous theme)
   Loaded globally with the main theme stylesheet.
   ========================================================== */
.fd-cat-list-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
            margin: 20px 0;
        }

        .fd-cat-card {
            display: flex;
            flex-direction: row-reverse;
            align-items: stretch;
            gap: 16px;
            background: #fff;
            border: 1px solid #e6e6e6;
            border-radius: 16px;
            padding: 14px;
            text-decoration: none;
            transition: all 0.25s ease;
            box-shadow: 0 4px 14px rgba(0,0,0,0.04);
            min-height: 120px;
        }

        .fd-cat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 22px rgba(0,0,0,0.08);
            border-color: #d9d9d9;
        }

        .fd-cat-card-thumb {
            flex: 0 0 96px;
            width: 96px;
        }

        .fd-cat-card-thumb img {
            width: 96px;
            height: 96px;
            object-fit: cover;
            border-radius: 12px;
            display: block;
        }

        .fd-cat-card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-width: 0;
        }

        .fd-cat-card-title {
            margin: 0 0 8px;
            font-size: 16px;
            line-height: 1.7;
            color: #222;
            font-weight: 700;
        }

        .fd-cat-card-excerpt {
            color: #666;
            font-size: 14px;
            line-height: 1.9;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .fd-cat-card-readmore {
            color: #0d6efd;
            font-size: 14px;
            font-weight: 600;
            margin-top: auto;
        }

        @media (max-width: 768px) {
            .fd-cat-list-grid {
                grid-template-columns: 1fr;
            }
        }

/* ==========================================================
   ORIGINAL CSS — pfx_dashboard (from previous theme)
   Loaded globally with the main theme stylesheet.
   ========================================================== */
/* ===================================================
   PFX DASHBOARD v7 - ORIGINAL STRUCTURE / REFERENCE STYLE
   فقط تغییر ظاهر؛ کارت‌ها، ستون‌ها و عملکرد نسخه قبلی حفظ شده‌اند
   =================================================== */

.pfx-dashboard-wrapper,
.pfx-dashboard-wrapper * {
    box-sizing: border-box;
    font-family: 'YekanBakh', 'Yekan Bakh', Tahoma, sans-serif !important;
}

.pfx-dashboard-wrapper {
    --pfx-primary: #153b5c;
    --pfx-primary-dark: #102f4b;
    --pfx-text: #101827;
    --pfx-muted: #8492a6;
    --pfx-line: #dce5ef;
    --pfx-soft: #f5f7fa;
    --pfx-success: #16bf62;
    --pfx-warning: #f59e0b;
    --pfx-danger: #ef4444;

    direction: rtl;
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    height: 393px !important;
    margin: 20px 0;
    padding: 14px;
    color: var(--pfx-text);
    background: #f4f6f9;
    border: 1px solid #dbe4ee;
    border-radius: 24px;
}

.pfx-dashboard-wrapper a {
    color: inherit;
}

.pfx-main-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100% !important;
    padding: 16px;
    overflow: hidden !important;
    background: #fff;
    border: 1px solid #d9e3ee;
    border-radius: 18px;
    box-shadow: 0 3px 14px rgba(15, 35, 55, .025);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pfx-main-card::before {
    display: none;
}

.pfx-main-card:hover {
    transform: translateY(-1px);
    border-color: #cfdbe7;
    box-shadow: 0 8px 22px rgba(15, 35, 55, .055);
}

/* همان عرض ستون‌های قبلی */
.pfx-col-forum { flex: 1.2; }
.pfx-col-news { flex: 1.8; }
.pfx-col-tools {
    flex: 1.6;
    min-width: 440px !important;
}

/* Header */
.pfx-header {
    position: relative;
    margin: 4px 0 13px;
    padding-right: 18px;
    color: var(--pfx-primary);
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.3;
}

.pfx-header::before {
    content: '‹';
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--pfx-primary);
    font-size: 22px;
    font-weight: 900;
    transform: translateY(-52%);
}

.pfx-header a {
    color: var(--pfx-primary);
    text-decoration: none;
}

.pfx-header a:hover {
    color: var(--pfx-primary-dark);
}

/* Tabs */
.pfx-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 14px;
    padding: 4px;
    background: #f2f3f5;
    border: 0;
    border-radius: 13px;
}

.pfx-tab {
    flex: 1;
    min-height: 36px;
    padding: 8px 10px;
    color: #596a7d;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 800 !important;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.pfx-tab:hover {
    color: var(--pfx-primary);
}

.pfx-tab.active {
    color: var(--pfx-primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 35, 55, .06);
}

.pfx-tab:focus-visible,
.pfx-dashboard-wrapper a:focus-visible {
    outline: 2px solid rgba(21, 59, 92, .35);
    outline-offset: 2px;
}

.pfx-tab-content { display: none; }
.pfx-tab-content.active { display: block; animation: pfxFadeIn .3s ease; }

@keyframes pfxFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Broker List */
.pfx-broker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 10px 2px;
    border-bottom: 1px solid #edf1f5;
    text-decoration: none;
    transition: background .2s ease;
}

.pfx-broker-item:last-child { border-bottom: 0; }
.pfx-broker-item:hover {
    transform: none;
    background: #fbfcfd;
}

.pfx-broker-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.pfx-broker-thumb {
    width: 50px;
    height: 50px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f5f7;
    border: 1px solid #e7edf3;
    border-radius: 50%;
}

.pfx-broker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfx-broker-title {
    overflow: hidden;
    color: #111827;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pfx-score {
    color: #0f172a;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-align: left;
}

.pfx-stars {
    display: flex;
    justify-content: flex-end;
    gap: 1px;
}

.pfx-stars .star { color: #d5dbe3; font-size: 12px; }
.pfx-stars .filled { color: #f5b400; }

/* Ideas */
.pfx-idea-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 10px 2px;
    border-bottom: 1px solid #edf1f5;
    text-decoration: none;
    transition: background .2s ease;
}

.pfx-idea-item:last-child { border-bottom: 0; }
.pfx-idea-item:hover {
    transform: none;
    background: #fbfcfd;
}

.pfx-idea-thumb {
    width: 62px;
    height: 48px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f5f7;
    border: 1px solid #e7edf3;
    border-radius: 11px;
}

.pfx-idea-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfx-idea-title {
    color: #111827;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.65;
}

.pfx-idea-date {
    margin-top: 3px;
    color: #9aa7b7;
    font-size: 10px !important;
}

/* News */
.pfx-news-box {
    display: flex;
    gap: 12px;
    height: 88px;
    padding: 11px 2px;
    border-bottom: 1px solid #edf1f5;
    transition: background .2s ease;
}

.pfx-news-box:last-child { border-bottom: 0; }
.pfx-news-box:hover {
    transform: none;
    background: #fbfcfd;
}

.pfx-news-txt {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
}

.pfx-news-txt h4 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pfx-news-txt h4 a {
    color: inherit;
    text-decoration: none;
}

.pfx-news-txt h4 a:hover {
    color: var(--pfx-primary);
}

.pfx-news-meta-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 5px;
    color: #a0acbb;
    font-size: 10px !important;
}

.pfx-time { margin-left: 8px; }

.pfx-like-count {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto !important;
    color: #8fa0b3;
    font-weight: 700;
}

.pfx-img-wrapper {
    width: 84px;
    height: 62px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f5f7;
    border: 1px solid #e7edf3;
    border-radius: 12px;
}

.pfx-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Market Widget */
.pfx-market-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin: 3px 0 12px;
}

.pfx-market-status-wrap {
    min-width: 0;
}

.pfx-market-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--pfx-primary);
    font-size: 16px !important;
    font-weight: 900 !important;
}

.pfx-market-date {
    display: block;
    margin: 5px 21px 0 0;
    color: #9aa7b7;
    font-size: 10px !important;
    font-weight: 700;
}

.market-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    background: var(--pfx-success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(22, 191, 98, .12);
    animation: pfxPulse 1.8s infinite;
}

@keyframes pfxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(.84); }
}

.pfx-dashboard-wrapper.is-weekend .market-dot {
    animation: none;
}

.pfx-market-volatility {
    flex-shrink: 0;
    padding: 6px 10px;
    color: #536579;
    background: #f4f5f7;
    border: 0;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.pfx-clock-row {
    display: flex;
    gap: 9px;
    margin-bottom: 10px;
}

.pfx-clock-box {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #f7f8fa;
    border: 1px solid #e6ebf1;
    border-radius: 13px;
}

.pfx-clock-box span {
    display: block;
    color: #718196;
    font-size: 10px !important;
    font-weight: 800;
}

.pfx-clock-box strong {
    display: block;
    direction: ltr;
    margin-top: 4px;
    color: #111827;
    font-size: 17px !important;
    font-variant-numeric: tabular-nums;
    font-weight: 900 !important;
    letter-spacing: .35px;
}

/* Sessions */
.pfx-sessions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.pfx-session-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 45px;
    padding: 9px 11px;
    color: #334155;
    background: #f7f8fa;
    border: 1px solid #e7ecf2;
    border-radius: 11px;
    font-size: 12px !important;
    font-weight: 900 !important;
    transition: border-color .2s ease, background .2s ease;
}

.pfx-session-mini.active {
    color: #17613a;
    background: #effaf3;
    border-color: #bfe7ce;
    box-shadow: none;
}

.pfx-session-mini.done {
    opacity: .62;
}

.pfx-session-mini.holiday {
    color: #a33a3a;
    background: #fff5f5;
    border-color: #ffdada;
    box-shadow: none;
    opacity: 1;
}

.pfx-session-mini span {
    flex-shrink: 0;
    color: #718196;
    font-size: 10px !important;
    font-weight: 800;
}

.pfx-session-mini.active span {
    direction: ltr;
    color: #14934c;
    font-size: 12px !important;
    font-variant-numeric: tabular-nums;
    font-weight: 900 !important;
}

.pfx-session-mini.holiday span {
    color: var(--pfx-danger);
    font-size: 11px !important;
    font-weight: 900 !important;
}

/* Footer */
.pfx-market-footer-grid {
    display: flex;
    gap: 9px;
    margin-top: auto;
}

.pfx-footer-box {
    flex: 1;
    min-width: 0;
    min-height: 51px;
    padding: 9px;
    text-align: center;
    background: #f7f8fa;
    border: 1px solid #e7ecf2;
    border-radius: 11px;
    font-size: 11px !important;
}

.pfx-footer-box.overlap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b26a08;
    background: #fff8ed;
    border-color: #f7ddba;
    font-weight: 900 !important;
    line-height: 1.5;
}

.pfx-footer-box.next span {
    display: block;
    color: #98a5b5;
    font-size: 9px !important;
}

.pfx-footer-box.next b {
    color: #111827;
    font-weight: 900 !important;
}

.pfx-next-session-timer {
    display: block;
    direction: ltr;
    margin-top: 2px;
    color: var(--pfx-primary);
    font-size: 12px !important;
    font-variant-numeric: tabular-nums;
    font-weight: 900 !important;
}

.pfx-dashboard-wrapper.is-weekend .pfx-footer-box.overlap,
.pfx-dashboard-wrapper.is-weekend .pfx-footer-box.next {
    color: #a33a3a;
    background: #fff5f5;
    border-color: #ffdada;
}

.pfx-dashboard-wrapper.is-weekend .pfx-next-session-timer {
    direction: rtl;
    color: var(--pfx-danger);
}

@media (max-width: 1180px) {
    .pfx-dashboard-wrapper {
        gap: 12px;
    }

    .pfx-col-tools {
        min-width: 410px !important;
    }
}

@media (max-width: 1024px) {
    .pfx-dashboard-wrapper {
        flex-direction: column;
        height: auto !important;
        padding: 12px;
    }

    .pfx-main-card {
        height: auto !important;
        min-height: 350px;
    }

    .pfx-col-tools {
        width: 100%;
        min-width: 0 !important;
    }
}

@media (max-width: 560px) {
    .pfx-dashboard-wrapper {
        gap: 10px;
        margin: 14px 0;
        padding: 9px;
        border-radius: 18px;
    }

    .pfx-main-card {
        min-height: auto;
        padding: 14px;
        border-radius: 15px;
    }

    .pfx-market-top {
        align-items: center;
    }

    .pfx-market-volatility {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pfx-clock-row,
    .pfx-market-footer-grid {
        gap: 7px;
    }

    .pfx-session-mini {
        padding: 9px 8px;
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pfx-dashboard-wrapper *,
    .pfx-dashboard-wrapper *::before,
    .pfx-dashboard-wrapper *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================
   PersianFX 1.4.1 — Dark Mode overrides for legacy shortcodes
   Original legacy CSS above remains unscoped and unchanged.
   ========================================================== */

/* fd_list_by_cat — Dark Mode */
html[data-theme="dark"] .fd-cat-card {
    background: #111d2b;
    border-color: #24364a;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

html[data-theme="dark"] .fd-cat-card:hover {
    background: #142235;
    border-color: #31506e;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

html[data-theme="dark"] .fd-cat-card-title {
    color: #edf4fb;
}

html[data-theme="dark"] .fd-cat-card-excerpt {
    color: #aab8c8;
}

html[data-theme="dark"] .fd-cat-card-readmore {
    color: #5fa8ff;
}

html[data-theme="dark"] .fd-cat-card-thumb:empty {
    background: #172638;
}

/* pfx_dashboard — Dark Mode */
html[data-theme="dark"] .pfx-dashboard-wrapper {
    --pfx-primary: #67b7ff;
    --pfx-primary-dark: #8bc9ff;
    --pfx-text: #edf4fb;
    --pfx-muted: #95a8bb;
    --pfx-line: #273b50;
    --pfx-soft: #132234;
    --pfx-success: #35d477;
    --pfx-warning: #f6b94b;
    --pfx-danger: #ff6b6b;

    color: var(--pfx-text);
    background: #0d1927;
    border-color: #26394c;
}

html[data-theme="dark"] .pfx-main-card {
    background: #111f2f;
    border-color: #2a3d51;
    box-shadow: 0 3px 16px rgba(0,0,0,.18);
}

html[data-theme="dark"] .pfx-main-card:hover {
    border-color: #36536e;
    box-shadow: 0 9px 28px rgba(0,0,0,.28);
}

html[data-theme="dark"] .pfx-tabs {
    background: #0d1927;
}

html[data-theme="dark"] .pfx-tab {
    color: #9fb1c4;
}

html[data-theme="dark"] .pfx-tab:hover,
html[data-theme="dark"] .pfx-tab.active {
    color: #dff1ff;
}

html[data-theme="dark"] .pfx-tab.active {
    background: #1a2b3e;
    box-shadow: 0 2px 9px rgba(0,0,0,.22);
}

html[data-theme="dark"] .pfx-broker-item,
html[data-theme="dark"] .pfx-idea-item,
html[data-theme="dark"] .pfx-news-box {
    border-bottom-color: #24374a;
}

html[data-theme="dark"] .pfx-broker-item:hover,
html[data-theme="dark"] .pfx-idea-item:hover,
html[data-theme="dark"] .pfx-news-box:hover {
    background: #152538;
}

html[data-theme="dark"] .pfx-broker-thumb,
html[data-theme="dark"] .pfx-idea-thumb,
html[data-theme="dark"] .pfx-img-wrapper {
    background: #17283b;
    border-color: #2c435a;
}

html[data-theme="dark"] .pfx-broker-title,
html[data-theme="dark"] .pfx-score,
html[data-theme="dark"] .pfx-idea-title,
html[data-theme="dark"] .pfx-news-txt h4,
html[data-theme="dark"] .pfx-clock-box strong,
html[data-theme="dark"] .pfx-footer-box.next b {
    color: #eef5fc;
}

html[data-theme="dark"] .pfx-idea-date,
html[data-theme="dark"] .pfx-news-meta-row,
html[data-theme="dark"] .pfx-like-count,
html[data-theme="dark"] .pfx-market-date,
html[data-theme="dark"] .pfx-clock-box span,
html[data-theme="dark"] .pfx-session-mini span,
html[data-theme="dark"] .pfx-footer-box.next span {
    color: #8fa3b7;
}

html[data-theme="dark"] .pfx-market-volatility,
html[data-theme="dark"] .pfx-clock-box,
html[data-theme="dark"] .pfx-session-mini,
html[data-theme="dark"] .pfx-footer-box {
    background: #162638;
    border-color: #2a4157;
    color: #d7e3ef;
}

html[data-theme="dark"] .pfx-market-volatility {
    color: #b7c5d4;
}

html[data-theme="dark"] .pfx-session-mini.active {
    color: #68e39b;
    background: #123326;
    border-color: #286948;
}

html[data-theme="dark"] .pfx-session-mini.active span {
    color: #61de92;
}

html[data-theme="dark"] .pfx-session-mini.done {
    opacity: .58;
}

html[data-theme="dark"] .pfx-session-mini.holiday,
html[data-theme="dark"] .pfx-dashboard-wrapper.is-weekend .pfx-footer-box.overlap,
html[data-theme="dark"] .pfx-dashboard-wrapper.is-weekend .pfx-footer-box.next {
    color: #ff9d9d;
    background: #351c25;
    border-color: #643241;
}

html[data-theme="dark"] .pfx-session-mini.holiday span {
    color: #ff8b8b;
}

html[data-theme="dark"] .pfx-footer-box.overlap {
    color: #f7bf62;
    background: #352916;
    border-color: #654c24;
}

html[data-theme="dark"] .pfx-stars .star {
    color: #45576b;
}

html[data-theme="dark"] .pfx-stars .filled {
    color: #f5b400;
}

/* Ensure legacy shortcode cards stay visually self-contained inside dark content areas */
html[data-theme="dark"] .pfx-dashboard-wrapper a {
    color: inherit;
}


/* ===== PersianFX 1.5 professional system ===== */

/* Local font manager: one variable controls the theme; legacy dashboard is overridden last. */
body,
button,
input,
select,
textarea{
	font-family:var(--pfx-font-family,Tahoma,Arial,sans-serif);
}
.pfx-dashboard-wrapper,
.pfx-dashboard-wrapper *{
	font-family:var(--pfx-font-family,Tahoma,Arial,sans-serif)!important;
}

/* Responsive spacing manager */
.pfx-container{
	width:min(calc(100% - (var(--pfx-live-container-padding,16px) * 2)),var(--pfx-site-width));
}
.pfx-post-grid{gap:var(--pfx-live-grid-gap,16px)}
.pfx-home-section{margin:var(--pfx-live-section-gap,32px) 0}
.pfx-single-block{margin-bottom:var(--pfx-live-single-gap,20px)}

/* Editorial Quote */
.entry-content blockquote,
.pfx-editorial-quote{
	position:relative;
	margin:26px 0;
	padding:22px 24px 22px 58px;
	border:1px solid var(--pfx-border);
	border-right:4px solid var(--pfx-accent);
	border-radius:14px;
	background:linear-gradient(135deg,var(--pfx-soft),var(--pfx-card));
	color:var(--pfx-text);
	box-shadow:0 6px 20px rgba(15,23,42,.035);
}
.entry-content blockquote:before,
.pfx-editorial-quote:before{
	content:"“";
	position:absolute;
	left:18px;
	top:7px;
	font-size:54px;
	line-height:1;
	color:var(--pfx-accent);
	opacity:.45;
	font-family:Georgia,serif;
}
.entry-content blockquote p:last-child,
.pfx-editorial-quote p:last-child{margin-bottom:0}
.pfx-editorial-quote cite{
	display:block;
	margin-top:10px;
	color:var(--pfx-muted);
	font-size:11px;
	font-style:normal;
}

/* Alert / Info boxes */
.pfx-callout{
	--pfx-callout-accent:#3b82f6;
	--pfx-callout-bg:color-mix(in srgb,var(--pfx-callout-accent) 9%,var(--pfx-card));
	margin:24px 0;
	padding:16px 18px;
	border:1px solid color-mix(in srgb,var(--pfx-callout-accent) 35%,var(--pfx-border));
	border-right:4px solid var(--pfx-callout-accent);
	border-radius:13px;
	background:var(--pfx-callout-bg);
}
.pfx-callout-info{--pfx-callout-accent:#3b82f6}
.pfx-callout-success{--pfx-callout-accent:#16a34a}
.pfx-callout-warning{--pfx-callout-accent:#f59e0b}
.pfx-callout-danger{--pfx-callout-accent:#ef4444}
.pfx-callout-title{
	display:block;
	margin-bottom:5px;
	font-size:13px;
	font-weight:800;
	color:var(--pfx-text);
}
.pfx-callout-content{color:var(--pfx-muted);font-size:.95em}
.pfx-callout-content p:first-child{margin-top:0}
.pfx-callout-content p:last-child{margin-bottom:0}

/* Professional responsive tables */
.pfx-table-scroll,
.entry-content .wp-block-table{
	position:relative;
	width:100%;
	margin:24px 0;
	overflow:auto;
	-webkit-overflow-scrolling:touch;
	border:1px solid var(--pfx-border);
	border-radius:14px;
	background:var(--pfx-card);
	box-shadow:0 5px 18px rgba(15,23,42,.035);
}
.pfx-table-scroll table,
.entry-content .wp-block-table table,
.entry-content table{
	width:100%;
	min-width:620px;
	margin:0;
	border:0;
	border-collapse:separate;
	border-spacing:0;
	background:var(--pfx-card);
}
.pfx-table-scroll th,
.pfx-table-scroll td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td{
	padding:12px 14px;
	border:0;
	border-left:1px solid var(--pfx-border);
	border-bottom:1px solid var(--pfx-border);
	text-align:right;
	vertical-align:middle;
}
.pfx-table-scroll tr:last-child td,
.entry-content .wp-block-table tr:last-child td{border-bottom:0}
.pfx-table-scroll th:last-child,
.pfx-table-scroll td:last-child,
.entry-content .wp-block-table th:last-child,
.entry-content .wp-block-table td:last-child{border-left:0}
.pfx-table-scroll thead th,
.entry-content .wp-block-table thead th{
	position:sticky;
	top:0;
	z-index:2;
	background:var(--pfx-soft);
	color:var(--pfx-text);
	font-weight:800;
	white-space:nowrap;
}
.pfx-table-scroll tbody tr:nth-child(even),
.entry-content .wp-block-table tbody tr:nth-child(even){
	background:color-mix(in srgb,var(--pfx-soft) 50%,transparent);
}
.pfx-table-scroll tbody tr:hover,
.entry-content .wp-block-table tbody tr:hover{
	background:color-mix(in srgb,var(--pfx-accent) 7%,var(--pfx-card));
}

/* Generic UI helpers */
.pfx-home-empty{
	display:flex;
	align-items:center;
	justify-content:center;
	min-height:90px;
	padding:18px;
	border:1px dashed var(--pfx-border);
	border-radius:var(--pfx-radius);
	background:var(--pfx-soft);
	color:var(--pfx-muted);
	font-size:12px;
}

@media(max-width:640px){
	.entry-content blockquote,
	.pfx-editorial-quote{padding:18px 18px 18px 46px}
	.pfx-table-scroll table,
	.entry-content .wp-block-table table,
	.entry-content table{min-width:560px}
}
