/* Shared Soshix ecosystem platform colors. Homepage feed tabs and Messenger themes both read these. */
:root {
  --soshix-platform-pulse: #f59e0b;
  --soshix-platform-soshix: #22c55e;
  --soshix-platform-aura: #a855f7;
  --soshix-platform-vox: #1d9bf0;
  --soshix-platform-canvas: #ef4444;
  --soshix-platform-flux: #ec4899;
}

/* =========================
   Browser Autofill Fix
========================= */

/* Chrome / Edge / Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0b1020 inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
  caret-color: #e5e7eb;
  transition: background-color 9999s ease-in-out 0s;
}

/* Firefox */
input:-moz-autofill {
  box-shadow: 0 0 0 1000px #0b1020 inset !important;
  -moz-text-fill-color: #e5e7eb !important;
}

.auth-page .site-header {
  display: none;
}

.auth-page {
  padding-top: 0;
}

/* =========================
   Reset & Base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #0e1117;
  color: #e6e6e6;
  padding-top: 61px;
}

/* =========================
   Header
========================= */
.site-header {
  background-color: #121826;
  border-bottom: 1px solid #1f2937;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  width: 100%;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.is-hidden {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.header-logo img {
  display: block;
  width: auto;
  height: 36px;
  border-radius: 999px;
}

.header-search-wrap {
  position: relative;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search i {
  color: #9ca3af;
  font-size: 14px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
}

.header-search input::placeholder {
  color: #9ca3af;
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 9999;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0b1020;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.header-search-item:hover,
.header-search-item.active {
  background: rgba(99, 102, 241, 0.18);
}

.header-search-item img,
.header-search-avatar-fallback {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.header-search-item img {
  object-fit: cover;
}

.header-search-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  font-weight: 800;
}

.header-search-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-search-name strong {
  color: #e5e7eb;
  font-size: 14px;
}

.header-search-name span {
  color: #9ca3af;
  font-size: 12px;
}

@media (max-width: 900px) {
  .header-search {
    min-width: 160px;
  }
}

@media (max-width: 700px) {
  .header-search {
    display: none;
  }
}

/* =========================
   Header Center Navigation
========================= */

.header-center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}

.center-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c7d2fe;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.center-nav-link i,
.center-nav-link .center-nav-logo {
  font-size: 18px;
}

.center-nav-link .center-nav-logo {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.center-nav-link:hover {
  background-color: rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

/* =========================
   Navigation
========================= */
.header-nav a {
  color: #c7d2fe;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #ffffff;
}

/* =========================
   Page Wrapper
========================= */
.page-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =========================
   Auth Pages
========================= */
.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.auth-subtext {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 28px;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #cbd5f5;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background-color: #0b1020;
  color: #e5e7eb;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: #6366f1;
}

/* Button */
.btn-primary {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background-color: #6366f1;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #4f46e5;
}

/* =========================
   Password Enhancements
========================= */
.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  user-select: none;
}

.toggle-password:hover {
  opacity: 1;
}

.error-text {
  display: none;
  color: #f87171;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

/* =========================
   Inline Field Errors
========================= */
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #f87171;
}

.server-error {
  margin-bottom: 16px;
  text-align: center;
}

/* =========================
   Login / Register Messages
========================= */
.success-text {
  color: #4ade80;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

.auth-footer a {
  color: #6366f1;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* =========================
   Home 3-Column Layout
========================= */
.home-layout {
  display: flex;
  height: calc(100vh - 70px);
  width: 100%;
}

/* Shared column styles */
.column {
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: none;
}

/* =========================
   Modern Glass Scrollbars
========================= */
.column::-webkit-scrollbar {
  width: 0;
}

.column:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.6) transparent;
}

.column:hover::-webkit-scrollbar {
  width: 10px;
}

.column:hover::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.column:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.7),
    rgba(79, 70, 229, 0.7)
  );
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.15),
    0 0 8px rgba(99, 102, 241, 0.25);
}

.column:hover::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(129, 140, 248, 0.9),
    rgba(99, 102, 241, 0.9)
  );
}

/* =========================
   Column Widths & Centering
========================= */

.column-left,
.column-right {
  flex: 0 0 20%;
  max-width: 20%;
}

.column-center {
  flex: 0 0 60%;
  max-width: 900px;
  margin: 0 auto;
}

