@font-face{font-family:Vazirmatn;src:url('/assets/vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/inter.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;--bg:#101113;--surface:#191b1e;--raised:#232529;--text:#f2f3f5;--muted:#a4a8b0;--line:#2c2f34;--brand:#e57b87;--button:#c43847;--button-hover:#d34352;--green:#7cd3b1;--green-wash:#1c3029;--red:#f08c96;--red-wash:#352128;--neutral:#c8b891;--neutral-wash:#29271f;--font:Vazirmatn,Inter,Arial,sans-serif}
:root[data-theme=light]{color-scheme:light;--bg:#f8f9fa;--surface:#fff;--raised:#edf0f2;--text:#24272c;--muted:#626973;--line:#dde1e5;--brand:#a62e40;--green:#167752;--green-wash:#e6f4ec;--red:#b63848;--red-wash:#fbecee;--neutral:#78662a;--neutral-wash:#f0ecdc}
*{box-sizing:border-box;letter-spacing:0}html{min-width:280px}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.8;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:2px solid var(--brand);outline-offset:4px}svg{width:20px;height:20px;stroke-width:1.7;flex-shrink:0}[hidden]{display:none!important}.topbar{border-bottom:1px solid var(--line);background:var(--bg)}.topbar-inner{max-width:1120px;margin:auto;min-height:88px;padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}.brand img{object-fit:contain;border-radius:8px;width:42px;height:42px}.brand b{display:block;font-size:18px;font-weight:750;line-height:1.5}.brand small{display:block;font-family:Inter,Vazirmatn,sans-serif;font-size:10px;color:var(--muted);margin-top:3px}.header-actions{display:flex;align-items:center;gap:10px}.language{display:flex;border:1px solid var(--line);border-radius:6px;padding:3px;gap:2px}.language button{border:0;background:transparent;border-radius:3px;padding:5px 9px;min-width:37px;font-size:12px;color:var(--muted);min-height:32px}.language button[aria-pressed=true]{background:var(--raised);color:var(--text)}.icon{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;border-radius:6px;width:42px;height:42px;padding:0;flex-shrink:0;color:var(--muted);transition:background .15s,color .15s}.icon:hover:not(:disabled){background:var(--raised);color:var(--text)}main{max-width:840px;padding:52px 32px 32px;margin:0 auto}.connection{max-width:640px;margin:0 auto;text-align:center;--state:var(--neutral);--state-wash:var(--neutral-wash)}[data-status=connected] .connection{--state:var(--green);--state-wash:var(--green-wash)}[data-status=disconnected] .connection,[data-status=error] .connection{--state:var(--red);--state-wash:var(--red-wash)}.section-label{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;color:var(--muted);margin-bottom:24px}.tiny-line{width:24px;height:1px;background:var(--line)}.status-symbol{width:80px;height:80px;border:1px solid var(--state);background:var(--state-wash);border-radius:24px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;color:var(--state);transition:color .2s,background .2s,border-color .2s}.status-symbol svg{width:38px;height:38px;stroke-width:1.5}.result{min-height:128px}.status-tag{display:inline-flex;align-items:center;gap:7px;color:var(--state);font-size:12px;font-weight:600;min-height:24px}.dot{width:5px;height:5px;border-radius:50%;background:currentColor}.result h1{font-size:27px;line-height:1.7;font-weight:750;margin:10px 0 8px;overflow-wrap:anywhere}.result p{color:var(--muted);font-size:13px;line-height:1.9;margin:0;min-height:28px}.ip-readout{margin:30px auto 0;padding:20px 0;border-block:1px solid var(--line);max-width:510px;text-align:start}.ip-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.ip-family{font:10px Inter,monospace;border:1px solid var(--line);border-radius:4px;padding:4px 7px;min-width:38px;text-align:center}.ip-value{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;min-height:48px}.ip-value output{font:500 32px/1.6 Inter,ui-monospace,monospace;overflow-wrap:anywhere;min-width:0;text-align:left;unicode-bidi:isolate}.ip-value output[data-v6=true]{font-size:22px}.ip-value .icon{background:var(--surface);border-color:var(--line)}.actions{display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:510px;margin:24px auto 0}.primary{border:1px solid var(--button);background:var(--button);color:#fff;border-radius:6px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 18px;font-size:13px;font-weight:600;transition:background .15s}.primary:hover:not(:disabled){background:var(--button-hover)}.primary svg{width:17px;height:17px}.last-check{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.last-check time{font-family:Inter,monospace;font-size:11px;min-width:58px}.connection-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-block:1px solid var(--line);padding:24px 0;margin-top:52px}.connection-details>div{display:grid;grid-template-columns:20px minmax(0,1fr);gap:5px 9px;align-items:center;min-width:0}.connection-details svg{grid-row:1/3;color:var(--muted);width:18px;height:18px}.connection-details span{font-size:11px;color:var(--muted)}.connection-details strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.connection-details strong[dir=ltr]{text-align:start}.disclaimer{display:flex;align-items:flex-start;gap:9px;color:var(--muted);font-size:11px;margin:20px 0 0;line-height:1.9}.disclaimer svg{width:15px;height:15px;margin-top:3px}.no-script{color:var(--red)}footer{max-width:1120px;padding:24px 32px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--muted);font-size:10px}footer>span{display:flex;align-items:center;gap:8px}footer svg{width:13px;height:13px}.footer-slash{color:var(--line)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:10px 18px;border-radius:6px;max-width:calc(100% - 32px);font-size:12px;text-align:center;box-shadow:0 4px 20px #0003}.checking .primary svg{animation:spin 1.3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:650px){.topbar-inner{padding:16px 20px;min-height:78px;gap:12px}.brand{gap:9px}.brand img{width:36px;height:36px}.brand b{font-size:16px}.brand small{font-size:9px}.header-actions{gap:5px}.language button{padding:4px 6px;min-width:31px}.header-actions>.icon{width:34px;height:38px}main{padding:32px 20px 24px}.status-symbol{width:68px;height:68px;border-radius:20px}.status-symbol svg{width:32px;height:32px}.result{min-height:160px}.result h1{font-size:23px;max-width:330px;margin:10px auto 8px}.result p{font-size:12px;max-width:310px;margin:0 auto}.ip-readout{margin-top:22px;padding:18px 0}.ip-value output{font-size:27px}.ip-value output[data-v6=true]{font-size:18px}.actions{gap:10px;flex-wrap:wrap}.primary{font-size:12px;padding:10px 14px}.last-check{font-size:10px;gap:5px}.connection-details{margin-top:34px;gap:20px 12px;grid-template-columns:1fr}.connection-details>div{grid-template-columns:20px 1fr auto;gap:10px}.connection-details svg{grid-row:auto}.connection-details strong{font-size:11px}footer{padding:18px 20px;flex-wrap:wrap;font-size:9px}.section-label{margin-bottom:20px}}
@media(max-width:350px){.topbar-inner{padding:14px 16px}.brand b{font-size:14px}.brand small{font-size:8px}.brand img{width:30px;height:30px}.language button{min-width:27px;font-size:10px}.header-actions>.icon{width:28px}main{padding-inline:16px}.result h1{font-size:21px}.ip-value output{font-size:23px}.actions{justify-content:center}.last-check{justify-content:center}footer{padding-inline:16px}}
.brand small{display:none}
footer{justify-content:center;text-align:center}
.status-symbol img{display:block;width:52px;height:52px;object-fit:contain;border-radius:8px}
@media(max-width:650px){.status-symbol img{width:44px;height:44px}}
.status-symbol{position:relative}
.checking .connection{--state:var(--brand);--state-wash:var(--red-wash)}
.checking .status-symbol::before{content:"";position:absolute;inset:-9px;border:2px solid var(--line);border-top-color:var(--brand);border-right-color:var(--brand);border-radius:50%;animation:spin 1.5s linear infinite}
.checking .status-symbol svg{animation:scan-breathe 1.5s ease-in-out infinite}
.loading-track{height:3px;width:112px;margin:16px auto 0;border-radius:3px;background:var(--line);overflow:hidden;visibility:hidden}
.checking .loading-track{visibility:visible}
.checking .loading-track::after{content:"";display:block;width:40%;height:100%;border-radius:inherit;background:var(--brand);animation:scan-sweep 1.5s ease-in-out infinite alternate}
.checking .status-tag .dot{animation:scan-breathe 1.5s ease-in-out infinite}
@keyframes scan-breathe{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes scan-sweep{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
