:root {
  --bg: #0a0b0d;
  --bg-soft: #101217;
  --surface: #13161d;
  --surface-2: #181c24;
  --surface-3: #202630;
  --text: #f6f2ea;
  --muted: #b8b0a4;
  --soft: #817b72;
  --line: rgba(246, 242, 234, .12);
  --line-strong: rgba(246, 242, 234, .22);
  --accent: #36d6b8;
  --accent-2: #e8bf6a;
  --accent-3: #ed7d62;
  --danger: #ff8b8b;
  --ok: #7ce0a3;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, .26);
  --radius: 8px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 26rem),
    linear-gradient(135deg, #090a0c 0%, #111318 48%, #0a0b0d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .64), transparent 68%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

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

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4%, 56px);
  background: rgba(10, 11, 13, .84);
  border-bottom: 1px solid rgba(246, 242, 234, .10);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.brand b {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav button,
.mobile-menu {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 760;
}

.nav button:hover,
.nav button.active {
  color: var(--text);
  background: rgba(246, 242, 234, .07);
  border-color: var(--line);
}

.nav button.cta {
  color: #08110f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.mobile-menu {
  display: none;
  color: var(--text);
  font-size: 20px;
}

main {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 4%, 42px) 88px;
  flex: 1;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px clamp(18px, 4%, 56px);
  color: var(--soft);
  border-top: 1px solid rgba(246, 242, 234, .08);
  font-size: 13px;
}

.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 234, .06);
  color: var(--text);
  font-weight: 820;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(246, 242, 234, .10);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.btn.primary {
  color: #07110f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 42px rgba(54, 214, 184, .16);
}

.btn.dark {
  background: rgba(0, 0, 0, .20);
}

.btn.danger {
  color: #ffd8d8;
  background: rgba(255, 139, 139, .10);
  border-color: rgba(255, 139, 139, .28);
}

.btn.tiny {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.btn.wide {
  width: 100%;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(54, 214, 184, .28);
  border-radius: 999px;
  background: rgba(54, 214, 184, .08);
  color: #bff7ec;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: 72px;
  line-height: .96;
  font-weight: 860;
}

h2 {
  margin-bottom: 10px;
  font-size: 42px;
  line-height: 1.06;
  font-weight: 820;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 780;
}

.lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent) 44%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.soft {
  color: var(--soft);
}

.row,
.chips,
.actions,
.inline-actions,
.post-actions,
.message-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 42px;
  align-items: start;
  min-height: calc(100vh - 154px);
  padding: 46px 0 38px;
}

.hero > div:first-child {
  min-width: 0;
}

.hero-logo {
  display: block;
  width: 190px;
  height: 74px;
  margin: 0 0 22px;
  object-fit: cover;
  object-position: 50% 76%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 28px;
}

.proof {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 234, .045);
}

.proof b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.2;
}

.proof small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.auth-card,
.card,
.tile,
.metric,
.feed-card,
.composer-card,
.side-panel,
.profile-card {
  border-radius: var(--radius);
}

.auth-card {
  padding: 24px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(54, 214, 184, .28);
  border-radius: var(--radius);
  color: #bff7ec;
  background: rgba(54, 214, 184, .08);
}

.card-title h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.card-title p {
  margin: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: #ddd7cd;
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(246, 242, 234, .38);
}

select option {
  color: #f8f3ec;
  background: #151820;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(54, 214, 184, .56);
  box-shadow: 0 0 0 4px rgba(54, 214, 184, .10);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.span2 {
  grid-column: 1 / -1;
}

.text-btn {
  padding: 8px;
  border: 0;
  background: transparent;
  color: #bff7ec;
  font-weight: 820;
}

.product-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
    #11141a;
  box-shadow: var(--shadow);
}

.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(246, 242, 234, .09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #07110f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 860;
}

.avatar.big {
  width: 82px;
  height: 82px;
  font-size: 28px;
}

.bento {
  display: grid;
  grid-template-columns: 1.08fr .92fr 1fr;
  gap: 16px;
  margin: 12px 0 30px;
}

.tile {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(246, 242, 234, .045);
}

.tile.large {
  grid-row: span 2;
}

.tile p,
.card p {
  color: var(--muted);
  line-height: 1.58;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 242, 234, .055);
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 10px 0 20px;
}

.section-head p {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 20px;
  text-align: left;
}

button.card {
  width: 100%;
  color: var(--text);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
}

.dashboard-hero h2 {
  margin-bottom: 7px;
}

.metric {
  padding: 18px;
}

