body.haldu-na-lock {
  overflow: hidden;
}

#haldu-na-root {
  font-family: Arial, sans-serif;
}

.haldu-na-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483647;
}

.haldu-na-trigger {
  position: relative;
  width: var(--haldu-na-size-desktop, 72px);
  height: var(--haldu-na-size-desktop, 72px);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.haldu-na-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: transform .18s ease;
}

.haldu-na-trigger:hover .haldu-na-avatar,
.haldu-na-trigger:focus-visible .haldu-na-avatar {
  transform: scale(1.04);
}

.haldu-na-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: haldu-na-pulse 2s infinite;
}

@keyframes haldu-na-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.haldu-na-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .22s ease;
  z-index: 2147483646;
}

.haldu-na-overlay.is-open {
  opacity: 1;
}

.haldu-na-modal {
  position: relative;
  width: 430px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
  border: 1px solid rgba(0, 0, 0, .06);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.haldu-na-overlay.is-open .haldu-na-modal {
  transform: translateY(0) scale(1);
}

.haldu-na-header {
  padding: 28px 24px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
}

.haldu-na-modal-avatar {
  width: 74px;
  height: 74px;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.haldu-na-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #111827;
}

.haldu-na-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #4b5563;
}

.haldu-na-links-wrap {
  position: relative;
  padding: 16px 18px 18px;
  background: #fff;
}

.haldu-na-links {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .95) transparent;
}

.haldu-na-links::-webkit-scrollbar {
  width: 12px;
}

.haldu-na-links::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .03);
  border-radius: 999px;
}

.haldu-na-links::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .95);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .6);
}

.haldu-na-links-wrap::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 30px;
  bottom: 18px;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.haldu-na-link {
  display: block;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: all .16s ease;
}

.haldu-na-link:hover,
.haldu-na-link:focus-visible {
  background: #ecfeff;
  border-color: rgba(15, 118, 110, .22);
  transform: translateY(-1px);
}

.haldu-na-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .04);
  color: #374151;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.haldu-na-close:hover,
.haldu-na-close:focus-visible {
  background: rgba(0, 0, 0, .08);
  color: #111827;
}

@media (max-width: 1024px) {
  .haldu-na-modal {
    width: 400px;
  }

  .haldu-na-header {
    padding: 24px 20px 16px;
  }

  .haldu-na-title {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .haldu-na-widget {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .haldu-na-trigger {
    width: var(--haldu-na-size-mobile, 64px);
    height: var(--haldu-na-size-mobile, 64px);
  }

  .haldu-na-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .haldu-na-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
  }

  .haldu-na-header {
    padding: 22px 18px 14px;
  }

  .haldu-na-modal-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
  }

  .haldu-na-title {
    font-size: 24px;
  }

  .haldu-na-intro {
    font-size: 15px;
  }

  .haldu-na-links-wrap {
    padding: 14px 14px 16px;
  }

  .haldu-na-links {
    max-height: 42vh;
  }

  .haldu-na-links-wrap::after {
    left: 14px;
    right: 26px;
    bottom: 16px;
  }
}
