/* Sepahan v1.1.65 fixes: final mobile megamenu dark scroll + loader admin polish */
html.dark .sepahan-mobile-menu,
html.dark .sepahan-mobile-menu-card,
html.dark .sepahan-mobile-accordion,
html.dark .sepahan-mobile-acc-body,
html.dark .sepahan-mobile-subbody,
body.dark .sepahan-mobile-menu,
body.dark .sepahan-mobile-menu-card,
body.dark .sepahan-mobile-accordion,
body.dark .sepahan-mobile-acc-body,
body.dark .sepahan-mobile-subbody,
.dark .sepahan-mobile-menu,
.dark .sepahan-mobile-menu-card,
.dark .sepahan-mobile-accordion,
.dark .sepahan-mobile-acc-body,
.dark .sepahan-mobile-subbody{
  background:#0b1220!important;
  color:#f8fafc!important;
  border-color:rgba(148,163,184,.22)!important;
}
html.dark .sepahan-mobile-subitem > .sepahan-mobile-subhead,
html.dark .sepahan-mobile-subbody .sepahan-mobile-subhead,
html.dark .sepahan-mobile-subbody > .sepahan-mobile-subitem > .sepahan-mobile-subhead,
html.dark div.sepahan-mobile-subhead,
body.dark .sepahan-mobile-subitem > .sepahan-mobile-subhead,
body.dark .sepahan-mobile-subbody .sepahan-mobile-subhead,
body.dark .sepahan-mobile-subbody > .sepahan-mobile-subitem > .sepahan-mobile-subhead,
body.dark div.sepahan-mobile-subhead,
.dark .sepahan-mobile-subitem > .sepahan-mobile-subhead,
.dark .sepahan-mobile-subbody .sepahan-mobile-subhead,
.dark .sepahan-mobile-subbody > .sepahan-mobile-subitem > .sepahan-mobile-subhead,
.dark div.sepahan-mobile-subhead{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  min-height:48px!important;
  padding:10px 12px!important;
  margin:6px 0!important;
  background:linear-gradient(135deg,#111827 0%,#0f172a 100%)!important;
  border:1px solid rgba(148,163,184,.24)!important;
  border-radius:16px!important;
  box-shadow:none!important;
  color:#f8fafc!important;
}
html.dark .sepahan-mobile-subhead a,
html.dark .sepahan-mobile-subhead > a,
body.dark .sepahan-mobile-subhead a,
body.dark .sepahan-mobile-subhead > a,
.dark .sepahan-mobile-subhead a,
.dark .sepahan-mobile-subhead > a{
  color:#f8fafc!important;
  background:transparent!important;
  text-decoration:none!important;
  flex:1 1 auto!important;
}
html.dark .sepahan-mobile-subhead button,
html.dark button[data-mobile-sub-toggle],
body.dark .sepahan-mobile-subhead button,
body.dark button[data-mobile-sub-toggle],
.dark .sepahan-mobile-subhead button,
.dark button[data-mobile-sub-toggle]{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#1e293b!important;
  color:#dbeafe!important;
  border:1px solid rgba(148,163,184,.28)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
html.dark .sepahan-mobile-subhead button svg,
html.dark button[data-mobile-sub-toggle] svg,
body.dark .sepahan-mobile-subhead button svg,
body.dark button[data-mobile-sub-toggle] svg,
.dark .sepahan-mobile-subhead button svg,
.dark button[data-mobile-sub-toggle] svg{
  stroke:currentColor!important;
  color:#dbeafe!important;
}
html.dark .sepahan-mobile-leaf,
body.dark .sepahan-mobile-leaf,
.dark .sepahan-mobile-leaf{
  background:#111827!important;
  color:#e5e7eb!important;
  border:1px solid rgba(148,163,184,.20)!important;
  border-radius:14px!important;
  margin:6px 0!important;
}
.sepahan-mobile-menu-card,
.sepahan-mobile-acc-body,
.sepahan-mobile-subbody{
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.sepahan-mobile-menu-card::-webkit-scrollbar,
.sepahan-mobile-acc-body::-webkit-scrollbar,
.sepahan-mobile-subbody::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.sepahan-mobile-menu-card{max-height:calc(100vh - 24px)!important}
.sepahan-mobile-acc-body{max-height:calc(100vh - 170px)!important}
.sepahan-mobile-subbody:not(.hidden){max-height:calc(100vh - 220px)!important}
body.toplevel_page_sepahan-settings #adminmenuback,
body.toplevel_page_sepahan-settings #adminmenuwrap{
  position:fixed!important;
  top:32px!important;
  bottom:auto!important;
  transform:none!important;
}
body.toplevel_page_sepahan-settings #adminmenu{margin-top:0!important}
body.toplevel_page_sepahan-settings.folded #adminmenuback,
body.toplevel_page_sepahan-settings.folded #adminmenuwrap{top:32px!important}
@media(max-width:782px){body.toplevel_page_sepahan-settings #adminmenuback,body.toplevel_page_sepahan-settings #adminmenuwrap{top:46px!important}}
body.toplevel_page_sepahan-site-loader #wpcontent{background:linear-gradient(135deg,#ffffff 0%,#f8fbff 44%,#eef6ff 100%)!important;min-height:100vh!important}
.sepahan-loader-admin-wrap{max-width:1360px!important;margin:22px 0 0 22px!important;direction:rtl!important;color:#0f172a!important;font-family:Tahoma,Arial,sans-serif!important}
.sepahan-loader-admin-wrap:before{content:"";position:fixed;inset:32px 160px auto auto;width:520px;height:520px;background:radial-gradient(circle,rgba(96,165,250,.18),transparent 68%);pointer-events:none;z-index:0}
.sepahan-loader-admin-wrap .sepahan-loader-admin-hero,
.sepahan-loader-admin-wrap form{position:relative;z-index:1}
.sepahan-loader-admin-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin:0 0 18px!important;padding:24px 28px!important;border-radius:28px!important;background:linear-gradient(135deg,#fff 0%,#f7fbff 48%,#eaf4ff 100%)!important;border:1px solid #dbeafe!important;box-shadow:0 24px 70px rgba(37,99,235,.10),inset 0 1px 0 rgba(255,255,255,.95)!important}
.sepahan-loader-admin-hero:after{content:"لودر سایت";display:inline-flex;align-items:center;justify-content:center;min-width:112px;height:42px;border-radius:999px;background:#eff6ff;color:#2563eb;border:1px solid #dbeafe;font-weight:900;box-shadow:0 12px 28px rgba(96,165,250,.16)}
.sepahan-loader-admin-hero h1{font-size:26px!important;font-weight:950!important;margin:0 0 7px!important;color:#0f172a!important;letter-spacing:-.03em!important}
.sepahan-loader-admin-hero p{font-size:13px!important;color:#64748b!important;margin:0!important;line-height:1.9!important}
.sepahan-loader-admin-grid{display:grid!important;grid-template-columns:1.15fr .85fr!important;gap:16px!important;max-width:1180px!important;align-items:start!important}
.sepahan-loader-admin-card{background:rgba(255,255,255,.96)!important;border:1px solid #e3ebf6!important;border-radius:24px!important;padding:20px!important;box-shadow:0 18px 44px rgba(15,23,42,.055),inset 0 1px 0 rgba(255,255,255,.92)!important;overflow:hidden!important}
.sepahan-loader-admin-card:nth-child(1),.sepahan-loader-admin-card:nth-child(3){grid-column:auto!important}.sepahan-loader-admin-card:nth-child(4){grid-column:1 / -1!important}
.sepahan-loader-admin-card h2{display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 16px!important;font-size:16px!important;font-weight:950!important;color:#0f172a!important;padding-bottom:12px!important;border-bottom:1px solid #edf2f7!important}
.sepahan-loader-admin-card h2:before{content:""!important;width:10px!important;height:10px!important;border-radius:999px!important;background:#60a5fa!important;box-shadow:0 0 0 6px rgba(96,165,250,.16)!important;flex:none!important}
.sepahan-loader-admin-field{display:grid!important;grid-template-columns:minmax(160px,1fr) minmax(210px,280px)!important;align-items:center!important;gap:14px!important;margin:0 0 12px!important;min-height:62px!important;padding:12px 14px!important;border:1px solid #edf2f7!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#f9fbff)!important;transition:border-color .18s ease,box-shadow .18s ease!important}
.sepahan-loader-admin-field:hover{border-color:#bfdbfe!important;box-shadow:0 12px 26px rgba(96,165,250,.08)!important}
.sepahan-loader-admin-field span{font-size:13px!important;font-weight:900!important;color:#1e293b!important;line-height:1.8!important}
.sepahan-loader-admin-field input,.sepahan-loader-admin-field select{width:100%!important;max-width:100%!important;min-height:42px!important;border-radius:14px!important;border:1px solid #d7e3f2!important;background:#fff!important;color:#0f172a!important;box-shadow:none!important;padding:6px 12px!important;font-weight:700!important}
.sepahan-loader-admin-field input:focus,.sepahan-loader-admin-field select:focus{border-color:#60a5fa!important;box-shadow:0 0 0 4px rgba(96,165,250,.18)!important;outline:0!important}
.sepahan-loader-admin-field input[type=color]{width:66px!important;height:42px!important;padding:3px!important;justify-self:end!important;border-radius:14px!important;cursor:pointer!important}
.sepahan-loader-admin-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:16px!important;margin-bottom:14px!important;border-radius:20px!important;background:linear-gradient(135deg,#eff6ff,#fff)!important;border:1px solid #dbeafe!important;color:#1e293b!important;font-weight:950!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.95)!important}
.sepahan-loader-admin-switch input{width:42px!important;height:22px!important;accent-color:#60a5fa!important}
.sepahan-loader-admin-actions{max-width:1180px!important;margin-top:16px!important;padding:16px 18px!important;background:rgba(255,255,255,.88)!important;border:1px solid #e3ebf6!important;border-radius:22px!important;box-shadow:0 18px 44px rgba(15,23,42,.055)!important;text-align:left!important;position:sticky!important;bottom:12px!important;z-index:2!important;backdrop-filter:blur(10px)!important}
.sepahan-loader-admin-actions .submit{margin:0!important;padding:0!important}.sepahan-loader-admin-actions .button-primary{min-height:44px!important;padding:0 30px!important;background:linear-gradient(135deg,#60a5fa,#3b82f6)!important;border:0!important;border-radius:15px!important;color:#fff!important;font-weight:950!important;box-shadow:0 14px 28px rgba(59,130,246,.22)!important}
@media(max-width:1100px){.sepahan-loader-admin-grid{grid-template-columns:1fr!important}.sepahan-loader-admin-card:nth-child(4){grid-column:auto!important}}
@media(max-width:782px){.sepahan-loader-admin-wrap{margin:12px!important}.sepahan-loader-admin-hero{display:block!important}.sepahan-loader-admin-hero:after{margin-top:14px}.sepahan-loader-admin-field{grid-template-columns:1fr!important}.sepahan-loader-admin-actions{position:static!important;text-align:right!important}}