/* Placeholder feed styling */
.feed-item {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

/* =========================
   Left Column Navigation
========================= */

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c7d2fe;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.side-link i {
  width: 22px;
  font-size: 20px;
  text-align: center;
}

.side-link:hover {
  background-color: rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

.side-link.active {
  background-color: rgba(99, 102, 241, 0.18);
  color: #ffffff;
}

.side-nav-divider {
  height: 1px;
  margin: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.side-link[href="/feedback"] i {
  color: #818cf8;
}

.side-link[href="/support"] i {
  color: #38bdf8;
}

/* =========================
   Header Profile Menu
========================= */

.profile-menu {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #c7d2fe;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #6366f1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   PUBLIC PROFILE PAGE AVATAR
========================= */

.profiles-layout .profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;

  /* Neutralize small-avatar styles */
  font-size: 0;
  background-color: transparent;

  display: block;
  margin-bottom: 14px;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  min-width: 140px;
  display: none;
  z-index: 1000;
}

.profile-dropdown a {
  display: block;
  padding: 10px 14px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
}

.profile-dropdown-item {
  display: block;
  width: auto;
  margin-left: 24px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-align: left;
  cursor: pointer;
}

.profile-dropdown a:hover {
  background-color: rgba(99, 102, 241, 0.15);
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus-visible {
  background-color: rgba(99, 102, 241, 0.15);
}

/* Show dropdown when clicked */
.profile-menu:focus-within .profile-dropdown {
  display: block;
}

/* =========================
   Right Column Styling
========================= */

.column-right h4 {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.column-right p {
  font-size: 14px;
  line-height: 1.5;
  color: #d1d5db;
  margin-bottom: 8px;
}

/* Divider between sections */
.column-right hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

/* Echoes list (future messenger) */
.column-right h4 + p {
  margin-top: 6px;
}

.column-right p:hover {
  color: #ffffff;
  cursor: pointer;
}

.profile-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* =========================
   Header Notifications Bell
========================= */

.header-nav {
  display: flex;
  align-items: center;
}

/* Bell link container (same size as avatar) */
.header-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px; /* space before avatar */
  color: #c7d2fe;
  font-size: 20px; /* matches visual weight */
  text-decoration: none;
  position: relative;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.header-icon:hover {
  background-color: rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

/* Echoes & Notifications icons match avatar size */
.header-icon i {
  font-size: 18px;
  line-height: 1;
}

/* Tight spacing between header icons */
.header-nav .header-icon {
  margin-left: 0;
}

/* Notification count badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px #121826;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .column-center {
    flex-basis: 70%;
    max-width: 100%;
  }
}

@media (min-width: 901px) and (max-height: 900px) {
  .home-layout:not(.layout-no-right) .side-nav[aria-label="Primary"] .side-nav-scroll,
  .home-layout:not(.layout-no-right) .side-nav[aria-label="Primary"] .side-nav-scroll:hover {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .home-layout:not(.layout-no-right) .side-nav[aria-label="Primary"] .side-nav-scroll::-webkit-scrollbar,
  .home-layout:not(.layout-no-right) .side-nav[aria-label="Primary"] .side-nav-scroll:hover::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

@media (max-width: 900px) {
  .column-left,
  .column-right {
    display: none;
  }

  .column-center {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Messenger unread badge */
.messenger-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px #121826;
  pointer-events: none;
}

/* =========================
   PUBLIC PROFILES PAGE
========================= */

/* Hide feed side columns ONLY here */
.profiles-layout .column-left,
.profiles-layout .column-right {
  display: none;
}

/* Center content with ~15% margins */
.profiles-layout .column-center {
  width: 100%;
  max-width: 70%; /* 15% left + 15% right */
  margin: 0 auto;
  overflow-y: auto; /* vertical scroll */
  overflow-x: hidden; /* no horizontal scroll */
  padding-bottom: 40px;
}

/* =========================
   PUBLIC PROFILE HEADER
========================= */

.profile-header {
  height: 280px; /* more vertical room */

  background-size: cover;
  background-position: center 25%; /* bias upward */
  background-repeat: no-repeat;

  border-radius: 12px 12px 0 0;

  margin-top: -14px;
  margin-left: -14px;
  margin-right: -14px;
  margin-bottom: 14px;
}

/* =========================
   HEADER LIGHTBOX
========================= */

.profile-header--clickable {
  cursor: pointer;
}

.header-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.header-lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 6px;
}

.header-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;

  padding: 6px 12px;
  border-radius: 50%;
}

.header-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =========================
   PUBLIC PROFILE IDENTITY
========================= */

.profiles-layout .profile-identity {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding-bottom: 4px;
}

/* Name */
.profiles-layout .profile-display-name {
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  line-height: 1.2;
}

.profiles-layout .profile-username {
  margin-top: 3px;
  color: #9ca3af;
  font-size: 0.92rem;
  line-height: 1.25;
}

/* Friend count */
.profiles-layout .profile-friend-count {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #9ca3af;
}

/* =========================
   PUBLIC PROFILE HEADER ROW (FINAL)
========================= */

.profiles-layout .profile-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
}

.profiles-layout .profile-feed-item--no-header .profile-header-row {
  margin-top: 0;
}

/* Avatar */
.profiles-layout .profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Left side: avatar + name */
.profiles-layout .profile-header-left {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

/* Action buttons on the right */
.profiles-layout .profile-header-actions {
  display: flex;
  gap: 10px;
}

/* Base button */
.profiles-layout .profile-btn {
  padding: 10px 16px;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.profiles-layout .profile-btn:visited,
.profiles-layout .profile-btn:hover,
.profiles-layout .profile-btn:focus,
.profiles-layout .profile-btn:active,
.profiles-layout .profile-btn span {
  color: inherit;
  text-decoration: none;
}

/* Primary (Add Friend) */
.profiles-layout .profile-btn-primary {
  background-color: #6366f1;
  color: #ffffff;
}

.profiles-layout .profile-btn-primary:hover {
  background-color: #4f46e5;
}

/* Secondary (Message) */
.profiles-layout .profile-btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profiles-layout .profile-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

/* Button icons */
.profiles-layout .profile-btn i {
  margin-right: 8px;
  font-size: 14px;
  line-height: 1;
}

/* Make anchor buttons look like real buttons */
.profiles-layout .profile-header-actions a.profile-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-more-dropdown {
  position: relative;
  display: inline-block;
}

.profile-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profiles-layout .profile-more-icon-toggle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
}

.profiles-layout .profile-more-icon-toggle i {
  margin-right: 0;
  font-size: 15px;
}

.profile-more-toggle .profile-more-caret {
  margin-right: 0;
  margin-left: 2px;
  font-size: 11px;
}

.profile-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  min-width: 210px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0b1020;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.profile-more-menu.is-block-confirming,
.profile-more-menu.is-reporting {
  min-width: 380px;
}

.profile-more-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.profile-more-menu button:hover,
.profile-more-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.profile-more-menu i {
  width: 16px;
  color: #9ca3af;
}

.profile-more-menu [data-profile-block-open] i,
.profile-more-menu [data-profile-report-open] i {
  color: #f87171;
}

.profile-more-menu.is-block-confirming > button,
.profile-more-menu.is-reporting > button {
  display: none;
}

.profile-block-confirm-panel,
.profile-report-panel {
  display: grid;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: #e5e7eb;
}

.profile-more-menu:not(.is-block-confirming) .profile-block-confirm-panel,
.profile-more-menu:not(.is-reporting) .profile-report-panel {
  display: none;
}

.profile-more-menu.is-block-confirming .profile-block-confirm-panel {
  display: grid;
}

.profile-more-menu.is-reporting .profile-report-panel {
  display: grid;
}

.profile-block-confirm-panel h3,
.profile-report-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fecaca;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.profile-block-confirm-panel h3 i,
.profile-report-panel h3 i {
  width: 16px;
  color: #f87171;
}

.profile-block-confirm-panel p,
.profile-report-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.profile-block-confirm-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.4;
}

.profile-block-status {
  min-height: 18px;
  margin: 0 !important;
  color: #fca5a5 !important;
  font-size: 13px;
  font-weight: 800;
}

.profile-report-reasons {
  display: grid;
  gap: 8px;
  padding: 2px 0;
}

.profile-report-reasons label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.profile-report-reasons input {
  accent-color: #ef4444;
}

.profile-report-details {
  display: grid;
  gap: 6px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 800;
}

.profile-report-details em {
  color: #94a3b8;
  font-style: normal;
  font-weight: 700;
}

.profile-report-details textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(2, 6, 23, 0.62);
  color: #e5e7eb;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.profile-report-details textarea:focus {
  border-color: rgba(248, 113, 113, 0.62);
  outline: none;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.profile-report-status {
  min-height: 18px;
  margin: 0 !important;
  color: #fca5a5 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.profile-report-status.is-success {
  color: #86efac !important;
}

.profile-report-status.is-error {
  color: #fca5a5 !important;
}

.profile-block-confirm-actions,
.profile-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-more-menu .profile-block-confirm-actions button,
.profile-more-menu .profile-report-actions button {
  width: auto;
  min-width: 100px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 800;
  text-align: center;
}

.profile-more-menu .profile-block-cancel,
.profile-more-menu .profile-report-cancel {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.profile-more-menu .profile-block-confirm,
.profile-more-menu .profile-report-submit {
  color: #fff;
  background: #dc2626;
  border-color: rgba(248, 113, 113, 0.45);
}

.profile-more-menu .profile-block-confirm:hover,
.profile-more-menu .profile-block-confirm:focus-visible,
.profile-more-menu .profile-report-submit:hover,
.profile-more-menu .profile-report-submit:focus-visible {
  background: #b91c1c;
}

.profile-more-menu .profile-report-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.profile-action-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  max-width: min(360px, calc(100vw - 36px));
  padding: 11px 14px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.96);
  color: #dcfce7;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.profile-action-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PUBLIC PROFILE DIVIDER
========================= */
.profiles-layout .profile-section-divider {
  border: none;
  height: 1px;
  margin: 20px 0 24px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

/* =========================
   PROFILE TABS
========================= */

.profile-tabs {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Individual tab */
.profile-tab {
  background: none;
  border: none;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
}

/* Hover */
.profile-tab:hover {
  color: #e5e7eb;
}

/* Active tab */
.profile-tab.active {
  color: #6366f1;
}

/* Active underline */
.profile-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background-color: #6366f1;
  border-radius: 3px 3px 0 0;
}

/* =========================
   FRIEND DROPDOWN (PROFILE)
========================= */

.friend-dropdown {
  position: relative;
  display: inline-block;
}

.friend-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 210px;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  z-index: 1100;
}

.friend-menu.is-confirming {
  min-width: 320px;
}

.friend-menu button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: #e5e7eb;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-menu button:hover,
.friend-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.friend-menu i {
  width: 16px;
  color: #9ca3af;
}

.friend-menu .friend-unfriend i {
  color: #f87171;
}

.friend-menu.is-confirming > .friend-unfriend {
  display: none;
}

.friend-remove-confirm {
  display: none;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  color: #e5e7eb;
}

.friend-menu.is-confirming .friend-remove-confirm {
  display: grid;
}

.friend-remove-confirm h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fecaca;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.friend-remove-confirm h3 i {
  width: 16px;
  color: #f87171;
}

.friend-remove-confirm p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.friend-remove-status {
  min-height: 18px;
  color: #fca5a5 !important;
  font-weight: 700;
}

.friend-remove-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.friend-menu .friend-remove-actions button {
  width: auto;
  min-width: 92px;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 800;
  text-align: center;
}

.friend-menu .friend-remove-cancel {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.friend-menu .friend-remove-confirm-btn {
  color: #fff;
  background: #dc2626;
  border-color: rgba(248, 113, 113, 0.45);
}

.friend-menu .friend-remove-confirm-btn:hover,
.friend-menu .friend-remove-confirm-btn:focus-visible {
  background: #b91c1c;
}

.friend-menu .friend-remove-confirm-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

/* =========================
   PROFILE FRIENDS AVATARS
========================= */

.profile-friends-layout .friend-info img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #1f2937;
  display: block;
}

/* Placeholder */
.profile-friends-layout .friend-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
}

/* Align image + name */
.profile-friend-card .friend-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-friends-layout .friend-info,
.profile-friends-layout .friend-info:visited,
.profile-friends-layout .friend-info:hover,
.profile-friends-layout .friend-info:focus,
.profile-friends-layout .friend-info:active {
  color: inherit;
  text-decoration: none;
}

.profile-friends-layout .friend-info:hover .friend-name,
.profile-friends-layout .friend-info:focus-visible .friend-name {
  color: #f3f4f6;
}

.profile-friends-layout .friend-name {
  color: #e5e7eb;
}

.profile-card.friends-card .see-all-friends {
  color: #9ca3af;
  cursor: pointer;
  text-decoration: none;
}

.profile-card.friends-card .see-all-friends:hover,
.profile-card.friends-card .see-all-friends:focus-visible {
  color: #e5e7eb;
  text-decoration: none;
}

.profile-card.friends-card .friend-item-link,
.profile-card.friends-card .friend-item-link:visited,
.profile-card.friends-card .friend-item-link:hover,
.profile-card.friends-card .friend-item-link:focus,
.profile-card.friends-card .friend-item-link:active {
  color: inherit;
  text-decoration: none;
}

.profile-card.friends-card .friend-name {
  color: #e5e7eb;
}

/* =========================
   Echoes (Messenger) Sidebar
========================= */

.echoes-panel {
  position: fixed;
  top: 64px; /* header height */
  right: 12px;

  width: 360px;
  height: calc(100vh - 64px);

  background-color: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px 0 0 12px;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);

  display: none; /* JS controls visibility */
  z-index: 20000;

  overflow: hidden;
}

