.gypto-offline-status {
  position: fixed;
  z-index: 99990;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  min-width: 290px;
  max-width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(14, 89, 68, .18);
  background: rgba(255, 255, 255, .96);
  color: #17362d;
  box-shadow: 0 12px 36px rgba(8, 49, 38, .18);
  backdrop-filter: blur(14px);
  font-family: Cairo, Arial, sans-serif;
  direction: rtl;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}
.gypto-offline-status .offline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #18a36f;
  box-shadow: 0 0 0 5px rgba(24, 163, 111, .12);
}
.gypto-offline-status .offline-copy { display: grid; gap: 1px; min-width: 0; }
.gypto-offline-status strong { font-size: 12px; line-height: 1.5; color: inherit; }
.gypto-offline-status small { font-size: 10px; line-height: 1.5; color: #667b74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gypto-offline-status .offline-count {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff2cf;
  color: #7b5200;
  font-size: 11px;
  font-weight: 800;
}
.gypto-offline-status .offline-sync-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: #edf7f3;
  color: #0b6b4f;
  font-size: 19px;
  cursor: pointer;
}
.gypto-offline-status .offline-sync-button:disabled { opacity: .5; cursor: not-allowed; }
.gypto-offline-status .offline-sync-button.spinning { animation: gyptoOfflineSpin 1s linear infinite; }
.gypto-offline-status[data-state="offline"] {
  border-color: rgba(182, 101, 0, .3);
  background: rgba(255, 248, 232, .97);
  color: #68420b;
}
.gypto-offline-status[data-state="offline"] .offline-dot {
  background: #e08b12;
  box-shadow: 0 0 0 5px rgba(224, 139, 18, .14);
}
.gypto-offline-status[data-state="syncing"] .offline-dot,
.gypto-offline-status[data-state="pending"] .offline-dot {
  background: #2777d8;
  box-shadow: 0 0 0 5px rgba(39, 119, 216, .13);
}
@keyframes gyptoOfflineSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .gypto-offline-status {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-width: 0;
    max-width: none;
    padding: 9px 10px;
    border-radius: 14px;
  }
  .gypto-offline-status small { max-width: 58vw; }
}
@media print { .gypto-offline-status { display: none !important; } }