.metric small {
  display: block;
  color: var(--muted);
  font-weight: 760;
}

.metric b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.social-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.left-rail,
.right-rail {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.main-feed {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.feed-card,
.composer-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(246, 242, 234, .045);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment {
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid rgba(246, 242, 234, .08);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .16);
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.comment-form input {
  flex: 1;
}

.progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(246, 242, 234, .08);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px;
  border: 1px solid rgba(246, 242, 234, .10);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .16);
}

.toolbar button {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 242, 234, .055);
  color: var(--text);
  font-weight: 780;
}

.emoji-panel {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  margin-top: 8px;
  border: 1px solid rgba(246, 242, 234, .10);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
}

.emoji-panel button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: rgba(246, 242, 234, .07);
  font-size: 18px;
}

.reply-preview {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(54, 214, 184, .22);
  border-radius: var(--radius);
  background: rgba(54, 214, 184, .08);
  color: #d8fbf4;
}

.searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 170px;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 18px;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.profile-card > * {
  position: relative;
}

.profile-card .top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.room-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 260px;
  gap: 16px;
}

.room-layout,
.message-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.side-panel {
  padding: 16px;
}

.list {
  display: grid;
  gap: 10px;
}

.list button,
.conversation {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 234, .045);
  color: var(--text);
  text-align: left;
}

.list button.active,
.conversation.active {
  border-color: rgba(54, 214, 184, .40);
  background: rgba(54, 214, 184, .10);
}

.chatbox {
  display: flex;
  flex-direction: column;
  height: 670px;
  overflow: hidden;
}

.pinned {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(54, 214, 184, .18);
  background: rgba(54, 214, 184, .08);
  color: #d8fbf4;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  overflow: auto;
  padding: 20px;
}

.bubble {
  max-width: 82%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 234, .065);
  line-height: 1.45;
}

.bubble.me {
  align-self: flex-end;
  border-color: rgba(54, 214, 184, .24);
  background: rgba(54, 214, 184, .10);
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: var(--soft);
}

.quote {
  padding: 7px 10px;
  margin-bottom: 8px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(54, 214, 184, .08);
  color: #d8fbf4;
}

.message-actions button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 242, 234, .055);
  color: var(--text);
  font-size: 12px;
}

.composer {
  display: grid;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}

.composer-row {
  display: flex;
  gap: 10px;
}

.composer-row textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--soft);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

.empty,
.loader {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

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

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(460px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #171a21;
  color: #ffffff;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: var(--shadow);
}

.error {
  padding: 13px 15px;
  border: 1px solid rgba(255, 139, 139, .28);
  border-radius: var(--radius);
  background: rgba(255, 139, 139, .10);
  color: #ffd8d8;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1180px) {
  .hero,
  .social-layout,
  .room-shell,
  .room-layout,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .left-rail,
  .right-rail {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile.large {
    grid-row: auto;
  }

  .searchbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px;
  }

  .mobile-menu {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 12px;
    right: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 19, 24, .98);
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: grid;
  }

  .nav button {
    justify-content: flex-start;
    text-align: left;
  }

  .brand small {
    display: none;
  }

  main {
    padding: 24px 14px 74px;
  }

  h1 {
    font-size: 44px;
    line-height: 1;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 17px;
  }

  .hero {
    gap: 22px;
    padding-top: 24px;
  }

  .hero-logo {
    width: 156px;
    height: 62px;
  }

  .hero-proof,
  .grid.two,
  .grid.three,
  .grid.four,
  .bento,
  .two,
  .searchbar,
  .left-rail,
  .right-rail,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .span2 {
    grid-column: auto;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .chatbox {
    height: 590px;
  }

  .bubble {
    max-width: 94%;
  }

  .composer-row,
  .comment-form {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .actions .btn,
  .inline-actions .btn,
  .post-actions .btn,
  .message-actions button {
    width: auto;
  }
}

/* Product-led redesign overrides */
h1 {
  font-size: 58px;
  line-height: 1.05;
  font-weight: 720;
}

h2 {
  font-size: 36px;
  font-weight: 740;
}

h3 {
  font-weight: 740;
}

.hero.hero-showcase {
  position: relative;
  display: block;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 88px 0 116px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 56%);
}

.hero-showcase .lead {
  max-width: 700px;
}

.hero-stage {
  position: absolute;
  z-index: 1;
  top: 54px;
  right: -54px;
  width: min(780px, 60vw);
  opacity: .78;
}

.stage-shell {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 210px;
  gap: 12px;
  min-height: 520px;
  padding: 12px;
  border: 1px solid rgba(246, 242, 234, .16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)), #15181f;
  box-shadow: 0 38px 110px rgba(0, 0, 0, .48);
  transform: perspective(1400px) rotateY(-9deg) rotateX(2deg);
}