/* =========================
   Echoes Header
========================= */

.echoes-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.12),
    rgba(99, 102, 241, 0.02)
  );
}

.echoes-header strong {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

/* Back button */
.echoes-back-btn {
  background: none;
  border: none;
  color: #c7d2fe;
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
  align-self: flex-start;
}

.echoes-back-btn:hover {
  color: #ffffff;
}

/* =========================
   Search + Friends Row
========================= */

.echoes-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search input */
.echoes-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;

  background-color: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;

  padding: 8px 12px;
}

.echoes-search i {
  font-size: 14px;
  color: #9ca3af;
}

.echoes-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 14px;
  width: 100%;
}

.echoes-search input::placeholder {
  color: #6b7280;
}

/* Friends button */
.echoes-friends-btn {
  background-color: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.echoes-friends-btn:hover {
  background-color: rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

/* =========================
   Echoes Body
========================= */

.echoes-body {
  padding: 10px 12px;
  height: calc(100% - 96px);
  overflow-y: auto;
}

/* Empty state */
.echoes-empty {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

/* =========================
   Friends / Conversation Rows
========================= */

.echoes-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.echoes-row:hover {
  background-color: rgba(99, 102, 241, 0.12);
}

/* Avatar */
.echoes-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #1f2937;
  flex-shrink: 0;
}

/* Name */
.echoes-name {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

/* =========================
   Scrollbar (Echoes)
========================= */

.echoes-body::-webkit-scrollbar {
  width: 6px;
}

.echoes-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.5);
  border-radius: 999px;
}

.echoes-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--chat-active-platform-color) 12%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--chat-active-platform-color) 7%, transparent), rgba(2, 6, 23, 0.08)) !important;
  transition: background 0.22s ease;
}

