/* TREXPOR PWA Foundation · V126 */
:root{--pwa-safe-bottom:env(safe-area-inset-bottom,0px)}
.pwa-install-fab{position:fixed;left:16px;bottom:18px;z-index:108;display:none;align-items:center;gap:10px;max-width:min(310px,calc(100vw - 92px));min-height:48px;padding:7px 14px 7px 8px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:linear-gradient(145deg,rgba(18,24,34,.96),rgba(7,10,16,.98));color:#f5f7fb;box-shadow:0 18px 50px rgba(0,0,0,.42),0 0 28px rgba(240,48,64,.12);backdrop-filter:blur(18px) saturate(1.12);cursor:pointer;font-family:'Manrope',sans-serif;font-weight:800;font-size:12px;line-height:1.2;transform:translateY(16px);opacity:0;transition:opacity .24s ease,transform .24s ease,border-color .2s ease}
.pwa-install-fab.show{display:flex;opacity:1;transform:none}.pwa-install-fab:hover{border-color:rgba(240,48,64,.55)}
.pwa-install-fab img{width:34px;height:34px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.34)}
.pwa-install-fab small{display:block;margin-top:2px;color:#8f9bae;font-size:9px;font-weight:600;letter-spacing:.02em}
.pwa-sheet-backdrop{position:fixed;inset:0;z-index:160;display:grid;align-items:end;background:rgba(2,4,8,.68);backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .2s ease}
.pwa-sheet-backdrop.open{opacity:1;pointer-events:auto}
.pwa-sheet{width:min(520px,100%);margin:0 auto;padding:21px 19px calc(20px + var(--pwa-safe-bottom));border:1px solid rgba(255,255,255,.13);border-bottom:0;border-radius:24px 24px 0 0;background:linear-gradient(165deg,#121923,#080c13 74%);box-shadow:0 -30px 80px rgba(0,0,0,.48);transform:translateY(22px);transition:transform .24s ease;color:#f6f8fb}
.pwa-sheet-backdrop.open .pwa-sheet{transform:none}.pwa-sheet-head{display:flex;align-items:center;gap:13px}.pwa-sheet-head img{width:54px;height:54px;border-radius:16px}.pwa-sheet-title{min-width:0;flex:1}.pwa-sheet-title b{display:block;font-family:'Sora',sans-serif;font-size:17px}.pwa-sheet-title span{display:block;margin-top:4px;color:#9aa6b8;font-size:12px;line-height:1.5}.pwa-sheet-x{width:38px;height:38px;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(255,255,255,.045);color:#d6dce6;cursor:pointer}.pwa-sheet-actions{display:flex;gap:10px;margin-top:18px}.pwa-sheet-actions button{flex:1;min-height:48px;border-radius:13px;border:1px solid rgba(255,255,255,.11);font-family:'Manrope',sans-serif;font-weight:800;cursor:pointer}.pwa-install-now{background:linear-gradient(135deg,#ff3d50,#c80f2d);color:#fff;box-shadow:0 12px 30px rgba(240,48,64,.24)}.pwa-install-later{background:rgba(255,255,255,.045);color:#d5dbe5}.pwa-ios-guide{display:none;margin-top:16px;padding:14px;border-radius:14px;border:1px solid rgba(240,48,64,.24);background:rgba(240,48,64,.055);color:#cfd6e1;font-size:12px;line-height:1.65}.pwa-ios-guide.show{display:block}.pwa-ios-share{display:inline-grid;place-items:center;width:25px;height:25px;margin:0 4px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:rgba(255,255,255,.06);font-weight:900;color:#fff}
.pwa-toast-stack{position:fixed;left:50%;bottom:20px;z-index:170;display:flex;flex-direction:column;gap:8px;width:min(430px,calc(100vw - 28px));transform:translateX(-50%);pointer-events:none}.pwa-toast{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(9,14,22,.96);box-shadow:0 15px 45px rgba(0,0,0,.38);color:#e9edf4;font-size:12px;line-height:1.4;opacity:0;transform:translateY(12px);transition:.22s ease;pointer-events:auto}.pwa-toast.show{opacity:1;transform:none}.pwa-toast i{width:9px;height:9px;border-radius:50%;background:#35d3a1;box-shadow:0 0 12px rgba(53,211,161,.7);flex:none}.pwa-toast.warn i{background:#ffb23e;box-shadow:0 0 12px rgba(255,178,62,.7)}.pwa-toast button{margin-left:auto;border:0;border-radius:9px;background:rgba(240,48,64,.16);color:#ff7180;padding:7px 10px;font-weight:800;cursor:pointer}
.pwa-draft-status{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:8px 25px 0;color:var(--mut-2);font-family:'IBM Plex Mono',monospace;font-size:9px;letter-spacing:.04em;min-height:22px}.pwa-draft-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#35d3a1;box-shadow:0 0 9px rgba(53,211,161,.55)}.pwa-draft-status:empty{visibility:hidden}
.pwa-bottom-nav{position:fixed;left:10px;right:10px;bottom:calc(8px + var(--pwa-safe-bottom));z-index:120;display:none;grid-template-columns:repeat(5,1fr);min-height:62px;padding:6px;border:1px solid rgba(255,255,255,.12);border-radius:19px;background:rgba(7,11,17,.94);box-shadow:0 20px 55px rgba(0,0,0,.5);backdrop-filter:blur(20px) saturate(1.15)}.pwa-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:13px;color:#8390a3;text-decoration:none;font-size:8.5px;font-weight:800;line-height:1.05;text-align:center}.pwa-bottom-nav a:active,.pwa-bottom-nav a.active{background:rgba(240,48,64,.1);color:#ff5a6b}.pwa-bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html.pwa-standalone body{padding-bottom:calc(83px + var(--pwa-safe-bottom))}html.pwa-standalone .pwa-bottom-nav{display:grid}html.pwa-standalone .wa-fab{bottom:calc(85px + var(--pwa-safe-bottom))}html.pwa-standalone .btt{bottom:calc(88px + var(--pwa-safe-bottom))}
html.light .pwa-install-fab,html.light .pwa-sheet,html.light .pwa-toast,html.light .pwa-bottom-nav{background:rgba(255,255,255,.97);border-color:rgba(13,26,44,.13);color:#0c1424;box-shadow:0 18px 50px rgba(18,31,52,.18)}html.light .pwa-install-fab small,html.light .pwa-sheet-title span,html.light .pwa-toast{color:#526077}html.light .pwa-install-later{background:#f3f6fa;color:#233047}html.light .pwa-bottom-nav a{color:#68768c}
html[dir="rtl"] .pwa-install-fab{left:auto;right:16px}html[dir="rtl"] .pwa-sheet,html[dir="rtl"] .pwa-toast{text-align:right}html[dir="rtl"] .pwa-toast button{margin-left:0;margin-right:auto}
@media(min-width:901px){.pwa-install-fab{bottom:24px}}
@media(max-width:700px){.pwa-install-fab{bottom:18px}.pwa-draft-status{padding-left:17px;padding-right:17px}.pwa-toast-stack{bottom:82px}html.pwa-standalone .pwa-toast-stack{bottom:calc(88px + var(--pwa-safe-bottom))}}
@media(prefers-reduced-motion:reduce){.pwa-install-fab,.pwa-sheet-backdrop,.pwa-sheet,.pwa-toast{transition:none!important}}
