.sn-help-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sn-help-button {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #07111f, #111827 48%, #14b8a6);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(20, 184, 166, 0.35), 0 12px 30px rgba(15, 23, 42, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.sn-help-button::before {
  content: "✦";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  color: #a7f3d0;
}

.sn-help-panel {
  width: 410px;
  max-width: calc(100vw - 28px);
  height: 610px;
  max-height: calc(100vh - 105px);
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
}

.sn-help-header {
  position: relative;
  padding: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.42), transparent 32%),
    linear-gradient(135deg, #020617, #111827 55%, #0f766e);
}

.sn-help-header::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
}

.sn-help-header strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.sn-help-header small {
  display: block;
  margin-top: 5px;
  opacity: 0.84;
  font-size: 12px;
}

.sn-help-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.sn-help-body {
  padding: 16px;
  height: 462px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 28%),
    #ffffff;
}

.sn-help-welcome {
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid #e5e7eb;
  color: #111827;
  font-size: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.sn-help-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sn-help-input {
  flex: 1;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

.sn-help-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.sn-help-search-btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  background: #020617;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.sn-help-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sn-help-quick-actions button {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.sn-help-quick-actions button:hover {
  border-color: #14b8a6;
  background: #f0fdfa;
}

.sn-help-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.sn-help-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #020617;
  letter-spacing: -0.02em;
}

.sn-help-card ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.sn-help-card li {
  font-size: 13px;
  color: #334155;
  margin-bottom: 7px;
  line-height: 1.45;
}

.sn-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sn-help-actions a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
  color: #0f766e;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 8px 11px;
}

.sn-help-empty,
.sn-help-error {
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 13px;
  border-radius: 16px;
  line-height: 1.45;
}

.sn-help-footer {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .sn-help-widget {
    right: 14px;
    bottom: 14px;
  }

  .sn-help-panel {
    width: calc(100vw - 28px);
    height: 560px;
  }

  .sn-help-body {
    height: 414px;
  }
}
/* ============================================================
   SaRaNest Help Widget - Compact Safe Floating Position
   Prevents overlap with FeeNest pagination/footer actions
============================================================ */

.sn-help-widget {
  right: 18px;
  bottom: 84px;
}

.sn-help-button {
  padding: 10px 14px;
  font-size: 13px;
  min-height: 42px;
  max-width: 220px;
  white-space: nowrap;
}

.sn-help-button::before {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.sn-help-panel {
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 140px);
}

/* FeeNest / app pages usually have pagination near bottom.
   This keeps the widget above bottom controls. */
@media (min-width: 768px) {
  .sn-help-widget {
    bottom: 92px;
  }
}

/* Mobile: keep it smaller and closer to edge */
@media (max-width: 640px) {
  .sn-help-widget {
    right: 12px;
    bottom: 76px;
  }

  .sn-help-button {
    padding: 9px 12px;
    font-size: 12px;
    max-width: 190px;
  }

  .sn-help-panel {
    width: calc(100vw - 24px);
    height: min(560px, calc(100vh - 120px));
  }
}