.chat-window .chat-header {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--chat-active-platform-color) 30%, transparent), color-mix(in srgb, var(--chat-active-platform-color) 10%, transparent)),
    rgba(15, 23, 42, 0.82) !important;
  border-bottom-color: color-mix(in srgb, var(--chat-active-platform-color) 26%, rgba(255, 255, 255, 0.08)) !important;
  transition:
    background 0.22s ease,
    border-color 0.22s ease;
}

/* Base bubble */
.chat-bubble {
  position: relative;
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Sent by me (RIGHT) */
.chat-bubble.me {
  align-self: flex-end;
  background: #6366f1;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Received (LEFT) */
.chat-bubble.them {
  align-self: flex-start;
  background: #1f2937;
  color: #e5e7eb;
  border-bottom-left-radius: 4px;
}

/* Delete button (hidden by default) */
.chat-delete {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Show delete only on MY messages, on hover */
.chat-bubble.me:hover .chat-delete {
  opacity: 1;
}

.chat-window {
  --chat-active-platform-color: var(--soshix-platform-soshix);
  height: min(680px, 72vh) !important;
}

.chat-window.chat-theme-pulse {
  --chat-active-platform-color: var(--soshix-platform-pulse);
}

.chat-window.chat-theme-soshix {
  --chat-active-platform-color: var(--soshix-platform-soshix);
}

.chat-window.chat-theme-aura {
  --chat-active-platform-color: var(--soshix-platform-aura);
}

.chat-window.chat-theme-vox {
  --chat-active-platform-color: var(--soshix-platform-vox);
}

.chat-window.chat-theme-canvas {
  --chat-active-platform-color: var(--soshix-platform-canvas);
}

.chat-window.chat-theme-flux {
  --chat-active-platform-color: var(--soshix-platform-flux);
}

.chat-window[class*="chat-theme-"] {
  border-color: color-mix(in srgb, var(--chat-active-platform-color) 32%, rgba(255, 255, 255, 0.12)) !important;
  box-shadow:
    0 22px 60px rgba(2, 6, 23, 0.42),
    0 0 0 1px color-mix(in srgb, var(--chat-active-platform-color) 12%, transparent) !important;
}

.chat-window[class*="chat-theme-"] .chat-header {
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--chat-active-platform-color) 30%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--chat-active-platform-color) 34%, transparent), color-mix(in srgb, var(--chat-active-platform-color) 12%, transparent)),
    rgba(15, 23, 42, 0.88) !important;
  border-bottom-color: color-mix(in srgb, var(--chat-active-platform-color) 36%, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--chat-active-platform-color) 14%, transparent);
}

