```css
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #1a1333, #0d0b1a 65%);
  color: #eee;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================= */
/* SOCIAL NAVIGATION */
/* ============================= */

.social-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  width: 100%;
  padding: 12px 16px;

  background: rgba(20, 15, 50, 0.9);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid #7c3aed55;

  box-shadow:
    0 0 20px #7c3aed33;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 8px 13px;

  border: 1px solid transparent;
  border-radius: 10px;

  color: #ccc;
  background: #1f1b3a;

  text-decoration: none;
  font-weight: 600;
  font-size: 14px;

  white-space: nowrap;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.social-nav a:hover {
  color: white;
  background: #7c3aed;
  transform: translateY(-2px);

  box-shadow:
    0 0 15px #a855f7aa;
}

.social-nav a.active {
  color: white;
  background: #7c3aed;

  border-color: #a855f766;

  box-shadow:
    0 0 15px #a855f766;
}

.social-nav a:first-child {
  color: #d8b4fe;
}

.social-nav a:last-child {
  min-width: 42px;
}

/* ============================= */
/* PAGE */
/* ============================= */

.social-page {
  min-height: 100vh;
}

.social-container {
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 35px 0 60px;
}

.social-container h1 {
  margin: 0 0 25px;

  color: #d8b4fe;

  font-size: 30px;
  letter-spacing: 1px;

  text-shadow:
    0 0 15px #7c3aed66;
}

.social-container h2 {
  color: #c084fc;
}

/* ============================= */
/* HUB HEADER */
/* ============================= */

.hub-header {
  margin-bottom: 30px;
}

.hub-label {
  margin: 0 0 8px;

  color: #a855f7;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hub-header h1 {
  margin-bottom: 8px;
}

.hub-header p {
  color: #aaa;
}

/* ============================= */
/* CARDS */
/* ============================= */

.card,
.friend-card,
.notification-card {
  border: 1px solid #7c3aed44;
  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(35, 25, 70, 0.8),
      rgba(18, 14, 35, 0.9)
    );

  box-shadow:
    0 0 20px #7c3aed18;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 15px;
  margin-bottom: 12px;
}

.friend-info {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.friend-info strong {
  color: #eee;
}

.friend-info span,
.friend-info small {
  color: #999;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

button,
.primary-button {
  border: 1px solid #a855f766;
  border-radius: 10px;

  padding: 10px 16px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #6d28d9
    );

  font-weight: 600;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

button:hover:not(:disabled),
.primary-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 0 15px #a855f766;
}

button.secondary,
.secondary-button {
  background: #211b3d;
  border-color: #7c3aed55;
}

button.danger,
.danger-button {
  background: #5b1d38;
  border-color: #f472b655;
}

/* ============================= */
/* INPUTS */
/* ============================= */

input,
textarea,
select {
  width: 100%;

  padding: 11px 13px;

  border: 1px solid #7c3aed55;
  border-radius: 10px;

  outline: none;

  color: white;
  background: #121020;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #777;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #a855f7;

  box-shadow:
    0 0 12px #7c3aed44;
}

/* ============================= */
/* LINKS */
/* ============================= */

.social-home {
  display: inline-block;

  margin-bottom: 20px;
  padding: 9px 14px;

  border: 1px solid #a855f755;
  border-radius: 10px;

  color: #c084fc;
  background: #ffffff08;

  text-decoration: none;
}

.social-home:hover {
  color: white;
  background: #7c3aed55;

  box-shadow:
    0 0 15px #a855f766;
}

/* ============================= */
/* GROUPS */
/* ============================= */

.group-member {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin: 8px 0;
  padding: 10px;

  border: 1px solid #7c3aed33;
  border-radius: 10px;

  background: #ffffff05;
}

.group-member > button:first-child {
  flex: 1;
  text-align: left;

  background: #211b3d;
}

.group-member > button:not(:first-child) {
  padding: 8px 12px;
  font-size: 13px;
}

/* ============================= */
/* CHAT */
/* ============================= */

.chat {
  width: 100%;
}

.chat-messages,
.public-messages {
  min-height: 300px;
  max-height: 550px;

  overflow-y: auto;

  padding: 15px;

  border: 1px solid #7c3aed33;
  border-radius: 12px;

  background: #0b0915;
}

.message {
  width: fit-content;
  max-width: 75%;

  margin: 8px 0;
  padding: 10px 13px;

  border: 1px solid #7c3aed33;
  border-radius: 12px;

  background: #211b3d;
}

.message.own,
.message.mine {
  margin-left: auto;

  background: #5426a3;
}

.message strong {
  display: block;

  margin-bottom: 4px;

  color: #d8b4fe;
}

.message-text {
  overflow-wrap: anywhere;
}

.message small,
.message-time {
  display: block;

  margin-top: 5px;

  color: #aaa;
  font-size: 11px;
}

.message-form,
#messageForm,
#chatForm {
  display: flex;
  gap: 10px;

  margin-top: 12px;
}

.message-form input,
#messageForm input,
#chatForm input {
  flex: 1;
}

.empty-chat,
.empty-state,
.loading {
  color: #888;
  text-align: center;
  padding: 25px;
}

/* ============================= */
/* NOTIFICATIONS */
/* ============================= */

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 15px;
}

.notification-card {
  display: block;

  width: 100%;

  margin-bottom: 10px;
  padding: 16px;

  text-align: left;

  color: #eee;
  background:
    linear-gradient(
      145deg,
      rgba(35, 25, 70, 0.8),
      rgba(18, 14, 35, 0.9)
    );
}

.notification-card:hover {
  background: #30205c;
}

.notification-card.unread {
  border-color: #a855f7aa;

  box-shadow:
    0 0 14px #7c3aed33;
}

.notification-card h2 {
  margin: 0 0 6px;

  color: #d8b4fe;
  font-size: 17px;
}

.notification-card p {
  margin: 0 0 8px;

  color: #bbb;
}

.notification-card small {
  color: #777;
}

.notification-empty {
  padding: 50px 20px;

  border: 1px solid #7c3aed33;
  border-radius: 14px;

  text-align: center;

  background: #ffffff04;
}

.notification-empty h2 {
  color: #d8b4fe;
}

.notification-empty p {
  color: #888;
}

/* ============================= */
/* STATUS */
/* ============================= */

#status,
#inviteStatus {
  min-height: 20px;

  color: #aaa;
}

#status:empty,
#inviteStatus:empty {
  min-height: 0;
}

/* ============================= */
/* HUB GRID */
/* ============================= */

.hub-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(180px, 1fr));

  gap: 14px;

  margin-bottom: 30px;
}

.hub-grid a,
.hub-grid button {
  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  text-decoration: none;
}

/* ============================= */
/* SCROLLBAR */
/* ============================= */

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #0d0b1a;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #5b21b6;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* ============================= */
/* RESPONSIVE NAV */
/* ============================= */

@media (max-width: 800px) {

  .social-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;

    scrollbar-width: none;
  }

  .social-nav::-webkit-scrollbar {
    display: none;
  }

  .social-nav a {
    flex-shrink: 0;
  }

  .social-container {
    width: 92%;
    padding-top: 25px;
  }
}

@media (max-width: 600px) {

  .message {
    max-width: 90%;
  }

  .friend-card {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-header }
    align-items: stretch;
    flex-direction