/* Nexvoryn v3.3 — social links strip (customer chat), install + notifications gate, social editor, call test. */

/* ---- customer chat: social strip under the glass header ---- */
.gsocial {
  position: relative; z-index: 7; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right));
  background: var(--glass-bg, var(--surface)); -webkit-backdrop-filter: blur(var(--glass-blur, 12px)) saturate(1.4); backdrop-filter: blur(var(--glass-blur, 12px)) saturate(1.4);
  border-bottom: 1px solid var(--glass-border, var(--border));
  overflow-x: auto; scrollbar-width: none;
}
.gsocial::-webkit-scrollbar { display: none; }
.gsocial[hidden] { display: none; }
.gsoc {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 46vw; height: 32px; padding: 0 12px 0 10px;
  border-radius: var(--r-pill, 999px); background: var(--surface, #fff); border: 1px solid var(--border, #E6E1D9);
  color: var(--text-primary, #1B1930); text-decoration: none; font: 600 13px/16px var(--font, system-ui);
  box-shadow: 0 1px 1.5px rgba(27, 25, 48, .06); transition: background-color 150ms, transform 120ms;
}
.gsoc:hover { background: var(--accent-softer, #F3F2FD); }
.gsoc:active { transform: scale(.97); }
.gsoc:focus-visible { outline: 2px solid var(--ring, #5146D9); outline-offset: 2px; }
.gsoc svg { flex: none; }
.gsoc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsoc-facebook svg { color: #1877F2; }
.gsoc-instagram svg { color: #D6249F; }
.gsoc-telegram svg { color: #229ED9; }
.gsoc-whatsapp svg { color: #1FA855; }
.gsoc-tiktok svg { color: #111; }
.gsoc-youtube svg { color: #E62117; }
.gsoc-x svg { color: #111; }
.gsoc-linkedin svg { color: #0A66C2; }
.gsoc-website svg { color: var(--accent-text, #4A3FD0); }
@media (max-width: 359px) { .gsoc { padding: 0 10px; } .gsoc-t { max-width: 22vw; } }

/* ---- customer gate (inside the v3.2 .ob sheet) ---- */
.ob-gsteps { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ob-gstep {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 10px; align-items: start;
  padding: 14px; border-radius: var(--r-md, 14px); background: var(--surface-sunken, #EFECE6);
}
.ob-gstep > .btn, .ob-gstep > .ob-gblocked, .ob-gstep > .ob-gmanual { grid-column: 1 / -1; }
.ob-gnum {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent, #5146D9); color: var(--on-accent, #fff); font: 700 15px/1 var(--font, system-ui);
}
.ob-gstep.is-done { background: #E8F7EF; }
.ob-gstep.is-done .ob-gnum { background: var(--online, #22B573); }
.ob-gtx { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; min-width: 0; }
.ob-gtx b { font: 600 16px/21px var(--font, system-ui); color: var(--text-primary, #1B1930); }
.ob-ghint { font-size: 14px; line-height: 19px; color: var(--text-secondary, #5A576E); }
.ob-gblocked, .ob-gmanual { display: flex; flex-direction: column; gap: 10px; }
.ob-gblocked .ob-steps, .ob-gmanual .ob-steps { margin: 0; }
.ob-gnote { margin: 12px 0 0; font-size: 14px; line-height: 19px; color: var(--text-secondary, #5A576E); text-align: center; }

/* ---- staff web: social links editor (/staff/my-link) ---- */
.stl-social-rows { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.stl-social-row { display: grid; grid-template-columns: 36px minmax(110px, 150px) 1fr 40px; grid-template-areas: "ic pf url rm" ". err err err"; gap: 8px; align-items: center; }
.stl-social-ic { grid-area: ic; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-softer, #F3F2FD); color: var(--accent-text, #4A3FD0); }
.stl-social-pf { grid-area: pf; }
.stl-social-url { grid-area: url; }
.stl-social-rm { grid-area: rm; width: 40px; height: 40px; }
.stl-social-row .pg-err { grid-area: err; margin: -2px 0 0; }
.stl-social-row .pg-err[hidden] { display: none; }
.stl-social-pf, .stl-social-url { width: 100%; min-width: 0; }
.stl-social-empty { margin: 0; }
@media (max-width: 520px) {
  .stl-social-row { grid-template-columns: 36px 1fr 40px; grid-template-areas: "ic pf rm" "url url url" "err err err"; row-gap: 6px; }
  .stl-social-row + .stl-social-row { padding-top: 10px; border-top: 1px solid var(--divider, #EFEBE4); }
}

/* ---- staff web: call test (profile) ---- */
.stp-ct-result { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.stp-ct-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 19px; }
.stp-ct-line.is-ok .pg-ico { color: var(--online-text, #146B41); }
.stp-ct-line.is-bad .pg-ico { color: var(--danger, #D23838); }
.stp-ct-sum { margin: 4px 0 0; font-weight: 600; }
