/* Social hub */

.soc {
  min-height: calc(100vh - 2.5rem - 58px);
  background:
    radial-gradient(800px 360px at 80% 0%, rgba(124, 58, 237, 0.1), transparent 55%),
    #0a0a0c;
  color: #f4efe6;
  padding: 1rem 1rem 2rem;
  overflow: auto;
}

.soc__inner {
  max-width: 920px;
  margin: 0 auto;
}

.soc-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.soc-head__eye {
  margin: 0;
  color: #7c3aed;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.soc-head h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.soc-head__lead {
  margin: 0;
  color: rgba(247, 241, 230, 0.62);
}

.soc-cloud {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.soc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.soc-tabs__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.soc-tabs__btn.is-on {
  color: #14110a;
  background: linear-gradient(120deg, #a78bfa, #7c3aed);
  border-color: transparent;
}

.soc-notice {
  margin-bottom: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(93, 222, 160, 0.12);
  border: 1px solid rgba(93, 222, 160, 0.28);
}

.soc-panel {
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(14, 14, 18, 0.9);
  padding: 1rem;
  min-height: 360px;
}

.soc-chat__list {
  height: min(52vh, 420px);
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  padding-right: 0.25rem;
  margin-bottom: 0.75rem;
}

.soc-chat__msg {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.soc-chat__msg b {
  color: #a78bfa;
}

.soc-chat__msg time {
  color: rgba(247, 241, 230, 0.4);
  font-size: 0.72rem;
}

.soc-chat__msg--sticker {
  grid-template-columns: auto 1fr auto;
  align-items: start;
}

.soc-chat__msg--sticker span {
  grid-column: 1 / -1;
}

.soc-chat__form,
.soc-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.soc-chat__form input,
.soc-row input {
  flex: 1 1 200px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.soc-list {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.soc-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.soc-actions {
  display: flex;
  gap: 0.35rem;
}

.soc-muted,
.soc-err {
  color: rgba(247, 241, 230, 0.55);
}

.soc-err {
  color: #ff9b9b;
}

.soc-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.soc-card h3 {
  margin: 0 0 0.45rem;
}

.soc-meta {
  margin: 0.75rem 0;
  padding-left: 1.1rem;
  color: rgba(247, 241, 230, 0.7);
}

.soc-friends h3,
.soc-refs h3 {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .soc-head {
    flex-direction: column;
    align-items: start;
  }
  .soc-chat__msg {
    grid-template-columns: 1fr;
  }
}

/* Global floating chat */
.gchat {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  font-family: var(--font-body, Manrope, sans-serif);
}

.gchat[hidden] {
  display: none !important;
}

.gchat__fab {
  appearance: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.45);
  background: linear-gradient(145deg, #2a2416, #12110e);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  font-size: 1.35rem;
}

.gchat__fab i {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.gchat__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 2rem));
  height: min(480px, 70vh);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(10, 10, 14, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.gchat__panel[hidden] {
  display: none !important;
}

.gchat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gchat__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(247, 241, 230, 0.7);
  font-size: 1.2rem;
  cursor: pointer;
}

.gchat__list {
  overflow: auto;
  padding: 0.65rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.gchat__msg {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.15rem;
}

.gchat__msg b {
  color: #a78bfa;
  font-size: 0.78rem;
}

.gchat__msg span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.gchat__msg--sticker span {
  display: block;
}

.gchat__sticker {
  display: inline-block;
  width: 96px;
  height: 96px;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  vertical-align: middle;
}

.gchat__sticker--pick {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: none;
}

.gchat__stickers,
.soc-chat__stickers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  max-height: 170px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.gchat__stickers[hidden],
.soc-chat__stickers[hidden] {
  display: none !important;
}

.gchat__sticker-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.15rem;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  overflow: hidden;
}

.gchat__sticker-btn:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(56, 189, 248, 0.12);
}

.gchat__emoji-btn {
  appearance: none;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

.gchat__emoji-btn.is-on {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(56, 189, 248, 0.15);
}

.gchat__form {
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}

.gchat__form input {
  flex: 1;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  padding: 0.4rem 0.6rem;
  font: inherit;
}

.gchat__hint {
  margin: 0;
  padding: 0 0.7rem 0.55rem;
  color: #ff9b9b;
  font-size: 0.75rem;
}

.cab-soc-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.cab-soc-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cab-social .cab-card {
  margin-bottom: 1rem;
}
