/* SARASOFT_FIXPACK_V4 — bottom-sheet & account-sheet component (moved out of ui-overlays inline, cacheable). Source of truth; per-page inline .sheet copies are legacy fallbacks. */
/* Bottom sheets + account menu — پیش‌فرض مخفی، باز فقط با .open */
.sheet-overlay{position:fixed!important;inset:0!important;z-index:7500!important;background:rgba(0,0,0,.5)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .2s,visibility .2s!important}
.sheet-overlay.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.sheet{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:7501!important;width:100%!important;max-width:100%!important;max-height:86dvh!important;overflow-y:auto!important;overflow-x:hidden!important;transform:translateY(105%)!important;visibility:hidden!important;pointer-events:none!important;transition:transform .26s cubic-bezier(.22,1,.36,1),visibility .26s!important;border-radius:22px 22px 0 0!important;background:#fff!important;color:#161616!important;box-shadow:0 -12px 40px rgba(0,0,0,.22)!important;padding:12px 16px calc(18px + env(safe-area-inset-bottom))!important}
.sheet.open{transform:translateY(0)!important;visibility:visible!important;pointer-events:auto!important}
html[data-theme=dark] .sheet{background:#141414!important;color:#f0f0f0!important}
.sheet-handle{width:44px!important;height:4px!important;border-radius:99px!important;background:#e5e5e5!important;margin:0 auto 10px!important}
.sheet-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:4px 0 10px!important;border-bottom:1px solid #e5e5e5!important;margin-bottom:8px!important}
.sheet-title-wrap{min-width:0!important}
.sheet-title-wrap b{display:block!important;font-size:14.5px!important;font-weight:900!important}
.sheet-title-wrap i{display:block!important;font-style:normal!important;font-size:11px!important;color:#7a7a7a!important;margin-top:2px!important}
.sheet-close{width:36px!important;height:36px!important;border:1px solid #e5e5e5!important;background:none!important;border-radius:10px!important;display:grid!important;place-items:center!important;color:#7a7a7a!important;cursor:pointer!important;flex:0 0 auto!important}
.sheet-close svg{width:16px!important;height:16px!important}
.sheet-list{display:flex!important;flex-direction:column!important;gap:4px!important}
.sheet-list a,.sheet-list button{display:flex!important;align-items:center!important;gap:10px!important;padding:12px!important;border:0!important;border-radius:12px!important;background:none!important;color:inherit!important;font:inherit!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;width:100%!important;text-align:right!important}
.sheet-list a:hover,.sheet-list button:hover{background:#f0f0f0!important}
.sheet-list svg{width:17px!important;height:17px!important;flex:0 0 auto!important}
.sheet-list .danger{color:#b3122a!important}
@media(min-width:768px){.sheet{left:50%!important;right:auto!important;width:min(560px,calc(100vw - 32px))!important;transform:translate(-50%,105%)!important;border-radius:22px!important;bottom:16px!important}.sheet.open{transform:translate(-50%,0)!important}}

/* فوتر تم + toggle تم — قطعی */
.theme-footer{background:#f5f5f5!important;color:#161616!important;padding:26px 16px calc(26px + env(safe-area-inset-bottom))!important;margin-top:26px!important;border-top:1px solid #e5e5e5!important}
html[data-theme=dark] .theme-footer{background:#0f0f0f!important;color:#f0f0f0!important;border-top-color:#2a2a2a!important}
.theme-footer-inner{max-width:1100px!important;margin:0 auto!important;display:flex!important;flex-wrap:wrap!important;gap:22px!important;justify-content:space-between!important}
.theme-footer-brand{min-width:200px!important;flex:1 1 220px!important}
.theme-footer-brand strong{display:block!important;font-size:15px!important;font-weight:900!important}
.theme-footer-brand span{display:block!important;font-size:11px!important;color:#7a7a7a!important;margin-top:4px!important}
.theme-footer-links{flex:2 1 300px!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))!important;gap:16px!important}
.theme-footer-links>div{min-width:0!important}
.theme-footer-links b{display:block!important;font-size:11px!important;font-weight:800!important;color:#7a7a7a!important;margin-bottom:8px!important}
.theme-footer-links a{display:block!important;font-size:12.5px!important;font-weight:600!important;color:inherit!important;text-decoration:none!important;padding:4px 0!important}
.theme-footer-links a:hover{color:#111111!important}
.theme-footer{font-size:13px!important;line-height:1.7!important}
.theme-footer *{box-sizing:border-box!important}
/* toggle تم در هدر: ماه/خورشید — فقط یکی visible */
.header-theme-btn{position:relative!important;display:grid!important;place-items:center!important}
.header-theme-btn .nk-ti{display:none!important;line-height:0!important}
.header-theme-btn .nk-ti-moon{display:none!important}
html[data-theme=dark] .header-theme-btn .nk-ti-sun{display:none!important}
html[data-theme=dark] .header-theme-btn .nk-ti-moon{display:grid!important}
html:not([data-theme=dark]) .header-theme-btn .nk-ti-sun{display:grid!important}
.header-theme-btn svg{width:19px!important;height:19px!important}

/* آیتم‌های شیت حساب */
.account-item,.sheet-body>a,.sheet-body>button{display:flex!important;align-items:center!important;gap:10px!important;padding:12px!important;border:0!important;border-radius:12px!important;background:none!important;color:inherit!important;font:inherit!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;width:100%!important;text-align:right!important}
.account-item:hover,.sheet-body>a:hover{background:#f0f0f0!important}
.account-item svg{width:17px!important;height:17px!important;flex:0 0 auto!important}
.sheet-body{display:flex!important;flex-direction:column!important;gap:4px!important;padding:4px 0!important}
.sheet-body .danger{color:#b3122a!important}

