.devafeez-badge {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 20, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  color: #e8f1ec;
  font: 500 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: devafeez-badge-enter 260ms ease-out both;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.devafeez-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.devafeez-badge__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.devafeez-badge__logo {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f1ec;
}

.devafeez-badge__text { color: #c4d2cb; }
.devafeez-badge__text strong { color: #ffffff; font-weight: 700; }

.devafeez-badge__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e2dc;
  font: 400 20px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.devafeez-badge__close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.devafeez-badge__close:focus-visible,
.devafeez-badge__brand:focus-visible {
  outline: 2px solid #65dca2;
  outline-offset: 3px;
}

.devafeez-badge.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
}

@keyframes devafeez-badge-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .devafeez-badge {
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    padding: 6px 7px 6px 8px;
    font-size: 11px;
  }

  .devafeez-badge__brand { gap: 6px; }
  .devafeez-badge__logo { width: 22px; height: 22px; flex-basis: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .devafeez-badge,
  .devafeez-badge__close { animation: none; transition: none; }
}