.chat-window[class*="chat-theme-"] .chat-body {
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--chat-active-platform-color) 13%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--chat-active-platform-color) 7%, transparent), rgba(2, 6, 23, 0.08)) !important;
}

.chat-window[class*="chat-theme-"] .chat-input {
  border-top-color: color-mix(in srgb, var(--chat-active-platform-color) 34%, rgba(255, 255, 255, 0.08)) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--chat-active-platform-color) 10%, transparent), rgba(2, 6, 23, 0.22)) !important;
  box-shadow: 0 -10px 24px color-mix(in srgb, var(--chat-active-platform-color) 9%, transparent);
}

.chat-window[class*="chat-theme-"] .chat-input .chat-text {
  border: 1px solid color-mix(in srgb, var(--chat-active-platform-color) 24%, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--chat-active-platform-color) 7%, transparent);
}

.chat-window .chat-input .chat-text {
  scrollbar-width: none;
}

.chat-window .chat-input .chat-text::-webkit-scrollbar {
  display: none;
}

.chat-window[class*="chat-theme-"] .chat-input .chat-text:focus {
  border-color: color-mix(in srgb, var(--chat-active-platform-color) 58%, rgba(255, 255, 255, 0.1)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chat-active-platform-color) 15%, transparent) !important;
}

.chat-window[class*="chat-theme-"] .chat-attach,
.chat-window[class*="chat-theme-"] .chat-emoji,
.chat-window[class*="chat-theme-"] .chat-like {
  color: color-mix(in srgb, var(--chat-active-platform-color) 72%, #ffffff) !important;
}

.chat-window[class*="chat-theme-"] .chat-upload-bar {
  background: linear-gradient(90deg, var(--chat-active-platform-color), color-mix(in srgb, var(--chat-active-platform-color) 58%, #ffffff)) !important;
}

.chat-window[class*="chat-theme-"] .chat-body,
.chat-window[class*="chat-theme-"] .chat-platform-tabs,
.chat-window[class*="chat-theme-"] .emoji-picker {
  scrollbar-width: thin;
  scrollbar-color:
    color-mix(in srgb, var(--chat-active-platform-color) 82%, #ffffff)
    color-mix(in srgb, var(--chat-active-platform-color) 16%, rgba(2, 6, 23, 0.9));
}

.chat-window[class*="chat-theme-"] .chat-body::-webkit-scrollbar,
.chat-window[class*="chat-theme-"] .chat-platform-tabs::-webkit-scrollbar,
.chat-window[class*="chat-theme-"] .emoji-picker::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.chat-window[class*="chat-theme-"] .chat-body::-webkit-scrollbar-track,
.chat-window[class*="chat-theme-"] .chat-platform-tabs::-webkit-scrollbar-track,
.chat-window[class*="chat-theme-"] .emoji-picker::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--chat-active-platform-color) 16%, rgba(2, 6, 23, 0.9));
  border-radius: 999px;
}

.chat-window[class*="chat-theme-"] .chat-body::-webkit-scrollbar-thumb,
.chat-window[class*="chat-theme-"] .chat-platform-tabs::-webkit-scrollbar-thumb,
.chat-window[class*="chat-theme-"] .emoji-picker::-webkit-scrollbar-thumb {
  border: 2px solid color-mix(in srgb, var(--chat-active-platform-color) 12%, rgba(2, 6, 23, 0.94));
  border-radius: 999px;
  background: color-mix(in srgb, var(--chat-active-platform-color) 82%, #ffffff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--chat-active-platform-color) 30%, transparent);
}

.chat-window[class*="chat-theme-"] .chat-body::-webkit-scrollbar-thumb:hover,
.chat-window[class*="chat-theme-"] .chat-platform-tabs::-webkit-scrollbar-thumb:hover,
.chat-window[class*="chat-theme-"] .emoji-picker::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--chat-active-platform-color) 70%, #ffffff);
  box-shadow: 0 0 14px color-mix(in srgb, var(--chat-active-platform-color) 44%, transparent);
}

