/* Easypaisa Mobile Trade — Live Chat */
.chat-fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 6500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #a7d44a, #6faa28);
  color: #0b1a0a;
  box-shadow: 0 10px 28px rgba(111, 170, 40, 0.45);
  cursor: grab;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  touch-action: none;
  user-select: none;
}
.chat-fab .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff4d4d;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.chat-fab .badge.show { display: flex; }
.chat-panel {
  position: fixed;
  right: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 6600;
  width: min(360px, calc(100vw - 24px));
  height: min(480px, 70dvh);
  display: none;
  flex-direction: column;
  background: #0f2210;
  border: 1px solid rgba(141,198,63,0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  animation: chatIn 0.25s ease;
}
.chat-panel.open { display: flex; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #6faa28, #8dc63f);
  color: #0b1a0a;
}
.chat-head h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}
.chat-head button {
  border: 0;
  background: rgba(0,0,0,0.12);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background:
    radial-gradient(ellipse at top, rgba(141,198,63,0.08), transparent 50%),
    #0b1a0a;
}
.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #8dc63f, #6faa28);
  color: #0b1a0a;
  border-bottom-right-radius: 4px;
}
.chat-bubble.admin {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  color: #e8f5dc;
  border-bottom-left-radius: 4px;
}
.chat-meta {
  display: block;
  font-size: 0.62rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}
.chat-foot {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(141,198,63,0.15);
  background: #122414;
}
.chat-foot input {
  flex: 1;
  border: 1px solid rgba(141,198,63,0.25);
  background: rgba(0,0,0,0.25);
  color: #f0f7ea;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.chat-foot button {
  border: 0;
  background: #8dc63f;
  color: #0b1a0a;
  font-weight: 700;
  border-radius: 12px;
  padding: 0 0.95rem;
  cursor: pointer;
}
