/* ═══════════════════════════════════════════
   NIEHUB TOOLKIT — WhatsApp Widget & Donate Modal
═══════════════════════════════════════════ */
.niehub-wa-widget, .niehub-modal-overlay, .niehub-modal-overlay * {
  box-sizing: border-box;
}

/* ── WHATSAPP WIDGET ── */
.niehub-wa-widget {
  position: fixed; bottom: 32px; right: 32px; z-index: 999999;
  font-family: 'Inter', -apple-system, sans-serif;
}
.niehub-wa-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; box-shadow: 0 6px 28px rgba(37,211,102,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  border: none; animation: niehub-wa-pulse 2.5s ease-in-out infinite;
}
.niehub-wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 36px rgba(37,211,102,.7); }
@keyframes niehub-wa-pulse {
  0%,100% { box-shadow: 0 6px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 6px 28px rgba(37,211,102,.5), 0 0 0 12px rgba(37,211,102,0); }
}
.niehub-wa-btn svg { width: 30px; height: 30px; fill: #fff; }
.niehub-wa-tooltip {
  position: absolute; bottom: 70px; right: 0;
  background: #141414; color: #F0EDE8; border: 1px solid rgba(245,166,35,.18);
  border-radius: 10px; padding: 16px 20px; width: 220px;
  font-size: .85rem; line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.niehub-wa-widget:hover .niehub-wa-tooltip { opacity: 1; pointer-events: all; transform: translateY(0); }
.niehub-wa-tooltip strong { color: #25D366; display: block; margin-bottom: 4px; }
.niehub-wa-tooltip a {
  display: block; margin-top: 12px; text-align: center;
  background: #25D366; color: #fff; border-radius: 6px; padding: 8px;
  text-decoration: none; font-weight: 700; font-size: .82rem;
  transition: background .2s;
}
.niehub-wa-tooltip a:hover { background: #1ebe5d; }
.niehub-wa-tooltip::after {
  content: ''; position: absolute; bottom: -8px; right: 22px;
  width: 16px; height: 16px; background: #141414;
  border-right: 1px solid rgba(245,166,35,.18); border-bottom: 1px solid rgba(245,166,35,.18);
  transform: rotate(45deg);
}

/* ── DONATE MODAL ── */
.niehub-modal-overlay {
  position: fixed; inset: 0; z-index: 999998;
  background: rgba(0,0,0,.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s;
  font-family: 'Inter', -apple-system, sans-serif;
}
.niehub-modal-overlay.open { opacity: 1; pointer-events: all; }
.niehub-modal {
  background: #141414; color: #F0EDE8; border: 1px solid rgba(245,166,35,.18);
  border-radius: 16px; padding: 44px 40px; max-width: 480px; width: 100%;
  position: relative; transform: translateY(24px);
  transition: transform .3s; max-height: 90vh; overflow-y: auto;
}
.niehub-modal-overlay.open .niehub-modal { transform: translateY(0); }
.niehub-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #888; font-size: 1.4rem;
  cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.niehub-modal-close:hover { background: rgba(255,255,255,.06); color: #F0EDE8; }
.niehub-modal-heart { font-size: 2.8rem; margin-bottom: 12px; }
.niehub-modal h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem;
  letter-spacing: .5px; margin-bottom: 10px; color: #F0EDE8;
}
.niehub-modal p { color: rgba(240,237,232,.65); font-size: .9rem; line-height: 1.75; margin-bottom: 28px; }
.niehub-label {
  font-size: .78rem; color: #888; margin-bottom: 12px;
  font-family: 'Space Mono', monospace; letter-spacing: .5px;
}
.niehub-amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
.niehub-amount-btn {
  border: 1.5px solid rgba(245,166,35,.18); background: transparent;
  color: #F0EDE8; padding: 12px 8px; border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .5px;
  cursor: pointer; transition: .2s;
}
.niehub-amount-btn:hover, .niehub-amount-btn.active {
  border-color: #F5A623; background: rgba(245,166,35,.1); color: #F5A623;
}
.niehub-modal-input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 14px 16px; color: #F0EDE8;
  font-size: .95rem; outline: none; transition: border-color .2s; margin-bottom: 20px;
}
.niehub-modal-input:focus { border-color: #F5A623; }
.niehub-methods { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.niehub-method-btn {
  flex: 1; min-width: 90px; padding: 10px; border: 1.5px solid rgba(245,166,35,.18);
  border-radius: 8px; background: transparent; color: #F0EDE8;
  font-size: .78rem; font-weight: 600; cursor: pointer; transition: .2s;
  font-family: 'Space Mono', monospace; text-align: center;
}
.niehub-method-btn:hover, .niehub-method-btn.active {
  border-color: #0057FF; background: rgba(0,87,255,.1); color: #77aaff;
}
.niehub-money-info {
  background: rgba(0,87,255,.08); border: 1px solid rgba(0,87,255,.2);
  border-radius: 8px; padding: 16px; margin-bottom: 20px; font-size: .85rem; line-height: 1.6;
}
.niehub-muted { color: #888; font-size: .78rem; }
.niehub-btn-donate-send {
  width: 100%; background: linear-gradient(135deg, #F5A623, #e88c00);
  color: #0D0D0D; border: none; padding: 16px; border-radius: 8px;
  font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: box-shadow .2s, transform .15s;
}
.niehub-btn-donate-send:hover { box-shadow: 0 8px 28px rgba(245,166,35,.5); transform: translateY(-2px); }
.niehub-donate-success { display: none; text-align: center; color: #25D366; font-size: .88rem; margin-top: 14px; }
.niehub-modal-note { text-align: center; font-size: .75rem; color: #888; margin-top: 14px; }

@media (max-width: 480px) {
  .niehub-amount-grid { grid-template-columns: repeat(2,1fr); }
  .niehub-wa-widget { bottom: 20px; right: 20px; }
}