.chat-window[class*="chat-theme-"] .chat-body::-webkit-scrollbar-thumb:active,
.chat-window[class*="chat-theme-"] .chat-platform-tabs::-webkit-scrollbar-thumb:active,
.chat-window[class*="chat-theme-"] .emoji-picker::-webkit-scrollbar-thumb:active {
  background: var(--chat-active-platform-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--chat-active-platform-color) 58%, transparent);
}

.chat-platform-tabs {
  --chat-platform-color: var(--soshix-platform-soshix);
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.5);
}

.chat-platform-tabs[hidden] {
  display: none !important;
}

.chat-platform-tabs [data-chat-platform-tab] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  min-width: 42px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--chat-platform-color) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--chat-platform-color) 10%, rgba(15, 23, 42, 0.92));
  color: color-mix(in srgb, var(--chat-platform-color) 82%, #ffffff);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--chat-platform-color) 42%, transparent);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.chat-platform-tabs [data-chat-platform-tab]:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--chat-platform-color) 58%, transparent);
  background: color-mix(in srgb, var(--chat-platform-color) 16%, rgba(15, 23, 42, 0.94));
  color: #fff;
  box-shadow:
    inset 0 -2px 0 color-mix(in srgb, var(--chat-platform-color) 62%, transparent),
    0 8px 18px color-mix(in srgb, var(--chat-platform-color) 18%, transparent);
}

.chat-platform-tabs [data-chat-platform-tab].is-active {
  border-color: color-mix(in srgb, var(--chat-platform-color) 52%, rgba(255, 255, 255, 0.18));
  background: var(--chat-platform-color);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 22px color-mix(in srgb, var(--chat-platform-color) 30%, transparent);
}

.chat-platform-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--chat-platform-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--chat-platform-color) 75%, transparent);
}

.chat-platform-tab-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.chat-platform-tab-icon {
  display: block;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--chat-platform-color) 45%, transparent));
}

.chat-platform-tabs [data-chat-platform-tab].is-active .chat-platform-tab-icon {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.chat-platform-tabs [data-chat-platform-tab].is-active .chat-platform-tab-dot {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.chat-platform-presence {
  --chat-presence-platform-color: var(--soshix-platform-soshix);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--chat-presence-platform-color) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--chat-presence-platform-color) 10%, rgba(15, 23, 42, 0.72));
  color: color-mix(in srgb, var(--chat-presence-platform-color) 74%, #ffffff);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.chat-platform-presence::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--chat-presence-platform-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--chat-presence-platform-color) 70%, transparent);
}

.chat-platform-presence-icon {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.chat-platform-presence[hidden] {
  display: none !important;
}

.chat-message-platform {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--chat-platform-color) 76%, #ffffff);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.chat-window-aura .chat-platform-tabs {
  background: color-mix(in srgb, var(--chat-active-platform-color) 10%, rgba(2, 6, 23, 0.5));
  border-bottom-color: color-mix(in srgb, var(--chat-active-platform-color) 24%, rgba(255, 255, 255, 0.08));
}