.stage-sidebar,
.stage-main,
.stage-panel,
.stage-card,
.stage-post {
  border: 1px solid rgba(246, 242, 234, .10);
  border-radius: 8px;
}

.stage-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  color: rgba(246, 242, 234, .72);
  background: rgba(0, 0, 0, .18);
  font-size: 12px;
  font-weight: 760;
}

.stage-brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #07110f;
  background: linear-gradient(135deg, #36d6b8, #e8bf6a);
  font-weight: 900;
}

.stage-main {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, .06);
}

.stage-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stage-top b,
.stage-card b,
.stage-panel b {
  display: block;
  color: #fffaf2;
  font-size: 18px;
}

.stage-top small,
.stage-card small {
  display: block;
  color: rgba(246, 242, 234, .60);
  margin-top: 3px;
}

.stage-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  color: #dffcf6;
  background: rgba(54, 214, 184, .14);
  border: 1px solid rgba(54, 214, 184, .25);
  font-size: 12px;
  font-weight: 760;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stage-card {
  min-height: 145px;
  padding: 14px;
  color: rgba(246, 242, 234, .78);
  background: rgba(0, 0, 0, .18);
}

.stage-card.span {
  grid-column: 1 / -1;
  min-height: 170px;
}

.stage-card.warm {
  border-color: rgba(232, 191, 106, .24);
  background: rgba(232, 191, 106, .09);
}

.stage-card.clay {
  border-color: rgba(237, 125, 98, .26);
  background: rgba(237, 125, 98, .10);
}

.stage-card p,
.stage-post p {
  margin: 8px 0 0;
  color: rgba(246, 242, 234, .72);
  line-height: 1.45;
}

.stage-meter {
  height: 8px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.stage-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #36d6b8, #e8bf6a);
}

.stage-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, .18);
}

.stage-post {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .055);
}

.stage-post span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #07110f;
  background: linear-gradient(135deg, #36d6b8, #e8bf6a);
  font-size: 12px;
  font-weight: 900;
}

.stage-action {
  min-height: 38px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  color: #07110f;
  background: linear-gradient(135deg, #36d6b8, #e8bf6a);
  font-weight: 840;
}

.hero-auth {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4%, 42px);
  bottom: 42px;
  width: min(430px, 38vw);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -54px 0 30px;
}

.signal-strip div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 242, 234, .055);
}

.signal-strip b,
.signal-strip span {
  display: block;
}

.signal-strip span {
  margin-top: 5px;
  color: var(--muted);
}

.product-thesis .tile.large h3 {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.14;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.comparison {
  padding: 22px;
}

.comparison span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(246, 242, 234, .055);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 760;
}

.comparison b {
  display: block;
  font-size: 22px;
}

.comparison.featured {
  border-color: rgba(54, 214, 184, .35);
  background: linear-gradient(180deg, rgba(54, 214, 184, .13), rgba(255, 255, 255, .04)), var(--surface);
}

.section-head.compact {
  margin: 0 0 14px;
}

body.member-mode {
  --bg: #f4f0e8;
  --bg-soft: #f7f3ec;
  --surface: #fffaf2;
  --surface-2: #f2ede5;
  --surface-3: #e6dfd5;
  --text: #1f221e;
  --muted: #6d675f;
  --soft: #8a8379;
  --line: rgba(31, 34, 30, .12);
  --line-strong: rgba(31, 34, 30, .22);
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(31, 34, 30, .035) 1px, transparent 1px),
    linear-gradient(rgba(31, 34, 30, .025) 1px, transparent 1px),
    #f4f0e8;
  background-size: 72px 72px, 72px 72px, auto;
}

body.member-mode::before {
  display: none;
}

body.member-mode .topbar {
  background: rgba(255, 250, 242, .86);
  border-bottom-color: rgba(31, 34, 30, .10);
  box-shadow: 0 10px 30px rgba(31, 34, 30, .06);
}

body.member-mode .brand,
body.member-mode .nav button,
body.member-mode .mobile-menu,
body.member-mode .btn,
body.member-mode .list button,
body.member-mode .conversation,
body.member-mode .message-actions button {
  color: var(--text);
}

body.member-mode .nav button:hover,
body.member-mode .nav button.active {
  background: rgba(31, 34, 30, .07);
  border-color: var(--line);
}

