/* HSPay — small additions on top of the theme. Keep this file short; do not restyle the theme. */
.hspay-env-badge {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.hspay-avatar-placeholder {
  width: 38px;
  height: 38px;
}
/* KYC verify page (STEP 6E): documents left, inputs right — each column scrolls on its own (desktop). Viewer zoom /
   rotate / pan never change the stored file; "Save corrected copy" stores a NEW version (original kept, §18 / §19). */
@media (min-width: 992px) {
  .kyc-col { max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 4px; }
}
.kyc-strip { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-weight: 600; }
.kyc-strip > span + span::before { content: '-'; margin-right: 10px; color: var(--bs-secondary, #888); font-weight: 400; }
.kyc-doc, .kyc-fields { transition: box-shadow 0.15s ease; }
.kyc-doc.kyc-active, .kyc-fields.kyc-active { box-shadow: 0 0 0 2px var(--bs-primary, #0d6efd); }
.kyc-stage { position: relative; height: 420px; overflow: hidden; background: var(--bs-light, #f5f5f5); border: 1px solid var(--bs-border-color, #ddd); border-radius: 4px; cursor: grab; touch-action: none; user-select: none; }
.kyc-stage.kyc-dragging { cursor: grabbing; }
.kyc-stage:fullscreen { height: 100vh; background: #222; }
.kyc-stage img.kyc-img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center center; transition: transform 0.12s ease; pointer-events: none; }
.kyc-stage canvas.kyc-crop-canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); cursor: crosshair; }
.kyc-crop-box { position: absolute; border: 2px dashed var(--bs-primary, #0d6efd); background: rgba(13, 110, 253, 0.12); pointer-events: none; }
.kyc-pdf-wrap { height: 560px; border: 1px solid var(--bs-border-color, #ddd); border-radius: 4px; overflow: hidden; background: var(--bs-light, #f5f5f5); }
.kyc-pdf-wrap iframe { width: 100%; height: 100%; border: 0; transform-origin: center center; }
.kyc-match-ok { color: var(--bs-success, #198754); }
.kyc-match-bad { color: var(--bs-danger, #dc3545); }

/* Webhooks (STEP 10B): payload / response viewers in the delivery log */
.wh-code { max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--bs-light, #f7f8f9); border-radius: 4px; padding: 8px; margin: 0; }
.wh-detail-row > td { background: var(--bs-light, #f7f8f9); }
.wh-events { max-height: 220px; overflow: auto; }

/* Notifications (STEP N1): bell, dropdown, toasts, notifications page */
.hs-bell__badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bs-body-bg, #fff); }
.hs-bell__badge.hs-bump { animation: hsBump .6s ease; }
@keyframes hsBump { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
.hs-bell__menu { width: 380px; max-width: calc(100vw - 24px); overflow: hidden; }
.hs-bell__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--bs-border-color, #e9ecef); }
.hs-bell__list { max-height: 420px; overflow-y: auto; }
.hs-bell__empty { padding: 28px 16px; text-align: center; color: var(--bs-secondary-color, #6c757d); font-size: 13px; }
.hs-bell__all { display: block; padding: 10px 16px; text-align: center; font-weight: 600; font-size: 13px; border-top: 1px solid var(--bs-border-color, #e9ecef); text-decoration: none; }
.hs-n { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bs-border-color, #f1f3f5); cursor: pointer; text-decoration: none; color: inherit; position: relative; transition: background .15s; }
.hs-n:hover { background: var(--bs-tertiary-bg, #f8f9fa); }
.hs-n.is-unread { background: rgba(51, 111, 191, .05); }
.hs-n.is-unread::after { content: ''; position: absolute; right: 14px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #336FBF; }
.hs-n__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--hs-cat, #336FBF); }
.hs-n__text { min-width: 0; padding-right: 14px; }
.hs-n__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.hs-n__body { font-size: 13px; color: var(--bs-secondary-color, #6c757d); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-n__time { font-size: 12px; color: var(--bs-secondary-color, #8a94a6); margin-top: 4px; }
.hs-cat-KYC { --hs-cat: #336FBF; } .hs-cat-WALLET { --hs-cat: #16A37F; } .hs-cat-RETAILERS { --hs-cat: #7C5CD6; } .hs-cat-TEAM { --hs-cat: #0EA5B7; }
.hs-cat-DEVELOPERS { --hs-cat: #475569; } .hs-cat-WEBSITE { --hs-cat: #E08A1E; } .hs-cat-ACCOUNT { --hs-cat: #1F4A86; }
.hs-toasts { position: fixed; top: 84px; right: 20px; z-index: 1090; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.hs-toast { position: relative; display: flex; gap: 12px; padding: 14px 40px 16px 14px; border-radius: 14px; background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #14243D); box-shadow: 0 0 0 1px rgba(20, 36, 61, .06), 0 18px 40px -16px rgba(20, 36, 61, .45); overflow: hidden; cursor: pointer; pointer-events: auto;
  transform: translateX(120%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .3s; }
.hs-toast.is-in { transform: none; opacity: 1; }
.hs-toast.is-out { transform: translateX(120%); opacity: 0; transition-timing-function: ease-in; }
.hs-toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hs-cat, #336FBF); }
.hs-toast__close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--bs-secondary-color, #6c757d); font-size: 16px; line-height: 1; cursor: pointer; }
.hs-toast__close:hover { background: var(--bs-tertiary-bg, #f1f3f5); }
.hs-toast__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--hs-cat, #336FBF); opacity: .35; transform-origin: left; animation: hsTimer 6.5s linear forwards; }
.hs-toast:hover .hs-toast__timer { animation-play-state: paused; }
@keyframes hsTimer { to { transform: scaleX(0); } }
.hs-pref-table td, .hs-pref-table th { vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .hs-toast { transition: none; } .hs-toast__timer, .hs-bell__badge.hs-bump { animation: none; } }