.chat-window.chat-window-aura {
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--chat-active-platform-color) 24%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(24, 16, 43, 0.98), rgba(11, 16, 32, 0.98)) !important;
  border-color: color-mix(in srgb, var(--chat-active-platform-color) 34%, rgba(255, 255, 255, 0.12)) !important;
  box-shadow:
    0 22px 60px rgba(2, 6, 23, 0.42),
    0 0 0 1px color-mix(in srgb, var(--chat-active-platform-color) 8%, transparent);
}

.chat-window-aura .chat-header {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--chat-active-platform-color) 22%, transparent), color-mix(in srgb, var(--chat-active-platform-color) 10%, transparent)),
    rgba(15, 23, 42, 0.72) !important;
  border-bottom-color: color-mix(in srgb, var(--chat-active-platform-color) 24%, rgba(255, 255, 255, 0.08)) !important;
}

.chat-platform-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 2px;
  color: color-mix(in srgb, var(--chat-active-platform-color) 52%, #ffffff);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.chat-platform-label[hidden] {
  display: none !important;
}

.chat-platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--chat-active-platform-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--chat-active-platform-color) 75%, transparent);
}

.chat-window-aura .chat-online-dot {
  background: var(--chat-active-platform-color) !important;
  border-color: #18102b !important;
}

.chat-window-aura .chat-bubble.me {
  background: linear-gradient(135deg, var(--chat-active-platform-color), color-mix(in srgb, var(--chat-active-platform-color) 62%, #ffffff));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--chat-active-platform-color) 18%, transparent);
}

.chat-window-aura .chat-bubble.them {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid color-mix(in srgb, var(--chat-active-platform-color) 12%, transparent);
}

.chat-window-aura .chat-text {
  background: rgba(2, 6, 23, 0.76) !important;
  border: 1px solid color-mix(in srgb, var(--chat-active-platform-color) 18%, transparent) !important;
}

.chat-bubble .chat-text {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.chat-window-aura .chat-text:focus {
  border-color: color-mix(in srgb, var(--chat-active-platform-color) 48%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chat-active-platform-color) 12%, transparent);
}

.chat-window-aura .chat-upload-bar {
  background: linear-gradient(90deg, var(--chat-active-platform-color), color-mix(in srgb, var(--chat-active-platform-color) 58%, #ffffff)) !important;
}

.chat-window-aura .chat-phone-btn,
.chat-window-aura .chat-video-btn,
.chat-window-aura .chat-attach,
.chat-window-aura .chat-like,
.chat-window-aura .chat-emoji {
  color: color-mix(in srgb, var(--chat-active-platform-color) 52%, #ffffff) !important;
}

.chat-window-aura .chat-close-btn {
  color: color-mix(in srgb, var(--chat-active-platform-color) 36%, #ffffff) !important;
}

.chat-window-aura .emoji-picker {
  border-color: color-mix(in srgb, var(--chat-active-platform-color) 24%, transparent) !important;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.48);
}

.center-nav-link.aura-link .center-nav-logo {
  position: relative;
  top: 4px;
  filter: drop-shadow(0 0 0 rgba(255, 110, 199, 0));
  transition: filter 0.2s ease;
}

.center-nav-link.aura-link:hover .center-nav-logo {
  filter: drop-shadow(0 0 6px rgba(255, 110, 199, 0.6));
}

.center-nav-link.vox-link .center-nav-logo {
  position: relative;
  top: 6px;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 0 rgba(79, 140, 255, 0));
  transition: filter 0.2s ease;
}

.center-nav-link.vox-link:hover .center-nav-logo {
  filter: drop-shadow(0 0 6px rgba(79, 140, 255, 0.6));
}

.center-nav-link.canvas-link .center-nav-logo {
  position: relative;
  top: 5px;
  filter: drop-shadow(0 0 0 rgba(248, 113, 113, 0));
  transition: filter 0.2s ease;
}

.center-nav-link.canvas-link:hover .center-nav-logo {
  filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.6));
}

.center-nav-link.flux-link .center-nav-logo {
  position: relative;
  top: 4px;
  filter: drop-shadow(0 0 0 rgba(250, 204, 21, 0));
  transition: filter 0.2s ease;
}

.center-nav-link.flux-link:hover .center-nav-logo {
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.7));
}

/* =========================
   IMAGE LIGHTBOX
========================= */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.image-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.image-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #e41e3f;
}

/* =========================
   Left Sidebar - Profile Link
   (Match default side-link styling)
========================= */

.side-profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.side-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2937;
  flex-shrink: 0;
}

/* Fallback initial matches avatar size */
.side-profile-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  text-align: center;
}

