/* ============================================================
   chatWS — staff_tools.css
   Staff edit box (profile pen icon), its per-row element boxes,
   and the profile More-tab "Connect" staff tools.
   Layers sit above the profile box (social.css: z-index 6000).
============================================================ */

#staffBox    { z-index: 6500; }
#staffSubBox { z-index: 6600; }
.sb-layer .sb-inner { max-width: 460px; }
.sb-layer .sb-inner.sb-flush { padding: 0; }
.sb-loading { padding: 48px 0; text-align: center; color: #737373; font-size: 22px; }

/* ── Edit menu: hero ──────────────────────────────────────── */
.sb-edit { display: flex; flex-direction: column; }
.sb-hero { position: relative; min-height: 250px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 16px 16px 0 0; }
.sb-hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55)); }
.sb-hero-close {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(0,0,0,.45); color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.sb-hero-close:hover { background: rgba(0,0,0,.7); }
.sb-pill { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(0,0,0,.45); }
.sb-pill button, .sb-avatar-btns button {
    width: 34px; height: 30px; border: none; border-radius: 99px; cursor: pointer;
    background: transparent; color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.sb-pill button:hover, .sb-avatar-btns button:hover { background: rgba(255,255,255,.18); }
.sb-pill-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; }
.sb-hero-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 56px 16px 16px; text-align: center; }
.sb-avatar { position: relative; width: 116px; height: 116px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-avatar-btns { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.sb-avatar-btns button { background: rgba(0,0,0,.5); width: 30px; }
.sb-hero-name { margin-top: 10px; font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); line-height: 1.15; word-break: break-word; }
.sb-hero-sub { margin-top: 3px; font-size: 13px; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* ── Edit menu: rows ──────────────────────────────────────── */
.sb-list { display: flex; flex-direction: column; padding: 6px 14px 14px; }
.sb-row {
    display: flex; align-items: center; gap: 16px; width: 100%;
    padding: 15px 10px; border: none; border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent; color: #e5e5e5; font-size: 15px; font-family: inherit;
    text-align: left; cursor: pointer; border-radius: 8px; transition: background .12s;
}
.sb-row:last-child { border-bottom: none; }
.sb-row:hover { background: rgba(255,255,255,.05); }
.sb-row i { width: 22px; text-align: center; font-size: 17px; color: #d4d4d4; }
.sb-row-danger, .sb-row-danger i { color: #f87171; }

/* ── Action box ───────────────────────────────────────────── */
.sb-box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sb-box-title { font-size: 16px; font-weight: 700; color: #f5f5f5; display: flex; align-items: center; gap: 10px; }
.sb-box-title i { color: #d4b26a; }
.sb-x {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.06); color: #d4d4d4; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.sb-x:hover { background: rgba(255,255,255,.16); color: #fff; }
.sb-label { display: block; margin: 10px 0 6px; font-size: 11px; font-weight: 700; color: #737373; text-transform: uppercase; letter-spacing: .05em; }
.sb-input {
    display: block; width: 100%; box-sizing: border-box; padding: 10px 12px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 9px;
    color: #f5f5f5; font-size: 14px; font-family: inherit; outline: none;
}
.sb-input:focus { border-color: #d4b26a; }
.sb-input option { background: #121212; }
.sb-textarea { resize: vertical; min-height: 90px; }
.sb-color { height: 42px; padding: 4px; cursor: pointer; }
.sb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb-hint { margin: 8px 0 0; font-size: 12px; color: #737373; line-height: 1.5; }
.sb-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: #d4d4d4; cursor: pointer; }
.sb-warn { margin: 0 0 6px; padding: 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: #fecaca; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); }
.sb-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sb-msg { flex: 1 1 100%; min-height: 0; font-size: 13px; }
.sb-msg:empty { display: none; }
.sb-msg.err { color: #f87171; }
.sb-msg.ok  { color: #4ade80; }
.sb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 0 16px; border: none; border-radius: 10px; cursor: pointer;
    font-size: 14px; font-weight: 700; font-family: inherit; transition: filter .12s, background .12s;
}
.sb-btn:disabled { opacity: .6; cursor: default; }
.sb-btn.primary { background: #b8964f; color: #fff; }
.sb-btn.primary:hover { background: #957637; }
.sb-btn.ghost { background: rgba(255,255,255,.07); color: #d4d4d4; border: 1px solid rgba(255,255,255,.12); }
.sb-btn.ghost:hover { background: rgba(255,255,255,.13); }
.sb-btn.danger { background: rgba(248,113,113,.15); color: #f87171; }
.sb-btn.danger:hover { background: rgba(248,113,113,.28); }

.sb-kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; color: #a3a3a3; }
.sb-kv b { color: #e5e5e5; font-weight: 600; }
.sb-ok  { color: #4ade80 !important; }
.sb-bad { color: #f87171 !important; }

.sb-preview { padding: 14px; border-radius: 10px; background: rgba(255,255,255,.04); text-align: center; }
.sb-preview-name { font-size: 20px; font-weight: 800; }
.sb-preview-name.sb-preview-text { font-size: 15px; font-weight: 500; display: inline-block; }
.sb-preview-bubble { display: inline-block; max-width: 100%; padding: 9px 14px; border-radius: 14px; color: #fff; font-size: 14px; background: #b8964f; }

.sb-photo { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sb-photo-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #202020; }
.sb-photo-cv { width: 110px; height: 60px; border-radius: 8px; object-fit: cover; background: #202020; }
.sb-photo-btns { display: flex; gap: 6px; margin-left: auto; }

.sb-checks { display: flex; flex-direction: column; }
.sb-check-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; color: #e5e5e5; cursor: pointer; }
.sb-check-row i { width: 20px; text-align: center; color: #a3a3a3; margin-right: 6px; }
.sb-check-row input { width: 18px; height: 18px; accent-color: #f87171; cursor: pointer; }

.sb-wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.sb-coin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 12px; background: rgba(255,255,255,.04); }
.sb-coin i { font-size: 20px; }
.sb-coin b { font-size: 22px; font-weight: 800; color: #f5f5f5; }
.sb-coin span { font-size: 12px; color: #737373; }
.sb-coin.gold i { color: #eab308; }
.sb-coin.ruby i { color: #ec4899; }

.sb-hist { display: flex; flex-direction: column; }
.sb-hist-row { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: #e5e5e5; line-height: 1.45; word-break: break-word; }
.sb-hist-row i { width: 18px; text-align: center; margin-top: 2px; color: #d4b26a; }
.sb-hist-row small { color: #737373; font-size: 11px; }
.sb-none { padding: 6px 0 2px; font-size: 15px; color: #a08a70; opacity: .85; }

/* ── Whois (matches screenshot: label / muted value / divider) ── */
.sb-whois { display: flex; flex-direction: column; }
.sb-w { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sb-w:last-child { border-bottom: none; }
.sb-w-flex { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sb-w-l { font-size: 15px; font-weight: 700; color: #f5f5f5; }
.sb-w-v { margin-top: 4px; font-size: 15px; color: #b8a58f; }
.sb-break { word-break: break-all; }
.sb-w-search { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; text-decoration: none; }
.sb-w-search { border: none; background: rgba(255,255,255,.06); cursor: pointer; font-family: inherit; }
.sb-w-search:hover { background: rgba(255,255,255,.14); }

/* ── IP lookup box ────────────────────────────────────────── */
.sb-ip-head { display: flex; align-items: center; gap: 10px; }
.sb-ip-addr { flex: 1; font-size: 18px; font-weight: 800; color: #f5f5f5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sb-ip-copy { min-height: 36px; padding: 0 12px; }
.sb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sb-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #d4d4d4; background: rgba(255,255,255,.07); }
.sb-tag.ok   { color: #4ade80; background: rgba(74,222,128,.1); }
.sb-tag.warn { color: #fbbf24; background: rgba(251,191,36,.12); }
.sb-tag.bad  { color: #f87171; background: rgba(248,113,113,.13); }
.sb-iplist { display: flex; flex-direction: column; margin-top: 6px; }
.sb-ipuser { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border: none; border-bottom: 1px solid rgba(255,255,255,.05); background: transparent; color: inherit; text-align: left; cursor: pointer; font-family: inherit; border-radius: 8px; }
.sb-ipuser:last-child { border-bottom: none; }
.sb-ipuser:hover { background: rgba(255,255,255,.05); }
.sb-ipuser img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 38px; }
.sb-ipuser-main { flex: 1; min-width: 0; }
.sb-ipuser-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #f5f5f5; }
.sb-ipuser-sub { margin-top: 2px; font-size: 12px; color: #a3a3a3; line-height: 1.4; }
.sb-ipuser > i { color: #525252; font-size: 12px; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #e5e5e5; font-size: 13px; cursor: pointer; font-family: inherit; }
.sb-chip:hover { background: rgba(255,255,255,.1); }
.sb-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* ── Profile box: mood + More tab Connect ─────────────────── */
.profile-modal-mood { margin-top: 2px; font-size: 12px; color: #a3a3a3; font-style: italic; }
.sb-connect { margin-bottom: 12px; }
.sb-connect-title { margin: 2px 0 4px; text-align: center; font-size: 14px; font-weight: 700; color: #e5e5e5; }
.sb-connect-list { display: flex; flex-direction: column; }
.sb-connect-row {
    display: flex; align-items: center; gap: 16px; width: 100%;
    padding: 14px 10px; border: none; border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent; color: #e5e5e5; font-size: 15px; font-family: inherit;
    text-align: left; cursor: pointer; border-radius: 8px;
}
.sb-connect-row:last-child { border-bottom: none; }
.sb-connect-row:hover { background: rgba(255,255,255,.05); }
.sb-connect-row i { width: 22px; text-align: center; font-size: 17px; color: #d4d4d4; }

@media (max-width: 480px) {
    .sb-layer .sb-inner.sb-flush { border-radius: 14px; }
    .sb-hero { min-height: 230px; border-radius: 14px 14px 0 0; }
    .sb-avatar { width: 104px; height: 104px; }
    .sb-hero-name { font-size: 23px; }
    .sb-photo { flex-wrap: wrap; }
}