body.member-mode .glass,
body.member-mode .feed-card,
body.member-mode .composer-card,
body.member-mode .profile-card,
body.member-mode .tile {
  background: rgba(255, 250, 242, .86);
  border-color: rgba(31, 34, 30, .12);
  box-shadow: 0 18px 50px rgba(31, 34, 30, .09);
  backdrop-filter: blur(12px);
}

body.member-mode input,
body.member-mode select,
body.member-mode textarea {
  color: var(--text);
  background: rgba(255, 255, 255, .58);
  border-color: rgba(31, 34, 30, .14);
}

body.member-mode label {
  color: #403a32;
}

body.member-mode .kicker {
  color: #0c6f61;
  background: rgba(54, 214, 184, .12);
  border-color: rgba(54, 214, 184, .28);
}

body.member-mode .toolbar {
  background: rgba(31, 34, 30, .045);
  border-color: rgba(31, 34, 30, .10);
}

body.member-mode .toolbar button {
  color: #1f221e;
  background: rgba(255, 255, 255, .58);
  border-color: rgba(31, 34, 30, .14);
}

body.member-mode input::placeholder,
body.member-mode textarea::placeholder {
  color: rgba(31, 34, 30, .42);
}

body.member-mode select option {
  color: #1f221e;
  background: #fffaf2;
}

body.member-mode .btn.dark {
  background: rgba(31, 34, 30, .04);
}

body.member-mode .dashboard-hero {
  background:
    linear-gradient(135deg, rgba(54, 214, 184, .14), rgba(232, 191, 106, .10)),
    #fffaf2;
}

.member-dashboard {
  display: grid;
  gap: 18px;
}

.today-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.command-panel,
.daily-board,
.trust-card {
  padding: 20px;
}

.command-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-stats span,
.mini-stats button {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 34, 30, .035);
  color: var(--text);
  text-align: left;
}

.mini-stats b,
.mini-stats small {
  display: block;
}

.mini-stats small {
  color: var(--muted);
}

.intro-row {
  display: grid;
  gap: 12px;
}

.intro-card,
.suggestion-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .46);
}

.intro-card p,
.suggestion-card p {
  margin: 3px 0 8px;
  color: var(--muted);
}

.trust-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.card-button {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.admin-actions {
  min-width: 360px;
}

.report-item {
  display: grid;
  gap: 10px;
}

.trust-step,
.signal-list span,
.signal-list button,
.mini-signal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-step {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .46);
}

.trust-step b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #07110f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.social-layout.upgraded {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.social-layout.upgraded .right-rail {
  top: 92px;
}

.composer-card.elevated {
  border-color: rgba(54, 214, 184, .24);
}

.suggestion-card {
  margin-top: 10px;
}

.mini-signal {
  margin-top: 7px;
  color: var(--soft);
  font-size: 12px;
}

.signal-list {
  display: grid;
  gap: 8px;
}

.signal-list span,
.signal-list button {
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.signal-list span:last-child,
.signal-list button:last-child {
  border-bottom: 0;
}

.signal-list button:hover,
.mini-stats button:hover,
.live-metrics button:hover,
.card-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.discovery-panel {
  padding: 20px;
}

.premium-profile {
  min-height: 330px;
}

.profile-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-signal span {
  color: var(--muted);
}

.profile-signal b {
  color: #0b8f78;
}

body.member-mode .chatbox,
body.member-mode .messages,
body.member-mode .side-panel,
body.member-mode .pinned,
body.member-mode .bubble,
body.member-mode .composer {
  border-color: var(--line);
}

body.member-mode .pinned,
body.member-mode .bubble.me,
body.member-mode .quote {
  color: #16463e;
  background: rgba(54, 214, 184, .12);
}

body.member-mode .bubble,
body.member-mode .comment {
  background: rgba(255, 255, 255, .48);
}

.lounge-page {
  display: grid;
  gap: 18px;
}

.lounge-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.lounge-rail,
.lounge-main,
.lounge-side {
  padding: 16px;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lounge-list,
.presence-list,
.event-stack {
  display: grid;
  gap: 10px;
}

.lounge-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .46);
  text-align: left;
}

.lounge-channel.active {
  border-color: rgba(54, 214, 184, .44);
  background: rgba(54, 214, 184, .12);
}

.lounge-channel.special {
  border-style: dashed;
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #07110f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.lounge-channel b,
.lounge-channel small,
.lounge-channel em {
  display: block;
}

.lounge-channel small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.lounge-channel em {
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.lounge-note {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 34, 30, .035);
}

.lounge-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.live-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(54, 214, 184, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(54, 214, 184, .13), rgba(232, 191, 106, .09));
}

