/* Söwda Hasap v93 PWA mobile layer */
:root{
  --pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
  --pwa-safe-top: env(safe-area-inset-top, 0px);
}
html,body{max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;}
body{padding-bottom:calc(78px + var(--pwa-safe-bottom));}
button,.btn,.tab,a[role="button"],input,select,textarea{touch-action:manipulation;}
input,select,textarea{font-size:16px;}
button,.btn,.tab{min-height:42px;}
.bottom-nav,.tabs,.tabbar{padding-bottom:max(8px,var(--pwa-safe-bottom));}
.card,.panel,.item,.modal,.lockbox{max-width:100%;}
img,canvas,svg,video{max-width:100%;}

.pwa-v93-badge,
.pwa-v93-bar{
  position:fixed;
  left:12px;
  right:12px;
  z-index:99999;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
  font:500 14px/1.35 Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.pwa-v93-badge{
  top:calc(10px + var(--pwa-safe-top));
  right:auto;
  display:none;
  padding:8px 12px;
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
}
.pwa-v93-badge.show{display:block;}
.pwa-v93-bar{
  bottom:calc(82px + var(--pwa-safe-bottom));
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  background:#ffffff;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.10);
}
.pwa-v93-bar.show{display:flex;}
.pwa-v93-bar strong{display:block;font-weight:800;font-size:14px;margin-bottom:2px;}
.pwa-v93-bar span{display:block;color:#475569;font-size:12px;}
.pwa-v93-actions{display:flex;gap:8px;flex:0 0 auto;}
.pwa-v93-btn{
  border:0;
  border-radius:12px;
  padding:10px 12px;
  min-height:40px;
  font-weight:800;
  cursor:pointer;
  background:#0f766e;
  color:#fff;
}
.pwa-v93-btn.secondary{background:#e2e8f0;color:#0f172a;}

body.theme-dark .pwa-v93-bar{background:#0f172a;color:#e5e7eb;border-color:#334155;}
body.theme-dark .pwa-v93-bar span{color:#94a3b8;}
body.theme-dark .pwa-v93-btn.secondary{background:#334155;color:#e5e7eb;}

@media (max-width: 700px){
  body{padding-bottom:calc(92px + var(--pwa-safe-bottom));}
  .pwa-v93-bar{left:10px;right:10px;bottom:calc(88px + var(--pwa-safe-bottom));padding:10px;}
  .pwa-v93-actions{gap:6px;}
  .pwa-v93-btn{padding:9px 10px;font-size:13px;}
  .pwa-v93-bar strong{font-size:13px;}
  .pwa-v93-bar span{font-size:11px;}
}
