/* ============================================================
   MultiHub — authentic extension panel
   Faithful recreation of the real "Roblox Account Hub" popup
   (accounts pane). Monochrome dark shell, white primary
   buttons, green active state, round real Roblox avatars.
   Scoped to .acc-shell so it never touches the marketing UI.
   ============================================================ */

.acc-shell {
  --acc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Space Grotesk", sans-serif;
  --acc-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  width: 100%;
  padding: 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(28, 28, 32, 0.96) 0%, rgba(12, 12, 14, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--acc-font);
  text-align: left;
}
.acc-shell *, .acc-shell *::before, .acc-shell *::after { box-sizing: border-box; }

/* header */
.acc-header-brand { display: flex; align-items: center; gap: 12px; }
.acc-brand-mark { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.acc-brand-mark img { display: block; width: 30px; height: 30px; object-fit: contain; }
.acc-brand-text { flex: 1; min-width: 0; }
.acc-product-title { font-size: 15px; font-weight: 700; letter-spacing: -0.35px; color: rgba(255, 255, 255, 0.95); line-height: 1.15; }
.acc-product-tag { margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: 0.55px; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); }

.acc-add-btn {
  appearance: none; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: rgba(255, 255, 255, 0.88); font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.acc-add-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.28); background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)); }
.acc-add-btn:disabled { opacity: 0.5; cursor: default; }
.acc-add-btn svg { width: 11px; height: 11px; }

/* status row */
.acc-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 0; }
.acc-status-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.55); }
.acc-status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 2px; vertical-align: middle; }
.acc-status-dot--on { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.55); }
.acc-status-dot--off { background: rgba(255, 255, 255, 0.22); }
.acc-status-pair b { color: rgba(255,255,255,0.92); font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-status-label { margin-right: 4px; }
.acc-status-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.1); margin: 0 4px; }
.acc-device-pill { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; color: rgba(255, 255, 255, 0.42); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); flex-shrink: 0; }

.acc-section-label { font-size: 9px; font-weight: 700; letter-spacing: 0.65px; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); padding: 2px 2px 0; display: flex; align-items: center; gap: 8px; }
.acc-roster-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-family: var(--acc-mono); font-size: 9.5px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }

/* list */
.acc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.acc-card {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.18s ease, background 0.18s ease; position: relative;
}
.acc-card:hover { border-color: rgba(255, 255, 255, 0.12); }
.acc-card.is-signed-in { border-color: rgba(74, 222, 128, 0.45); background: linear-gradient(145deg, rgba(74, 222, 128, 0.08), rgba(255, 255, 255, 0.015)); }
.acc-card.is-selected { border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.acc-card.is-signed-in::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.55); }
.acc-card.is-starting { animation: acc-pulse 0.9s ease infinite; }
@keyframes acc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

.acc-avatar { width: 40px; height: 40px; border-radius: 50%; background: #16161a; border: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-avatar-fallback { font-family: var(--acc-mono); font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }

.acc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.acc-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-presence { flex-shrink: 0; font-size: 8px; font-weight: 700; letter-spacing: 0.55px; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.acc-presence--on { color: #4ade80; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.28); }
.acc-presence--off { color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.acc-presence--starting { color: #fcd34d; background: rgba(252, 211, 77, 0.12); border: 1px solid rgba(252, 211, 77, 0.3); }
.acc-subhint { font-size: 10px; color: rgba(255, 255, 255, 0.38); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.acc-card-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.acc-ib { appearance: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.55); cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.acc-ib:hover { color: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.acc-ib.acc-ib--danger:hover { color: #fda4af; border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.1); }
.acc-ib.is-pressed { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.1); }
.acc-ib svg { width: 12px; height: 12px; }

.acc-empty { text-align: center; padding: 22px 12px 18px; }
.acc-empty-title { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.78); margin-bottom: 4px; }
.acc-empty-text { font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.42); max-width: 260px; margin: 0 auto; }

/* launch all */
.acc-launch-all { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.2); }
.acc-launch-all-text { flex: 1; min-width: 0; }
.acc-launch-all-title { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: -0.2px; }
.acc-launch-all-sub { margin-top: 2px; font-size: 10px; line-height: 1.45; color: rgba(255, 255, 255, 0.4); }

.acc-launch-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.55); background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)); color: #08080c; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; box-shadow: 0 4px 18px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.acc-launch-all-btn { flex-shrink: 0; }
.acc-launch-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.acc-launch-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.acc-launch-btn svg { width: 11px; height: 11px; }

/* footer */
.acc-footer-bar { display: flex; align-items: stretch; gap: 6px; }
.acc-foot-btn { appearance: none; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 8px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.65); font-family: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.acc-foot-btn:hover:not(:disabled) { color: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); }
.acc-foot-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.acc-foot-btn--primary { flex: 1.35; border-color: rgba(255, 255, 255, 0.5); background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)); color: #08080c; box-shadow: 0 2px 12px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.acc-foot-btn--primary:hover:not(:disabled) { color: #08080c; border-color: rgba(255, 255, 255, 0.62); background: linear-gradient(145deg, #fff, rgba(255, 255, 255, 0.88)); }
.acc-foot-btn svg { width: 10px; height: 10px; }

/* log line */
.acc-log { min-height: 1em; font-family: var(--acc-mono); font-size: 10.5px; letter-spacing: 0.1px; text-align: center; padding: 6px 8px; border-radius: 7px; border: 1px solid transparent; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.acc-log:empty { display: none; }
.acc-log.is-info { color: #93c5fd; background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.28); }
.acc-log.is-ok { color: #4ade80; background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.32); }
.acc-log.is-err { color: #fb7185; background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.32); }

/* round real avatars reused in marketing sections */
.rbx-avatar { border-radius: 50%; background: #16161a; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; flex-shrink: 0; }
.rbx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