.live-stage h3 {
  margin: 7px 0 5px;
}

.live-stage p {
  margin: 0;
  color: var(--muted);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0c6f61;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.stage-speakers {
  display: flex;
  align-items: center;
}

.stage-speakers .avatar {
  margin-left: -8px;
  border: 2px solid var(--surface);
}

.stage-speakers .avatar:first-child {
  margin-left: 0;
}

.stage-controls {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lounge-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 34, 30, .035);
}

.lounge-tabs button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.lounge-tabs button.active {
  color: var(--text);
  background: rgba(255, 255, 255, .68);
  border-color: var(--line);
}

.lounge-panel {
  min-height: 520px;
}

.lounge-chat-wrap {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .32);
}

.lounge-messages {
  min-height: 340px;
}

.lounge-composer {
  border-top: 1px solid var(--line);
}

.lounge-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prompt-card,
.event-card,
.intro-circle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .48);
}

.prompt-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  color: var(--text);
  text-align: left;
}

.prompt-card span,
.event-card span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.event-card {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.event-card.live {
  border-color: rgba(54, 214, 184, .34);
  background: rgba(54, 214, 184, .10);
}

.event-card p,
.intro-circle p {
  margin: 0;
}

.intro-circle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.presence {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .46);
}

.presence .avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.presence b,
.presence small {
  display: block;
}

.presence small {
  margin-top: 2px;
  color: var(--muted);
}

.agenda {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.agenda div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 34, 30, .035);
}

.agenda span {
  color: var(--muted);
}

.moderation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.moderation-item:last-child {
  border-bottom: 0;
}

.moderation-item h3 {
  margin: 8px 0 5px;
}

.moderation-item p {
  margin-bottom: 8px;
  color: var(--muted);
}

.live-dashboard {
  gap: 18px;
}

.live-hero {
  position: relative;
  overflow: hidden;
}

.live-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 12px rgba(54, 214, 184, .12), 0 0 34px rgba(54, 214, 184, .38);
}

.live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 10px;
  min-width: min(520px, 100%);
}

.live-metrics span,
.live-metrics button {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .52);
  color: var(--text);
  text-align: left;
}

.live-metrics b {
  font-size: 24px;
}

.live-metrics small {
  color: var(--muted);
}

.live-strip {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.live-strip button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .52);
  color: var(--text);
  font-weight: 760;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.task-grid button {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  color: var(--text);
  text-align: left;
}

.task-grid span {
  color: var(--muted);
  line-height: 1.4;
}

.pulse-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  margin: 12px auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent-3), rgba(31,34,30,.12) 78%);
}

.pulse-ring span {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--surface);
}

.pulse-ring b {
  position: relative;
  z-index: 1;
  font-size: 34px;
}

.discover-search {
  grid-template-columns: minmax(0, 1fr) 190px 150px auto;
}

.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.quick-filters button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .52);
  font-weight: 760;
}

