/* notify.css — баннер разрешения и кнопка уведомлений в профиле */

#nvBanner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(400px, calc(100vw - 44px));
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(18, 16, 30, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  color: #ececf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  animation: nvPop 0.3s ease both;
}

#nvBanner.nv-hide { display: none !important; }

@keyframes nvPop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#nvBanner .nv-banner-ic {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35);
}

#nvBanner .nv-banner-body { flex: 1; min-width: 0; }

#nvBanner .nv-banner-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

#nvBanner .nv-banner-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #a9a6c0;
}

#nvBanner .nv-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

#nvBanner .nv-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ececf3;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

#nvBanner .nv-btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }

#nvBanner .nv-btn.nv-primary {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

#nvBanner .nv-close {
  position: absolute;
  top: -22px;
  right: -6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8b88a3;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#nvBanner .nv-close:hover { color: #ececf3; }

/* кнопка в профиле */
#notifyToggleBtn.is-on {
  border-color: rgba(52, 211, 153, 0.45) !important;
  color: #34d399 !important;
}

/* ---------------- добавление друга по почте ---------------- */

.add-friend-box {
  margin-bottom: 20px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.07);
}

.add-friend-box label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 8px;
}

.add-friend-row {
  display: flex;
  gap: 8px;
}

.add-friend-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #ececf3;
  font: inherit;
  font-size: 0.86rem;
}

.add-friend-row input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.add-friend-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.add-friend-hint {
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #8f8ca6;
}

.add-friend-hint.ok { color: #34d399; }
.add-friend-hint.err { color: #f87171; }

/* ---------------- мелодия звонка ---------------- */

.ringtone-select {
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #ececf3;
  font: inherit;
  font-size: 0.86rem;
}

.ringtone-select:focus {
  outline: none;
  border-color: #8b5cf6;
}

.ringtone-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ringtone-actions .btn {
  flex: 1;
  min-width: 120px;
}

.ringtone-hint {
  margin-top: 10px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #8f8ca6;
}

@media (max-width: 640px) {
  #nvBanner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px;
    gap: 10px;
  }
  #nvBanner .nv-banner-actions { flex-direction: row; }
  #nvBanner .nv-close { top: -18px; right: 0; }
}
