/* Stage 84: public header, footer and marketplace visual fixes. */
.header-tools .theme-toggle{
  isolation:auto!important;
  overflow:hidden!important;
  display:grid!important;
  align-items:center!important;
  justify-content:center!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(28,78,57,.16)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(242,237,224,.92))!important;
  color:#174b36!important;
  box-shadow:0 8px 22px rgba(18,63,45,.13),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
.header-tools .theme-toggle::before,.header-tools .theme-toggle::after{content:none!important;display:none!important}
.header-tools .theme-toggle .b87-theme-glyph{
  display:block!important;
  position:static!important;
  inset:auto!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  visibility:visible!important;
  transform:none!important;
}
.header-tools .theme-toggle .b87-sun,.header-tools .theme-toggle .b87-moon{transform-origin:12px 12px;transition:opacity .32s ease,transform .42s ease!important}
.header-tools .theme-toggle .b87-sun{opacity:1!important;transform:rotate(0) scale(1)!important}
.header-tools .theme-toggle .b87-moon{opacity:0!important;transform:rotate(70deg) scale(.55)!important}
html[data-theme=dark] .header-tools .theme-toggle{
  color:#f0cc82!important;
  border-color:rgba(231,201,139,.23)!important;
  background:linear-gradient(145deg,#173b2d,#0b2118)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.07)!important;
}
html[data-theme=dark] .header-tools .theme-toggle .b87-sun{opacity:0!important;transform:rotate(-70deg) scale(.55)!important}
html[data-theme=dark] .header-tools .theme-toggle .b87-moon{opacity:1!important;transform:rotate(0) scale(1)!important}
.header-tools .theme-toggle:hover{transform:translateY(-1px) scale(1.04)!important}
.site-header:not(.is-scrolled) .header-tools .theme-toggle:hover{transform:translateY(-7px) scale(.82)!important}
.header-tools .theme-toggle:focus-visible{outline:3px solid rgba(181,140,75,.42)!important;outline-offset:3px}

.stage81-home .site-footer,
.site-footer{
  background:#164a35!important;
  color:#f8f0df!important;
  border-top-color:rgba(244,222,174,.22)!important;
}
.site-footer .footer-grid h2{color:#f1d499!important;font-weight:900!important}
.site-footer .footer-grid>div>a:not(.brand):not(.footer-enamad){color:rgba(255,250,239,.78)!important}
.site-footer .footer-grid>div>a:not(.brand):not(.footer-enamad):hover{color:#fffdf6!important}
.site-footer .footer-brand p{color:rgba(255,250,239,.72)!important}
.site-footer .footer-brand .brand,
.site-footer .footer-brand .brand span{color:#fff8e9!important}
.site-footer .footer-bottom{
  color:rgba(255,250,239,.7)!important;
  border-top-color:rgba(244,222,174,.24)!important;
}
.site-footer .footer-bottom strong{color:#f4d99f!important}
.site-footer .social-row{gap:14px!important}
.site-footer .social-row a{
  width:42px!important;
  height:42px!important;
  padding:7px!important;
  border:1px solid rgba(255,247,227,.2)!important;
  border-radius:15px!important;
  background:rgba(255,252,242,.09)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08)!important;
}
.site-footer .social-row a:hover{background:rgba(255,252,242,.17)!important;border-color:rgba(244,213,151,.42)!important}
.site-footer .social-row img{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important}
.site-footer .social-eitaa img{transform:scale(1)!important}
.site-footer .social-bale img{transform:scale(1)!important}
.footer-community{display:flex!important;flex-direction:column;align-items:flex-start}
.footer-enamad{
  width:76px;
  min-height:76px;
  margin-top:18px!important;
  padding:8px!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(242,212,153,.34)!important;
  border-radius:16px;
  background:rgba(255,250,239,.1);
  color:#fff8e8!important;
  transition:transform .25s ease,background .25s ease,border-color .25s ease;
}
.footer-enamad:hover{transform:translateY(-2px);background:rgba(255,250,239,.16);border-color:rgba(242,212,153,.58)!important}
.footer-enamad img{display:block!important;width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:contain!important;transform:none!important}

.b81-store-row .store-logo-myket{width:58px!important;height:32px!important}
.b81-club,.b81-python{position:relative;overflow:hidden;background-image:none!important}
.b81-club img,.b81-python img{width:100%;height:100%;display:block;object-fit:cover}
.b81-club::after,.b81-python::after{content:"";position:absolute;inset:0;pointer-events:none}
.b81-club::after{background:linear-gradient(rgba(49,42,25,.04),rgba(49,42,25,.14))}
.b81-python::after{background:linear-gradient(rgba(28,49,67,.02),rgba(28,49,67,.08))}
.b86-baharyar-visual{border-radius:130px 0 0 130px!important;margin:0!important}
.b86-baharyar-visual img{object-position:center!important}

/* Stable paint layer for mobile GPUs: prevents duplicated text/controls. */
.b81-download{
  contain:layout paint!important;
  isolation:isolate!important;
  background:#fffaf1!important;
  border:2px solid #91b09b!important;
  box-shadow:0 16px 38px rgba(31,84,61,.1)!important;
}
.b81-download::before,.b81-download::after{content:none!important;display:none!important}
html[data-theme=dark] .b81-download{background:#10231a!important;border-color:#547d65!important}
.b81-download>div,.b81-store-row,.b81-store-row button{position:relative!important;z-index:1!important;backface-visibility:hidden!important;-webkit-backface-visibility:hidden!important}
.b81-reviews{contain:layout paint!important;text-align:center!important}
.b81-reviews .b81-heading,.b81-review-track blockquote{text-align:center!important}
.b81-review-track blockquote footer{justify-content:center!important;gap:16px!important;text-align:center!important}

/* Calendar: airy Persian layout matching the approved reference. */
.b81-calendar{
  width:min(390px,94%)!important;
  margin:24px auto!important;
  padding:28px 24px 22px!important;
  border:1px solid rgba(37,72,54,.15)!important;
  border-radius:30px!important;
  background:#fffbf3!important;
  box-shadow:0 10px 28px rgba(42,65,51,.07)!important;
}
.b81-calendar header{align-items:flex-start!important;margin-bottom:22px!important}
.b81-calendar header strong{font-size:1.05rem!important;color:#174b36!important;font-weight:900!important}
.b81-calendar header small{font-size:.6rem!important;color:#78847c!important;padding-top:5px!important}
.b81-week,.b81-days{direction:rtl!important;grid-template-columns:repeat(7,1fr)!important;gap:10px 7px!important}
.b81-week{margin-top:0!important;color:#bd8552!important;font-size:.63rem!important}
.b81-days{margin-top:13px!important;color:#355546!important;font-size:.67rem!important}
.b81-days span{width:31px!important;height:31px!important;aspect-ratio:auto!important;margin:auto!important}
.b81-days span:nth-child(8){background:#176044!important;color:#fff!important;box-shadow:0 7px 16px rgba(23,96,68,.2)!important}
.b81-task{
  margin-top:22px!important;
  padding:12px 13px!important;
  grid-template-columns:auto 1fr auto!important;
  border-radius:14px!important;
  background:#eeeee5!important;
  color:#264a39!important;
}
.b81-task i{background:#c99b4d!important}.b81-task small{color:#8a938d!important}
html[data-theme=dark] .b81-calendar{background:#10231a!important;border-color:rgba(221,196,142,.2)!important}
html[data-theme=dark] .b81-calendar header strong,html[data-theme=dark] .b81-days{color:#f4ead6!important}
html[data-theme=dark] .b81-task{background:#1c3328!important;color:#f4ead6!important}

@media(max-width:900px){.footer-community{align-items:center}}
@media(max-width:600px){
  .header-tools .theme-toggle .b87-theme-glyph{width:20px!important;height:20px!important}
  .site-header{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fffaf1!important}
  html[data-theme=dark] .site-header{background:#10251b!important}
  .b81-download{overflow:hidden!important;background:#fffaf1!important;box-shadow:0 12px 28px rgba(31,84,61,.09)!important}
  html[data-theme=dark] .b81-download{background:#10231a!important}
  .b81-store-row button{transform:none!important;transition:background-color .2s ease,border-color .2s ease!important;background:#fffdf8!important}
  html[data-theme=dark] .b81-store-row button{background:#173328!important}
  .site-footer .footer-grid>div>a{color:rgba(255,250,239,.82)!important}
}
@media(prefers-reduced-motion:reduce){.header-tools .theme-toggle svg,.footer-enamad{transition:none!important}}
