:root {
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --bg: #03040a;
  --panel: rgba(9, 8, 20, 0.86);
  --panel-2: rgba(20, 15, 39, 0.72);
  --line: rgba(171, 89, 255, 0.32);
  --line-strong: rgba(183, 91, 255, 0.74);
  --text: #f8f6ff;
  --muted: #b7adc8;
  --purple: #9c55ff;
  --purple-2: #6325d7;
  --magenta: #f048ff;
  --orange: #ffad32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 36%, rgba(116, 45, 255, 0.2), transparent 22rem),
    radial-gradient(circle at 80% 18%, rgba(206, 68, 255, 0.14), transparent 20rem),
    linear-gradient(180deg, #02030a 0%, #050612 58%, #02030a 100%);
  color: var(--text);
}

@media (min-width: 761px) {
  body { height: 100vh; overflow: hidden; }
  .hub-page, .hub-frame { height: 100vh; min-height: 0; }
  .hub-content, .hub-right { min-height: 0; overflow-y: auto; }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cosmic-page {
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  position: relative;
}

.cosmic-page::before {
  background-image:
    radial-gradient(circle, rgba(157, 96, 255, 0.75) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px);
  background-position: 8% 14%, 72% 28%;
  background-size: 180px 180px, 260px 260px;
  content: "";
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: fixed;
}

.cosmic-frame {
  background:
    radial-gradient(circle at 50% 30%, rgba(143, 57, 255, 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(6, 7, 16, 0.96), rgba(5, 4, 13, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: clamp(28px, 4vw, 52px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 42px rgba(142, 54, 255, 0.52),
    0 0 110px rgba(90, 31, 255, 0.32);
  margin: 0 auto;
  max-width: 1420px;
  min-height: calc(100vh - clamp(36px, 6vw, 68px));
  padding: clamp(22px, 4vw, 46px) clamp(20px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

.cosmic-topbar {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.cosmic-logo {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 700;
  gap: clamp(10px, 1.6vw, 22px);
  grid-column: 2;
  justify-self: center;
  letter-spacing: 0.14em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
}

.logo-orbit {
  align-items: center;
  border: 5px solid #b56cff;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(178, 88, 255, 0.92), inset 0 0 16px rgba(178, 88, 255, 0.45);
  display: inline-flex;
  height: 0.92em;
  justify-content: center;
  letter-spacing: 0;
  overflow: hidden;
  text-indent: -999px;
  width: 0.92em;
}

.cosmic-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  grid-column: 3;
  justify-self: end;
}

.outline-action,
.solid-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
}

.outline-action {
  border: 1px solid var(--line-strong);
  color: #eadcff;
}

.solid-action {
  background: linear-gradient(180deg, #6d2ee7, #461392);
  border: 1px solid rgba(211, 153, 255, 0.58);
  box-shadow: 0 0 24px rgba(141, 65, 255, 0.42);
}

.solid-action svg {
  height: 22px;
  width: 22px;
}

.hero-orbit {
  margin: 46px auto 0;
  max-width: 860px;
  position: relative;
  text-align: center;
}

.planet-glow {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 87, 255, 0.96), transparent 2.5rem),
    radial-gradient(ellipse at center, rgba(144, 57, 255, 0.78), transparent 34%),
    linear-gradient(90deg, transparent, rgba(122, 68, 255, 0.88), rgba(255, 72, 255, 0.74), rgba(122, 68, 255, 0.88), transparent);
  filter: blur(0.2px);
  height: 128px;
  left: 50%;
  opacity: 0.86;
  pointer-events: none;
  position: absolute;
  top: 132px;
  transform: translateX(-50%);
  width: min(920px, 90vw);
  z-index: -1;
}

.planet-glow::after {
  border-top: 2px solid rgba(162, 84, 255, 0.9);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -14px 28px rgba(137, 55, 255, 0.6);
  content: "";
  inset: 42px 0 auto;
  height: 74px;
  position: absolute;
}

.hero-orbit h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 650;
  line-height: 1.02;
  margin: 0;
}

.hero-orbit h1 span {
  color: var(--purple);
}

.hero-orbit p {
  color: #ddd5ea;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  margin: 16px auto 0;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.search-panel {
  align-items: center;
  background: rgba(8, 7, 17, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 74px auto 0;
  max-width: 800px;
  min-height: 56px;
  padding: 0 18px 0 22px;
}

.search-panel svg {
  color: #d8c8ed;
  height: 24px;
  width: 24px;
}

.search-panel input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-width: 0;
  outline: 0;
}

.search-panel input::placeholder {
  color: rgba(232, 224, 242, 0.68);
}

.search-panel button {
  background: transparent;
  border: 0;
  color: #d8baff;
  cursor: pointer;
  padding: 0;
}

.discovery-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  margin: 18px auto 0;
  max-width: 1260px;
}

.featured-card,
.connect-panel,
.metrics-bar {
  background: rgba(7, 7, 16, 0.72);
  border: 1px solid rgba(152, 120, 195, 0.24);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.featured-card {
  min-width: 0;
  padding: 24px;
}

.post-author {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.avatar {
  border: 1px solid rgba(193, 138, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(121, 45, 255, 0.5);
  display: block;
  height: 56px;
  overflow: hidden;
  width: 56px;
}

.avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-avatar {
  background: linear-gradient(135deg, #180733, #7332c8 48%, #090713);
}

.nebula-avatar,
.luna-avatar,
.orbit-avatar,
.vektor-avatar,
.aurora-avatar,
.pulse-avatar {
  background:
    radial-gradient(circle at 54% 38%, rgba(255, 225, 255, 0.92) 0 7px, transparent 8px),
    radial-gradient(circle at 54% 70%, rgba(8, 4, 18, 0.95) 0 17px, transparent 18px),
    linear-gradient(135deg, #1a0840, #9a39ff 48%, #090813);
}

.orbit-avatar { background: linear-gradient(135deg, #13253d, #7b48ff, #040610); }
.vektor-avatar { background: linear-gradient(135deg, #10051e, #ff3df2, #0a0713); }
.aurora-avatar { background: linear-gradient(135deg, #241a76, #682fff, #080512); }
.pulse-avatar { background: linear-gradient(135deg, #35101c, #8838ff, #090712); }

.author-copy,
.person-copy,
.metrics-bar span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.author-copy strong,
.person-copy strong {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.author-copy strong {
  font-weight: 650;
}

.verified {
  align-items: center;
  background: var(--purple);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 900;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.author-copy small,
.person-copy small,
.person-copy em,
.metrics-bar small {
  color: var(--muted);
}

.person-copy em {
  font-size: 0.86rem;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-author time,
.post-author button {
  color: var(--muted);
}

.post-author button,
.post-stats button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.post-copy {
  font-size: 1rem;
  line-height: 1.45;
  margin: 24px 0 18px;
  max-width: 620px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-image {
  aspect-ratio: 16 / 5.6;
  border: 1px solid rgba(171, 89, 255, 0.24);
  border-radius: 18px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.post-stats {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: clamp(22px, 5vw, 70px);
  margin-top: 20px;
}

.post-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  padding: 24px 8px;
}

.empty-state strong {
  color: var(--text);
}

.search-results {
  background: rgba(7, 7, 16, 0.78);
  border: 1px solid rgba(152, 120, 195, 0.24);
  border-radius: 18px;
  margin: 18px auto 0;
  max-width: 1260px;
  padding: 18px;
}

.search-results header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.search-results h2 {
  font-size: 1.05rem;
  margin: 0;
}

.search-results header a {
  color: #c891ff;
  font-size: 0.86rem;
}

.search-result-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 14px;
}

.search-result-grid article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(152, 120, 195, 0.14);
  border-radius: 12px;
  padding: 12px;
}

.search-result-grid strong,
.search-result-grid small {
  display: block;
}

.search-result-grid small,
.search-result-grid p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 5px 0 0;
}

.post-stats span,
.post-stats button {
  align-items: center;
  color: #e9e3f1;
  display: inline-flex;
  gap: 10px;
}

.post-stats svg {
  height: 25px;
  width: 25px;
}

.post-stats button {
  justify-self: end;
}

.connect-panel {
  padding: 16px;
}

.connect-head {
  align-items: center;
  border-bottom: 1px solid rgba(152, 120, 195, 0.14);
  display: flex;
  justify-content: space-between;
  padding: 0 12px 14px;
}

.connect-head h2 {
  align-items: center;
  display: flex;
  font-size: 1.15rem;
  gap: 10px;
  margin: 0;
}

.connect-head svg {
  color: var(--purple);
  height: 24px;
  width: 24px;
}

.connect-head a {
  color: #c891ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.people-list {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.person-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(152, 120, 195, 0.12);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 8px 10px;
}

.person-row .avatar {
  height: 48px;
  width: 48px;
}

.person-copy {
  gap: 2px;
}

.person-copy strong {
  font-size: 0.91rem;
  font-weight: 650;
}

.person-copy small,
.person-copy em {
  font-size: 0.72rem;
}

.person-row a {
  background: linear-gradient(180deg, #7129e7, #4b1596);
  border: 1px solid rgba(211, 153, 255, 0.36);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(108, 44, 221, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
}

.metrics-bar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px auto 0;
  max-width: 1270px;
  min-height: 116px;
  padding: 18px 44px;
}

.metrics-bar article {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.metrics-bar article + article {
  border-left: 1px solid rgba(152, 120, 195, 0.18);
}

.metrics-bar svg {
  color: var(--purple);
  filter: drop-shadow(0 0 10px rgba(156, 85, 255, 0.68));
  height: 46px;
  width: 46px;
}

.metrics-bar strong {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
}

.accent-metric svg {
  color: var(--orange);
  filter: drop-shadow(0 0 10px rgba(255, 173, 50, 0.58));
}

/* Shared auth pages kept minimal so existing login/register flows still render. */
.auth-shell {
  align-items: center;
  background: var(--bg);
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 0 46px rgba(142, 54, 255, 0.34);
  justify-self: center;
  max-width: 620px;
  padding: clamp(24px, 5vw, 48px);
  width: min(100%, 620px);
}

.auth-brand,
.auth-header {
  text-align: center;
}

.auth-brand strong {
  display: block;
  font-size: 2.6rem;
  letter-spacing: 0.12em;
}

.auth-brand small,
.auth-header p,
.modal-status {
  color: var(--muted);
}

.auth-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 28px 0 10px;
}

.auth-header span {
  color: var(--purple);
}

.auth-form,
.modal-form {
  display: grid;
  gap: 14px;
}

.field-frame {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 56px;
  padding: 0 16px;
}

.field-frame input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-width: 0;
  outline: 0;
}

.auth-submit,
.auth-secondary,
.google-button {
  align-items: center;
  border-radius: 16px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 54px;
}

.auth-submit {
  background: linear-gradient(180deg, #7931f0, #4a1495);
  border: 1px solid var(--line);
  color: #fff;
}

.auth-secondary,
.google-button {
  border: 1px solid var(--line);
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto 1fr;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}

.remember-option {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.auth-options {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.link-button {
  background: transparent;
  border: 0;
  color: #c891ff;
  cursor: pointer;
}

.auth-error,
.auth-success {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none;
}

.coret-modal {
  background: #0b0916;
  border: 1px solid var(--line);
  border-radius: 24px;
  justify-self: center;
  max-width: 500px;
  padding: 28px;
  position: relative;
  width: min(100%, 500px);
}

.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  height: 34px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

@media (max-width: 1040px) {
  .cosmic-topbar {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .cosmic-logo,
  .cosmic-actions {
    grid-column: auto;
    justify-self: center;
  }

  .discovery-grid,
  .metrics-bar {
    grid-template-columns: 1fr;
  }

  .metrics-bar article + article {
    border-left: 0;
    border-top: 1px solid rgba(152, 120, 195, 0.18);
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .cosmic-frame {
    border-radius: 26px;
    padding: 20px 14px;
  }

  .cosmic-actions {
    flex-direction: column;
    width: 100%;
  }

  .outline-action,
  .solid-action,
  .person-row a {
    width: 100%;
  }

  .person-row,
  .post-author {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .person-row a,
  .post-author time,
  .post-author button {
    grid-column: 1 / -1;
  }

  .post-stats {
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Authenticated social application. */
.social-shell {
  margin: 0 auto;
  max-width: 1600px;
  min-height: 100vh;
  padding: 20px;
}

.social-header {
  align-items: center;
  background: rgba(8, 7, 19, 0.94);
  border: 1px solid rgba(160, 96, 255, 0.28);
  border-radius: 14px;
  display: grid;
  gap: 24px;
  grid-template-columns: 180px minmax(240px, 620px) 1fr;
  min-height: 72px;
  padding: 10px 18px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.app-logo {
  color: #fff;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.app-logo span {
  color: #bf79ff;
  text-shadow: 0 0 16px #8f39ff;
}

.app-search {
  align-items: center;
  background: #0c0a16;
  border: 1px solid rgba(163, 106, 242, 0.24);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
}

.app-search svg { color: #af79e7; height: 19px; width: 19px; }
.app-search input { background: transparent; border: 0; color: var(--text); min-width: 0; outline: 0; width: 100%; }

.app-actions { align-items: center; display: flex; gap: 16px; justify-content: flex-end; }
.app-actions a { color: #cda3ff; font-size: 0.9rem; }
.current-user { color: var(--text); font-size: 0.88rem; font-weight: 650; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-actions form { margin: 0; }
.app-actions button { background: transparent; border: 1px solid rgba(182, 121, 255, 0.42); border-radius: 8px; color: #e6d7fb; cursor: pointer; padding: 8px 12px; }

.social-layout { display: grid; gap: 20px; grid-template-columns: 250px minmax(0, 680px) 330px; margin: 22px auto; max-width: 1340px; }
.app-sidebar, .right-sidebar { display: grid; align-content: start; gap: 16px; }
.account-summary, .sidebar-section, .social-panel, .composer, .feed-post, .app-empty { background: rgba(10, 9, 22, 0.8); border: 1px solid rgba(160, 111, 221, 0.2); border-radius: 14px; }

.account-summary { padding: 18px; }
.account-summary strong, .account-summary small { display: block; margin-top: 8px; }
.account-summary small, .account-summary p, .sidebar-empty { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.account-summary p { margin: 10px 0 0; }

.app-avatar { background: linear-gradient(135deg, #1a0c38, #7139c9 50%, #090812); border: 1px solid rgba(195, 146, 255, 0.4); border-radius: 50%; display: block; flex: 0 0 auto; height: 38px; overflow: hidden; width: 38px; }
.app-avatar.large { height: 62px; width: 62px; }
.app-avatar img { display: block; height: 100%; object-fit: cover; width: 100%; }

.app-nav { display: grid; gap: 4px; }
.app-nav a { border-radius: 10px; color: var(--muted); font-weight: 650; padding: 12px 14px; }
.app-nav a:hover, .app-nav a.active { background: rgba(133, 59, 232, 0.16); color: #f1eaff; }
.sidebar-section { padding: 14px; }
.sidebar-section h2, .social-panel h2 { font-size: 0.98rem; margin: 0; }
.chat-preview { align-items: center; display: flex; gap: 10px; margin-top: 14px; }
.chat-preview strong, .chat-preview small { display: block; font-size: 0.8rem; }
.chat-preview small { color: var(--muted); margin-top: 3px; }

.feed-heading { align-items: end; display: flex; justify-content: space-between; margin: 4px 0 14px; }
.feed-heading small { color: #ab6be6; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.feed-heading h1 { font-size: 1.65rem; margin: 4px 0 0; }
.feed-heading a { color: #c697ff; font-size: 0.84rem; }

.composer { align-items: start; display: grid; gap: 12px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
.composer textarea { background: transparent; border: 0; color: var(--text); min-height: 54px; outline: 0; resize: vertical; width: 100%; }
.composer button, .contact-list button, .community-list button, .feed-post footer button { background: #6223c4; border: 1px solid rgba(208, 154, 255, 0.5); border-radius: 9px; color: white; cursor: pointer; font-size: 0.8rem; font-weight: 700; padding: 9px 12px; }

.feed-list { display: grid; gap: 14px; margin-top: 14px; }
.feed-post { padding: 18px; }
.feed-post > header { align-items: center; display: flex; gap: 10px; }
.post-person { display: grid; gap: 3px; min-width: 0; }
.post-person strong { align-items: center; display: flex; gap: 6px; }
.post-person small, .post-community { color: var(--muted); font-size: 0.77rem; }
.post-person i { align-items: center; background: #9b56f0; border-radius: 50%; color: white; display: inline-flex; font-size: 0.56rem; font-style: normal; height: 14px; justify-content: center; width: 14px; }
.post-community { background: rgba(160, 97, 240, 0.13); border-radius: 999px; margin-left: auto; padding: 5px 9px; }
.feed-post > p { color: #f0ecf5; line-height: 1.52; margin: 16px 0; white-space: pre-wrap; }
.feed-image { border: 1px solid rgba(183, 120, 255, 0.25); border-radius: 10px; display: block; max-height: 480px; object-fit: cover; width: 100%; }
.feed-post footer { align-items: center; border-top: 1px solid rgba(180, 129, 233, 0.14); color: var(--muted); display: flex; font-size: 0.78rem; justify-content: space-between; margin-top: 16px; padding-top: 12px; }
.app-empty { color: var(--muted); padding: 28px; text-align: center; }
.app-empty strong { color: var(--text); }

.social-panel { padding: 16px; }
.social-panel > header { border-bottom: 1px solid rgba(180, 129, 233, 0.14); padding-bottom: 12px; }
.community-list, .contact-list { display: grid; gap: 9px; margin-top: 12px; }
.community-list article, .contact-list article { align-items: center; display: grid; gap: 9px; grid-template-columns: auto minmax(0, 1fr) auto; }
.community-list article > span:nth-child(2), .contact-list article > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.community-list strong, .contact-list strong { font-size: 0.86rem; }
.community-list small, .contact-list small { color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-mark { align-items: center; background: rgba(137, 61, 241, 0.18); border-radius: 10px; color: #d6b7ff; display: inline-flex; font-size: 1.1rem; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.community-list form, .contact-list form, .feed-post footer form { margin: 0; }
.community-list button, .contact-list button, .feed-post footer button { background: transparent; color: #d9b8ff; padding: 7px 9px; }

.conversation-messages { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding: 12px 0; }
.conversation-messages p { background: rgba(161, 97, 239, 0.1); border-radius: 9px; color: #eee8f8; font-size: 0.82rem; line-height: 1.4; margin: 0; padding: 9px; }
.conversation-messages p.mine { background: rgba(102, 39, 197, 0.28); }
.conversation-messages strong { color: #cda4ff; display: block; font-size: 0.7rem; margin-bottom: 3px; }
.message-composer { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.message-composer input { background: #0b0915; border: 1px solid rgba(175, 112, 242, 0.3); border-radius: 8px; color: var(--text); min-width: 0; outline: 0; padding: 9px; }
.message-composer button { background: #6223c4; border: 1px solid rgba(208, 154, 255, 0.5); border-radius: 8px; color: white; cursor: pointer; font-weight: 700; padding: 9px 11px; }

.sr-only { height: 1px; margin: -1px; overflow: hidden; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); }

@media (max-width: 1120px) {
  .social-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .right-sidebar { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .social-shell { padding: 10px; }
  .social-header { gap: 12px; grid-template-columns: 1fr auto; padding: 12px; position: static; }
  .app-search { grid-column: 1 / -1; grid-row: 2; }
  .app-actions a, .current-user { display: none; }
  .social-layout, .right-sidebar { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .composer { grid-template-columns: auto minmax(0, 1fr); }
  .composer button { grid-column: 1 / -1; }
}

@media (min-width: 761px) {
  .hub-page { padding: 0; }
  .hub-frame { border: 0; border-radius: 0; box-shadow: none; max-width: none; min-height: 100vh; }
}

/* Advanced server settings */
.settings-form > .server-storage-settings { grid-column: 1 / -1; }
.settings-files label { background: #10111d; border: 1px solid rgba(154,165,192,.16); border-radius: 7px; padding: 12px; }
.settings-files label > small { font-weight: 500; }
.server-image-preview { align-items: center; background: #090a12; border: 1px solid rgba(154,165,192,.2); color: #8f96aa; display: flex; height: 92px; justify-content: center; overflow: hidden; }
.server-image-preview.avatar { border-radius: 50%; height: 72px; width: 72px; }
.server-image-preview.banner { border-radius: 6px; width: 100%; }
.server-image-preview img { height: 100%; object-fit: cover; width: 100%; }
.server-storage-settings { border: 1px solid rgba(70,170,157,.28); border-radius: 7px; display: grid; gap: 12px; padding: 14px; }
.server-storage-settings > header { align-items: center; display: flex; justify-content: space-between; }
.server-storage-settings > header div { display: grid; gap: 3px; }
.server-storage-settings > header strong { font-size: .78rem; }
.server-storage-settings > header b { color: #63d1bd; font-size: .8rem; }
.storage-meter { background: #080a10; border-radius: 4px; height: 8px; overflow: hidden; }
.storage-meter i { background: #4fbda9; display: block; height: 100%; width: min(var(--storage-used),100%); }
.storage-options { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.storage-options label { color: #aeb3c2; display: grid; font-size: .68rem; gap: 5px; }
.storage-options select, .channel-modal select { background: #10111d; border: 1px solid rgba(154,165,192,.24); border-radius: 6px; color: #ececf2; min-height: 38px; padding: 8px 10px; }
.channel-settings-section > header, .role-settings-section > header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.channel-settings-section h3, .role-settings-section h3 { margin: 0; }
.icon-command { font-size: 1rem !important; height: 32px; min-height: 32px !important; padding: 0 !important; width: 32px; }
.role-settings-section > header small { display: block; font-weight: 500; margin-top: 4px; }
.role-list button { align-items: center; background: #10111d; border: 1px solid transparent; border-radius: 6px; color: #ececf2; cursor: pointer; display: flex; gap: 8px; min-height: 42px; padding: 8px; text-align: left; width: 100%; }
.role-list button:hover, .role-list button:focus-visible { border-color: rgba(99,209,189,.55); }
.role-list button img { border-radius: 5px; height: 28px; object-fit: cover; width: 28px; }
.role-list button i { flex: 0 0 10px; }
.role-list button small { margin-left: auto; }
.role-create-form { margin-top: 12px; }
.role-create-form input[type="file"] { padding: 8px; }
.channel-modal, .role-permission-modal { align-items: center; background: rgba(0,0,0,.78); display: grid; inset: 0; justify-items: center; overflow-y: auto; padding: 24px; position: fixed; z-index: 70; }
.channel-modal[hidden], .role-permission-modal[hidden] { display: none; }
.channel-modal > section, .role-permission-modal > section { align-self: center; background: #0c0d18; border: 1px solid rgba(99,209,189,.35); border-radius: 8px; margin: auto; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 20px; width: min(100%,720px); }
.role-permission-modal > section { width: min(100%,560px); }
.channel-modal header, .role-permission-modal header { align-items: center; border-bottom: 1px solid rgba(154,165,192,.14); display: flex; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; }
.channel-modal header small, .role-permission-modal header small { color: #63d1bd; font-size: .62rem; font-weight: 800; }
.channel-modal h2, .role-permission-modal h2 { font-size: 1rem; margin: 3px 0 0; }
.channel-modal header button, .role-permission-modal header button { background: transparent; border: 0; color: #aeb3c2; cursor: pointer; font-size: 1.1rem; }
.channel-modal form { display: grid; gap: 16px; }
.channel-form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.channel-form-grid label { color: #aeb3c2; display: grid; font-size: .69rem; gap: 6px; }
.channel-form-grid label.wide { grid-column: 1 / -1; }
.channel-form-grid input { background: #10111d; border: 1px solid rgba(154,165,192,.24); border-radius: 6px; color: #ececf2; min-height: 38px; padding: 9px 10px; }
.channel-modal fieldset { border: 1px solid rgba(154,165,192,.16); border-radius: 7px; display: grid; gap: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
.channel-modal legend { color: #d9dce5; font-size: .72rem; font-weight: 800; padding: 0 6px; }
.channel-modal fieldset label { align-items: center; color: #aeb3c2; display: flex; font-size: .69rem; gap: 8px; }
.channel-modal footer { display: flex; gap: 8px; justify-content: flex-end; }
.channel-modal footer button { background: #252a3c; border: 0; border-radius: 6px; color: #ececf2; cursor: pointer; min-height: 38px; padding: 0 14px; }
.channel-modal footer button[type="submit"] { background: #347f73; }
.role-permission-modal > section > p { color: #aeb3c2; font-size: .75rem; line-height: 1.5; }
.permission-list { display: grid; gap: 7px; }
.permission-list article { border: 1px solid rgba(154,165,192,.13); border-radius: 6px; display: grid; gap: 3px; padding: 10px 12px 10px 38px; position: relative; }
.permission-list article::before { color: #62697b; content: "×"; font-size: .85rem; left: 14px; position: absolute; top: 12px; }
.permission-list article.is-granted { border-color: color-mix(in srgb,var(--selected-role-color) 48%,transparent); }
.permission-list article.is-granted::before { color: var(--selected-role-color); content: "✓"; }
.permission-list b { font-size: .72rem; }
.permission-list span { color: #8f96a8; font-size: .67rem; line-height: 1.45; }

@media (max-width: 700px) {
  .storage-options, .channel-form-grid, .channel-modal fieldset { grid-template-columns: 1fr; }
  .channel-form-grid label.wide { grid-column: auto; }
  .channel-modal, .role-permission-modal { padding: 12px; }
  .channel-modal > section, .role-permission-modal > section { max-height: calc(100dvh - 24px); padding: 16px; }
}

/* Product completion surfaces */
.product-surface { background: #070811; color: #ececf2; min-height: 100vh; }
.surface-top { align-items: center; border-bottom: 1px solid rgba(154,165,192,.14); display: flex; height: 72px; justify-content: space-between; padding: 0 clamp(18px,4vw,56px); }
.surface-top > a:last-child { color: #aeb3c2; text-decoration: none; }
.settings-shell { margin: 0 auto; max-width: 840px; padding: 36px 20px 80px; }
.settings-shell.wide { max-width: 1080px; }
.settings-shell > header small { color: #63d1bd; font-size: .66rem; font-weight: 800; }
.settings-shell > header h1 { font-size: 1.7rem; margin: 6px 0; }
.settings-shell > header p { color: #aeb3c2; margin: 0 0 28px; }
.settings-form, .blocked-list, .connection-list, .moderation-list { display: grid; gap: 14px; }
.settings-form > label, .settings-form fieldset { display: grid; gap: 7px; }
.settings-form input, .settings-form select { background: #0d0f1b; border: 1px solid rgba(154,165,192,.24); border-radius: 6px; color: #ececf2; min-height: 42px; padding: 8px 10px; }
.settings-form fieldset { border: 1px solid rgba(154,165,192,.18); border-radius: 8px; padding: 16px; }
.settings-form fieldset label { align-items: center; display: flex; gap: 9px; }
.settings-form fieldset input { min-height: auto; }
.settings-form > button, .storage-purchase button { background: #347f73; border: 0; border-radius: 6px; color: #fff; cursor: pointer; min-height: 42px; padding: 0 16px; }
.blocked-list, .connection-list { border-top: 1px solid rgba(154,165,192,.16); margin-top: 34px; padding-top: 24px; }
.blocked-list article, .connection-list article, .moderation-list article { align-items: center; background: #0c0d18; border: 1px solid rgba(154,165,192,.16); border-radius: 8px; display: flex; gap: 12px; padding: 14px; }
.blocked-list article > span:nth-child(2), .connection-list article a { display: flex; flex: 1; gap: 12px; }
.blocked-list small, .connection-list small, .moderation-list small { color: #9da3b3; display: block; }
.surface-notice { background: rgba(99,209,189,.12); border: 1px solid rgba(99,209,189,.28); border-radius: 6px; padding: 12px; }
.story-strip { align-items: start; display: flex; gap: 18px; overflow-x: auto; padding: 18px 2px; scrollbar-width: thin; }
.story-create button, .story-item { align-items: center; color: #c6c9d4; cursor: pointer; display: grid; flex: 0 0 82px; gap: 8px; justify-items: center; text-decoration: none; }
.story-create button { background: transparent; border: 0; font: inherit; padding: 0; }
.story-create .hub-avatar.large, .story-item .hub-avatar.large { border: 2px solid #63d1bd; height: 66px; position: relative; width: 66px; }
.hub-avatar.is-online::after { background: #4ade80; border: 2px solid #0c0d18; border-radius: 50%; bottom: -1px; content: ""; height: 9px; position: absolute; right: -1px; width: 9px; }
.story-item.viewed .hub-avatar { border-color: #505568; }
.story-create .hub-avatar { border-style: dashed; }
.story-create .hub-avatar img { opacity: .38; }
.story-create b { align-items: center; background: #4d9e8e; border: 3px solid #080914; border-radius: 50%; bottom: -5px; box-shadow: 0 0 14px rgba(79,189,169,.46); color: white; display: flex; font-size: 1.15rem; height: 28px; justify-content: center; line-height: 1; position: absolute; right: -5px; width: 28px; }
.story-create small, .story-item small { font-size: .72rem; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-page { align-items: center; background: #05060b; color: white; display: flex; gap: 22px; justify-content: center; min-height: 100vh; padding: 20px; }
.story-stage { background: #0b0c14; border: 1px solid #292c3d; border-radius: 8px; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; height: min(920px,calc(100vh - 40px)); overflow: hidden; position: relative; width: min(540px,100%); }
.story-progress { background: #242635; height: 3px; margin: 10px 14px 0; overflow: hidden; }
.story-progress i { animation: story-progress 7s linear forwards; background: #b968ff; display: block; height: 100%; width: 100%; }
@keyframes story-progress { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.story-header { align-items: center; display: flex; gap: 10px; min-height: 64px; padding: 10px 16px; }
.story-header > span:last-child { display: grid; gap: 2px; min-width: 0; }
.story-header small { color: #9da2b3; }
.story-close { color: white; font-size: 1.8rem; line-height: 1; margin-left: auto; order: 3; text-decoration: none; }
.story-media { align-items: center; background: #020307; display: flex; justify-content: center; min-height: 0; overflow: hidden; position: relative; }
.story-media > img, .story-media > video { height: 100%; object-fit: contain; width: 100%; }
.story-caption { background: rgba(4,5,10,.88); bottom: 14px; left: 50%; margin: 0; max-height: 32%; overflow: auto; padding: 12px 16px; position: absolute; transform: translateX(-50%); width: calc(100% - 28px); }
.story-text-only { font-size: clamp(1.4rem,4vh,2.6rem); line-height: 1.25; max-height: 100%; overflow: auto; padding: 42px; text-align: center; overflow-wrap: anywhere; }
.story-audio { align-items: center; display: grid; gap: 18px; justify-items: center; width: min(420px,90%); }
.story-audio > span { color: #b968ff; font-size: 5rem; }
.story-audio audio { width: 100%; }
.story-nav { align-items: center; background: rgba(10,11,19,.72); border: 1px solid #383b50; border-radius: 50%; color: white; display: flex; font-size: 2rem; height: 44px; justify-content: center; position: absolute; text-decoration: none; top: 50%; transform: translateY(-50%); width: 44px; z-index: 4; }
.story-nav.previous { left: 12px; }
.story-nav.next { right: 12px; }
.story-actions { display: grid; gap: 10px; padding: 12px 14px 14px; }
.story-reactions { display: flex; gap: 8px; justify-content: center; }
.story-reactions form { margin: 0; }
.story-reactions button { background: #121420; border: 1px solid #34374a; border-radius: 18px; color: white; min-height: 34px; padding: 5px 11px; }
.story-reactions button.is-active { background: #452063; border-color: #b968ff; }
.story-reply { display: grid; gap: 8px; grid-template-columns: 1fr auto; }
.story-reply input { background: #10121c; border: 1px solid #34374a; border-radius: 6px; color: white; min-width: 0; padding: 11px 13px; }
.story-reply button { background: #7c2dc2; border: 0; border-radius: 6px; color: white; padding: 0 18px; }
.story-insights { align-self: center; background: #0c0d18; border: 1px solid #292c3d; border-radius: 8px; display: grid; gap: 10px; max-height: min(620px,80vh); overflow: auto; padding: 18px; width: min(320px,28vw); }
.story-insights h2 { margin: 0; }
.story-insights > span { align-items: center; border-top: 1px solid #242636; display: flex; gap: 9px; padding-top: 10px; }
.story-insights .hub-avatar { flex: 0 0 34px; height: 34px; width: 34px; }
.comment-entry { border-top: 1px solid rgba(154,165,192,.13); padding: 10px 0; }
.comment-entry > p { margin: 0 0 6px; }
.comment-reply { border-left: 2px solid #347f73; margin-left: 18px!important; padding-left: 10px; }
.comment-reply-form { display: flex; gap: 6px; margin-left: 18px; }
.comment-actions { margin: 6px 0; }
.comment-actions summary { color: #bda4d8; cursor: pointer; font-size: .7rem; }
.comment-actions form { margin-top: 6px; }
.comment-actions .danger { background: transparent; border: 1px solid rgba(236, 89, 128, .42); color: #ffc1d2; }
.permission-grid { display: grid!important; gap: 7px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.role-editor-list details { border-top: 1px solid rgba(154,165,192,.14); min-width: 0; padding: 10px 0; }
.role-edit-form { display: grid; gap: 10px; margin-top: 10px; min-width: 0; }
.role-edit-form label, .role-edit-form fieldset, .role-edit-form input { box-sizing: border-box; max-width: 100%; min-width: 0; width: 100%; }
.role-edit-form input[type="color"], .role-edit-form input[type="checkbox"] { width: auto; }
.storage-purchase { align-items: end; display: flex; gap: 8px; margin-top: 14px; }
.storage-purchase label { display: grid; flex: 1; gap: 6px; }
.moderation-list article { align-items: stretch; display: grid; }
.moderation-list article header { display: flex; justify-content: space-between; }
.moderation-list blockquote { border-left: 3px solid #a45ef4; color: #c7cad4; margin: 0; padding: 8px 12px; }
.moderation-list form { display: flex; gap: 8px; }
.profile-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.profile-actions a { border: 1px solid rgba(164,94,244,.45); border-radius: 6px; color: #e8d9f4; padding: 10px 14px; text-decoration: none; }
.profile-stats a { color: inherit; text-decoration: none; }
@media (max-width: 640px) { .settings-shell { padding: 24px 12px 60px; } .permission-grid { grid-template-columns: 1fr; } .story-page { padding: 0; } .story-stage { border: 0; border-radius: 0; height: 100vh; } .story-insights { display: none; } }

/* Coret Hub: community-first desktop workspace. */
.hub-page {
  background: #03040a;
  min-height: 100vh;
  padding: 18px;
}

@media (min-width: 761px) {
  .hub-page { padding: 0; }
  .hub-frame { border: 0; border-radius: 0; box-shadow: none; max-width: none; min-height: 100vh; }
}

.hub-frame {
  background: #070812;
  border: 1px solid rgba(154, 74, 255, 0.58);
  border-radius: 28px;
  box-shadow: 0 0 38px rgba(119, 42, 255, 0.34), inset 0 0 54px rgba(80, 24, 142, 0.1);
  display: grid;
  grid-template-columns: 92px 276px minmax(520px, 1fr) 386px;
  margin: 0 auto;
  max-width: 1640px;
  min-height: calc(100vh - 36px);
  overflow: hidden;
}

.hub-rail {
  align-items: center;
  background: #090a16;
  border-right: 1px solid rgba(159, 86, 252, 0.23);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px;
}

.rail-brand,
.rail-community {
  align-items: center;
  background: #151027;
  border: 1px solid rgba(156, 80, 255, 0.26);
  border-radius: 18px;
  color: #d8c2ff;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  transition: background .16s ease, border-radius .16s ease, transform .16s ease;
  width: 46px;
}

.rail-brand {
  background: #150a2f;
  border-color: #a84fff;
  box-shadow: 0 0 22px rgba(153, 60, 255, 0.7), inset 0 0 12px rgba(205, 126, 255, .3);
  color: #fff;
  font-size: 1.4rem;
}

.rail-community:hover,
.rail-community:focus-visible,
.rail-add { background: #6021bd; border-radius: 14px; color: #fff; transform: translateY(-1px); }
.rail-community.muted { color: #84769a; }
.rail-server { align-items: center; color: #cfc5dc; display: grid; gap: 5px; justify-items: center; padding: 3px 0; text-decoration: none; width: 72px; }
.rail-server-image { align-items: center; background: #151027; border: 1px solid rgba(156,80,255,.35); border-radius: 16px; display: flex; height: 48px; justify-content: center; overflow: hidden; transition: border-radius .16s ease, border-color .16s ease, transform .16s ease; width: 48px; }
.rail-server-image img { height: 100%; object-fit: cover; width: 100%; }.rail-server-image b { color: #d8c2ff; font-size: 1rem; }
.rail-server-name { display: block; font-size: .61rem; line-height: 1.15; max-width: 68px; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.rail-server:hover .rail-server-image, .rail-server:focus-visible .rail-server-image, .rail-server.is-active .rail-server-image { border-color: #c27aff; border-radius: 12px; transform: translateY(-1px); }
.rail-server.is-active { color: #fff; }.rail-server.is-active::before { background: #fff; border-radius: 0 4px 4px 0; content: ""; height: 38px; left: 0; position: absolute; width: 3px; }.rail-server { position: relative; }
.rail-divider { background: rgba(185, 131, 255, 0.28); height: 1px; margin: 2px 0; width: 36px; }
.rail-create-server { align-items: center; background: transparent; border: 0; color: #a9d7ca; cursor: pointer; display: grid; gap: 4px; justify-items: center; padding: 2px 0; width: 72px; }
.rail-create-server > span { align-items: center; background: rgba(44, 139, 112, .12); border: 1px dashed rgba(91, 210, 174, .72); border-radius: 16px; display: flex; font-size: 1.45rem; height: 52px; justify-content: center; transition: background .18s ease, border-radius .18s ease, transform .18s ease; width: 52px; }
.rail-create-server small { font-size: .61rem; line-height: 1; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-create-server:hover > span, .rail-create-server:focus-visible > span { background: rgba(44, 139, 112, .28); border-radius: 12px; transform: translateY(-1px); }
.rail-bottom { display: grid; gap: 10px; justify-items: center; margin-top: auto; }
.rail-bottom > a,
.rail-bottom > form button { align-items: center; background: transparent; border: 1px solid rgba(180, 117, 255, .26); border-radius: 50%; color: #b9a3d4; cursor: pointer; display: flex; font-size: 1rem; height: 38px; justify-content: center; width: 38px; }
.rail-bottom form { margin: 0; }

.hub-sidebar {
  background: #0a0b16;
  border-right: 1px solid rgba(159, 86, 252, 0.17);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hub-space { align-items: center; border-bottom: 1px solid rgba(170, 110, 240, .15); display: flex; font-size: .94rem; justify-content: space-between; letter-spacing: .02em; min-height: 82px; padding: 24px 22px; }
.hub-space strong::after { background: #a86af4; border-radius: 50%; content: ""; display: inline-block; height: 7px; margin-left: 7px; vertical-align: 1px; width: 7px; }
.hub-nav { border-bottom: 1px solid rgba(170, 110, 240, .1); display: grid; gap: 6px; padding: 22px 16px; }
.hub-nav p, .direct-section p { color: #8f829f; font-size: .72rem; font-weight: 800; letter-spacing: .06em; margin: 0 0 9px 9px; }
.hub-nav a, .direct-section > a { align-items: center; border-radius: 7px; color: #d0c7da; display: flex; font-size: .91rem; gap: 13px; min-height: 40px; padding: 0 10px; }
.hub-nav button { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #d0c7da; cursor: pointer; display: flex; font-size: .91rem; gap: 13px; min-height: 40px; padding: 0 10px; text-align: left; width: 100%; }
.hub-nav a span { color: #a982df; font-size: 1rem; width: 15px; }
.hub-main-nav .hub-buy-cc { color: #d5f5e9; }
.hub-main-nav .hub-buy-cc span { align-items: center; background: rgba(44, 139, 112, .17); border: 1px solid rgba(91, 210, 174, .48); border-radius: 5px; color: #79dfbf; display: inline-flex; font-size: .56rem; font-weight: 900; height: 19px; justify-content: center; width: 24px; }
.hub-nav a:hover, .hub-nav button:hover { background: rgba(123, 53, 208, .15); color: #fff; }
.hub-nav a.is-active { background: rgba(123,53,208,.28); color: #fff; }
.server-space strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.server-space a { color: #a99bb8; font-size: 1.25rem; }
.server-channels { flex: 1; align-content: start; }.server-channels a span { text-align: center; }
.direct-section { display: grid; gap: 6px; padding: 22px 16px 0; }
.direct-section header { align-items: center; display: flex; justify-content: space-between; }
.direct-section header p { margin-left: 8px; }
.direct-section header a { color: #a997bb; font-size: 1.1rem; padding: 2px 8px; }
.direct-section { min-height: 0; overflow: auto; }
.direct-section > a { gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.direct-section > small { color: #91869e; font-size: .8rem; line-height: 1.5; padding: 0 9px; }
.hub-avatar { background: #271242; border: 1px solid rgba(174, 98, 255, .5); border-radius: 50%; display: inline-block; flex: 0 0 auto; height: 31px; overflow: hidden; width: 31px; }
.hub-avatar.large { height: 45px; width: 45px; }
.hub-avatar img { display: block; height: 100%; object-fit: cover; width: 100%; }
.hub-user { align-items: center; background: #10101d; border-top: 1px solid rgba(170, 110, 240, .14); display: flex; gap: 11px; margin-top: auto; min-height: 76px; padding: 12px 16px; }
.hub-user > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.hub-user strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-user small { color: #9890a4; font-size: .73rem; }
.hub-user { color: inherit; cursor: pointer; }.profile-link-arrow { color: #b9a7d1; font-size: 1.5rem; margin-left: auto; }

.hub-content { background: #080914; min-width: 0; padding: 0 22px 24px; }
.hub-topbar { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 82px; }
.hub-search-shell { max-width: 430px; min-width: 0; position: relative; width: 100%; z-index: 12; }
.hub-search { align-items: center; background: #0a0b16; border: 1px solid rgba(163, 94, 255, .23); border-radius: 12px; display: flex; gap: 10px; height: 42px; max-width: 430px; padding: 0 12px; width: 100%; }
.hub-search span { color: #c1addd; font-size: 1.3rem; }
.hub-search input { background: transparent; border: 0; color: #eee9f5; font-size: .78rem; min-width: 0; outline: 0; width: 100%; }
.hub-search kbd { color: #786d8c; font-size: .68rem; white-space: nowrap; }
.hub-search:focus-within { border-color: rgba(197, 124, 255, .68); box-shadow: 0 0 0 3px rgba(126, 54, 210, .12); }
.hub-search-results { background: #0d0e1a; border: 1px solid rgba(183, 111, 255, .38); border-radius: 10px; box-shadow: 0 18px 48px rgba(0, 0, 0, .48); left: 0; max-height: min(560px, calc(100vh - 112px)); overflow-y: auto; padding: 8px; position: absolute; right: 0; top: calc(100% + 8px); }
.hub-search-results[hidden] { display: none; }
.search-result-group { display: grid; gap: 2px; padding: 6px 0; }
.search-result-group + .search-result-group { border-top: 1px solid rgba(169, 111, 230, .14); }
.search-result-group h2 { color: #8f829f; font-size: .62rem; letter-spacing: .06em; margin: 2px 8px 6px; text-transform: uppercase; }
.search-result-item { align-items: center; border-radius: 7px; color: #eee9f5; display: grid; gap: 10px; grid-template-columns: auto minmax(0, 1fr); min-height: 54px; padding: 7px 8px; }
.search-result-item:hover, .search-result-item.is-active { background: rgba(116, 47, 202, .24); }
.search-result-avatar { align-items: center; background: #21143a; border: 1px solid rgba(183, 111, 255, .34); border-radius: 10px; color: #d8b6ff; display: flex; height: 38px; justify-content: center; overflow: hidden; width: 38px; }
.search-result-avatar img { height: 100%; object-fit: cover; width: 100%; }
.search-result-item > span:last-child { display: grid; gap: 3px; min-width: 0; }
.search-result-item strong, .search-result-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item strong { font-size: .76rem; }
.search-result-item small { color: #9d92a9; font-size: .66rem; }
.search-result-status { color: #9d92a9; font-size: .74rem; line-height: 1.45; margin: 0; padding: 16px 12px; text-align: center; }
.hub-logo { color: #f8f5fc; font-size: 1.75rem; font-weight: 400; letter-spacing: .38em; margin-right: -.38em; text-shadow: 0 0 12px rgba(255,255,255,.24); }
.hub-logo span { color: #d194ff; text-shadow: 0 0 16px #a431ff; }
.hub-actions { align-items: center; display: flex; font-size: .74rem; gap: 12px; justify-content: flex-end; }
.hub-actions span { color: #bcb2ca; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-outline { border: 1px solid #7535c5; border-radius: 999px; color: #f0e9fb; padding: 9px 18px; }

.hub-hero { background: #080915 url('/static/img/coret-portal-city.png') center 52% / cover no-repeat; border: 1px solid rgba(163, 93, 255, .24); border-radius: 18px; min-height: 258px; overflow: hidden; position: relative; }
.server-hero { align-items: center; background: linear-gradient(135deg, rgba(55,22,99,.95), rgba(9,10,22,.98)); border: 1px solid rgba(172,99,255,.3); border-radius: 10px; display: flex; gap: 20px; margin-top: 18px; min-height: 176px; overflow: hidden; padding: 28px; position: relative; }
.server-hero::after { background: linear-gradient(90deg, transparent, rgba(145,64,240,.12)); content: ""; inset: 0; pointer-events: none; position: absolute; }
.server-hero-image { align-items: center; background: #171027; border: 2px solid rgba(205,141,255,.55); border-radius: 18px; color: #e7d7ff; display: flex; flex: 0 0 auto; font-size: 2rem; font-weight: 800; height: 96px; justify-content: center; overflow: hidden; width: 96px; z-index: 1; }.server-hero-image img { height: 100%; object-fit: cover; width: 100%; }
.server-hero > div { min-width: 0; position: relative; z-index: 1; }.server-hero small { color: #b989ec; font-size: .66rem; font-weight: 800; }.server-hero h1 { font-size: 1.7rem; margin: 5px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.server-hero p { color: #beb3c9; font-size: .8rem; line-height: 1.45; margin: 0 0 9px; max-width: 620px; }.server-hero > div > span { color: #9f91ad; font-size: .7rem; }
.server-channel-notice { background: rgba(92,48,140,.16); border: 1px solid rgba(180,112,245,.24); border-radius: 8px; color: #bfb2cb; font-size: .78rem; padding: 14px; }
.server-tabs { border-bottom: 1px solid rgba(184,111,255,.17); display: flex; gap: 4px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }.server-tabs::-webkit-scrollbar { display: none; }.server-tabs a { border-radius: 7px; color: #a99db5; flex: 0 0 auto; font-size: .76rem; padding: 9px 12px; }.server-tabs a:hover, .server-tabs a.is-active { background: rgba(104,40,190,.25); color: #fff; }
.server-overview { background: #0c0d18; border: 1px solid rgba(164,94,244,.2); border-radius: 8px; display: grid; gap: 7px; padding: 20px; }.server-overview > small { color: #a966ed; font-size: .64rem; font-weight: 800; }.server-overview h2 { font-size: 1.05rem; margin: 0; }.server-overview p { color: #afa4b8; font-size: .78rem; line-height: 1.5; margin: 0; }.server-overview dl { display: flex; gap: 10px; margin: 8px 0 0; }.server-overview dl div { background: #11101c; border-radius: 7px; min-width: 100px; padding: 9px 11px; }.server-overview dt { color: #8f849b; font-size: .62rem; }.server-overview dd { color: #e8dff1; font-size: .78rem; margin: 3px 0 0; }
.server-member-list { display: grid; gap: 6px; }.server-member-list > a { align-items: center; background: #0c0d18; border: 1px solid rgba(164,94,244,.14); border-radius: 8px; display: grid; gap: 10px; grid-template-columns: auto minmax(0,1fr) auto; padding: 10px 12px; }.server-member-list > a > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }.server-member-list strong { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.server-member-list small { color: #94899f; font-size: .68rem; }.server-member-list b { color: #bf8ff1; font-size: .64rem; }
.rail-unread { align-items: center; background: #ef5b78; border: 2px solid #080914; border-radius: 10px; color: #fff; display: flex; font-size: .58rem; font-weight: 800; height: 18px; justify-content: center; min-width: 18px; padding: 0 4px; position: absolute; right: 4px; top: 0; }
.server-channels a { min-width: 0; }.server-channels a b { font-size: inherit; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.server-channels a em, .server-tabs a b, .server-channels a > em { align-items: center; background: #ef5b78; border-radius: 9px; color: #fff; display: inline-flex; font-size: .58rem; font-style: normal; font-weight: 800; height: 18px; justify-content: center; margin-left: auto; min-width: 18px; padding: 0 5px; }
.server-hero.has-banner { background-image: linear-gradient(90deg, rgba(8,9,20,.9), rgba(8,9,20,.58)), var(--server-banner); background-position: center; background-size: cover; }
.new-message-notice { background: #276bdf; border: 0; border-radius: 7px; color: #fff; cursor: pointer; font-size: .75rem; font-weight: 700; margin: 12px auto 0; min-height: 36px; padding: 0 14px; position: sticky; top: 8px; z-index: 6; }
.composer-reply { align-items: center; background: #171525; border-left: 3px solid #7d8cff; color: #a9a7b8; display: flex; font-size: .7rem; grid-column: 2 / -1; justify-content: space-between; padding: 7px 9px; }.composer-reply a { color: #d9d8e2; font-size: 1rem; }
.channel-directory { display: grid; gap: 7px; grid-template-columns: repeat(2,minmax(0,1fr)); }.channel-directory a { align-items: center; background: #0c0d18; border: 1px solid rgba(154,165,192,.16); border-radius: 7px; color: #ececf2; display: grid; gap: 3px 9px; grid-template-columns: 28px minmax(0,1fr); padding: 12px; }.channel-directory a > span { color: #9ca8c8; font-size: 1.05rem; grid-row: 1 / 3; text-align: center; }.channel-directory strong { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.channel-directory small { color: #858a9b; font-size: .66rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-rules { border-top: 1px solid rgba(154,165,192,.14); margin-top: 10px; padding-top: 14px; }.server-rules strong { color: #dfe2eb; font-size: .73rem; }.server-rules p { margin-top: 7px; overflow-wrap: anywhere; }
.server-member-list > article { align-items: center; background: #0c0d18; border: 1px solid rgba(154,165,192,.14); border-radius: 7px; display: grid; gap: 10px; grid-template-columns: minmax(180px,1fr) auto auto; padding: 10px 12px; }.server-member-list > article > a { align-items: center; color: inherit; display: flex; gap: 10px; min-width: 0; }.server-member-list > article > a > span:last-child { display: grid; min-width: 0; }.server-member-list > article > b { color: var(--role-color,#b989ec); font-size: .67rem; white-space: nowrap; }.server-member-list form { align-items: center; display: flex; gap: 6px; margin: 0; }.server-member-list select, .server-member-list input { background: #10111d; border: 1px solid rgba(154,165,192,.24); border-radius: 6px; color: #ececf2; font-size: .68rem; min-height: 34px; padding: 0 8px; }.server-member-list button, .server-settings button { background: #3e4a72; border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-size: .67rem; min-height: 34px; padding: 0 10px; }.member-actions { grid-column: 1 / -1; justify-content: flex-end; }.member-actions input { margin-right: auto; min-width: 180px; }.danger { background: #8d3046 !important; }
.server-audit, .server-settings { background: #0c0d18; border: 1px solid rgba(154,165,192,.17); border-radius: 8px; padding: 20px; }.server-audit > header, .server-settings > header { border-bottom: 1px solid rgba(154,165,192,.13); margin-bottom: 15px; padding-bottom: 12px; }.server-audit small, .server-settings small { color: #9ca8c8; font-size: .63rem; font-weight: 800; }.server-audit h2, .server-settings h2 { font-size: 1.03rem; margin: 4px 0 0; }.server-audit > article { align-items: center; border-bottom: 1px solid rgba(154,165,192,.1); display: grid; gap: 4px 12px; grid-template-columns: minmax(130px,.6fr) minmax(160px,1fr) auto; padding: 11px 2px; }.server-audit > article strong { font-size: .73rem; }.server-audit > article span, .server-audit > article p, .server-audit > article time { color: #9298aa; font-size: .67rem; margin: 0; }.server-audit > article p { grid-column: 2; }.server-audit > article time { grid-column: 3; grid-row: 1; }
.settings-form, .compact-form { display: grid; gap: 10px; }.settings-form { grid-template-columns: repeat(2,minmax(0,1fr)); }.settings-form > label, .compact-form > label { color: #aeb3c2; display: grid; font-size: .68rem; gap: 5px; }.settings-form > label:nth-child(2), .settings-form > label:nth-child(4), .settings-form > .settings-files, .settings-form > .community-private, .settings-form > button { grid-column: 1 / -1; }.settings-form input, .settings-form textarea, .compact-form input, .compact-form select { background: #10111d; border: 1px solid rgba(154,165,192,.24); border-radius: 6px; color: #ececf2; font: inherit; min-height: 38px; padding: 9px 10px; }.settings-form textarea { min-height: 82px; resize: vertical; }.settings-files { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }.settings-files label { color: #aeb3c2; display: grid; font-size: .68rem; gap: 5px; }.settings-grid { border-top: 1px solid rgba(154,165,192,.14); display: grid; gap: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 22px; padding-top: 20px; }.settings-grid > section:last-child { grid-column: 1 / -1; }.settings-grid h3 { font-size: .8rem; margin: 0 0 10px; }.settings-list, .role-list, .invite-list { display: grid; gap: 5px; margin-bottom: 12px; }.settings-list article { align-items: center; background: #10111d; border-radius: 6px; display: flex; gap: 6px; padding: 7px 8px; }.settings-list article > span { display: grid; margin-right: auto; min-width: 0; }.settings-list strong { font-size: .69rem; }.settings-list small, .role-list small, .invite-list small { color: #858a9b; font-size: .62rem; }.settings-list form { display: flex; gap: 4px; margin: 0; }.settings-list button { height: 30px; min-height: 30px; padding: 0 8px; }.compact-form { border-top: 1px solid rgba(154,165,192,.1); padding-top: 11px; }.role-list span, .invite-list span { align-items: center; background: #10111d; border-radius: 6px; display: flex; gap: 8px; padding: 8px; }.role-list i { background: var(--role-color); border-radius: 50%; height: 10px; width: 10px; }.role-list small, .invite-list small { margin-left: auto; }.invite-created { align-items: center; background: #111827; border: 1px solid #31578f; border-radius: 6px; display: flex; font-size: .7rem; gap: 8px; justify-content: space-between; padding: 8px; }.invite-list code { color: #c7d2fe; font-size: .66rem; }
.settings-form > label { grid-column: 1 / -1; }
.post-pinned { background: rgba(39,107,223,.2); border: 1px solid rgba(86,142,235,.35); border-radius: 5px; color: #9fc1ff; font-size: .6rem; padding: 4px 6px; }.hub-page[data-community-id] .hub-post { border-radius: 8px; }.hub-post.is-pinned { border-color: rgba(86,142,235,.42); }.post-reply-context { border-left: 2px solid #57627c; color: #9fa5b5; display: grid; font-size: .68rem; gap: 2px; margin: 11px 0 0; padding: 4px 9px; }.post-reply-context strong { color: #cdd2df; font-size: .68rem; }.post-reply-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.post-edit-form { display: grid; gap: 7px; grid-template-columns: minmax(0,1fr) auto auto; margin-top: 11px; }.post-edit-form textarea { background: #10111d; border: 1px solid #46506a; border-radius: 6px; color: #f3f4f7; min-height: 72px; padding: 9px; resize: vertical; }.post-edit-form button, .post-edit-form a { align-items: center; align-self: end; background: #3e4a72; border: 0; border-radius: 6px; color: #fff; display: flex; font-size: .68rem; justify-content: center; min-height: 35px; padding: 0 10px; }
.invite-page { align-items: center; background: #080914; display: flex; flex-direction: column; gap: 32px; justify-content: center; min-height: 100vh; padding: 24px; }.invite-page > section { border: 1px solid rgba(154,165,192,.24); border-radius: 8px; max-width: 520px; padding: 32px; text-align: center; width: 100%; }.invite-page small { color: #9ca8c8; font-size: .65rem; font-weight: 800; }.invite-page h1 { font-size: 1.8rem; margin: 8px 0; }.invite-page p { color: #aeb3c2; line-height: 1.55; }.invite-page form { margin: 20px 0 12px; }.invite-page button { background: #5263a8; border: 0; border-radius: 7px; color: #fff; cursor: pointer; font-weight: 700; min-height: 42px; padding: 0 18px; }.invite-page section > a { color: #aeb8dc; font-size: .73rem; }
.hub-hero::before { background: linear-gradient(180deg, rgba(5, 5, 13, .64), rgba(8, 6, 17, .46) 52%, rgba(5, 6, 17, .9)); content: ""; inset: 0; position: absolute; }
.hero-stars { background-image: radial-gradient(circle, rgba(222, 189, 255, .7) 0 1px, transparent 1.2px); background-size: 62px 62px; inset: 0; opacity: .45; position: absolute; }
.hero-copy { left: 0; margin: auto; position: absolute; right: 0; text-align: center; top: 56px; z-index: 1; }
.hero-spark { color: #db9cff; font-size: 1.65rem; text-shadow: 0 0 16px #b65dff; }
.hero-copy h1 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); letter-spacing: 0; margin: 9px 0 8px; }
.hero-copy h1 em { color: #ad64fa; font-style: normal; }
.hero-copy p { color: #e3dcea; font-size: .85rem; line-height: 1.45; margin: 0; }
.hero-points { align-items: center; bottom: 14px; display: flex; gap: 7px; justify-content: center; left: 12px; list-style: none; margin: 0; padding: 0; position: absolute; right: 12px; z-index: 1; }
.hero-points li { background: rgba(10, 8, 24, .75); border: 1px solid rgba(156, 85, 242, .24); border-radius: 999px; color: #dbd1e9; font-size: .67rem; padding: 9px 13px; white-space: nowrap; }

.hub-composer { align-items: center; background: #0e0e19; border: 1px solid rgba(161, 93, 245, .22); border-radius: 12px; display: grid; gap: 13px; grid-template-columns: auto minmax(0, 1fr) auto auto; margin-top: 16px; min-height: 68px; padding: 12px 14px; }
.hub-composer textarea { background: transparent; border: 0; color: #f4effa; font-size: .92rem; min-height: 38px; outline: 0; padding: 8px 0; resize: vertical; width: 100%; }
.hub-composer button, .right-panel button, .chat-panel form button { background: #5720b3; border: 1px solid rgba(203, 141, 255, .48); border-radius: 8px; color: white; cursor: pointer; font-size: .78rem; font-weight: 700; min-height: 40px; padding: 9px 15px; }
.hub-composer button[type="submit"]:disabled { background: #24202d; border-color: rgba(185, 160, 212, .16); color: #847a91; cursor: not-allowed; }
.hub-composer .composer-add { background: transparent; border-color: rgba(196, 132, 255, .45); color: #d4adff; font-size: 1.15rem; line-height: 1; padding: 6px 10px; }
.composer-attachment { background: #171129; border: 1px solid rgba(180, 112, 247, .28); border-radius: 8px; color: #d9c9eb; font-size: .72rem; grid-column: 2 / -1; padding: 8px 10px; }
.upload-error { background: rgba(160, 43, 77, .16); border: 1px solid rgba(243, 92, 135, .42); border-radius: 8px; color: #ffd6e1; font-size: .77rem; margin: 12px 0 0; padding: 9px 12px; }
.community-success { background: rgba(47, 148, 101, .16); border: 1px solid rgba(95, 220, 161, .42); border-radius: 8px; color: #c8f8dc; font-size: .77rem; margin: 12px 0 0; padding: 9px 12px; }
.hub-feed { display: grid; gap: 16px; margin-top: 16px; }
.feed-tabs { align-items: center; border-bottom: 1px solid rgba(161, 93, 245, .2); display: flex; gap: 26px; padding: 0 6px; }
.feed-tabs a { border-bottom: 2px solid transparent; color: #a99db7; font-size: .9rem; font-weight: 700; padding: 12px 3px; text-decoration: none; }
.feed-tabs a:hover, .feed-tabs a.is-active { border-bottom-color: #a454ef; color: #f4edff; }
.feed-load-more { align-items: center; background: #151124; border: 1px solid rgba(183,112,255,.35); border-radius: 9px; color: #ddc4ff; display: inline-flex; font-size: .84rem; font-weight: 700; justify-content: center; justify-self: start; min-height: 42px; padding: 0 15px; text-decoration: none; }
.feed-load-more:hover { background: rgba(98,35,186,.3); border-color: rgba(205,139,255,.72); color: #fff; }
.hub-post, .hub-empty { background: #0b0c17; border: 1px solid rgba(161, 93, 245, .18); border-radius: 12px; min-width: 0; padding: 21px; }
.hub-post > header { align-items: center; display: flex; gap: 10px; }
.hub-post > header > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.hub-post strong, .connect-panel strong { align-items: center; display: flex; font-size: .86rem; gap: 6px; }
.hub-post strong i, .connect-panel i { align-items: center; background: #a454ef; border-radius: 50%; color: white; display: inline-flex; font-size: .55rem; font-style: normal; height: 14px; justify-content: center; width: 14px; }
.hub-post small { color: #8d849d; font-size: .7rem; }
.hub-post > header form { margin-left: auto; }
.hub-post > header form button { background: transparent; border: 0; color: #aaa0b9; cursor: pointer; letter-spacing: 2px; padding: 5px; }
.post-menu { margin-left: auto; position: relative; }.post-menu summary { align-items: center; background: rgba(89,32,179,.12); border: 1px solid rgba(188,115,255,.3); border-radius: 9px; color: #e5d7f6; cursor: pointer; display: flex; font-size: 1.08rem; height: 42px; justify-content: center; letter-spacing: 2px; list-style: none; padding: 0; width: 42px; }.post-menu summary::-webkit-details-marker { display: none; }.post-menu summary:hover, .post-menu[open] summary { background: rgba(105,38,193,.34); border-color: rgba(205,139,255,.7); }.post-menu div { background: #171025; border: 1px solid rgba(188,115,255,.5); border-radius: 10px; box-shadow: 0 14px 32px rgba(0,0,0,.42); display: grid; gap: 5px; padding: 8px; position: absolute; right: 0; top: 48px; width: 172px; z-index: 10; }.post-menu a, .post-menu button { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #eadcf8; cursor: pointer; display: flex; font-size: .84rem; min-height: 40px; padding: 8px 10px; text-align: left; text-decoration: none; width: 100%; }.post-menu a:hover, .post-menu button:hover { background: rgba(127,56,213,.28); }.post-menu form { margin: 0; }.post-menu .post-menu-delete, .post-menu .post-menu-report { color: #ffabc4; }
.channel-pill { background: #19152b; border-radius: 7px; color: #ad9bbc; font-size: .68rem; margin-left: auto; padding: 6px 9px; }
.hub-post > p { color: #ded8e6; font-size: .9rem; line-height: 1.6; margin: 16px 0; overflow-wrap: anywhere; word-break: break-word; }
.hub-post-image { border: 1px solid rgba(177, 101, 255, .24); border-radius: 10px; display: block; height: auto; max-height: 290px; object-fit: cover; width: 100%; }
.hub-post-media { border: 1px solid rgba(177, 101, 255, .24); border-radius: 10px; margin: 14px 0 0; overflow: hidden; }
.hub-post-media img, .hub-post-media video { display: block; height: 100%; object-fit: cover; width: 100%; }
.hub-post-media.ratio-landscape { aspect-ratio: var(--post-ratio, 16 / 9); width: 100%; }
.hub-post-media.ratio-square { aspect-ratio: var(--post-ratio, 1 / 1); max-width: 420px; width: 100%; }
.hub-post-media.ratio-portrait { aspect-ratio: var(--post-ratio, 4 / 5); max-width: 350px; width: 100%; }
.hub-post-media.ratio-native { max-height: 420px; width: 100%; }
.hub-post-media.ratio-native video { height: auto; max-height: 420px; object-fit: contain; }
.post-file { background: #151124; border: 1px solid rgba(183, 112, 255, .24); border-radius: 9px; color: #d6b6f8; display: block; font-size: .78rem; margin-top: 13px; overflow-wrap: anywhere; padding: 12px; }
.hub-post footer { align-items: center; color: #9c92aa; display: flex; flex-wrap: wrap; font-size: .88rem; gap: 10px; justify-content: flex-start; margin-top: 15px; }
.hub-post footer form { margin: 0; }
.hub-post footer button, .hub-post footer a { align-items: center; background: #111020; border: 1px solid rgba(183,112,255,.32); border-radius: 9px; color: #d7b9f7; cursor: pointer; display: inline-flex; font-size: .88rem; font-weight: 700; gap: 7px; justify-content: center; min-height: 42px; padding: 0 15px; text-decoration: none; }
.hub-post footer button:hover, .hub-post footer a:hover { background: rgba(98,35,186,.3); border-color: rgba(205,139,255,.72); color: #fff; }.hub-post footer button:focus-visible, .hub-post footer a:focus-visible, .post-menu summary:focus-visible { outline: 2px solid #d294ff; outline-offset: 2px; }
.hub-post { position: relative; }.post-comments { border-top: 1px solid rgba(180,110,245,.14); display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; }.post-comments p { color: #d8d0e3; font-size: .74rem; margin: 0; }.post-comments strong { color: #c89cff; margin-right: 7px; }.post-comments form { display: flex; gap: 8px; }.post-comments input { background: #11101b; border: 1px solid rgba(185,113,255,.28); border-radius: 7px; color: white; min-width: 0; padding: 8px; width: 100%; }.post-badge { bottom: 20px; position: absolute; right: 18px; }.has-post-badges > footer { padding-right: 124px; }.post-badge i { background: #251144; border: 1px solid rgba(198,128,255,.5); border-radius: 999px; color: #e4caff; font-size: .76rem; font-style: normal; padding: 7px 11px; }.post-badge i[hidden] { display: none; }
.hub-empty { align-content: center; color: #b2a7ba; display: grid; min-height: 146px; text-align: center; }
.hub-empty strong { color: white; font-size: 1rem; }
.hub-empty p { font-size: .9rem; margin: 12px 0 0; }
.hub-mode-label { color: #c697ff; font-size: .76rem; font-weight: 700; margin: 0; }
.feed-navigation { align-items: end; border-bottom: 1px solid rgba(184,111,255,.17); display: flex; gap: 16px; justify-content: space-between; }.feed-navigation .feed-tabs { border-bottom: 0; flex: 1; min-width: 0; }.feed-filters { align-items: center; display: flex; gap: 8px; padding-bottom: 8px; }.feed-filters label { color: #8f849b; display: grid; font-size: .58rem; gap: 3px; }.feed-filters select { background: #10111d; border: 1px solid rgba(174,104,247,.24); border-radius: 5px; color: #ddd4e8; font-size: .66rem; min-height: 30px; padding: 0 7px; }
.post-copy { margin-top: 14px; }.post-copy p { margin: 0; }.post-copy.is-collapsed p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 7; }.post-copy > button { background: transparent; border: 0; color: #c28ef7; cursor: pointer; font-size: .72rem; font-weight: 800; margin-top: 7px; padding: 0; }
.hub-post-audio, .theater-audio { align-items: center; background: #111020; border: 1px solid rgba(183,112,255,.26); border-radius: 8px; display: flex; gap: 12px; margin: 14px 0 0; padding: 14px; }.hub-post-audio > span, .theater-audio > span { align-items: center; background: #29124a; border-radius: 7px; color: #d2a4ff; display: flex; font-size: 1.3rem; height: 42px; justify-content: center; width: 42px; }.hub-post-audio audio, .theater-audio audio { min-width: 0; width: 100%; }.theater-audio { margin: auto 0; width: 100%; }
.comment-drawer { inset: 0; position: fixed; z-index: 30; }.comment-drawer[hidden] { display: none; }.comment-drawer-backdrop { background: rgba(1,1,7,.72); border: 0; inset: 0; position: absolute; width: 100%; }.comment-drawer > section { background: #0b0c17; border-left: 1px solid rgba(185,113,255,.28); display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 100dvh; margin-left: auto; max-width: 520px; outline: 0; position: relative; width: min(100%,520px); }.comment-drawer > section > header { align-items: center; border-bottom: 1px solid rgba(185,113,255,.16); display: flex; justify-content: space-between; min-height: 76px; padding: 14px 18px; }.comment-drawer > section > header small { color: #a966ed; font-size: .6rem; font-weight: 800; }.comment-drawer > section > header h2 { font-size: 1rem; margin: 4px 0 0; }.comment-drawer > section > header button { background: transparent; border: 1px solid rgba(183,112,255,.3); border-radius: 6px; color: #dfd2eb; cursor: pointer; font-size: 1.2rem; height: 36px; width: 36px; }
.comment-drawer-list { overflow-y: auto; padding: 14px 16px; }.comment-drawer-status { color: #9c92aa; font-size: .78rem; padding: 34px 12px; text-align: center; }.comment-drawer-status.is-error { color: #f0a7ba; }.drawer-comment { display: grid; gap: 10px; grid-template-columns: auto minmax(0,1fr); margin-left: calc(var(--comment-depth,0) * 18px); padding: 11px 0; }.drawer-comment + .drawer-comment { border-top: 1px solid rgba(169,111,230,.1); }.drawer-comment > div { min-width: 0; }.drawer-comment > div > header { align-items: baseline; display: flex; gap: 7px; }.drawer-comment strong { font-size: .74rem; }.drawer-comment small { color: #82788d; font-size: .58rem; }.drawer-comment p { color: #d4cbdc; font-size: .76rem; line-height: 1.45; margin: 6px 0; overflow-wrap: anywhere; }.drawer-comment-actions { display: flex; gap: 9px; }.drawer-comment-actions button { background: transparent; border: 0; color: #ad99c0; cursor: pointer; font-size: .64rem; padding: 2px 0; }.drawer-comment-actions button:hover { color: #d5a9ff; }.drawer-comment-actions .danger-link { color: #d6879c; }.drawer-comment-replies { border-left: 1px solid rgba(183,112,255,.18); margin-top: 6px; padding-left: 8px; }.drawer-comment-editor { background: #10111d; border: 1px solid rgba(183,112,255,.3); border-radius: 6px; color: #fff; margin: 7px 0; min-height: 76px; padding: 9px; resize: vertical; width: 100%; }
.comment-drawer-form { border-top: 1px solid rgba(185,113,255,.16); display: grid; gap: 8px; padding: 14px 16px 18px; }.comment-drawer-form textarea { background: #10111d; border: 1px solid rgba(183,112,255,.28); border-radius: 7px; color: #fff; min-height: 78px; padding: 10px; resize: vertical; }.comment-drawer-form > div { align-items: center; display: flex; gap: 8px; }.comment-drawer-form > div span { color: #a89bae; flex: 1; font-size: .63rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.comment-drawer-form button { background: #5420ad; border: 1px solid rgba(205,139,255,.42); border-radius: 6px; color: #fff; cursor: pointer; min-height: 36px; padding: 0 12px; }.comment-drawer-form [data-cancel-comment-reply] { background: transparent; color: #bca8cc; }.comment-drawer-open { overflow: hidden; }

.hub-right { background: #090a14; border-left: 1px solid rgba(159, 86, 252, .16); display: grid; align-content: start; gap: 12px; overflow: auto; padding: 82px 14px 20px; }
.right-panel { background: #0c0d18; border: 1px solid rgba(161, 93, 245, .18); border-radius: 14px; overflow: hidden; padding: 14px; }
.right-panel > header { align-items: center; border-bottom: 1px solid rgba(169, 111, 230, .12); display: flex; justify-content: space-between; padding: 3px 0 12px; }
.right-panel h2 { font-size: .7rem; letter-spacing: .03em; margin: 0; }
.right-panel header a { color: #bc7cf9; font-size: .7rem; }
.connect-panel > div { display: grid; }
.connect-panel article { align-items: center; border-bottom: 1px solid rgba(169, 111, 230, .09); display: grid; gap: 9px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 0; }
.connect-panel article:last-child { border-bottom: 0; padding-bottom: 0; }
.connect-panel article > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.connect-panel small, .connect-panel em { color: #958a9f; font-size: .66rem; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-panel button { padding: 8px 10px; }
.community-panel > article { align-items: center; border-bottom: 1px solid rgba(169, 111, 230, .1); display: grid; gap: 8px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 11px 0; }
.community-panel > article:last-child { border: 0; }
.community-panel article > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.community-panel strong { font-size: .78rem; }
.community-panel small { color: #91879d; font-size: .64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-panel button { background: transparent; color: #c596fa; padding: 6px 7px; }
.community-panel button:disabled { border-color: rgba(197, 150, 250, .2); color: #8f819f; cursor: default; }
.community-image { align-items: center; background: #1c1530; border: 1px solid rgba(192, 139, 255, .22); border-radius: 9px; color: #c08bff; display: flex; font-size: 1rem; height: 42px; justify-content: center; overflow: hidden; width: 42px; }
.community-image img { height: 100%; object-fit: cover; width: 100%; }
.community-image:hover { border-color: rgba(205, 151, 255, .72); }
.panel-empty { color: #93899f; font-size: .75rem; line-height: 1.45; margin: 13px 0 3px; }
.chat-panel { display: grid; gap: 10px; }
.hub-messages { display: grid; gap: 7px; max-height: 170px; overflow: auto; }
.hub-messages p { background: #151225; border-radius: 8px; color: #ddd5e8; font-size: .72rem; margin: 0; padding: 8px; }
.hub-messages p.mine { background: #301260; }
.hub-messages strong { color: #c99dff; display: block; font-size: .63rem; margin-bottom: 3px; }
.read-receipt { color: #a96cff; display: block; font-size: .6rem; margin-top: 5px; text-align: right; }
.chat-panel form { display: grid; gap: 7px; grid-template-columns: minmax(0, 1fr) auto; }
.chat-panel input { background: #0a0a14; border: 1px solid rgba(165, 99, 240, .23); border-radius: 7px; color: white; min-width: 0; outline: 0; padding: 8px; }

.community-directory-page { margin: 0 auto; max-width: 1480px; min-height: 100vh; padding: 0 34px 56px; }
.directory-topbar { align-items: center; border-bottom: 1px solid rgba(166,95,244,.18); display: grid; gap: 20px; grid-template-columns: 1fr auto 1fr; min-height: 82px; }
.directory-topbar .hub-logo { justify-self: start; }.directory-topbar nav { display: flex; gap: 8px; }.directory-topbar nav a, .directory-profile { border-radius: 7px; color: #bfb3cb; font-size: .76rem; padding: 9px 12px; }.directory-topbar nav a:hover { background: rgba(108,42,190,.2); color: #fff; }.directory-profile { justify-self: end; }
.directory-intro { align-items: end; display: flex; gap: 24px; justify-content: space-between; padding: 48px 0 28px; }.directory-intro small, .store-catalog > header small { color: #a966ed; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }.directory-intro h1 { font-size: 2.35rem; margin: 7px 0; }.directory-intro p { color: #aaa0b5; line-height: 1.5; margin: 0; }.directory-intro button { align-items: center; background: #5420ad; border: 1px solid rgba(205,139,255,.52); border-radius: 7px; color: #fff; cursor: pointer; display: flex; font-weight: 800; gap: 8px; min-height: 44px; padding: 0 17px; }.directory-intro button span { font-size: 1.15rem; }
.directory-search { align-items: center; background: #0c0d18; border: 1px solid rgba(177,106,255,.28); border-radius: 8px; display: grid; gap: 10px; grid-template-columns: auto minmax(0,1fr) auto; min-height: 54px; padding: 7px 8px 7px 15px; }.directory-search > span { color: #c49aff; font-size: 1.25rem; }.directory-search input { background: transparent; border: 0; color: #fff; font-size: .86rem; min-width: 0; outline: 0; }.directory-search button { background: #33205a; border: 1px solid rgba(194,125,255,.34); border-radius: 6px; color: #e9d9fb; cursor: pointer; min-height: 38px; padding: 0 16px; }
.directory-filters { border-bottom: 1px solid rgba(177,106,255,.16); display: flex; gap: 8px; margin: 18px 0 22px; overflow-x: auto; padding-bottom: 12px; }.directory-filters a { border-radius: 6px; color: #aaa0b5; flex: 0 0 auto; font-size: .76rem; padding: 9px 12px; }.directory-filters a:hover, .directory-filters a.is-active { background: rgba(100,38,181,.28); color: #fff; }
.directory-live-status { color: #9990a3; font-size: .72rem; margin: -12px 0 14px; min-height: 1em; }
.directory-grid { display: grid; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }.directory-card { background: #0c0d18; border: 1px solid rgba(166,95,244,.2); border-radius: 8px; display: grid; grid-template-rows: 128px auto 1fr auto; min-height: 390px; overflow: hidden; position: relative; }.directory-card:hover { border-color: rgba(192,124,255,.46); transform: translateY(-1px); }.directory-card-banner { background: linear-gradient(135deg,#241044,#0d1324); }.directory-card-banner.has-image { background-image: linear-gradient(180deg,transparent,rgba(8,9,20,.52)),var(--community-banner); background-position: center; background-size: cover; }.directory-card-avatar { align-items: center; align-self: end; background: #191027; border: 3px solid #0c0d18; border-radius: 12px; color: #d5b0ff; display: flex; font-size: 1.5rem; font-weight: 900; height: 72px; justify-content: center; margin: -38px 18px 0; overflow: hidden; position: relative; width: 72px; }.directory-card-avatar img { height: 100%; object-fit: cover; width: 100%; }
.directory-card[hidden] { display: none; }
.directory-card-copy { display: grid; gap: 11px; padding: 12px 18px 16px; }.directory-card-copy header { align-items: start; display: flex; gap: 12px; justify-content: space-between; }.directory-card h2 { font-size: 1rem; margin: 0; }.directory-card-copy small { color: #8e8499; font-size: .63rem; }.directory-card-copy p { color: #b2a8bb; font-size: .77rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }.directory-joined { background: rgba(43,132,107,.18); border: 1px solid rgba(88,202,171,.32); border-radius: 5px; color: #83d9c1; font-size: .6rem; padding: 5px 7px; white-space: nowrap; }.directory-card dl { display: flex; gap: 20px; margin: auto 0 0; }.directory-card dl div { display: grid; gap: 3px; }.directory-card dt { color: #81778c; font-size: .6rem; }.directory-card dd { color: #eee7f5; font-size: .76rem; margin: 0; }.directory-card footer { border-top: 1px solid rgba(166,95,244,.13); padding: 12px 18px; }.directory-card footer form { margin: 0; }.directory-card footer a, .directory-card footer button { align-items: center; background: #5420ad; border: 1px solid rgba(205,139,255,.44); border-radius: 6px; color: #fff; cursor: pointer; display: flex; font-size: .74rem; font-weight: 800; justify-content: center; min-height: 40px; width: 100%; }.directory-empty { color: #a99eaf; grid-column: 1 / -1; padding: 80px 20px; text-align: center; }.directory-empty strong { color: #fff; }.directory-empty p { font-size: .8rem; }

.store-page { margin: 0 auto; max-width: 1380px; min-height: 100vh; padding: 32px; }
.store-top { align-items: center; border-bottom: 1px solid rgba(166, 95, 244, .2); display: flex; gap: 20px; justify-content: space-between; padding-bottom: 20px; }
.store-navigation { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.store-top > .store-navigation > a, .store-top > .store-navigation > span { border: 1px solid rgba(180, 110, 255, .32); border-radius: 999px; color: #d8bbff; font-size: .78rem; padding: 9px 14px; }
.store-navigation b { background: #6a27c4; border-radius: 999px; color: #fff; font-size: .65rem; margin-left: 4px; padding: 2px 6px; }
.store-intro { padding: 58px 0 28px; }
.store-intro small { color: #a966ed; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.store-intro h1 { font-size: 3rem; margin: 8px 0; }
.store-intro p { color: #b6adbf; margin: 0; }
.store-showcase { background: #0a0b16; border: 1px solid rgba(166,95,244,.28); border-radius: 8px; margin: 30px 0 28px; min-height: 338px; overflow: hidden; position: relative; }
.store-showcase::before { background: radial-gradient(circle at 78% 48%, color-mix(in srgb,var(--item-accent,#8057ff) 18%,transparent), transparent 34%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.store-showcase-slide { align-items: center; display: grid; gap: 44px; grid-template-columns: minmax(0,1fr) minmax(300px,42%); min-height: 338px; padding: 42px 72px; position: relative; }
.store-showcase-slide[hidden] { display: none; }
.store-showcase-copy { min-width: 0; position: relative; z-index: 1; }
.store-showcase-copy small, .store-catalog > header small { color: #63d1bd; font-size: .69rem; font-weight: 800; letter-spacing: .08em; }
.store-showcase-copy h1 { font-size: 2.7rem; letter-spacing: 0; margin: 9px 0 12px; overflow-wrap: anywhere; }
.store-showcase-copy p { color: #c7c1cd; font-size: .96rem; line-height: 1.55; margin: 0; max-width: 620px; }
.store-showcase-copy > span { border-left: 3px solid var(--item-accent,#8057ff); color: #e2d8e8; display: block; font-size: .82rem; margin-top: 18px; padding: 7px 0 7px 12px; }
.store-showcase-media { align-items: center; display: flex; height: 260px; justify-content: center; min-width: 0; position: relative; z-index: 1; }
.store-showcase-media img, .store-showcase-media .store-preview { border: 1px solid color-mix(in srgb,var(--item-accent,#8057ff) 50%,transparent); border-radius: 8px; box-shadow: 0 22px 58px rgba(0,0,0,.38); height: 100%; margin: 0; object-fit: contain; width: 100%; }
.store-preview { align-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--item-accent, #7d32cc) 34%, #090812), color-mix(in srgb, var(--item-secondary, #42d4e8) 18%, #090812)); border: 1px solid color-mix(in srgb,var(--item-accent,#b26cff) 52%,transparent); color: var(--item-secondary,#c28aff); display: flex; font-size: 1.8rem; font-weight: 800; justify-content: center; }
.store-showcase-controls { align-items: center; bottom: 18px; display: flex; gap: 10px; left: 72px; position: absolute; z-index: 2; }
.store-showcase-controls button, .store-carousel-controls button { align-items: center; background: #131522; border: 1px solid rgba(180,110,255,.34); border-radius: 6px; color: #eee7f5; cursor: pointer; display: flex; font-size: 1.4rem; height: 38px; justify-content: center; padding: 0; width: 38px; }
.store-showcase-controls button:hover, .store-carousel-controls button:hover { background: #25213a; border-color: #63d1bd; }
.store-showcase-controls > span { color: #9890a4; font-size: .72rem; min-width: 42px; text-align: center; }
.store-showcase-controls b { color: #fff; }
.store-catalog { min-width: 0; padding-bottom: 56px; }
.store-catalog > header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 15px; }
.store-catalog > header h2 { font-size: 1.35rem; margin: 5px 0 0; }
.store-carousel-controls { display: flex; gap: 8px; }
.store-carousel { display: grid; gap: 18px; grid-auto-columns: minmax(310px, calc((100% - 36px) / 3)); grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; padding: 1px 1px 14px; scroll-snap-type: x mandatory; scrollbar-color: #4b2a70 #0b0c16; scrollbar-width: thin; }
.store-card { background: #0c0d18; border: 1px solid rgba(164,94,244,.22); border-radius: 8px; display: flex; flex-direction: column; min-height: 430px; overflow: hidden; padding: 18px; scroll-snap-align: start; }
.store-item-image { background: #080914; border: 0; border-radius: 7px; cursor: pointer; display: block; height: 218px; margin: 0 0 16px; overflow: hidden; padding: 0; position: relative; width: 100%; }
.store-item-image > img, .store-item-image > .store-preview { border: 1px solid color-mix(in srgb,var(--item-accent,#b26cff) 52%,transparent); border-radius: 7px; height: 100%; object-fit: contain; transition: transform .2s ease, filter .2s ease; width: 100%; }
.store-item-image:hover > img, .store-item-image:hover > .store-preview { filter: brightness(.72); transform: scale(1.025); }
.store-image-action { align-items: center; background: rgba(5,6,12,.86); border: 1px solid rgba(255,255,255,.22); border-radius: 6px; color: #fff; display: flex; font-size: .76rem; font-weight: 800; inset: auto 50% 16px auto; min-height: 34px; opacity: 0; padding: 0 13px; position: absolute; transform: translate(50%,6px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.store-item-image:hover .store-image-action, .store-item-image:focus-visible .store-image-action { opacity: 1; transform: translate(50%,0); }
.store-card-meta { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.store-card-meta > small { color: #aa92c7; font-size: .68rem; text-transform: uppercase; }
.store-rarity { border: 1px solid rgba(178, 132, 220, .28); border-radius: 999px; color: #bca9c9; font-size: .6rem; padding: 3px 7px; }
.rarity-rare { border-color: rgba(76, 174, 255, .38); color: #88caff; }
.rarity-epic { border-color: rgba(214, 103, 255, .42); color: #dc9bff; }
.store-card h2 { font-size: 1.08rem; margin: 10px 0 6px; }
.store-card p { color: #aaa1b0; font-size: .81rem; line-height: 1.5; margin: 0; }
.store-card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.store-card .store-effect { border-top: 1px solid rgba(177, 108, 242, .13); color: #c9bfd0; display: grid; gap: 3px; margin-top: 12px; padding-top: 10px; }
.store-effect strong { color: #9f72d2; font-size: .62rem; text-transform: uppercase; }
.store-card footer { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-top: auto; padding-top: 18px; }
.store-card footer span { color: #8fdaaf; font-size: .78rem; }
.store-card footer strong { color: #e6c1ff; font-size: .84rem; }
.store-card form { margin: 0; }
.store-card footer button { background: #5b20b7; border: 1px solid rgba(207, 144, 255, .48); border-radius: 8px; color: white; cursor: pointer; font-size: .74rem; font-weight: 700; padding: 9px 12px; }
.store-card footer button:disabled { background: #17131f; border-color: rgba(177, 145, 199, .18); color: #887d91; cursor: default; }
.store-empty { color: #a39aaf; }
.store-notice { border: 1px solid; border-radius: 9px; font-size: .82rem; margin: 0 0 18px; padding: 11px 13px; }
.store-notice.success { background: rgba(45, 139, 95, .12); border-color: rgba(87, 214, 145, .4); color: #a8edc8; }
.store-notice.error { background: rgba(159, 51, 81, .12); border-color: rgba(233, 103, 145, .4); color: #ffb4cb; }
.store-item-modal { align-items: center; background: rgba(1,2,7,.86); display: grid; inset: 0; justify-items: center; overflow-y: auto; padding: 24px; position: fixed; z-index: 90; }
.store-item-modal[hidden] { display: none; }
.store-item-modal > section { align-self: center; background: #0c0d18; border: 1px solid rgba(99,209,189,.38); border-radius: 8px; box-shadow: 0 28px 90px rgba(0,0,0,.62); margin: auto; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 22px; width: min(920px,100%); }
.store-item-modal > section:focus { outline: none; }
.store-item-modal header { align-items: start; border-bottom: 1px solid rgba(154,165,192,.15); display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; }
.store-item-modal header small { color: #63d1bd; font-size: .67rem; font-weight: 800; letter-spacing: .08em; }
.store-item-modal h2 { font-size: 1.35rem; margin: 5px 0 0; }
.store-item-modal header button { align-items: center; background: #171925; border: 1px solid rgba(180,110,255,.32); border-radius: 50%; color: #eee8f4; cursor: pointer; display: flex; font-size: 1.35rem; height: 38px; justify-content: center; padding: 0; width: 38px; }
.store-item-modal-body { display: grid; gap: 24px; grid-template-columns: minmax(300px,1.25fr) minmax(240px,.75fr); }
.store-item-modal-media { align-items: center; background: #070811; border: 1px solid rgba(164,94,244,.2); border-radius: 7px; display: flex; justify-content: center; min-height: 360px; overflow: hidden; }
.store-item-modal-media img, .store-item-modal-media .store-preview { height: 100%; max-height: 520px; object-fit: contain; width: 100%; }
.store-item-modal-copy { align-content: start; display: grid; gap: 18px; padding: 12px 0; }
.store-item-modal-copy > p { color: #c7becd; font-size: .92rem; line-height: 1.6; margin: 0; }
.store-item-modal-copy .store-effect { border-top: 1px solid rgba(177,108,242,.16); display: grid; gap: 7px; padding-top: 16px; }
body.store-modal-open { overflow: hidden !important; }
.inventory-intro { padding-bottom: 20px; }
.inventory-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.inventory-benefits span { background: #0c0d18; border: 1px solid rgba(164,94,244,.2); border-radius: 8px; color: #a99fb1; display: grid; font-size: .68rem; gap: 2px; padding: 9px 12px; }
.inventory-benefits strong { color: #e7d6f8; font-size: .86rem; }
.wallet-history { background: #0c0d18; border: 1px solid rgba(164, 94, 244, .2); border-radius: 14px; margin-top: 28px; overflow: hidden; }
.wallet-history header, .wallet-history > p { align-items: center; border-bottom: 1px solid rgba(164, 94, 244, .14); display: flex; gap: 14px; justify-content: space-between; margin: 0; padding: 13px 16px; }
.wallet-history header { background: #111120; }
.wallet-history h2 { font-size: .95rem; margin: 0; }
.wallet-history header span, .wallet-history time { color: #a99ab8; font-size: .75rem; }
.wallet-history > p:last-child { border-bottom: 0; }
.wallet-history p strong { color: #e5c4ff; font-size: .82rem; }
.wallet-history p span { color: #b3a6bf; flex: 1; font-size: .76rem; text-transform: capitalize; }

.attachment-modal { align-items: center; background: rgba(2, 2, 8, .82); display: grid; inset: 0; padding: 18px; position: fixed; z-index: 30; }
.attachment-modal[hidden] { display: none; }
.attachment-dialog { background: #0c0d18; border: 1px solid rgba(176, 100, 255, .48); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.55); justify-self: center; max-width: 760px; padding: 20px; width: min(100%, 760px); }
.attachment-dialog > header { align-items: flex-start; display: flex; justify-content: space-between; }
.attachment-dialog header small { color: #ae73ed; font-size: .67rem; font-weight: 800; letter-spacing: .08em; }
.attachment-dialog h2 { font-size: 1.25rem; margin: 6px 0 0; }
.attachment-dialog > header button { background: transparent; border: 1px solid rgba(185, 119, 255, .3); border-radius: 50%; color: #d8c8e8; cursor: pointer; font-size: 1.3rem; height: 32px; width: 32px; }
.attachment-drop { align-items: center; border: 1px dashed rgba(180, 110, 255, .5); border-radius: 12px; display: grid; justify-items: center; margin-top: 18px; min-height: 160px; padding: 20px; text-align: center; }
.attachment-drop.dragging { background: rgba(107, 42, 188, .2); border-color: #bf83ff; }
.attachment-drop strong { font-size: .94rem; }
.attachment-drop span, .attachment-note { color: #a89cad; font-size: .76rem; line-height: 1.45; margin: 8px 0 0; }
.attachment-drop button, .attachment-done { background: #5b20b7; border: 1px solid rgba(210, 150, 255, .5); border-radius: 8px; color: #fff; cursor: pointer; font-size: .76rem; font-weight: 700; margin-top: 14px; padding: 10px 14px; }
.attachment-editor { margin-top: 18px; }
.crop-stage { align-items: center; background: #05050d; border: 1px solid rgba(174, 106, 249, .26); border-radius: 12px; cursor: grab; display: grid; justify-content: center; margin: 0 auto; overflow: hidden; position: relative; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { left: 0; max-width: none; position: absolute; top: 0; transform-origin: 0 0; user-select: none; }
.crop-stage video { max-height: 100%; max-width: 100%; }
.file-preview { color: #d9c6eb; font-size: .82rem; overflow-wrap: anywhere; padding: 20px; text-align: center; }
.crop-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.crop-controls > span { color: #e4d9ef; font-size: .76rem; font-weight: 700; }
.crop-controls div { display: flex; gap: 6px; }
.crop-controls button { background: transparent; border: 1px solid rgba(179, 110, 247, .35); border-radius: 7px; color: #d7baff; cursor: pointer; font-size: .72rem; padding: 7px 9px; }
.crop-controls label { align-items: center; color: #b7aabe; display: flex; font-size: .72rem; gap: 7px; }
.crop-controls input { accent-color: #9a55ee; }
.crop-controls small { color: #8c8192; font-size: .68rem; }
.attachment-done { display: block; margin-left: auto; }
.notification-popup { background: #161021; border: 1px solid rgba(181, 112, 255, .55); border-radius: 10px; bottom: 22px; box-shadow: 0 14px 40px rgba(0,0,0,.42); display: grid; gap: 5px; max-width: 330px; padding: 13px 15px; position: fixed; right: 22px; z-index: 40; }
.notification-popup strong { font-size: .8rem; }
.notification-popup span { color: #b8acbf; font-size: .74rem; }
.notification-modal, .badge-modal { align-items: center; background: rgba(0,0,0,.72); display: grid; inset: 0; position: fixed; z-index: 50; }.notification-modal[hidden], .badge-modal[hidden] { display: none; }.notification-modal section, .badge-modal section { background: #100c1b; border: 1px solid rgba(190,119,255,.4); border-radius: 14px; max-height: 70vh; padding: 20px; width: min(100% - 32px, 520px); }.notification-modal header, .badge-modal header { align-items:center; display:flex; justify-content:space-between; }.notification-actions { display:flex; gap:8px; margin:12px 0; }.notification-actions button, .notification-modal header button, .badge-modal button { background:#5b20b7; border:0; border-radius:7px; color:white; cursor:pointer; padding:8px 10px; }.notification-list { max-height:45vh; overflow:auto; }.notification-list article { border-top:1px solid rgba(180,110,245,.15); display:grid; gap:4px; padding:10px 0; }.notification-list span,.notification-list small { color:#b4a8bd; font-size:.76rem; }.badge-list { display:grid; gap:9px; margin-top:14px; }.badge-entry { background:#171025; border:1px solid rgba(184,111,255,.3); border-radius:9px; display:grid; gap:4px; padding:12px; }.badge-entry strong { color:#e7d4ff; }.badge-entry span,.badge-empty { color:#bdb2c9; font-size:.82rem; margin:0; }
.community-modal { align-items: center; background: rgba(0,0,0,.72); display: grid; inset: 0; position: fixed; z-index: 50; }.community-modal[hidden] { display: none; }.community-modal section { background: #100c1b; border: 1px solid rgba(190,119,255,.4); border-radius: 14px; padding: 20px; width: min(100% - 32px, 460px); }.community-modal header { align-items: center; display: flex; justify-content: space-between; }.community-modal h2 { font-size: 1rem; margin: 0; }.community-modal header button, .community-modal form > button { background: #5b20b7; border: 0; border-radius: 7px; color: #fff; cursor: pointer; padding: 8px 10px; }.community-modal form { display: grid; gap: 12px; margin-top: 16px; }.community-modal label { color: #d8cbe4; display: grid; font-size: .78rem; gap: 6px; }.community-modal input:not([type="checkbox"]), .community-modal textarea { background: #090812; border: 1px solid rgba(186,112,255,.28); border-radius: 8px; color: #f4ecff; padding: 9px 10px; }.community-modal textarea { min-height: 92px; resize: vertical; }.community-modal .community-private { align-items: center; display: flex; gap: 8px; }

.profile-page { background: #04030d var(--profile-background, url('/static/img/coret-portal-city.png')) center / cover fixed no-repeat; min-height: 100vh; position: relative; }
.profile-page::before { background: rgba(4, 3, 13, .48); content: ""; inset: 0; position: absolute; }
.profile-topbar { align-items: center; background: rgba(4, 5, 13, .88); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); height: 72px; padding: 0 28px; position: sticky; top: 0; width: 100%; z-index: 4; }
.profile-topbar .rail-brand { grid-column: 1; justify-self: start; }.profile-topbar .hub-logo { grid-column: 2; justify-self: center; }.profile-topbar .hub-outline { grid-column: 3; justify-self: end; }
.profile-scroll { display: grid; gap: 14px; justify-items: center; margin: 0 auto; max-width: 800px; padding: 24px 20px 40px; position: relative; z-index: 1; }
.profile-card { background: rgba(10, 8, 24, .94); border: 1px solid rgba(184, 111, 255, .38); border-radius: 12px; box-shadow: 0 18px 54px rgba(0,0,0,.42); max-width: 760px; overflow: hidden; padding: 274px 42px 24px; position: relative; text-align: center; width: 100%; }
.profile-banner { background: linear-gradient(135deg, #1a1032, #090817 62%, #122534); height: 190px; inset: 0 0 auto; overflow: hidden; position: absolute; z-index: 0; }.profile-banner::after { background: linear-gradient(180deg, transparent 52%, rgba(10,8,24,.98)); content: ""; inset: 0; position: absolute; }.profile-banner img { height: 100%; object-fit: cover; width: 100%; }
.profile-avatar { background: #271242; border: 3px solid var(--profile-frame-accent, #c77bff); border-radius: 50%; box-shadow: 0 0 28px var(--profile-frame-secondary, #a54eff); height: 148px; left: 50%; position: absolute; top: 112px; transform: translateX(-50%); width: 148px; z-index: 3; }.profile-avatar > img:not(.profile-frame-art) { border-radius: 50%; height: 100%; object-fit: cover; overflow: hidden; width: 100%; }
.profile-card > :not(.profile-banner):not(.profile-avatar) { position: relative; z-index: 1; }
.profile-card h1 { font-size: 2rem; margin: 4px 0; }.profile-card h1 i { color: #c383ff; font-size: 1rem; }.profile-card > small { color: #c09bed; }.profile-card > p { color: #ddd3e8; line-height: 1.45; margin: 16px auto; max-width: 500px; }.profile-card button { background: #5b20b7; border: 1px solid rgba(207,144,255,.52); border-radius: 10px; color: white; cursor: pointer; font-weight: 700; padding: 11px 42px; }.profile-card form { margin: 0; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; }.profile-stats span { border-left: 1px solid rgba(180,110,245,.16); color: #bbb0c4; display: grid; font-size: .72rem; gap: 5px; padding: 7px; }.profile-stats span:first-child { border-left: 0; }.profile-stats strong { color: white; font-size: 1rem; }
.profile-posts { display: grid; gap: 12px; max-width: 760px; padding: 4px 0 24px; width: 100%; }.profile-posts .hub-post > p { overflow-wrap: anywhere; }.profile-empty { background: rgba(10,8,24,.9); border-radius: 8px; color: #afa4b8; padding: 22px; text-align: center; }
.hub-avatar.image-load-failed, .profile-avatar.image-load-failed { align-items: center; display: inline-flex; justify-content: center; }
.hub-avatar.image-load-failed::after, .profile-avatar.image-load-failed::after { color: #d4a7ff; content: "C"; font-size: .72rem; font-weight: 800; }
.profile-avatar.image-load-failed::after { font-size: 2.2rem; }
.hub-post-media.image-load-failed { align-items: center; display: flex; justify-content: center; min-height: 160px; }
.hub-post-media.image-load-failed::after { color: #aaa0b5; content: "Midia indisponivel"; font-size: .78rem; }
.profile-banner.image-load-failed img { display: none; }.profile-gallery.image-load-failed::after, .showcase-card.image-load-failed::after, .store-card.image-load-failed::after { color: #aaa0b5; content: "Imagem indisponivel"; font-size: .74rem; padding: 16px; text-align: center; }
.profile-editor { align-items: center; background: rgba(0,0,0,.7); display: grid; inset: 0; position: fixed; z-index: 5; }.profile-editor[hidden] { display: none; }.profile-editor form { background: #100c1b; border: 1px solid rgba(190,119,255,.4); border-radius: 14px; display: grid; gap: 14px; justify-self: center; padding: 24px; width: min(100% - 32px, 420px); }.profile-editor label { color: #d7c6e3; display: grid; font-size: .8rem; gap: 6px; }.profile-editor button { background: #5b20b7; border: 0; border-radius: 8px; color: white; cursor: pointer; padding: 10px; }
.profile-editor p { color: #bdb2c9; font-size: .8rem; line-height: 1.4; margin: 0; }.profile-feedback { border: 1px solid rgba(190,119,255,.42); border-radius: 9px; margin: 0; max-width: 610px; padding: 11px 14px; width: 100%; }.profile-feedback.error { background: rgba(150,35,75,.28); color: #ffd3e0; }.profile-feedback.success { background: rgba(61,144,104,.22); color: #d3ffe4; }
.back-to-top { background: rgba(16,12,27,.88); border: 1px solid rgba(190,119,255,.36); border-radius: 50%; bottom: 22px; color: #d9c1f5; cursor: pointer; height: 36px; position: fixed; right: 22px; width: 36px; z-index: 4; }
.profile-equipped-background { height: 100%; inset: 0; object-fit: cover; opacity: .32; position: absolute; width: 100%; z-index: 0; }
.profile-card, .profile-section, .profile-feedback { position: relative; z-index: 1; }
.profile-frame-art { inset: -8%; object-fit: contain; pointer-events: none; position: absolute; width: 116%; z-index: 2; }
.profile-status { color: #d2a9ff !important; font-weight: 700; margin-bottom: 8px !important; }
.profile-meta, .profile-equipped-label { color: #bba9ce; display: inline-flex; font-size: .73rem; margin: 3px 5px; }
.profile-equipped-label { align-items: center; background: rgba(112, 39, 202, .2); border: 1px solid rgba(189, 116, 255, .32); border-radius: 999px; gap: 7px; padding: 5px 9px; }.profile-unequip { display: inline; }.profile-unequip button { background: transparent; border: 0; color: #edb7ca; cursor: pointer; font-size: .68rem; padding: 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 12px 0; }.profile-links a { border: 1px solid rgba(186,115,255,.34); border-radius: 999px; color: #d8c0f7; font-size: .72rem; padding: 6px 10px; }.profile-links a:hover { background: rgba(105,42,191,.28); color: #fff; }
.profile-section { display: grid; gap: 10px; max-width: 760px; width: 100%; }.profile-section > header { align-items: center; display: flex; justify-content: space-between; }.profile-section h2 { font-size: .9rem; margin: 0; }.profile-section .profile-posts { max-width: none; }.profile-posts > .hub-post > header form { margin-left: auto; }.profile-posts > .hub-post > header form button { background: transparent; border: 1px solid rgba(183,112,255,.34); border-radius: 8px; color: #d8bbff; cursor: pointer; font-size: .7rem; padding: 7px 9px; }
.showcase-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }.showcase-card { background: rgba(11,9,23,.93); border: 1px solid rgba(184,111,255,.28); border-radius: 10px; display: grid; gap: 7px; min-height: 126px; overflow: hidden; padding: 11px; }.showcase-card img { background: #100d1c; height: 92px; object-fit: cover; width: 100%; }.showcase-card strong { color: #f2eaff; font-size: .78rem; }.showcase-card span { color: #b8aabc; font-size: .7rem; line-height: 1.35; }.showcase-card form { margin-top: auto; }.showcase-card button { background: transparent; border: 0; color: #e2a4c0; cursor: pointer; font-size: .68rem; padding: 0; }
.profile-gallery { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }.profile-gallery img, .profile-gallery video { aspect-ratio: 1; background: #090811; border: 1px solid rgba(180,110,245,.22); border-radius: 9px; display: block; object-fit: cover; width: 100%; }
.profile-editor { overflow-y: auto; padding: 24px 0; }.profile-editor > section { background: #100c1b; border: 1px solid rgba(190,119,255,.4); border-radius: 14px; display: grid; gap: 16px; margin: auto; padding: 22px; width: min(100% - 28px, 720px); }.profile-editor > section > header { align-items: center; display: flex; justify-content: space-between; }.profile-editor > section > header h2 { margin: 0; }.profile-editor > section > header button { background: transparent; border: 0; color: #e6d8f4; cursor: pointer; font-size: 1.4rem; }.profile-editor form { background: transparent; border: 0; display: grid; gap: 10px; padding: 0; width: auto; }.profile-editor label { color: #d7c6e3; display: grid; font-size: .78rem; gap: 6px; }.profile-editor input, .profile-editor textarea { background: #090812; border: 1px solid rgba(186,112,255,.28); border-radius: 8px; color: #f4ecff; padding: 9px 10px; width: 100%; }.profile-editor textarea { min-height: 84px; resize: vertical; }.profile-editor h3 { font-size: .84rem; margin: 8px 0 0; }.profile-editor-collection { border-top: 1px solid rgba(184,111,255,.18); display: grid; gap: 8px; padding-top: 8px; }.profile-editor-collection form { align-items: center; background: #120e20; border: 1px solid rgba(184,111,255,.18); border-radius: 8px; display: flex; gap: 8px; padding: 8px; }.profile-editor-collection form span { color: #d8cbe4; font-size: .72rem; min-width: 0; overflow-wrap: anywhere; }.profile-editor-collection form span small { color: #9e90aa; display: block; }.profile-editor-collection form input:not([type="hidden"]) { font-size: .72rem; min-width: 0; }.profile-editor-collection form button { margin-left: auto; white-space: nowrap; }.profile-editor-collection p { color: #aaa0b5; font-size: .76rem; margin: 0; }

.notification-modal, .badge-modal, .community-modal, .attachment-modal, .profile-editor { justify-items: center; overflow-y: auto; padding: 24px; }
.notification-modal > section, .badge-modal > section, .community-modal > section, .attachment-modal > section, .profile-editor > section { align-self: center; justify-self: center; margin: auto; max-height: calc(100dvh - 48px); overflow-y: auto; }

.hub-content, .hub-right, .direct-section, .profile-posts { scrollbar-width: none; }.hub-content::-webkit-scrollbar, .hub-right::-webkit-scrollbar, .direct-section::-webkit-scrollbar, .profile-posts::-webkit-scrollbar { display: none; }
body:has(.profile-page), body:has(.store-page) { height: auto; overflow-x: hidden; overflow-y: scroll; scrollbar-gutter: stable; }
.hub-page:has(.store-page) { height: auto; min-height: 100vh; overflow: visible; }

body:has(.theater-page) { background: #03030a; height: 100vh; overflow: hidden; }
.theater-page { background: radial-gradient(circle at 50% 10%, rgba(118, 42, 234, .24), transparent 38%), #03030a; height: 100vh; overflow: hidden; }
.theater-topbar { align-items: center; background: rgba(3, 3, 10, .88); border-bottom: 1px solid rgba(185, 113, 255, .16); display: grid; grid-template-columns: 1fr auto 1fr; height: 68px; padding: 0 24px; position: relative; z-index: 2; }
.theater-topbar .hub-logo { font-size: 1.45rem; justify-self: center; }
.theater-back, .theater-profile { color: #d8c8eb; font-size: .82rem; font-weight: 700; }
.theater-profile { justify-self: end; }
.theater-back:hover, .theater-profile:hover { color: #fff; }
.theater-viewport { border: 1px solid rgba(186, 109, 255, .34); border-radius: 28px; box-shadow: 0 0 52px rgba(91, 34, 203, .3), 0 18px 52px rgba(0,0,0,.54); height: calc(100vh - 92px); margin: 12px auto; max-width: 470px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.theater-viewport::-webkit-scrollbar { display: none; }
.theater-post, .theater-empty { background: linear-gradient(180deg, rgba(12, 10, 25, .97), rgba(5, 5, 13, .98)); display: flex; flex-direction: column; min-height: calc(100vh - 92px); padding: 18px; position: relative; scroll-snap-align: start; scroll-snap-stop: always; }
.theater-post-header { align-items: center; display: flex; gap: 10px; position: relative; z-index: 1; }
.theater-author { align-items: center; display: flex; gap: 9px; min-width: 0; }
.theater-author > span:last-child { display: grid; gap: 3px; min-width: 0; }
.theater-author strong { align-items: center; color: #fff; display: flex; font-size: .88rem; gap: 6px; }
.theater-author strong i { align-items: center; background: #a454ef; border-radius: 50%; color: #fff; display: inline-flex; font-size: .55rem; font-style: normal; height: 14px; justify-content: center; width: 14px; }
.theater-author small { color: #9d91ad; font-size: .69rem; }
.theater-follow { background: rgba(101, 39, 193, .38); border: 1px solid rgba(199, 132, 255, .56); border-radius: 999px; color: #f5eeff; cursor: pointer; font-size: .72rem; font-weight: 700; margin-left: auto; min-height: 34px; padding: 0 12px; }
.theater-follow:hover { background: #6725c7; }
.theater-menu { margin-left: auto; }.theater-follow + .theater-menu { margin-left: 0; }
.theater-body { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; padding: 15px 0; }
.theater-media { align-items: center; background: #090812; border: 1px solid rgba(193, 116, 255, .25); border-radius: 16px; display: flex; margin: 0; max-height: 61vh; overflow: hidden; width: 100%; }
.theater-media img, .theater-media video { display: block; max-height: 61vh; object-fit: contain; width: 100%; }
.theater-copy { color: #f7f2ff; font-size: 1rem; line-height: 1.55; margin: 16px 4px 0; overflow-wrap: anywhere; width: 100%; }
.theater-text-only .theater-body { align-items: stretch; background: radial-gradient(circle at 50% 35%, rgba(143, 59, 255, .35), transparent 48%); justify-content: center; }
.theater-text-only .theater-copy { font-size: clamp(1.45rem, 3.2vw, 2.1rem); font-weight: 700; line-height: 1.28; margin: 0; text-align: center; }
.theater-file { background: #151124; border: 1px solid rgba(183, 112, 255, .35); border-radius: 12px; color: #dfc7ff; padding: 14px; width: 100%; }
.theater-actions { align-items: center; display: flex; gap: 12px; padding-top: 8px; position: relative; z-index: 1; }
.theater-actions form { margin: 0; }.theater-actions button, .theater-actions a { align-items: center; background: #121020; border: 1px solid rgba(183,112,255,.32); border-radius: 10px; color: #e0c8ff; cursor: pointer; display: inline-flex; font-size: .86rem; font-weight: 700; gap: 7px; justify-content: center; min-height: 42px; padding: 0 15px; text-decoration: none; }
.theater-actions button:hover, .theater-actions a:hover { background: rgba(98,35,186,.34); border-color: rgba(205,139,255,.72); }
.theater-comments { background: rgba(16, 12, 30, .94); border: 1px solid rgba(182, 108, 255, .24); border-radius: 12px; display: grid; gap: 9px; margin-top: 12px; padding: 12px; position: relative; z-index: 1; }
.theater-comments > a { color: #cf9cff; font-size: .72rem; text-decoration: none; }.theater-comments p { color: #ddd4e8; font-size: .76rem; margin: 0; }.theater-comments strong { color: #d2a9ff; margin-right: 7px; }.theater-comments form { display: flex; gap: 7px; }.theater-comments input { background: #0b0a13; border: 1px solid rgba(182, 108, 255, .3); border-radius: 8px; color: #fff; min-width: 0; padding: 9px; width: 100%; }.theater-comments button { background: #5a20b6; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 700; padding: 0 12px; }
.theater-empty { align-items: center; color: #a99db5; justify-content: center; text-align: center; }.theater-empty strong { color: #fff; }.theater-empty a, .theater-load-more { background: #5a20b6; border-radius: 10px; color: #fff; display: inline-flex; font-weight: 700; margin: 14px auto 0; padding: 11px 15px; text-decoration: none; }.theater-load-more { display: flex; justify-content: center; margin: 12px; }

.channel-permission-list { display: grid; gap: 8px; margin-top: 12px; }
.channel-permission-list details { border: 1px solid rgba(175, 105, 255, .22); border-radius: 6px; padding: 10px; }
.channel-permission-list summary { cursor: pointer; font-weight: 700; }
.channel-permission-list form { border-top: 1px solid rgba(175, 105, 255, .16); display: grid; gap: 8px; padding: 12px 0; }
.channel-permission-list form:first-of-type { margin-top: 10px; }
.channel-permission-list form header { display: flex; justify-content: space-between; gap: 12px; }

.server-moderation { display: grid; gap: 12px; }
.server-moderation > header { margin-bottom: 8px; }
.server-moderation > header small { color: #c07df2; font-size: .68rem; font-weight: 800; }
.server-moderation > header h2 { margin: 5px 0; }
.server-moderation > header p { color: #aaa0b6; margin: 0; }
.server-moderation > article { align-items: center; background: #0d0e18; border: 1px solid rgba(183,112,255,.22); border-radius: 7px; display: grid; gap: 18px; grid-template-columns: minmax(0,1fr) auto; padding: 15px; }
.server-moderation article > div { display: grid; gap: 7px; min-width: 0; }
.server-moderation article p { line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.server-moderation article small { color: #9e94a9; }
.server-moderation article form { display: flex; flex-wrap: wrap; gap: 7px; justify-content: end; }
.server-moderation button { background: #171825; border: 1px solid #393b50; border-radius: 6px; color: #d8d4df; cursor: pointer; padding: 8px 10px; }
.server-moderation button.primary { background: #6825ae; border-color: #a758e4; color: white; }
.report-state { border-radius: 999px; color: #dad0e2; font-size: .64rem; font-weight: 800; padding: 4px 8px; text-transform: uppercase; width: max-content; }
.report-state.open { background: #752c3d; }.report-state.reviewing { background: #65501b; }.report-state.resolved { background: #1e674b; }.report-state.dismissed { background: #343643; }
.storage-breakdown { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; }
.storage-breakdown section { background: #0b0c15; border: 1px solid rgba(178,107,246,.16); border-radius: 6px; display: grid; gap: 7px; padding: 11px; }
.storage-breakdown span { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.storage-breakdown b { font-size: .73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.storage-breakdown small { color: #9d93a8; font-size: .68rem; }
.storage-cleanup { align-items: end; background: rgba(117,44,61,.1); border: 1px solid rgba(225,99,127,.2); border-radius: 7px; display: grid; gap: 10px; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; padding: 12px; }
.storage-cleanup label { display: grid; gap: 5px; }.storage-cleanup button { min-height: 39px; }
.server-onboarding { align-items: center; background: rgba(1,2,7,.88); display: grid; inset: 0; justify-items: center; padding: 18px; position: fixed; z-index: 80; }
.server-onboarding > section { background: #0d0e19; border: 1px solid rgba(190,119,255,.5); border-radius: 8px; box-shadow: 0 26px 90px rgba(0,0,0,.65); display: grid; gap: 18px; max-height: calc(100dvh - 36px); overflow-y: auto; padding: 24px; width: min(100%,580px); }
.server-onboarding header { align-items: center; display: flex; gap: 14px; }.server-onboarding h2 { margin: 4px 0 0; }.server-onboarding header small { color: #b76cf2; font-size: .68rem; font-weight: 800; }
.server-onboarding > section > p, .server-onboarding article p { color: #c8bfce; line-height: 1.55; margin: 0; }
.server-onboarding article { background: #12131f; border-left: 3px solid #a955df; padding: 14px; }.server-onboarding article strong { display: block; margin-bottom: 7px; }
.onboarding-channels { display: grid; gap: 8px; }.onboarding-channels > span { background: #11121d; border: 1px solid #27293a; border-radius: 6px; display: grid; gap: 3px; padding: 10px; }.onboarding-channels small { color: #9e95a8; }
.server-onboarding form { display: grid; gap: 12px; }.server-onboarding form label { align-items: center; color: #cfc5d6; display: flex; gap: 8px; }.server-onboarding form button { background: #7026bb; border: 1px solid #a95be5; border-radius: 6px; color: white; font-weight: 700; min-height: 44px; }
.story-create-modal { align-items: center; background: rgba(1,2,7,.84); display: grid; inset: 0; justify-items: center; padding: 18px; position: fixed; z-index: 70; }.story-create-modal[hidden] { display: none; }
.story-create-modal > section { background: #0d0e19; border: 1px solid rgba(190,119,255,.5); border-radius: 8px; padding: 20px; width: min(100%,480px); }.story-create-modal header { align-items: start; display: flex; justify-content: space-between; }.story-create-modal header small { color: #b96ff2; font-size: .65rem; font-weight: 800; }.story-create-modal h2 { margin: 4px 0 0; }.story-create-modal header button { background: transparent; border: 0; color: white; font-size: 1.5rem; }
.story-create-modal form { display: grid; gap: 14px; margin-top: 18px; }.story-create-modal label { color: #d5ccd9; display: grid; font-size: .76rem; gap: 6px; }.story-create-modal textarea { background: #090a12; border: 1px solid #303245; border-radius: 6px; color: white; min-height: 120px; padding: 12px; resize: vertical; }.story-create-modal input[type="file"] { background: #11121e; border: 1px dashed #43465e; border-radius: 6px; padding: 12px; }.story-create-modal label small { color: #92899c; }.story-create-modal form > button { background: #7026bb; border: 1px solid #a95be5; border-radius: 6px; color: white; font-weight: 700; min-height: 44px; }
.mobile-app-nav { display: none; }

@media (max-width: 560px) { .hub-post footer { gap: 8px; }.hub-post footer button, .hub-post footer a { flex: 1 1 auto; min-height: 44px; }.has-post-badges > footer { padding-right: 0; }.post-badge { bottom: auto; right: 16px; top: 16px; }.hub-post.has-post-badges > header { padding-right: 92px; } }

@media (max-width: 620px) { .profile-topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 0 12px; }.profile-topbar .rail-brand { height: 38px; width: 38px; }.profile-topbar .hub-logo { font-size: 1.08rem; letter-spacing: .24em; margin-right: -.24em; }.profile-topbar .hub-outline { padding: 8px 10px; }.profile-scroll { padding: 16px 12px 24px; }.profile-card { padding: 236px 18px 24px; }.profile-banner { height: 160px; }.profile-avatar { top: 82px; }.profile-stats { grid-template-columns: repeat(2, 1fr); }.profile-stats span:nth-child(3) { border-left: 0; }.showcase-grid, .profile-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }.profile-editor > section { padding: 16px; }.profile-editor-collection form { align-items: stretch; flex-wrap: wrap; }.profile-editor-collection form button { margin-left: 0; }.notification-modal, .badge-modal, .community-modal, .attachment-modal, .profile-editor { padding: 12px; }.notification-modal > section, .badge-modal > section, .community-modal > section, .attachment-modal > section, .profile-editor > section { max-height: calc(100dvh - 24px); } }

@media (max-width: 760px) { body:has(.theater-page) { height: 100dvh; }.theater-topbar { background: linear-gradient(180deg, rgba(3,3,10,.95), rgba(3,3,10,.42)); height: 58px; padding: 0 14px; position: fixed; top: 0; width: 100%; }.theater-topbar .hub-logo { font-size: 1.2rem; }.theater-back, .theater-profile { font-size: .72rem; }.theater-viewport { border: 0; border-radius: 0; box-shadow: none; height: 100dvh; margin: 0; max-width: none; width: 100%; }.theater-post, .theater-empty { min-height: 100dvh; padding: 76px 15px 18px; }.theater-media, .theater-media img, .theater-media video { max-height: 58vh; }.theater-text-only .theater-copy { font-size: clamp(1.55rem, 7vw, 2.25rem); }.theater-comments form { flex-wrap: wrap; }.theater-comments input { min-height: 42px; }.theater-comments button { min-height: 42px; } }

@media (max-width: 1360px) {
  .hub-frame { grid-template-columns: 84px 252px minmax(480px, 1fr) 326px; }
  .hub-right { padding-left: 11px; padding-right: 11px; }
  .hero-points li { font-size: .61rem; padding: 8px 10px; }
}

@media (max-width: 1120px) {
  .hub-frame { grid-template-columns: 82px 248px minmax(0, 1fr); }
  .hub-right { border-left: 0; border-top: 1px solid rgba(159,86,252,.18); grid-column: 2 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; }
  .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .hub-page { padding: 0; }
  .comment-drawer > section { border-left: 0; max-width: none; width: 100%; }.drawer-comment { margin-left: calc(var(--comment-depth,0) * 10px); }
  .community-directory-page { padding: 0 14px 36px; }.directory-topbar { grid-template-columns: 1fr auto; }.directory-topbar nav { display: none; }.directory-intro { align-items: stretch; flex-direction: column; padding-top: 30px; }.directory-intro h1 { font-size: 1.8rem; }.directory-grid { grid-template-columns: 1fr; }.directory-card { min-height: 370px; }.directory-search { grid-template-columns: auto minmax(0,1fr); }.directory-search button { grid-column: 1 / -1; width: 100%; }
  .hub-frame { border: 0; border-radius: 0; display: block; min-height: 100vh; }
  .hub-rail, .hub-sidebar { display: none; }
  .hub-content { padding: 0 11px 84px; }
  .hub-topbar { grid-template-columns: 1fr auto; min-height: 66px; }
  .hub-search-shell { grid-column: 1 / -1; grid-row: 2; margin-bottom: 8px; max-width: none; }
  .hub-search { max-width: none; }
  .hub-search-results { max-height: min(520px, calc(100dvh - 128px)); }
  .hub-logo { font-size: 1.3rem; grid-column: 1; }
  .hub-actions { grid-column: 2; }
  .hub-actions span { display: none; }
  .hub-hero { margin-top: 24px; min-height: 237px; }
  .hero-copy { top: 24px; }
  .hero-copy h1 { font-size: 1.55rem; margin: 5px 0 5px; }
  .hero-copy p { font-size: .7rem; line-height: 1.35; padding: 0 10px; }
  .hero-points { flex-wrap: wrap; bottom: 9px; }
  .hero-points li { font-size: .54rem; padding: 6px 7px; }
  .hub-composer { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hub-composer > button:last-of-type { grid-column: 1 / -1; }
  .composer-attachment { grid-column: 1 / -1; }
  .hub-right { display: grid; grid-template-columns: 1fr; padding: 0 11px 18px; }
  .connect-panel article { grid-template-columns: auto minmax(0, 1fr) auto; }
  .story-strip { gap: 14px; padding: 15px 2px; }
  .story-create button, .story-item { flex-basis: 72px; }
  .story-create .hub-avatar.large, .story-item .hub-avatar.large { height: 60px; width: 60px; }
  .feed-tabs { gap: 22px; overflow-x: auto; }
  .feed-tabs a { flex: 0 0 auto; }
  .feed-navigation { align-items: stretch; flex-direction: column; gap: 8px; }.feed-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.feed-filters select { width: 100%; }
  .hub-empty { min-height: 132px; padding: 18px 14px; }
  .store-page { padding: 20px 14px; }
  .store-top { flex-wrap: wrap; }
  .store-intro { padding-top: 42px; }
  .store-showcase { margin: 22px 0; min-height: 500px; }
  .store-showcase-slide { align-content: start; gap: 18px; grid-template-columns: 1fr; min-height: 500px; padding: 28px 22px 70px; }
  .store-showcase-copy h1 { font-size: 2rem; }
  .store-showcase-copy p { font-size: .86rem; }
  .store-showcase-media { grid-row: 1; height: 220px; }
  .store-showcase-controls { bottom: 18px; left: 22px; }
  .store-carousel { grid-auto-columns: minmax(280px,88vw); }
  .store-card { min-height: 420px; }
  .store-item-modal { padding: 12px; }
  .store-item-modal > section { max-height: calc(100dvh - 24px); padding: 16px; }
  .store-item-modal-body { grid-template-columns: 1fr; }
  .store-item-modal-media { min-height: 260px; }
  .server-hero { margin-top: 14px; min-height: 150px; padding: 20px; }.server-hero-image { height: 72px; width: 72px; }.server-hero h1 { font-size: 1.3rem; }
  .channel-directory, .settings-form, .settings-grid, .settings-files { grid-template-columns: 1fr; }
  .settings-grid > section:last-child { grid-column: auto; }
  .server-member-list > article { grid-template-columns: minmax(0,1fr) auto; }
  .server-member-list > article > form { grid-column: 1 / -1; }
  .member-actions { align-items: stretch !important; flex-wrap: wrap; justify-content: flex-start; }
  .member-actions input { flex: 1 1 100%; margin: 0; min-width: 0; }
  .server-audit > article { grid-template-columns: 1fr auto; }
  .server-audit > article span, .server-audit > article p { grid-column: 1 / -1; }
  .server-audit > article time { grid-column: 2; }
  .server-moderation > article { grid-template-columns: 1fr; }.server-moderation article form { justify-content: stretch; }.server-moderation article form button { flex: 1; }
  .storage-breakdown, .storage-cleanup { grid-template-columns: 1fr; }
  .mobile-app-nav { align-items: center; background: rgba(8,9,16,.97); border-top: 1px solid rgba(178,107,246,.25); bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); height: 68px; left: 0; padding: 5px max(7px,env(safe-area-inset-left)); position: fixed; right: 0; z-index: 45; }
  .mobile-app-nav a, .mobile-app-nav button { align-items: center; background: transparent; border: 0; color: #aca3b8; display: flex; flex-direction: column; gap: 3px; justify-content: center; min-width: 0; text-decoration: none; }.mobile-app-nav span { font-size: 1.1rem; }.mobile-app-nav small { font-size: .62rem; }.mobile-app-nav button span { align-items: center; background: #6725b5; border-radius: 50%; color: white; display: flex; height: 34px; justify-content: center; width: 34px; }
  .post-edit-form { grid-template-columns: 1fr 1fr; }.post-edit-form textarea { grid-column: 1 / -1; }
}

@media (max-width: 980px) and (min-width: 761px) {
  .store-showcase-slide { gap: 28px; grid-template-columns: minmax(0,1fr) minmax(250px,42%); padding: 38px 46px 64px; }
  .store-showcase-copy h1 { font-size: 2.15rem; }
  .store-showcase-controls { left: 46px; }
  .store-carousel { grid-auto-columns: minmax(300px,48%); }
}

@media (min-width: 761px) {
  .hub-page { padding: 0; }
  .hub-frame { border: 0; border-radius: 0; box-shadow: none; max-width: none; min-height: 100vh; }
}
