#tankhaheto-maintenance-overlay{position:fixed;inset:0;z-index:2147483600;display:none;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:radial-gradient(circle at 18% 10%,rgba(56,189,248,.22),transparent 34%),radial-gradient(circle at 82% 88%,rgba(34,197,94,.18),transparent 32%),rgba(7,17,31,.92);backdrop-filter:blur(18px) saturate(130%);-webkit-backdrop-filter:blur(18px) saturate(130%);direction:rtl;font-family:inherit;color:#f8fafc}#tankhaheto-maintenance-overlay.is-visible{display:grid}#tankhaheto-maintenance-overlay .thm-card{width:min(92vw,460px);padding:34px 28px 30px;border:1px solid rgba(255,255,255,.16);border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.07));box-shadow:0 30px 90px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.16);text-align:center}#tankhaheto-maintenance-overlay .thm-icon{width:76px;height:76px;margin:0 auto 20px;border-radius:25px;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15)}#tankhaheto-maintenance-overlay .thm-spinner{width:34px;height:34px;border:3px solid rgba(255,255,255,.22);border-top-color:#7dd3fc;border-right-color:#86efac;border-radius:50%;animation:thm-spin 1s linear infinite}#tankhaheto-maintenance-overlay h2{font-size:24px;line-height:1.55;margin:0 0 10px;font-weight:900;color:#f8fafc}#tankhaheto-maintenance-overlay p{font-size:14px;line-height:2;margin:0;color:#cbd5e1}#tankhaheto-maintenance-overlay .thm-thanks{margin-top:18px;color:#e2e8f0;font-weight:700}#tankhaheto-maintenance-overlay .thm-status{display:inline-flex;align-items:center;gap:8px;margin-top:22px;padding:9px 14px;border-radius:999px;background:rgba(15,23,42,.34);border:1px solid rgba(255,255,255,.10);font-size:12px;color:#bfdbfe}#tankhaheto-maintenance-overlay .thm-dot{width:8px;height:8px;border-radius:50%;background:#38bdf8;box-shadow:0 0 0 5px rgba(56,189,248,.12);animation:thm-pulse 1.7s ease-in-out infinite}@keyframes thm-spin{50%{transform:rotate(3deg)}100%{transform:rotate(0deg)}}@keyframes thm-pulse{50%{opacity:.45;transform:scale(.86)}}@media(prefers-reduced-motion:reduce){#tankhaheto-maintenance-overlay .thm-spinner,#tankhaheto-maintenance-overlay .thm-dot{animation:none}}


/* v174: shared responsive update overlay. Same 102.2px PWA wave and Cinema copy. */
@font-face{font-family:"Tankhaheto Cinema";src:url('/assets/fonts/w_Cinema.ttf') format('truetype');font-display:swap}
#tankhaheto-maintenance-overlay{--th-bg:#f4f7fa;--th-ink:#1a385e;--th-segment:#245fb8;--th-track:#9fc8dc;background:var(--th-bg)!important;color:var(--th-ink)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
@media(prefers-color-scheme:dark){#tankhaheto-maintenance-overlay{--th-bg:#111827;--th-ink:#d8eaff;--th-segment:#357bd4}}
#tankhaheto-maintenance-overlay[data-theme="light"]{--th-bg:#f4f7fa;--th-ink:#1a385e;--th-segment:#245fb8}
#tankhaheto-maintenance-overlay[data-theme="dark"]{--th-bg:#111827;--th-ink:#d8eaff;--th-segment:#357bd4}
#tankhaheto-maintenance-overlay .thm-card{box-shadow:none;border:0;background:transparent;border-radius:0;backdrop-filter:none;max-width:460px;padding:20px}
#tankhaheto-maintenance-overlay .thm-wave{height:102.2px;width:102.2px;margin:0 auto 8px}
#tankhaheto-maintenance-overlay .thm-wave svg{width:100%;height:100%;overflow:visible}
#tankhaheto-maintenance-overlay .thm-wavy-track,#tankhaheto-maintenance-overlay .thm-wavy-segment{fill:none;stroke-width:6.6;stroke-linecap:round;stroke-linejoin:round}
#tankhaheto-maintenance-overlay .thm-wavy-track{stroke:var(--th-track);opacity:.58}
#tankhaheto-maintenance-overlay .thm-wavy-segment{stroke:var(--th-segment);stroke-dasharray:24 76;animation:thm-wavy-motion 1.8s linear infinite}
#tankhaheto-maintenance-overlay .thm-wordmark,#tankhaheto-maintenance-overlay h2,#tankhaheto-maintenance-overlay .thm-status{font-family:"Tankhaheto Cinema",sans-serif!important;font-weight:400!important;color:var(--th-ink)!important}
#tankhaheto-maintenance-overlay .thm-wordmark{font-size:34px;line-height:1.5;display:block}
#tankhaheto-maintenance-overlay h2{font-size:25px;line-height:1.7;margin:4px 0 0}
#tankhaheto-maintenance-overlay .thm-status{font-size:17px;line-height:1.7;padding:0;margin:3px 0 0;border:0;background:none}
#tankhaheto-maintenance-overlay .thm-dot{display:none}
@keyframes thm-wavy-motion{to{stroke-dashoffset:-100}}
@media(prefers-reduced-motion:reduce){#tankhaheto-maintenance-overlay .thm-wavy-segment{animation:none}}

/* v229 code-only high-resolution ribbon in the shared server update overlay. */
#tankhaheto-maintenance-overlay .tk-ribbon-svg{width:100%;height:100%}
#tankhaheto-maintenance-overlay .tk-ribbon-turn{animation:tk-ribbon-rotation 10.8s cubic-bezier(.45,.06,.55,.94) infinite;transform-box:view-box;transform-origin:50% 50%}
@keyframes tk-ribbon-rotation{50%{transform:rotate(3deg)}100%{transform:rotate(0deg)}}
@media(prefers-reduced-motion:reduce){#tankhaheto-maintenance-overlay .tk-ribbon-turn{animation:none}}

/* v233: source-video fidelity — woven crossed bands sway gently instead of ball spin. */
.tk-ribbon-turn{animation:tk-reference-sway 4.8s ease-in-out infinite;transform-origin:50% 50%}
@keyframes tk-reference-sway{0%,100%{transform:rotate(-2deg) scale(1)}50%{transform:rotate(3deg) scale(1.02)}}
@media(prefers-reduced-motion:reduce){.tk-ribbon-turn{animation:none!important}}

/* v234 exact reference-frame loader: canvas is the only active graphic. */
.tk-reference-ribbon{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;image-rendering:auto;transform:none!important;animation:none!important;filter:none!important}
#startup-screen .tk-reference-ribbon{width:100%;height:100%}
.pwa-inline-knot .tk-reference-ribbon{width:100%;height:100%}
@media(prefers-reduced-motion:reduce){.tk-reference-ribbon{animation:none!important;transform:none!important}}

/* R39: Web maintenance overlay uses readable Persian rather than display Cinema glyphs. */
@font-face{font-family:"IRANSansFaNum";src:url('/pwa/fonts/IRANSansFaNum-Regular.woff2') format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:"IRANSansFaNum";src:url('/pwa/fonts/IRANSansFaNum-Bold.woff2') format('woff2');font-display:swap;font-weight:700 900}
#tankhaheto-maintenance-overlay .thm-wordmark,
#tankhaheto-maintenance-overlay h2,
#tankhaheto-maintenance-overlay .thm-status{font-family:"IRANSansFaNum",Tahoma,Arial,sans-serif!important;font-weight:700!important;letter-spacing:normal!important;text-decoration:none!important}