/* Name should inherit .side-link styles */
.side-profile-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.column-left .side-profile-avatar {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  min-width: 32px;
  min-height: 32px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.column-left .side-profile-fallback {
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.profile-page .column-left img {
  width: 32px !important;
  height: 32px !important;
}

/* =========================
   ALL NOTIFICATIONS STACK
========================= */

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.side-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 10px;
}

.side-nav-footer {
  flex: 0 0 auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;

  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.side-footer-link {
  color: #9ca3af;
  font-size: 12px;
  text-decoration: none !important;
}

.side-footer-link:hover,
.side-footer-link.active {
  color: #e5e7eb;
}

.side-footer-advertising {
  text-align: center;
}

.side-footer-dot {
  color: #6b7280;
  font-size: 12px;
  line-height: 1;
}

.header-notifications {
  position: relative;
}

#notifDropdown {
  position: absolute;
  top: 45px; /* adjust if needed */
  right: 0;
  width: 320px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 10px;
  z-index: 9999;
}

/* =========================
   Soshix Modal (Create Album)
========================= */

.sx-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 9999;
  display: none; /* JS toggles to block */
  padding: 20px;
}

.sx-modal[style*="display: block"] .sx-modal-dialog {
  animation: sxPop 0.14s ease-out;
}

.sx-modal-dialog {
  width: 100%;
  max-width: 520px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes sxPop {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0.7;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.sx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(to bottom, #ffffff, #fbfbfb);
}

.sx-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
}

.sx-modal-title i {
  font-size: 16px;
}

.sx-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sx-modal-close:hover {
  background: #e9eaee;
}

.sx-modal-body {
  padding: 14px;
}

.sx-field {
  margin-bottom: 12px;
}

.sx-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 13px;
}

.sx-input,
.sx-select {
  width: 100%;
  border: 1px solid #d9dce3;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}

.sx-input:focus,
.sx-select:focus {
  border-color: #8aa4ff;
  box-shadow: 0 0 0 4px rgba(138, 164, 255, 0.18);
}

.sx-help {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
}

.sx-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.sx-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.sx-btn-ghost {
  background: #f3f4f6;
}

.sx-btn-ghost:hover {
  background: #e9eaee;
}

.sx-btn-primary {
  background: #2f6bff;
  color: #fff;
}

.sx-btn-primary:hover {
  filter: brightness(0.96);
}

.sx-alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 13px;
}

.sx-alert-danger {
  background: #ffe8e8;
  border: 1px solid #ffb8b8;
}

.sx-alert-success {
  background: #eafff0;
  border: 1px solid #a7f3c1;
}

/* mobile */
@media (max-width: 520px) {
  .sx-modal-dialog {
    margin: 6vh auto;
  }
}

.sx-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.sx-album-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 14px 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.sx-album-icon {
  font-size: 34px;
  margin-bottom: 10px;
  color: #222; /* darker icon */
}

.sx-album-name {
  font-weight: 900;
  font-size: 15px; /* slightly bigger */
  letter-spacing: 0.2px; /* slight pop */
  line-height: 1.2;
  word-break: break-word;
  color: #111; /* darker text */
}

.sx-empty {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f7f9;
  font-weight: 800;
  opacity: 1; /* no fade */
  color: #222; /* readable */
}

/* Groups page - remove right column */
.layout-no-right {
  grid-template-columns: 250px 1fr;
}

/* Let center stretch fully */
.layout-no-right .column-center {
  padding: 20px;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   ACTION BUTTONS
========================= */
.notif-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  padding-left: 46px; /* aligns under text (avatar width + gap) */
}

/* Buttons */
.notif-actions .btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* Accept */
.accept-group {
  background: #2563eb;
  color: #fff;
}

.accept-group:hover {
  background: #1d4ed8;
}

/* Decline */
.decline-group {
  background: #374151;
  color: #e5e7eb;
}

.decline-group:hover {
  background: #4b5563;
}

.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  max-width: 90vw;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.notif-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-row span {
  flex: 1;
  min-width: 0;
}

.notif-text {
  color: #e5e7eb;
  font-size: 14px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* =========================
   NOTIFICATION DROPDOWN ROW
========================= */

.notification-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #1f2937;
}

/* Avatar */
.notification-row img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.friend-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

/* Text container */
.notification-row > div {
  flex: 1;
}

/* Name */
.notification-row strong {
  display: block;
  font-weight: 600;
  color: #e5e7eb;
}

/* Subtext */
.notification-row span {
  font-size: 12px;
  color: #9ca3af;
}

/* =========================
   ACTION BUTTONS
========================= */

.notification-row .btn {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
}

/* Accept */
.notification-row .accept-friend {
  background: #3b82f6;
  color: #fff;
}

.notification-row .accept-friend:hover {
  background: #2563eb;
}

/* Decline */
.notification-row .decline-friend {
  background: #374151;
  color: #e5e7eb;
}

.notification-row .decline-friend:hover {
  background: #4b5563;
}

/* Button container */
.notification-row .notif-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

/* =========================
   SIDEBAR ICON COLORS
========================= */

/* Individual colors */
.side-link[href="/friends"] i {
  color: #3b82f6; /* blue */
}

.side-link[href="/groups"] i {
  color: #22c55e; /* green */
}

.side-link[href="/events"] i {
  color: #f59e0b; /* orange */
}

.side-link[href="/games"] i {
  color: #a855f7; /* purple */
}

.side-link:hover i {
  transform: scale(1.15);
  transition: 0.2s ease;
}