@media (max-width: 760px) {
  .live-metrics,
  .live-strip,
  .task-grid,
  .discover-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .hero-stage {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: 36px 0 20px;
  }

  .stage-shell {
    transform: none;
  }

  .hero-copy,
  .hero-auth {
    width: 100%;
  }

  .hero-auth {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
  }

  .signal-strip,
  .comparison-grid,
  .today-grid,
  .social-layout.upgraded,
  .lounge-shell {
    grid-template-columns: 1fr;
  }

  .lounge-side {
    order: 3;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero.hero-showcase {
    padding: 38px 0 64px;
  }

  .hero-copy {
    width: 100%;
  }

  .stage-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stage-sidebar,
  .stage-panel {
    display: none;
  }

  .stage-grid {
    grid-template-columns: 1fr;
  }

  .stage-card.span {
    grid-column: auto;
  }

  .signal-strip {
    margin-top: -22px;
  }

  .intro-card,
  .suggestion-card,
  .live-stage,
  .intro-circle {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-stage > div:first-child,
  .stage-controls,
  .intro-circle > div {
    grid-column: 1 / -1;
  }

  .lounge-panel-grid {
    grid-template-columns: 1fr;
  }

  .intro-card .btn,
  .suggestion-card .btn,
  .stage-controls .btn,
  .intro-circle .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.member-mode .nav {
    background: rgba(255, 250, 242, .98);
  }
}

/* Executive visual polish: quieter palette, tighter type, product-grade density */
:root {
  --bg: #080b0f;
  --bg-soft: #0f1318;
  --surface: #151a20;
  --surface-2: #1b2229;
  --surface-3: #222b33;
  --text: #f2f4f1;
  --muted: #a7b0aa;
  --soft: #727d78;
  --line: rgba(226, 232, 226, .12);
  --line-strong: rgba(226, 232, 226, .22);
  --accent: #1f8a70;
  --accent-2: #b68a47;
  --accent-3: #547391;
  --danger: #c75555;
  --ok: #2f8f63;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, .18);
}

body {
  font-size: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 22rem),
    #080b0f;
}

body::before {
  opacity: .35;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 80px 80px;
}

main {
  padding-top: 28px;
}

.topbar {
  padding: 10px clamp(18px, 4%, 48px);
  background: rgba(8, 11, 15, .88);
}

.brand-logo {
  width: 38px;
  height: 38px;
}

.brand b {
  font-size: 16px;
  font-weight: 760;
}

.brand small,
.footer,
.soft,
.metric small,
.live-metrics small,
.lounge-channel em {
  font-size: 12px;
}

.nav button,
.mobile-menu,
.btn,
.toolbar button,
.quick-filters button {
  font-size: 13px;
  font-weight: 680;
}

.btn {
  min-height: 38px;
  padding: 9px 12px;
  box-shadow: none;
}

.btn:hover {
  transform: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .14);
}

.btn.primary,
.nav button.cta,
.stage-brand,
.stage-post span,
.stage-action {
  color: #f7fbf8;
  background: #1f6f5f;
  box-shadow: none;
}

.gradient-text {
  color: var(--accent-2);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.glass,
.product-card,
.stage-shell,
.feed-card,
.composer-card,
.profile-card,
.tile,
.card,
.side-panel,
.chatbox,
.lounge-rail,
.lounge-main,
.lounge-side {
  box-shadow: var(--shadow-soft);
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 760;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  font-weight: 740;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 720;
}

.lead {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.58;
}

.kicker {
  padding: 6px 9px;
  color: #d8eee8;
  background: rgba(31, 138, 112, .12);
  border-color: rgba(31, 138, 112, .24);
  font-size: 11px;
  font-weight: 760;
}

.hero.hero-showcase {
  min-height: calc(100vh - 68px);
  padding: 62px 0 92px;
}

.hero-logo {
  width: 154px;
  height: 60px;
}

.hero-stage {
  opacity: .64;
}

.stage-shell {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)), #11161c;
}

.stage-top b,
.stage-card b,
.stage-panel b {
  font-size: 16px;
}

.auth-card,
.card,
.tile,
.feed-card,
.composer-card,
.side-panel,
.profile-card {
  padding: 16px;
}

body.member-mode {
  --bg: #f5f7f4;
  --bg-soft: #edf1ee;
  --surface: #ffffff;
  --surface-2: #f3f5f2;
  --surface-3: #e7ebe6;
  --text: #18211d;
  --muted: #66736d;
  --soft: #7f8984;
  --line: rgba(24, 33, 29, .10);
  --line-strong: rgba(24, 33, 29, .18);
  background:
    linear-gradient(180deg, rgba(31, 111, 95, .04), transparent 260px),
    #f5f7f4;
  background-size: auto;
}

body.member-mode .topbar {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(24, 33, 29, .055);
}

body.member-mode .glass,
body.member-mode .feed-card,
body.member-mode .composer-card,
body.member-mode .profile-card,
body.member-mode .tile {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(24, 33, 29, .09);
  box-shadow: 0 10px 28px rgba(24, 33, 29, .075);
}

body.member-mode .dashboard-hero,
body.member-mode .live-hero {
  background:
    linear-gradient(135deg, rgba(31, 111, 95, .10), rgba(84, 115, 145, .07)),
    #ffffff;
}

body.member-mode .btn.primary,
body.member-mode .nav button.cta {
  color: #ffffff;
  background: #1f6f5f;
}

body.member-mode .kicker {
  color: #1f6f5f;
  background: rgba(31, 111, 95, .08);
  border-color: rgba(31, 111, 95, .18);
}

body.member-mode label {
  color: #2e3834;
}

body.member-mode input,
body.member-mode select,
body.member-mode textarea,
.live-metrics span,
.live-metrics button,
.live-strip button,
.task-grid button,
.quick-filters button {
  background: #ffffff;
}

.dashboard-hero {
  padding: 18px;
}

.dashboard-hero h2,
.live-hero h2 {
  font-size: clamp(23px, 2.5vw, 30px);
}

.member-dashboard,
.live-dashboard {
  gap: 14px;
}

.live-metrics {
  min-width: min(440px, 100%);
  gap: 8px;
}

.live-metrics span,
.live-metrics button {
  padding: 10px;
}

.live-metrics b,
.metric b {
  font-size: 21px;
  font-weight: 760;
}

.live-strip {
  padding: 10px;
}

.live-strip button {
  min-height: 38px;
  text-align: left;
}

.today-grid {
  grid-template-columns: 240px minmax(0, 1fr) 270px;
  gap: 14px;
}

.command-panel,
.daily-board,
.trust-card {
  padding: 16px;
}

.task-grid {
  gap: 10px;
}

.task-grid button {
  min-height: 94px;
  padding: 12px;
}

.task-grid b,
.profile-card h3,
.lounge-channel b,
.presence b {
  font-size: 14px;
}

.pulse-ring {
  width: 104px;
  height: 104px;
}

.pulse-ring b {
  font-size: 28px;
}

.social-layout {
  grid-template-columns: 250px minmax(0, 1fr) 300px;
}

.feed-card p,
.comment,
.profile-card p,
.lounge-channel small,
.stage-card p,
.stage-post p {
  font-size: 13px;
  line-height: 1.5;
}

.profile-card::before,
.progress span,
.stage-meter span {
  background: linear-gradient(90deg, #1f6f5f, #547391);
}

.discover-search {
  grid-template-columns: minmax(0, 1fr) 180px 140px auto;
}

.lounge-shell {
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 14px;
}

.lounge-rail,
.lounge-main,
.lounge-side {
  padding: 14px;
}

.lounge-channel {
  padding: 11px;
}

.lounge-channel.active,
.conversation.active,
.list button.active {
  border-color: rgba(31, 111, 95, .34);
  background: rgba(31, 111, 95, .075);
}

.live-stage {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(31, 111, 95, .09), rgba(84, 115, 145, .06)),
    #ffffff;
}

.stage-controls {
  gap: 8px;
}

input,
select,
textarea {
  min-height: 40px;
  padding: 10px 11px;
  font-size: 13px;
}

textarea {
  line-height: 1.45;
}

@media (max-width: 760px) {
  h1 {
    font-size: 36px;
  }

  h2,
  .dashboard-hero h2,
  .live-hero h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 15px;
  }

  .hero.hero-showcase {
    padding: 34px 0 58px;
  }

  .topbar {
    padding: 10px 16px;
  }

  .dashboard-hero,
  .live-strip,
  .today-grid,
  .social-layout.upgraded,
  .lounge-shell,
  .live-metrics,
  .task-grid,
  .discover-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-hero,
  .live-strip,
  .today-grid,
  .social-layout.upgraded {
    width: 100%;
  }

  .trust-card,
  .right-rail,
  .main-feed,
  .feed-card,
  .composer-card {
    min-width: 0;
  }

  .live-hero::after {
    right: 16px;
    top: 16px;
  }
}

/* Logo-led theme and final typography pass */
:root {
  --bg: #06082a;
  --bg-soft: #0d1142;
  --surface: #101446;
  --surface-2: #171b58;
  --surface-3: #21256b;
  --text: #f8fbff;
  --muted: #c3c9df;
  --soft: #8991b6;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: #08d7f7;
  --accent-2: #f23ad4;
  --accent-3: #743cff;
  --shadow: 0 18px 46px rgba(0, 0, 0, .30);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .20);
}

body {
  background:
    radial-gradient(circle at 18% 6%, rgba(8, 215, 247, .16), transparent 30rem),
    radial-gradient(circle at 84% 4%, rgba(242, 58, 212, .14), transparent 28rem),
    linear-gradient(180deg, #0a0d38 0%, #06082a 56%, #050720 100%);
}

body::before {
  opacity: .22;
}

.brand-logo,
.hero-logo {
  object-fit: contain;
  object-position: center;
  background: #080b31;
}

.brand-logo {
  border-radius: 7px;
}

.hero-logo {
  width: 148px;
  height: 148px;
  padding: 8px;
  border-color: rgba(8, 215, 247, .22);
}

.hero.hero-showcase {
  min-height: auto;
  padding: 44px 0 76px;
}

.hero-copy {
  width: min(560px, 50%);
}

.hero.hero-showcase h1,
h1 {
  max-width: 640px;
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: 1.08;
  font-weight: 720;
}

.hero-showcase .lead,
.lead {
  max-width: 580px;
  font-size: 15.5px;
  line-height: 1.62;
}

h2 {
  font-size: clamp(23px, 2.4vw, 30px);
}

h3 {
  font-size: 16px;
}

.gradient-text {
  color: #ffffff;
  background: linear-gradient(90deg, #08d7f7, #d04aff 52%, #f23ad4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn.primary,
.nav button.cta,
.stage-action {
  color: #050720;
  background: linear-gradient(135deg, #08d7f7, #f23ad4);
}

.kicker {
  color: #dffbff;
  background: rgba(8, 215, 247, .10);
  border-color: rgba(8, 215, 247, .25);
}

.stage-shell {
  background:
    linear-gradient(135deg, rgba(8, 215, 247, .10), rgba(242, 58, 212, .08)),
    #0d1142;
}

.stage-brand,
.stage-post span {
  color: #050720;
  background: linear-gradient(135deg, #08d7f7, #f23ad4);
}

.stage-card.warm {
  border-color: rgba(242, 58, 212, .26);
  background: rgba(242, 58, 212, .08);
}

.stage-card.clay {
  border-color: rgba(116, 60, 255, .28);
  background: rgba(116, 60, 255, .09);
}

.stage-meter span,
.profile-card::before,
.progress span {
  background: linear-gradient(90deg, #08d7f7, #743cff, #f23ad4);
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  color: #06082a;
  background: #08d7f7;
  font-size: 11px;
  font-weight: 820;
}

body.member-mode {
  --bg: #f7f8ff;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f2f5ff;
  --surface-3: #e7edff;
  --text: #111733;
  --muted: #616b91;
  --soft: #838cac;
  --line: rgba(17, 23, 51, .10);
  --line-strong: rgba(17, 23, 51, .18);
  background:
    radial-gradient(circle at 16% 0%, rgba(8, 215, 247, .13), transparent 28rem),
    radial-gradient(circle at 84% 0%, rgba(242, 58, 212, .11), transparent 28rem),
    #f7f8ff;
}

body.member-mode .btn.primary,
body.member-mode .nav button.cta {
  color: #ffffff;
  background: linear-gradient(135deg, #145dbe, #bd2db4);
}

body.member-mode .dashboard-hero,
body.member-mode .live-hero,
body.member-mode .live-stage {
  background:
    linear-gradient(135deg, rgba(8, 215, 247, .10), rgba(242, 58, 212, .08)),
    #ffffff;
}

body.member-mode .kicker {
  color: #145dbe;
  background: rgba(8, 215, 247, .09);
  border-color: rgba(8, 215, 247, .22);
}

body.member-mode .nav-badge {
  color: #ffffff;
  background: #bd2db4;
}

.notification-centre {
  padding: 0;
  overflow: hidden;
}

.notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.notification-item small {
  color: var(--soft);
  font-size: 12px;
}

.notification-item.unread {
  background: rgba(8, 215, 247, .07);
}

.notice-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--soft);
}

.notification-item.unread .notice-dot {
  background: linear-gradient(135deg, #08d7f7, #f23ad4);
}

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

.password-tools {
  display: grid;
  gap: 8px;
  margin-top: -4px;
}

.strength {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--line);
}

.strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f23ad4, #743cff, #08d7f7);
  transition: width .18s ease;
}

.password-tools small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

body.member-mode .strength {
  background: rgba(17, 23, 51, .08);
}

/* Signup card must never clip on shorter laptop screens */
.hero.hero-showcase {
  overflow: visible;
}

.hero-auth {
  top: 42px;
  bottom: auto;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.hero-auth .card-title {
  margin-bottom: 14px;
}

.hero-auth form {
  gap: 11px;
}

.hero-auth input,
.hero-auth select {
  min-height: 40px;
}

@media (max-height: 820px) and (min-width: 1181px) {
  .hero-logo {
    width: 118px;
    height: 118px;
  }

  .hero.hero-showcase h1 {
    font-size: clamp(31px, 3.2vw, 40px);
  }

  .hero-showcase .lead {
    font-size: 14.5px;
  }

  .hero-auth {
    top: 24px;
    max-height: calc(100vh - 130px);
  }
}

@media (max-width: 1180px) {
  .hero-copy {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .hero-logo {
    width: 112px;
    height: 112px;
  }

  .hero.hero-showcase h1,
  h1 {
    font-size: 31px;
  }

  .hero-showcase .lead,
  .lead {
    font-size: 14.5px;
  }

  .notification-item {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .notification-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}
