.streets-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 139, 35, .22), transparent 30%),
    linear-gradient(180deg, #080301 0%, #160704 42%, #050201 100%);
  color: #f6ead7;
}

.streets-ribbon {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(211, 143, 38, .2);
  background: rgba(0, 0, 0, .8);
  color: #d8a34b;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 10px 16px;
  text-transform: uppercase;
}

@keyframes bwsPageEnter {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bwsPageExit {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(52px); }
}

.streets-shell {
  padding-bottom: 56px;
  animation: bwsPageEnter .38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.streets-shell.is-page-exiting {
  animation: bwsPageExit .24s ease-in both;
  pointer-events: none;
}

.streets-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.streets-hero-bg,
.streets-hero-overlay {
  position: absolute;
  inset: 0;
}

.streets-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.04);
}

.streets-hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,.52), rgba(20,7,2,.3) 48%, rgba(8,3,1,.92)),
    radial-gradient(circle at 50% 34%, rgba(226, 157, 53, .25), transparent 34%);
}

.streets-hero-content {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  text-align: center;
  padding: 96px 0 62px;
}

.streets-kicker,
.streets-panel-head span,
.streets-ad-slot span {
  color: #dba044;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.streets-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 148px);
  line-height: .86;
  margin: 8px 0 14px;
  color: #fff1d8;
  text-shadow: 0 5px 0 rgba(65, 26, 8, .92), 0 22px 50px rgba(0,0,0,.8);
}

.streets-hero p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 240, 218, .88);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
}

.streets-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(760px, 100%);
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 190, 84, .56);
  border-radius: 8px;
  background: rgba(8, 3, 1, .78);
  box-shadow: 0 20px 50px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}

.streets-search input,
.streets-search button,
.streets-composer input,
.streets-composer select,
.streets-composer textarea {
  border: 0;
  outline: none;
  font: inherit;
}

.streets-search input {
  background: rgba(255,255,255,.92);
  color: #2b170c;
  padding: 17px 18px;
}

.streets-search button,
.streets-composer button {
  background: linear-gradient(180deg, #e3a83b, #b86b1d);
  color: #180903;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 0 30px;
  text-transform: uppercase;
}

.streets-quick-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.streets-quick-nav button {
  border: 1px solid rgba(255, 185, 78, .5);
  border-radius: 7px;
  background: rgba(27, 9, 2, .86);
  color: #f7ddb1;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 12px 18px;
}

.streets-section,
.streets-grid,
.streets-ad-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
}

.streets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
}

.streets-panel,
.streets-card,
.forum-row,
.thread-card,
.activity-item,
.streets-ad-slot {
  border: 1px solid rgba(207, 132, 31, .36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 11, 2, .88), rgba(8, 3, 1, .92)),
    rgba(10, 4, 1, .88);
  box-shadow: 0 22px 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,227,178,.08);
}

.streets-panel {
  padding: 18px;
}

.streets-panel-head,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.streets-panel-head strong,
.section-heading h2 {
  color: #fff0d7;
  font-family: var(--font-ui);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  margin: 0;
}

.streets-source {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 999px;
  color: #dba044;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.streets-source[data-state="fallback"] {
  color: #f7c873;
}

.streets-source[data-state="live"] {
  color: #75e2ba;
}

.streets-composer form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.streets-composer label {
  display: grid;
  gap: 6px;
  color: rgba(255, 234, 204, .72);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.streets-composer input,
.streets-composer select,
.streets-composer textarea {
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 7px;
  background: rgba(0, 0, 0, .62);
  color: #fff5e6;
  padding: 13px 14px;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.composer-actions span {
  color: rgba(255, 234, 204, .7);
  font-size: 13px;
}

.composer-actions button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 185, 78, .32);
  border-radius: 7px;
  background: rgba(20, 8, 2, .72);
  color: rgba(246, 208, 139, .85);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  min-height: 42px;
  padding: 10px 20px;
  text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s;
}

.composer-actions button:hover:not(:disabled) {
  background: rgba(200, 137, 42, .2);
  border-color: rgba(255, 185, 78, .6);
  color: #fde48a;
}

/* Primary action buttons — send / submit / forward / share */
.composer-actions button[type="submit"],
#forward-submit-btn,
#share-user-submit-btn {
  background: linear-gradient(155deg, #c8892a 0%, #9a5c10 100%);
  border-color: rgba(200, 137, 42, .55);
  color: #fff0cc;
}

.composer-actions button[type="submit"]:hover:not(:disabled),
#forward-submit-btn:hover:not(:disabled),
#share-user-submit-btn:hover:not(:disabled) {
  background: linear-gradient(155deg, #dea040 0%, #b07020 100%);
  border-color: rgba(220, 165, 60, .8);
  color: #fff8e0;
}

/* Cancel / secondary ghost buttons */
#forward-cancel-btn,
#share-user-cancel-btn {
  background: transparent;
  border-color: rgba(255, 185, 78, .16);
  color: rgba(246, 208, 139, .45);
}

#forward-cancel-btn:hover,
#share-user-cancel-btn:hover {
  background: rgba(255, 60, 40, .07);
  border-color: rgba(255, 100, 80, .3);
  color: rgba(255, 170, 150, .75);
}

.composer-success {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(126, 226, 184, .32);
  border-radius: 10px;
  background: rgba(126, 226, 184, .08);
}

.composer-success p {
  margin: 0;
  color: #d9fbe9;
  font-size: 14px;
  line-height: 1.5;
}

.composer-success a {
  color: #7ee2b8;
  font-weight: 700;
}

.streets-composer.is-locked {
  opacity: .76;
}

.streets-composer.is-locked input,
.streets-composer.is-locked select,
.streets-composer.is-locked textarea,
.streets-composer.is-locked button {
  cursor: not-allowed;
}

.streets-guardrail ul,
.restriction-list,
.visibility-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.streets-guardrail li,
.restriction-item,
.visibility-item {
  list-style: none;
  border: 1px solid rgba(255, 185, 78, .18);
  border-radius: 7px;
  background: rgba(0,0,0,.28);
  color: rgba(255, 235, 206, .82);
  padding: 12px;
}

.hot-topic-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) repeat(2, minmax(220px, .75fr));
  grid-auto-rows: minmax(190px, auto);
  gap: 0;
  margin-top: 14px;
}

.thread-card {
  position: relative;
  min-height: 220px;
  border-radius: 0;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}

.thread-card.is-missing-link {
  border: 4px solid #e34435;
}

/* ::after is the hover overlay — reset it for the missing-link badge case */
.thread-card.is-missing-link::after {
  content: "Needs destination";
  position: absolute;
  inset: auto;          /* reset the base inset:0 */
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff4df;
  background: rgba(125, 14, 9, .86) !important;
  font: 900 10px var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: none;
}

.thread-card:first-child {
  grid-row: span 2;
}

.thread-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thread-bg, linear-gradient(135deg, rgba(179,94,21,.5), rgba(8,3,1,.75)));
  z-index: 0;
}

/* Dark overlay — sits above background (::before) but below content (> * z-index:1) */
.thread-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}
.thread-card:hover::after,
.thread-card:focus-within::after {
  background: rgba(0, 0, 0, 0.75);
}

.thread-card > * {
  position: relative;
  z-index: 1;
}

/* Hide description and tags until hover */
.thread-card .streets-cat-badge,
.thread-card .thread-badges,
.thread-card p,
.thread-card .thread-author-chip,
.thread-card .thread-meta,
.thread-card .thread-actions {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

/* Reveal on hover / keyboard focus */
.thread-card:hover .streets-cat-badge,
.thread-card:hover .thread-badges,
.thread-card:hover p,
.thread-card:hover .thread-author-chip,
.thread-card:hover .thread-meta,
.thread-card:hover .thread-actions,
.thread-card:focus-within .streets-cat-badge,
.thread-card:focus-within .thread-badges,
.thread-card:focus-within p,
.thread-card:focus-within .thread-author-chip,
.thread-card:focus-within .thread-meta,
.thread-card:focus-within .thread-actions {
  opacity: 1;
  transform: translateY(0);
}

.thread-badges,
.thread-meta,
.group-meta,
.forum-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.thread-badges span,
.group-meta span,
.forum-meta span,
.visibility-item span {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  color: #f0c576;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.thread-card h3,
.streets-card h3,
.forum-row h3 {
  color: #fff4e2;
  font-family: var(--font-ui);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  margin: 18px 0 10px;
}

.thread-card p,
.streets-card p,
.forum-row p,
.restriction-item p,
.visibility-item p {
  color: rgba(255, 235, 206, .82);
  line-height: 1.45;
  margin: 0;
}

.influencer-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.influencer-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 185, 78, .2);
  border-radius: 7px;
  background: rgba(0,0,0,.3);
  padding: 12px;
}

.influencer-option strong {
  color: #fff1d8;
  font-family: var(--font-ui);
  font-size: 16px;
}

.influencer-option p {
  color: rgba(255, 235, 206, .76);
  line-height: 1.4;
  margin: 5px 0 0;
}

.influencer-option > span {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 999px;
  color: #f0c576;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.influencer-option.is-locked {
  opacity: .74;
}

.influencer-option.is-enabled {
  border-color: rgba(111, 226, 177, .38);
  box-shadow: inset 0 0 0 1px rgba(111, 226, 177, .1);
}

.thread-meta {
  color: rgba(255, 235, 206, .7);
  font-size: 12px;
  margin-top: 18px;
}

.streets-ad-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 12px;
}

.streets-ad-grid--single {
  grid-template-columns: 1fr;
}

.streets-ad-slot {
  min-height: 80px;
  padding: 18px 24px;
  background:
    linear-gradient(135deg, rgba(220, 148, 43, .18), rgba(0,0,0,.9)),
    url("../assets/images/panels/conquer_map_panel.png") center / cover;
}

.streets-ad-slot--horizontal {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.streets-ad-slot--horizontal strong {
  margin-top: 0;
  font-size: 18px;
}

.streets-ad-slot strong {
  display: block;
  color: #fff0d7;
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 1.05;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════════
   AD RAIL — compact horizontal strip between page sections
   Four slots: one wide + three equal. Slots are individually
   styled with a dark amber-tinted gradient background.
══════════════════════════════════════════════════════════════ */

.streets-ad-rail {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 10px;
  padding: 0 0 4px;
  margin: 4px 0;
}

.streets-ad-rail-slot {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  padding: 13px 16px 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(200,137,42,.16) 0%, rgba(8,3,1,.92) 100%),
    url("../assets/images/panels/conquer_map_panel.png") center / cover;
  border: 1px solid rgba(200,137,42,.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  transition: border-color .2s, background .2s;
}

.streets-ad-rail-slot:hover {
  border-color: rgba(200,137,42,.38);
  background:
    linear-gradient(135deg, rgba(200,137,42,.24) 0%, rgba(8,3,1,.88) 100%),
    url("../assets/images/panels/conquer_map_panel.png") center / cover;
}

/* Wide first slot gets a slightly richer tint */
.streets-ad-rail-slot--wide {
  background:
    linear-gradient(135deg, rgba(200,137,42,.22) 0%, rgba(8,3,1,.88) 100%),
    url("../assets/images/panels/conquer_map_panel.png") center / cover;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

.streets-ad-rail-kicker {
  display: block;
  font: 800 9px var(--font-ui, 'Rajdhani', sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber, #c8892a);
  margin-bottom: 3px;
  flex-shrink: 0;
}

.streets-ad-rail-slot strong {
  display: block;
  color: #f6ead7;
  font-family: var(--font-ui, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.streets-ad-rail-slot--wide strong {
  font-size: 15px;
}

.streets-ad-rail-slot small {
  display: block;
  font-size: 11px;
  color: rgba(246,234,215,.42);
  font-family: var(--font-ui);
  margin-top: 2px;
}

.streets-ad-rail-cta {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200,137,42,.55);
  background: rgba(200,137,42,.14);
  color: var(--amber, #c8892a);
  font: 700 10px var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.streets-ad-rail-cta:hover {
  background: rgba(200,137,42,.26);
  border-color: rgba(200,137,42,.75);
}

/* Wide slot: kicker + text block + CTA flow as a row */
.streets-ad-rail-slot--wide .streets-ad-rail-kicker {
  margin-bottom: 0;
}

.streets-ad-rail-slot--wide .streets-ad-rail-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .streets-ad-rail {
    grid-template-columns: 1fr 1fr;
  }
  .streets-ad-rail-slot--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .streets-ad-rail {
    grid-template-columns: 1fr;
  }
}

.streets-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.activity-avatar {
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 185, 78, .42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(222,142,36,.7), rgba(34,10,2,.94));
  color: #fff3df;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.activity-line {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: baseline;
  color: rgba(255, 235, 206, .78);
}

.activity-line strong,
.activity-line b {
  color: #fff1d8;
  font-family: var(--font-ui);
}

.activity-body p,
.join-contract-panel p,
.group-feed p,
.join-contract-card span,
.group-admin-strip span {
  color: rgba(255, 235, 206, .76);
  line-height: 1.42;
  margin: 6px 0 0;
}

.join-contract-summary,
.group-feed,
.group-admin-strip,
.join-contract-card,
.meetup-summary-card,
.group-tools {
  display: grid;
  gap: 8px;
}

.join-contract-summary {
  margin-top: 14px;
}

.join-contract-chip,
.group-admin-strip,
.join-contract-card,
.group-feed,
.meetup-summary-card,
.group-tools,
.meetup-card {
  border: 1px solid rgba(255, 185, 78, .18);
  border-radius: 7px;
  background: rgba(0,0,0,.3);
  padding: 11px;
}

.join-contract-chip strong,
.group-admin-strip strong,
.join-contract-card strong,
.group-feed strong,
.meetup-summary-card strong {
  color: #f6d08b;
  font-family: var(--font-ui);
  font-size: 13px;
  text-transform: uppercase;
}

.meetup-summary-card {
  margin-top: 12px;
}

.meetup-summary-card > span,
.group-tools span {
  color: rgba(255, 235, 206, .72);
  font-size: 12px;
}

.group-tools {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 12px;
}

.meetup-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.meetup-card {
  padding: 16px;
}

.meetup-card h3 {
  color: #fff4e2;
  font-family: var(--font-ui);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1;
  margin: 10px 0;
}

.join-contract-card {
  margin-top: 12px;
}

.join-contract-card.is-required {
  border-color: rgba(226, 157, 53, .48);
  box-shadow: inset 0 0 0 1px rgba(226, 157, 53, .12);
}

.join-contract-card button {
  justify-self: start;
  border: 1px solid rgba(255, 185, 78, .4);
  border-radius: 7px;
  background: rgba(36, 13, 3, .88);
  color: #f8d58f;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 9px 12px;
  text-transform: uppercase;
}

.join-contract-card button:disabled {
  cursor: default;
  opacity: .72;
}

.group-admin-strip {
  margin-top: 12px;
}

.streets-card {
  overflow: hidden;
}

.streets-card-media {
  min-height: 168px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 185, 78, .22);
}

.streets-card-body {
  padding: 16px;
}

.group-meta,
.forum-meta {
  margin-top: 14px;
}

.forum-board {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.forum-row h3 {
  margin-top: 8px;
}

.forum-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.forum-actions a {
  border: 1px solid rgba(255, 185, 78, .34);
  border-radius: 7px;
  color: #f6d08b;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

/* ── Forum card (image-background tile replacing forum-row) ── */
.forum-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--forum-bg, linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,.78)) center / cover no-repeat);
  border: 1px solid rgba(255,185,78,.18);
  transition: box-shadow .25s, transform .22s;
  isolation: isolate;
}
/* Dark overlay that appears on hover */
.forum-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: inherit;
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.forum-card:hover {
  box-shadow: 0 0 24px rgba(255,185,78,.22);
  transform: translateY(-2px);
}
.forum-card:hover::before,
.forum-card:focus-within::before {
  background: rgba(0,0,0,0.75);
}
/* Content layers above the overlay */
.forum-card-body,
.forum-card-threads,
.forum-card-footer {
  position: relative;
  z-index: 2;
}
.forum-card-body {
  display: block;
  padding: 20px 20px 12px;
  flex: 1;
  text-decoration: none;
  cursor: pointer;
}
.forum-card-body h3 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
  color: #f8eed4;
}
.forum-card-body p {
  font-size: .85rem;
  color: rgba(248,238,212,.75);
  margin: 0;
}
/* Hide info (everything except title) until hover */
.forum-card .streets-kicker,
.forum-card-body p,
.forum-card .forum-meta,
.forum-card-threads,
.forum-card-footer {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}
/* Reveal on hover / keyboard focus */
.forum-card:hover .streets-kicker,
.forum-card:hover .forum-card-body p,
.forum-card:hover .forum-meta,
.forum-card:hover .forum-card-threads,
.forum-card:hover .forum-card-footer,
.forum-card:focus-within .streets-kicker,
.forum-card:focus-within .forum-card-body p,
.forum-card:focus-within .forum-meta,
.forum-card:focus-within .forum-card-threads,
.forum-card:focus-within .forum-card-footer {
  opacity: 1;
  transform: translateY(0);
}
.forum-card-footer {
  padding: 12px 20px 16px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(4px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.forum-card .forum-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: unset;
}
.forum-restriction {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .75rem;
  color: rgba(248,238,212,.65);
}
/* ── Forum section layout (community page: board + activity calendar sidebar) ── */
.forum-section-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.25rem;
  align-items: start;
}
.forum-activity-sidebar {
  position: sticky;
  top: 1rem;
}
@media (max-width: 760px) {
  .forum-section-layout { grid-template-columns: 1fr; }
  .forum-activity-sidebar { position: static; }
}

/* ── Thread preview strip inside community forum cards ── */
.forum-card-threads {
  padding: 0 16px 10px;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
}
.forum-threads-loading {
  font-size: .72rem;
  color: rgba(200,146,42,.4);
  padding: 6px 0;
}
.forum-thread-preview {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.forum-thread-preview li {
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forum-thread-preview a {
  color: rgba(248,238,212,.85);
  text-decoration: none;
}
.forum-thread-preview a:hover { text-decoration: underline; color: #f0d98c; }
.ftp-meta { font-size: .68rem; color: rgba(200,146,42,.5); }
.forum-threads-empty {
  font-size: .72rem;
  color: rgba(200,146,42,.4);
  margin: 6px 0;
  padding: 0;
}

/* ── Activity calendar (shared — community page + forum page) ── */
.forum-activity-calendar {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(200,146,42,.18);
  border-radius: .65rem;
  padding: .75rem;
}
.fcal-heading {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(200,146,42,.8);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .15rem;
}
.fcal-month {
  font-size: .8rem;
  color: #f0d98c;
  margin: 0 0 .55rem;
}
.fcal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 3px;
}
.fcal-weekdays span {
  text-align: center;
  font-size: .6rem;
  color: rgba(200,146,42,.5);
  font-weight: 600;
}
.fcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.fcal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  border-radius: 3px;
  color: rgba(240,217,140,.45);
  cursor: default;
}
.fcal-day--empty { visibility: hidden; }
.fcal-day--active {
  background: rgba(200,146,42,.2);
  color: #f0d98c;
  font-weight: 600;
  cursor: default;
}
.fcal-day--today {
  border: 1px solid rgba(200,146,42,.5);
  color: #f0d98c;
}
.fcal-day--active.fcal-day--today {
  background: rgba(200,146,42,.35);
  border-color: rgba(200,146,42,.7);
}
.fcal-hint {
  font-size: .68rem;
  color: rgba(200,146,42,.5);
  margin: .45rem 0 0;
  text-align: center;
}

/* Image upload widget for forum/thread create panels */
.forum-img-label { display: block; margin-top: 12px; }
.img-upload-wrap { position: relative; margin-top: 6px; }
.img-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.img-upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  border: 2px dashed rgba(255,185,78,.35);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  color: rgba(248,238,212,.6);
  font-size: .82rem;
  transition: border-color .2s;
}
.img-upload-preview.has-image { border-color: rgba(255,185,78,.6); }
.img-upload-icon { font-size: 1.6rem; }
.img-upload-clear {
  display: block;
  margin-top: 6px;
  background: none;
  border: 1px solid rgba(255,80,80,.45);
  border-radius: 5px;
  color: #f88;
  cursor: pointer;
  font-size: .78rem;
  padding: 4px 10px;
}

.thread-open-link,
.thread-back-link {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid rgba(255, 185, 78, .34);
  border-radius: 7px;
  color: #f6d08b;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 9px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.social-inbox-grid,
.messages-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 18px;
  margin-top: 14px;
}

.social-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.social-toolbar button,
.social-toolbar a,
.thread-actions button,
.thread-actions a {
  border: 1px solid rgba(255, 185, 78, .34);
  border-radius: 7px;
  background: rgba(36, 13, 3, .78);
  color: #f6d08b;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 9px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.thread-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.thread-actions .thread-open-link {
  margin-top: 0;
}

.notification-list,
.message-list,
.message-thread-detail {
  display: grid;
  gap: 10px;
}

.notification-item,
.message-item,
.message-bubble {
  border: 1px solid rgba(255, 185, 78, .18);
  border-radius: 7px;
  background: rgba(0, 0, 0, .3);
  color: rgba(255, 235, 206, .82);
  padding: 12px;
  text-align: left;
  text-decoration: none;
}

.message-item {
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.notification-item.is-unread,
.message-item.is-unread,
.message-item.is-active {
  border-color: rgba(226, 157, 53, .72);
  box-shadow: inset 3px 0 0 #d88a22, 0 0 18px rgba(216, 138, 34, .18);
}

.notification-item strong,
.message-item strong,
.message-bubble strong {
  color: #ffe3af;
  display: block;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.notification-item p,
.message-item p,
.message-bubble p,
.social-empty {
  color: rgba(255, 235, 206, .76);
  line-height: 1.45;
  margin: 6px 0;
}

.notification-item span,
.message-item span,
.message-bubble span {
  color: rgba(226, 157, 53, .7);
  font-size: 12px;
  text-transform: uppercase;
}

.message-detail-panel {
  min-height: 520px;
}

.message-compose-toggle {
  border: 1px solid rgba(226, 157, 53, .55);
  border-radius: 6px;
  padding: 8px 11px;
  background: rgba(226, 157, 53, .12);
  color: #ffd585;
  font-family: var(--font-ui);
  font-weight: 800;
  cursor: pointer;
}

.msg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.message-filter-btn {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  color: #d8a44c;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 6px 13px;
  text-transform: uppercase;
  transition: background .14s, border-color .14s, color .14s;
}

.message-filter-btn:hover {
  background: rgba(216, 140, 30, .2);
  border-color: rgba(255, 185, 78, .56);
  color: #fde48a;
}

.message-filter-btn.is-active {
  background: rgba(123, 69, 12, .38);
  border-color: #d99832;
  color: #ffe5b1;
}

.msg-support-summary {
  margin: 6px 0 10px;
  font-size: 12px;
  color: rgba(255, 235, 206, .72);
}

.message-thread-count {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 235, 206, .64);
  font-size: 12px;
}

.message-compose {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(226, 157, 53, .26);
  border-radius: 7px;
  background: rgba(0,0,0,.25);
}

.message-compose[hidden] { display: none; }
.message-compose label {
  color: rgba(255, 234, 204, .72);
  font: 800 11px var(--font-ui);
  text-transform: uppercase;
}
.message-compose input,
.message-compose select,
.message-compose textarea {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 6px;
  padding: 10px;
  background: rgba(0,0,0,.58);
  color: #fff5e6;
  font: inherit;
  transition: border-color .15s;
}

.message-compose input:focus,
.message-compose select:focus,
.message-compose textarea:focus {
  outline: none;
  border-color: rgba(255, 185, 78, .55);
}

.message-compose select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8892a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

.message-compose select option { background: #100400; }

.message-thread-detail {
  margin-bottom: 14px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 4px;
}

.thread-shell {
  padding-top: 120px;
}

.thread-detail-card,
.thread-post,
.thread-reply-form {
  border: 1px solid rgba(226, 157, 53, .28);
  border-radius: 8px;
  background: rgba(12, 4, 1, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 185, 78, .08);
  padding: 18px;
}

.thread-detail-card {
  margin-top: 18px;
}

.thread-replies {
  margin-top: 22px;
}

.thread-replies h2 {
  color: #ffe3af;
  font-family: var(--font-display);
}

#thread-posts {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.thread-post {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
}

.thread-reply-form textarea {
  width: 100%;
  resize: vertical;
}

.thread-reply-form .tox.tox-tinymce {
  margin-bottom: 12px;
}

.thread-post-body {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.55;
}

.thread-post-body p {
  margin: 0 0 10px;
}

.thread-post-body p:last-child {
  margin-bottom: 0;
}

.thread-post-body ul,
.thread-post-body ol {
  margin: 8px 0 10px 20px;
}

.thread-post-body a {
  color: var(--amber-light);
  text-decoration: none;
}

/* ── Image upload widget ── */
.img-upload-wrap {
  position: relative;
  border: 2px dashed rgba(255, 185, 78, .32);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}

.img-upload-wrap:focus-within,
.img-upload-wrap:hover {
  border-color: rgba(255, 185, 78, .72);
}

.img-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.img-upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  background: rgba(0,0,0,.3);
  background-size: cover;
  background-position: center;
  color: rgba(255, 234, 204, .7);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background .2s;
}

.img-upload-preview.has-image {
  min-height: 180px;
}

.img-upload-icon {
  font-size: 28px;
}

.img-upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  border: 1px solid rgba(255, 185, 78, .5);
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #f6d08b;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  text-transform: uppercase;
}

/* ── Group / thread create forms ── */
.streets-section-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.streets-action-btn {
  border: 1px solid rgba(255, 185, 78, .46);
  border-radius: 7px;
  background: rgba(200, 137, 42, .18);
  color: #f6d08b;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 18px;
  text-transform: uppercase;
  transition: background .15s, border-color .15s;
}

.streets-action-btn:hover {
  background: rgba(200, 137, 42, .32);
  border-color: rgba(255, 185, 78, .72);
}

a.streets-action-btn {
  display: inline-block;
  text-decoration: none;
}

.streets-action-btn--outline {
  background: transparent;
  border-color: rgba(255, 185, 78, .28);
  color: rgba(246, 208, 139, .7);
}

.streets-action-btn--outline:hover {
  background: rgba(200, 137, 42, .14);
  border-color: rgba(255, 185, 78, .55);
  color: #f6d08b;
}

.streets-create-form {
  margin-bottom: 16px;
}

.streets-create-form[hidden] { display: none; }

.create-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.create-form-full {
  grid-column: 1 / -1;
}

.streets-create-form label {
  display: grid;
  gap: 6px;
  color: rgba(255, 234, 204, .72);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.streets-create-form input,
.streets-create-form select,
.streets-create-form textarea {
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 7px;
  background: rgba(0, 0, 0, .62);
  color: #fff5e6;
  font: inherit;
  padding: 11px 12px;
}

/* ── Group card image overlay ── */
.streets-card-media {
  position: relative;
}

.streets-card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72));
}

.coming-soon-tag {
  display: inline-block;
  border: 1px solid rgba(255, 185, 78, .36);
  border-radius: 999px;
  background: rgba(200, 120, 20, .15);
  color: #d8a044;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  padding: 2px 7px;
  text-transform: uppercase;
  vertical-align: middle;
}

.is-coming-soon {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: none;
}

.msg-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 132, 31, .18);
}

.msg-action-btn {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 7px;
  background: rgba(0, 0, 0, .38);
  color: #d8a44c;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 14px;
  text-transform: uppercase;
  transition: background .15s, border-color .15s;
}

.msg-action-btn--paid {
  border-color: rgba(118, 226, 177, .38);
  color: #7ee2b8;
}

.msg-biz-options {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 185, 78, .18);
  border-radius: 7px;
  background: rgba(0,0,0,.24);
  padding: 12px;
}

.msg-biz-options-label {
  color: #f6d08b;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
}

.msg-biz-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 235, 206, .76);
  font-size: 13px;
  cursor: not-allowed;
}

.msg-bubble-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.msg-bubble-btn {
  border: 1px solid rgba(255, 185, 78, .22);
  border-radius: 7px;
  background: rgba(0, 0, 0, .3);
  color: #d8a44c;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: background .14s, border-color .14s;
}
.msg-bubble-btn:hover {
  background: rgba(216, 140, 30, .18);
  border-color: rgba(255, 185, 78, .44);
}

.msg-coming-soon-list {
  margin-top: 18px;
  border: 1px solid rgba(207, 132, 31, .22);
  border-radius: 8px;
  background: rgba(0,0,0,.24);
  padding: 14px 18px;
}

.msg-coming-soon-title {
  display: block;
  color: #dba044;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.msg-coming-soon-list ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.msg-coming-soon-list li {
  color: rgba(255, 235, 206, .62);
  font-size: 13px;
  padding-left: 14px;
  position: relative;
}

.msg-coming-soon-list li::before {
  content: "–";
  left: 0;
  position: absolute;
  color: #d8a044;
}

.msg-coming-soon-list em {
  color: rgba(255, 235, 206, .42);
  font-style: normal;
  font-size: 11px;
}

.streets-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 132, 31, .18);
}

.streets-cat-btn {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  color: #d8a44c;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 7px 14px;
  text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s;
}

.streets-cat-btn.active,
.streets-cat-btn:hover {
  background: rgba(216, 140, 30, .28);
  border-color: rgba(255, 185, 78, .68);
  color: #fde48a;
}

.streets-cat-badge {
  display: inline-block;
  border: 1px solid rgba(255, 185, 78, .36);
  border-radius: 999px;
  background: rgba(0, 0, 0, .44);
  color: #f0c576;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  padding: 4px 9px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-bottom: 8px;
}

.thread-card .streets-cat-badge {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .streets-ribbon {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .streets-grid,
  .streets-ad-grid,
  .streets-card-grid,
  .activity-layout,
  .social-inbox-grid,
  .messages-layout,
  .meetup-strip,
  .hot-topic-grid {
    grid-template-columns: 1fr;
  }

  .thread-card:first-child {
    grid-row: auto;
  }

  .forum-row,
  .composer-actions {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 620px) {
  .streets-search {
    grid-template-columns: 1fr;
  }

  .streets-search button {
    min-height: 48px;
  }

  .streets-hero {
    min-height: 620px;
  }
}
.inline-unlock-btn {
  border: 1px solid rgba(216, 154, 43, .72);
  background: rgba(216, 154, 43, .14);
  color: #f6d38a;
  cursor: pointer;
  font: inherit;
  margin-left: 8px;
  padding: 5px 8px;
}

.inline-unlock-btn:disabled {
  cursor: wait;
  opacity: .7;
}

.streets-quick-nav-link {
  display: inline-block;
  border: 1px solid rgba(255, 185, 78, .5);
  border-radius: 7px;
  background: rgba(27, 9, 2, .86);
  color: #f7ddb1;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 12px 18px;
  text-decoration: none;
  font-size: inherit;
}

.streets-quick-nav-link:hover {
  background: rgba(200, 137, 42, .18);
  color: #fce7be;
}

/* ── Rich Composer (MCP) ───────────────────────────────── */
.composer-mcp {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 9px;
  background: rgba(0, 0, 0, .54);
  overflow: hidden;
}

.mcp-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, .38);
  border-bottom: 1px solid rgba(255, 185, 78, .16);
  flex-wrap: wrap;
}

.mcp-tool {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 6px;
  background: rgba(0, 0, 0, .3);
  color: #f0c576;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 900;
  min-width: 34px;
  padding: 5px 8px;
  transition: background .14s, border-color .14s;
}
.mcp-tool:hover, .mcp-tool.is-active {
  background: rgba(216, 140, 30, .28);
  border-color: rgba(255, 185, 78, .68);
}
.mcp-tool--i { font-style: italic; }
.mcp-tool--emoji { font-size: 16px; }
.mcp-tool--gif { font-size: 11px; letter-spacing: .04em; font-weight: 900; }
.mcp-sep { width: 1px; height: 20px; background: rgba(255, 185, 78, .2); margin: 0 4px; }
.mcp-spacer { flex: 1; }
.mcp-char-count {
  color: rgba(255, 185, 78, .56);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.mcp-char-count.is-over { color: #f04040; }

.mcp-editable {
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px 16px;
  color: #fff5e6;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
}
.mcp-editable:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 234, 204, .38);
  pointer-events: none;
}
.mcp-editable img { max-width: 100%; border-radius: 6px; margin: 6px 0; }

/* Emoji picker */
.mcp-emoji-picker {
  position: relative;
  border-top: 1px solid rgba(255, 185, 78, .14);
  background: rgba(0, 0, 0, .72);
  padding: 10px;
}
.mcp-emoji-picker[hidden] { display: none; }
.emoji-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.emoji-cat-tab {
  border: 1px solid rgba(255, 185, 78, .22);
  border-radius: 6px;
  background: transparent;
  color: #d8a44c;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 800;
  padding: 4px 9px;
  transition: background .12s;
}
.emoji-cat-tab.active, .emoji-cat-tab:hover {
  background: rgba(216, 140, 30, .28);
  border-color: rgba(255, 185, 78, .6);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 34px);
  gap: 3px;
  max-height: 160px;
  overflow-y: auto;
}
.emoji-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 3px;
  border-radius: 5px;
  transition: background .1s;
}
.emoji-btn:hover { background: rgba(255, 185, 78, .18); }

/* GIF picker */
.mcp-gif-picker {
  border-top: 1px solid rgba(255, 185, 78, .14);
  background: rgba(0, 0, 0, .72);
  padding: 10px;
}
.mcp-gif-picker[hidden] { display: none; }
.gif-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}
.gif-search-bar input {
  border: 1px solid rgba(255, 185, 78, .28);
  border-radius: 7px;
  background: rgba(0, 0, 0, .58);
  color: #fff5e6;
  font: inherit;
  padding: 9px 12px;
}
.gif-search-bar button {
  border: 1px solid rgba(255, 185, 78, .4);
  border-radius: 7px;
  background: rgba(216, 140, 30, .22);
  color: #f0c576;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 900;
  padding: 9px 16px;
}
.gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}
.gif-item {
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16/9;
  transition: transform .12s;
}
.gif-item:hover { transform: scale(1.04); }
.gif-item img { width: 100%; height: 100%; object-fit: cover; }
.gif-hint, .gif-attr {
  color: rgba(255, 234, 204, .42);
  font-size: 12px;
  margin: 4px 0 0;
  text-align: center;
}
.gif-attr { font-size: 10px; }

/* Attachments preview row */
.mcp-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}
.mcp-attach-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 185, 78, .28);
}
.mcp-attach-preview img { width: 100%; height: 100%; object-fit: cover; }
.mcp-attach-remove {
  position: absolute;
  top: 3px; right: 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #f0c576;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 3px 5px;
}

/* Composer opts row */
.composer-opts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.composer-opt {
  display: grid;
  gap: 6px;
  color: rgba(255, 234, 204, .72);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.composer-opt select {
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 7px;
  background: rgba(0, 0, 0, .62);
  color: #fff5e6;
  font: inherit;
  padding: 11px 12px;
}

.composer-submit-btn {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #e3a83b, #b86b1d);
  color: #180903;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 28px;
  text-transform: uppercase;
  transition: filter .15s;
}
.composer-submit-btn:hover { filter: brightness(1.12); }
.composer-submit-btn:disabled { filter: brightness(.6); cursor: not-allowed; }

/* ── Thread card hover polish ─────────────────────────── */
.thread-card {
  transition: box-shadow .2s, transform .2s;
}
.thread-card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,.56), 0 0 0 1px rgba(255,185,78,.32);
  transform: translateY(-2px);
  z-index: 1;
}
.thread-card .thread-actions button {
  font-size: 12px;
  transition: background .14s, color .14s;
}
.thread-card .thread-actions button:hover {
  background: rgba(216, 140, 30, .28);
  color: #fde48a;
}

/* ── Privacy & Safety section ─────────────────────────── */
.streets-privacy-section {
  margin-top: 36px;
}

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

.privacy-panel .streets-panel-head {
  margin-bottom: 14px;
}

.privacy-row {
  margin-bottom: 14px;
}

.privacy-toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #fff1d8;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 6px;
}

.privacy-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 185, 78, .2);
  border: 1px solid rgba(255, 185, 78, .36);
  position: relative;
  transition: background .2s;
}

.privacy-toggle[aria-checked="true"] .toggle-track {
  background: rgba(111, 226, 177, .5);
  border-color: rgba(111, 226, 177, .7);
}

.toggle-thumb {
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0c576;
  top: 2px;
  left: 2px;
  transition: left .2s, background .2s;
}

.privacy-toggle[aria-checked="true"] .toggle-thumb {
  left: 22px;
  background: #7ee2b8;
}

.privacy-hint {
  color: rgba(255, 235, 206, .56);
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.privacy-textarea,
.privacy-input {
  width: 100%;
  border: 1px solid rgba(255, 185, 78, .24);
  border-radius: 7px;
  background: rgba(0, 0, 0, .58);
  color: #fff5e6;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  box-sizing: border-box;
}

.word-filter-wrap,
.block-user-wrap {
  display: grid;
  gap: 10px;
}

.block-user-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.privacy-save-btn {
  border: 1px solid rgba(255, 185, 78, .5);
  border-radius: 7px;
  background: rgba(216, 140, 30, .22);
  color: #f6d08b;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 14px;
  text-transform: uppercase;
  transition: background .14s;
}
.privacy-save-btn:hover { background: rgba(216, 140, 30, .38); }
.privacy-save-btn--ghost {
  background: transparent;
  border-color: rgba(255, 185, 78, .3);
}

.word-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.word-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 185, 78, .3);
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  color: #f0c576;
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 800;
  padding: 4px 9px;
}
.word-filter-tag button {
  border: 0;
  background: transparent;
  color: rgba(240, 197, 118, .6);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}
.word-filter-tag button:hover { color: #f04040; }

.blocked-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.blocked-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 185, 78, .18);
  border-radius: 7px;
  background: rgba(0, 0, 0, .3);
  color: rgba(255, 235, 206, .82);
  font-size: 13px;
  padding: 9px 12px;
}

.blocked-user-item button {
  border: 1px solid rgba(244, 67, 54, .4);
  border-radius: 5px;
  background: rgba(244, 67, 54, .1);
  color: #f47766;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: uppercase;
}

.prefs-save-status {
  color: #7ee2b8;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  margin: 10px 0 0;
  text-align: center;
  min-height: 20px;
}

@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .composer-opts-row { grid-template-columns: 1fr; }
}

/* ── Group card accordion ─────────────────────────────────────────────────── */
.group-card .streets-card-body { padding: 14px; }

.group-card-header h3 { margin: 6px 0 8px; font-size: 17px; }

.group-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.group-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.group-accordion-toggle {
  background: transparent;
  border: 1px solid rgba(200,137,42,.35);
  color: var(--amber);
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.group-accordion-toggle:hover { background: rgba(200,137,42,.1); border-color: var(--amber); }

.group-accordion { margin-top: 12px; border-top: 1px solid rgba(200,137,42,.15); padding-top: 10px; }

.group-acc-section { border-bottom: 1px solid rgba(255,255,255,.06); }
.group-acc-section:last-child { border-bottom: none; }

.group-acc-head {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(246,234,215,.75);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .15s;
}
.group-acc-head::after { content: '▾'; font-size: 10px; margin-left: auto; transition: transform .2s; }
.group-acc-head[aria-expanded="true"]::after { transform: rotate(180deg); }
.group-acc-head:hover { color: var(--amber); }

.group-acc-body {
  padding: 4px 4px 12px;
  font-size: 13px;
  color: rgba(246,234,215,.7);
  line-height: 1.5;
}
.group-acc-body strong { color: var(--amber-light); display: block; margin-bottom: 4px; }
.group-acc-body p { margin: 0 0 6px; }
.group-acc-body span { display: block; margin-bottom: 3px; }

.join-btn {
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--amber);
  background: var(--amber);
  color: #0a0500;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.join-btn:hover:not(:disabled) { opacity: .85; }
.join-btn:disabled { opacity: .55; cursor: default; }
.join-btn--member { background: rgba(93,219,138,.15); border-color: #5ddb8a; color: #5ddb8a; }
.join-btn--pending { background: rgba(200,137,42,.12); border-color: rgba(200,137,42,.5); color: var(--amber); }

/* ── Thread navigation rail ──────────────────────────────────────────────── */
.thread-rail {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8,3,1,.92);
  border-bottom: 1px solid rgba(200,137,42,.18);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.thread-rail::-webkit-scrollbar { display: none; }

.thread-rail-drills {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.thread-rail-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.thread-rail-select-wrap[hidden] { display: none; }

.thread-rail-label {
  font-size: 9px;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(200,137,42,.55);
  padding-left: 2px;
}

.thread-rail-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23c8892a' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid rgba(200,137,42,.28);
  border-radius: 8px;
  color: rgba(246,234,215,.88);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 30px 7px 11px;
  min-width: 130px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.thread-rail-select:hover,
.thread-rail-select:focus {
  border-color: var(--amber);
  background-color: rgba(200,137,42,.07);
  outline: none;
}
.thread-rail-select.has-value {
  border-color: var(--amber);
  color: var(--amber-light, #e8b84a);
}
.thread-rail-select option { background: #0e0600; color: #f6ead7; }

.thread-rail-chevron {
  color: rgba(200,137,42,.45);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  padding-bottom: 6px;
  user-select: none;
}
.thread-rail-chevron[hidden] { display: none; }

.thread-rail-new-btn {
  flex-shrink: 0;
  margin-left: auto;
  align-self: flex-end;
  background: var(--amber);
  color: #0a0500;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.thread-rail-new-btn:hover { opacity: .85; }

@media (max-width: 620px) {
  .thread-rail { padding: 8px 12px 10px; gap: 8px; }
  .thread-rail-select { min-width: 100px; font-size: 12px; padding: 6px 26px 6px 9px; }
  .thread-rail-new-btn { font-size: 11px; padding: 7px 14px; }
}

/* ── New-thread slide-up panel ───────────────────────────────────────────── */
.new-thread-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.new-thread-panel[hidden] { display: none; }

.new-thread-panel-inner {
  background: #130800;
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 24px 40px;
  animation: ntpSlideUp .22s ease-out;
}
@keyframes ntpSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.new-thread-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--amber-light);
}

.new-thread-close {
  background: transparent;
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 50%;
  width: 30px; height: 30px;
  color: rgba(246,234,215,.7);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.new-thread-close:hover { background: rgba(200,137,42,.12); color: var(--amber); }

/* ── Floating "+" pill button ────────────────────────────────────────────── */
.community-add-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  background: var(--amber);
  color: #0a0500;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(200,137,42,.55);
  transition: opacity .15s, transform .15s;
}
.community-add-btn:hover { opacity: .88; transform: translateY(-2px); }
@media (max-width: 540px) { .community-add-btn { bottom: 20px; right: 16px; padding: 10px 18px; font-size: 12px; } }

/* ── Forum creation panel ────────────────────────────────────────────────── */
.forum-create-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.forum-create-panel[hidden] { display: none; }

.forum-create-panel-inner {
  background: #130800;
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 20px 24px 40px;
  animation: ntpSlideUp .22s ease-out;
}

.forum-create-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--amber-light);
}

.forum-create-close {
  background: transparent;
  border: 1px solid rgba(200,137,42,.3);
  border-radius: 50%;
  width: 30px; height: 30px;
  color: rgba(246,234,215,.7);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.forum-create-close:hover { background: rgba(200,137,42,.12); color: var(--amber); }

.forum-create-panel-inner label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  color: rgba(246,234,215,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.forum-create-panel-inner input[type="text"],
.forum-create-panel-inner textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,137,42,.25);
  border-radius: 8px;
  color: #f6ead7;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 9px 12px;
  resize: vertical;
  transition: border-color .15s;
}
.forum-create-panel-inner input[type="text"]:focus,
.forum-create-panel-inner textarea:focus {
  border-color: var(--amber);
  outline: none;
}

/* ── Community settings CTA strip ───────────────────────────────────────── */
.community-settings-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(200,137,42,.05);
  border: 1px solid rgba(200,137,42,.15);
  border-radius: 10px;
  padding: 12px 20px;
  margin: 0 20px 24px;
  font-size: 13px;
  color: rgba(246,234,215,.55);
  flex-wrap: wrap;
}

.community-settings-link {
  color: var(--amber);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.community-settings-link:hover { text-decoration: underline; }

/* ── Community settings page ─────────────────────────────────────────────── */
.settings-page-head {
  background: rgba(200,137,42,.06);
  border-bottom: 1px solid rgba(200,137,42,.15);
  padding: 24px 20px 20px;
}
.settings-page-head-inner { max-width: 900px; margin: 0 auto; }

.settings-back-link {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--amber);
  text-decoration: none;
  margin-bottom: 8px;
}
.settings-back-link:hover { text-decoration: underline; }

.settings-page-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--amber);
  margin: 0 0 4px;
}
.settings-page-sub { font-size: 13px; color: rgba(246,234,215,.55); margin: 0; }

/* ── Thread + Group card link styles ─────────────────────────────────────── */
.thread-title-link {
  color: inherit;
  text-decoration: none;
}
.thread-title-link:hover { text-decoration: underline; color: var(--amber-light, #f5d087); }

.group-name-link {
  color: inherit;
  text-decoration: none;
}
.group-name-link:hover { text-decoration: underline; color: var(--amber, #c8892a); }

/* ── Group Profile Page (.gp-*) ─────────────────────────────────────────── */

/* Hero */
.gp-hero {
  position: relative;
  background: #0e0b07;
  overflow: hidden;
}
.gp-hero-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(.45) saturate(.8);
}
.gp-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 36px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.gp-hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--amber, #c8892a);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.gp-hero-text { flex: 1; min-width: 180px; }
.gp-hero-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #f6ead7;
  margin: 0 0 6px;
  line-height: 1.15;
}
.gp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-ui);
  color: rgba(246,234,215,.55);
  margin-bottom: 8px;
}
.gp-hero-meta span { display: inline-block; }
.gp-hero-badge {
  background: rgba(200,137,42,.18);
  border: 1px solid rgba(200,137,42,.35);
  color: var(--amber, #c8892a);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .04em;
}
.gp-hero-desc {
  font-size: 13px;
  color: rgba(246,234,215,.7);
  margin: 0;
  max-width: 560px;
  line-height: 1.55;
}
.gp-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Admin edit bar */
.gp-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(200,137,42,.1);
  border-bottom: 1px solid rgba(200,137,42,.3);
  padding: 9px 24px;
  font-size: 12px;
  font-family: var(--font-ui);
}
.gp-edit-bar-label { color: rgba(246,234,215,.6); }
.gp-edit-bar-link {
  color: var(--amber, #c8892a);
  text-decoration: none;
  font-weight: 700;
}
.gp-edit-bar-link:hover { text-decoration: underline; }

/* Three-column shell */
.gp-shell {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 70vh;
  align-items: start;
}
@media (max-width: 1024px) {
  .gp-shell { grid-template-columns: 180px 1fr; }
  .gp-info-rail { display: none; }
}
@media (max-width: 700px) {
  .gp-shell { grid-template-columns: 1fr; }
  .gp-members-rail { display: none; }
}

/* Members rail */
.gp-members-rail {
  border-right: 1px solid rgba(200,137,42,.1);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}
.gp-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gp-rail-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(246,234,215,.45);
}
.gp-members-count {
  font-size: 11px;
  color: rgba(246,234,215,.35);
}
.gp-member-search {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,137,42,.2);
  border-radius: 6px;
  color: #f6ead7;
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 6px 10px;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.gp-member-search:focus { outline: none; border-color: rgba(200,137,42,.55); }

/* Role sections */
.gp-role-section { margin-bottom: 16px; }
.gp-role-section-name {
  font-size: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 6px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gp-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gp-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: default;
  transition: background .12s;
}
.gp-member-row:hover { background: rgba(255,255,255,.04); }
.gp-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.gp-member-name {
  font-size: 12px;
  color: rgba(246,234,215,.8);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gp-member-star {
  font-size: 11px;
  color: var(--amber, #c8892a);
  flex-shrink: 0;
}

/* Main content */
.gp-main { padding: 20px 24px; }

/* Create thread bar */
.gp-create-thread-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(200,137,42,.06);
  border: 1px solid rgba(200,137,42,.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.gp-create-thread-btn {
  background: var(--amber, #c8892a);
  color: #0e0b07;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.gp-create-thread-btn:hover { background: #d99f3a; }
.gp-create-hint {
  font-size: 12px;
  color: rgba(246,234,215,.45);
  font-family: var(--font-ui);
}

/* New thread panel */
.gp-new-thread-panel {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(200,137,42,.22);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.gp-new-thread-inner { padding: 18px 20px; }
.gp-new-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: rgba(246,234,215,.85);
  margin-bottom: 14px;
}
.gp-new-thread-close {
  background: transparent;
  border: none;
  color: rgba(246,234,215,.5);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.gp-new-thread-close:hover { color: var(--amber, #c8892a); }
.gp-new-thread-form { display: flex; flex-direction: column; gap: 10px; }
.gp-new-thread-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.gp-form-status { font-size: 12px; color: rgba(246,234,215,.5); font-family: var(--font-ui); }

/* Shared form inputs */
.gp-input, .gp-select, .gp-textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,137,42,.22);
  border-radius: 8px;
  color: #f6ead7;
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s;
}
.gp-input:focus, .gp-select:focus, .gp-textarea:focus { outline: none; border-color: var(--amber, #c8892a); }
.gp-textarea { resize: vertical; }
.gp-select option { background: #1a1208; }

/* Buttons */
.gp-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  padding: 9px 20px;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: inline-block;
}
.gp-btn--primary {
  background: var(--amber, #c8892a);
  color: #0e0b07;
}
.gp-btn--primary:hover { background: #d99f3a; }
.gp-btn--ghost {
  background: transparent;
  border: 1px solid rgba(200,137,42,.4);
  color: var(--amber, #c8892a);
}
.gp-btn--ghost:hover { background: rgba(200,137,42,.1); }

/* Thread list */
.gp-thread-card {
  display: block;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(200,137,42,.12);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.gp-thread-card:hover {
  border-color: rgba(200,137,42,.35);
  background: rgba(200,137,42,.05);
}
.gp-thread-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: #f6ead7;
  margin: 0 0 5px;
  line-height: 1.3;
}
.gp-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: rgba(246,234,215,.45);
  font-family: var(--font-ui);
}
.gp-thread-forum {
  color: var(--amber, #c8892a);
  font-weight: 700;
}

/* Info rail */
.gp-info-rail {
  border-left: 1px solid rgba(200,137,42,.1);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gp-info-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(200,137,42,.1);
  border-radius: 10px;
  padding: 14px 16px;
}
.gp-info-head {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(246,234,215,.45);
  margin: 0 0 10px;
}
.gp-info-body { font-size: 13px; color: rgba(246,234,215,.7); line-height: 1.5; }
.gp-info-tag {
  display: inline-block;
  background: rgba(200,137,42,.12);
  color: rgba(246,234,215,.65);
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 11px;
  margin: 2px 2px 0 0;
  font-family: var(--font-ui);
}
.gp-info-empty { font-size: 12px; color: rgba(246,234,215,.3); margin: 0; }

/* Misc */
.gp-loading { font-size: 13px; color: rgba(246,234,215,.4); padding: 16px 0; }
.gp-empty { font-size: 13px; color: rgba(246,234,215,.35); padding: 24px 0; text-align: center; }

/* Messages inline panels */
.msg-inline-panel {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(211,143,38,.22);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 16px;
}
.msg-inline-panel strong { color: #e8c27b; font-size: 13px; }
.msg-inline-panel select, .msg-inline-panel textarea {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(8, 3, 1, .75);
  border: 1px solid rgba(211,143,38,.25);
  border-radius: 4px;
  color: #f4e9d7;
  font: 400 13px var(--font-body, Arial, sans-serif);
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
}
.msg-inline-panel select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8892a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.msg-inline-panel select option { background: #170c07; }

/* Composer identity chip */
.composer-identity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(204, 145, 48, .15);
  margin-bottom: 4px;
}
.composer-id-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 171, 61, .18);
  border: 1px solid rgba(229, 171, 61, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.composer-id-img { width: 100%; height: 100%; object-fit: cover; }
.composer-id-initial {
  color: #e5ab3d;
  font: 700 16px var(--font-ui, Arial, sans-serif);
}
.composer-id-meta { display: flex; flex-direction: column; gap: 3px; }
.composer-id-meta strong { color: #fff3db; font: 700 14px var(--font-ui, Arial, sans-serif); }
.composer-id-role {
  background: rgba(229, 171, 61, .12);
  border: 1px solid rgba(229, 171, 61, .28);
  border-radius: 3px;
  color: #c9973c;
  font: 600 10px var(--font-ui, Arial, sans-serif);
  letter-spacing: .6px;
  padding: 2px 6px;
  text-transform: uppercase;
  align-self: flex-start;
}

/* Thread author chip */
.thread-author-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}
.thread-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(229, 171, 61, .15);
  border: 1px solid rgba(229, 171, 61, .28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 10px var(--font-ui, Arial, sans-serif);
  color: #c9973c;
  overflow: hidden;
  flex-shrink: 0;
}
.thread-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.thread-author-chip > span { color: #b8a48c; font-size: 12px; }
.thread-author-role {
  background: rgba(229, 171, 61, .1);
  border-radius: 3px;
  color: #b8843a;
  font: 600 10px var(--font-ui, Arial, sans-serif);
  letter-spacing: .5px;
  padding: 2px 5px;
  text-transform: uppercase;
}
.thread-author-own {
  background: rgba(120, 221, 161, .12);
  border-radius: 3px;
  color: #78dda1;
  font: 600 10px var(--font-ui, Arial, sans-serif);
  letter-spacing: .5px;
  padding: 2px 5px;
  text-transform: uppercase;
}

/* Activity feed persona improvements */
.activity-avatar { overflow: hidden; }
.activity-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.activity-actor-link { color: #e5ab3d; font-weight: 700; text-decoration: none; }
.activity-actor-link:hover { text-decoration: underline; }
.activity-actor-role {
  background: rgba(229, 171, 61, .1);
  border-radius: 3px;
  color: #b8843a;
  font: 600 10px var(--font-ui, Arial, sans-serif);
  letter-spacing: .5px;
  padding: 2px 5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── Source badge: unavailable state ── */
.streets-source[data-state="unavailable"] { color: rgba(239, 68, 68, .6); }
.streets-source[data-state="pending"]     { color: rgba(255, 185, 78, .5); }

/* ── Support ticket system ── */
.ticket-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(207, 132, 31, .16);
  margin-bottom: 6px;
}
.ticket-meta-item { display: flex; flex-direction: column; gap: 4px; }
.ticket-meta-label {
  color: rgba(255, 235, 206, .44);
  font: 700 10px var(--font-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.ticket-meta-value { color: #f0dbb4; font-size: 12px; text-transform: capitalize; }

/* Status & priority badges */
.ticket-status-badge,
.ticket-priority-badge {
  border-radius: 999px;
  display: inline-block;
  font: 700 10px var(--font-ui);
  letter-spacing: .06em;
  padding: 3px 9px;
  text-transform: uppercase;
}

/* ╔══════════════════════════════════════════════════════════════════════════
   Influencer Posts — public community feed
   ══════════════════════════════════════════════════════════════════════════ */
.influencer-posts-section { margin-top: 32px; }
.influencer-posts-section--empty { display: none; }

.influencer-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.inf-post-card {
  background: rgba(16,7,1,.78);
  border: 1px solid rgba(255,185,78,.13);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, border-color .22s;
}
.inf-post-card:hover {
  border-color: rgba(255,185,78,.32);
  box-shadow: 0 4px 24px rgba(200,137,42,.12);
}
.inf-post-media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.inf-post-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.inf-post-byline { font-size: .8rem; color: rgba(246,208,139,.6); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.inf-post-byline strong { color: rgba(246,208,139,.9); font-weight: 700; }
.inf-post-handle { color: rgba(200,137,42,.8); }
.inf-post-platform { color: rgba(246,208,139,.45); }
.inf-post-title { margin: 0; font-size: 1rem; font-weight: 700; color: #f8eed4; line-height: 1.35; }
.inf-post-preview { font-size: .85rem; color: rgba(246,208,139,.65); line-height: 1.55; margin: 0; flex: 1; }
.inf-post-meta { margin-top: auto; padding-top: 6px; }

.inf-post-comment-toggle {
  background: none;
  border: 1px solid rgba(255,185,78,.22);
  border-radius: 6px;
  color: rgba(200,137,42,.85);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  padding: 6px 12px;
  transition: background .15s, border-color .15s;
  width: 100%;
  text-align: left;
}
.inf-post-comment-toggle:hover { background: rgba(200,137,42,.08); border-color: rgba(200,137,42,.45); }

.inf-post-comments { border-top: 1px solid rgba(255,185,78,.1); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.inf-comment-list { display: flex; flex-direction: column; gap: 8px; }
.inf-comment { background: rgba(255,185,78,.04); border-radius: 6px; padding: 8px 10px; }
.inf-comment-author { display: block; font-size: .78rem; font-weight: 700; color: rgba(246,208,139,.8); margin-bottom: 3px; }
.inf-comment-body { font-size: .82rem; color: rgba(246,208,139,.7); margin: 0; line-height: 1.5; white-space: pre-wrap; }
.inf-comment-time { display: block; font-size: .72rem; color: rgba(246,208,139,.35); margin-top: 4px; }
.inf-no-comments, .inf-comments-loading { font-size: .8rem; color: rgba(246,208,139,.4); margin: 0; padding: 4px 0; }
.inf-comments-error { font-size: .8rem; color: rgba(231,76,60,.65); margin: 0; padding: 4px 0; }

.inf-comment-form { display: flex; flex-direction: column; gap: 6px; }
.inf-comment-input {
  width: 100%;
  background: rgba(10,4,1,.6);
  border: 1px solid rgba(255,185,78,.2);
  border-radius: 6px;
  color: rgba(246,208,139,.9);
  font-family: var(--font-ui);
  font-size: .82rem;
  padding: 8px 10px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .15s;
}
.inf-comment-input:focus { outline: none; border-color: rgba(200,137,42,.55); }
.inf-comment-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.inf-comment-actions button {
  background: linear-gradient(155deg, #c8892a 0%, #9a5c10 100%);
  border: none;
  border-radius: 6px;
  color: #fff0cc;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 16px;
  text-transform: uppercase;
  transition: opacity .15s;
}
.inf-comment-actions button:hover { opacity: .88; }
.inf-comment-actions button:disabled { opacity: .45; cursor: not-allowed; }
.inf-comment-status { font-size: .75rem; color: rgba(246,208,139,.55); flex: 1; }

/* Alt text field revealed when forum image is selected */
.forum-img-alt-label { display: block; margin-top: 10px; font-size: .85rem; font-weight: 700; color: rgba(246,208,139,.8); letter-spacing: .02em; }
.forum-img-alt-label input {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: rgba(10,4,1,.55);
  border: 1px solid rgba(255,185,78,.22);
  border-radius: 6px;
  color: rgba(246,208,139,.9);
  font-family: var(--font-ui);
  font-size: .85rem;
  padding: 8px 12px;
  box-sizing: border-box;
}
.forum-img-alt-label input:focus { outline: none; border-color: rgba(200,137,42,.55); }
.status--open      { background: rgba(255,185,78,.13); border: 1px solid rgba(255,185,78,.34); color: #ffd585; }
.status--progress  { background: rgba(96,165,250,.13); border: 1px solid rgba(96,165,250,.34); color: #93c5fd; }
.status--escalated { background: rgba(249,115,22,.13); border: 1px solid rgba(249,115,22,.34); color: #fb923c; }
.status--resolved  { background: rgba(39,174,96,.13);  border: 1px solid rgba(39,174,96,.34);  color: #5ddb8a; }
.status--closed    { background: rgba(120,113,108,.13);border: 1px solid rgba(120,113,108,.34);color: #a8a29e; }
.priority--low     { background: rgba(120,113,108,.13);border: 1px solid rgba(120,113,108,.28);color: #a8a29e; }
.priority--medium  { background: rgba(255,185,78,.13); border: 1px solid rgba(255,185,78,.28); color: #ffd585; }
.priority--high    { background: rgba(249,115,22,.13); border: 1px solid rgba(249,115,22,.28); color: #fb923c; }
.priority--urgent  { background: rgba(239,68,68,.13);  border: 1px solid rgba(239,68,68,.34);  color: #f87171; }

.msg-support-ticket-cta {
  display: inline-block;
  margin-top: 8px;
  color: #75e2ba;
  font: 700 12px var(--font-ui);
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .82;
  transition: opacity .14s;
}
.msg-support-ticket-cta:hover { opacity: 1; text-decoration: underline; }

.ticket-badge-row { display: flex; gap: 5px; flex-wrap: wrap; margin: 3px 0 4px; }
.ticket-followup-badge {
  display: block;
  color: #75e2ba;
  font-size: 11px;
  margin-top: 3px;
}

/* Ticket action bar resolve button */
.msg-action-btn--resolve { border-color: rgba(39,174,96,.36); color: #5ddb8a; }
.msg-action-btn--resolve:hover:not([disabled]) {
  background: rgba(39,174,96,.16);
  border-color: rgba(39,174,96,.6);
  color: #78dda1;
}

/* Follow-up list */
.ticket-followup-list { display: grid; gap: 8px; margin: 8px 0; }
.ticket-followup-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(118,226,177,.2);
  border-radius: 7px;
  background: rgba(39,174,96,.06);
}
.ticket-followup-item.is-overdue {
  border-color: rgba(249,115,22,.36);
  background: rgba(249,115,22,.06);
}
.ticket-followup-item.is-done {
  opacity: .48;
  border-color: rgba(120,113,108,.2);
  background: rgba(0,0,0,.1);
}
.ticket-followup-icon {
  color: #78dda1;
  font-size: 15px;
  flex-shrink: 0;
  padding-top: 2px;
}
.ticket-followup-item.is-overdue .ticket-followup-icon { color: #fb923c; }
.ticket-followup-item.is-done    .ticket-followup-icon { color: #a8a29e; }
.ticket-followup-body { flex: 1; min-width: 0; }
.ticket-followup-body strong { display: block; color: #f0dbb4; font-size: 12px; margin-bottom: 2px; }
.ticket-followup-body p { color: rgba(255,235,206,.58); font-size: 12px; margin: 0; }

/* Inline panel datetime input */
.msg-inline-panel label {
  color: rgba(255,234,204,.72);
  font: 800 11px var(--font-ui);
  text-transform: uppercase;
}
.msg-inline-panel input[type="datetime-local"] {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(211,143,38,.25);
  border-radius: 4px;
  color: #f4e9d7;
  font: 400 13px var(--font-body, Arial, sans-serif);
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
}
.msg-inline-panel input[type="datetime-local"]:focus {
  outline: none;
  border-color: rgba(211,143,38,.6);
  background: rgba(255,255,255,.08);
}

/* ── Messages page polish ── */

/* Action bar button states */
.msg-action-btn:hover:not([disabled]) {
  background: rgba(216, 140, 30, .22);
  border-color: rgba(255, 185, 78, .52);
  color: #fde48a;
}
.msg-action-btn.is-open {
  background: rgba(123, 69, 12, .46);
  border-color: #d99832;
  color: #ffe5b1;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .3);
}
.msg-action-btn[disabled] {
  cursor: not-allowed;
  opacity: .68;
}

/* Inline panel slide-in animation */
@keyframes msg-panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.msg-inline-panel:not([hidden]) {
  animation: msg-panel-in .18s ease;
}
.msg-inline-panel select:focus,
.msg-inline-panel textarea:focus {
  outline: none;
  border-color: rgba(211, 143, 38, .6);
  background: rgba(255, 255, 255, .08);
}

/* Message bubble layout */
.message-bubble {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.message-bubble:last-child { margin-bottom: 0; }
.message-bubble strong {
  font-size: 13px;
  letter-spacing: .01em;
}
.message-bubble p { margin: 0; }
.message-bubble > span {
  margin-top: 2px;
}

/* Reply form textarea */
.thread-reply-form textarea {
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 185, 78, .22);
  border-radius: 6px;
  color: #fff5e6;
  font: 400 14px var(--font-body, Arial, sans-serif);
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.thread-reply-form textarea:focus {
  border-color: rgba(255, 185, 78, .52);
  outline: none;
}
.thread-reply-form textarea::placeholder {
  color: rgba(255, 234, 204, .3);
}

/* Disabled / coming-soon composer inputs */
.message-compose .is-coming-soon {
  opacity: .48;
  cursor: not-allowed;
}

/* Keyboard shortcut hint in composer */
.composer-hint {
  color: rgba(255, 235, 206, .28);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .02em;
  user-select: none;
}

/* ── Emoji reactions on message bubbles ──────────────────────────────── */
.msg-bubble-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.msg-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255,185,78,.25);
  background: rgba(216,140,30,.1);
  color: rgba(255,235,206,.85);
  font-size: 13px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  line-height: 1;
}
.msg-reaction-chip:hover { background: rgba(216,140,30,.22); border-color: rgba(255,185,78,.5); }
.msg-reaction-chip span { font-size: 11px; font-family: var(--font-ui); font-weight: 700; color: #d8a44c; }

/* ── Reaction picker popup ───────────────────────────────────────────── */
.msg-reaction-picker {
  position: fixed;
  z-index: 800;
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(20,10,3,.96);
  border: 1px solid rgba(255,185,78,.3);
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
}
.msg-reaction-picker[hidden] { display: none; }
.msg-reaction-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .1s;
  line-height: 1;
}
.msg-reaction-btn:hover { background: rgba(255,185,78,.15); }

/* React trigger inside bubble actions */
.msg-react-trigger { font-size: 13px !important; padding: 4px 8px !important; }
.msg-emoji-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 6px;
  color: rgba(255,235,206,.5);
  transition: color .12s, background .12s;
}
.msg-emoji-trigger:hover { color: rgba(255,235,206,.9); background: rgba(255,185,78,.1); }

/* ── Attachment UI ───────────────────────────────────────────────────── */
.msg-attach-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: rgba(255,235,206,.45);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid rgba(255,185,78,.15);
  border-radius: 6px;
  transition: color .12s, border-color .12s, background .12s;
}
.msg-attach-label:hover { color: rgba(255,185,78,.85); border-color: rgba(255,185,78,.35); background: rgba(216,140,30,.08); }
.msg-attach-label svg { flex-shrink: 0; }

.msg-compose-attach-row {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 4px;
}
.msg-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,185,78,.25);
  background: rgba(0,0,0,.32);
  color: rgba(255,235,206,.7);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-attach-chip--uploading { border-style: dashed; opacity: .65; animation: pulse .8s ease-in-out infinite alternate; }
.msg-attach-chip--ready { border-color: rgba(90,180,80,.4); color: #a0e09a; }
.msg-attach-chip--error { border-color: rgba(244,67,54,.4); color: #f47766; }
.msg-attach-remove {
  background: none; border: none; cursor: pointer;
  color: rgba(244,100,80,.7); font-size: 10px; padding: 0 0 0 4px; line-height: 1;
}
.msg-attach-remove:hover { color: #f47766; }

.msg-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber);
  text-decoration: none;
  font-size: 12px;
}
.msg-attach-link:hover { text-decoration: underline; }

/* ══ Group card hover-reveal ═════════════════════════════════════════════════ */
.group-card {
  position: relative;
  isolation: isolate;
}
.group-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: inherit;
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.group-card:hover::before,
.group-card:focus-within::before {
  background: rgba(0, 0, 0, 0.75);
}
/* Content layers above overlay */
.group-card .streets-card-media,
.group-card .streets-card-body {
  position: relative;
  z-index: 2;
}
/* Hide tags and meta until hover */
.group-card .group-card-meta-row,
.group-card .group-meta {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}
/* Reveal on hover / keyboard focus */
.group-card:hover .group-card-meta-row,
.group-card:hover .group-meta,
.group-card:focus-within .group-card-meta-row,
.group-card:focus-within .group-meta {
  opacity: 1;
  transform: translateY(0);
}

/* ══ Meetup card hover-reveal ════════════════════════════════════════════════ */
.meetup-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Meetup media and content layers */
.meetup-card-media {
  position: relative;
  min-height: 130px;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 185, 78, .14);
  display: flex;
  align-items: flex-end;
  padding: 8px 12px;
  z-index: 2;
}
.meetup-format-pill {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,185,78,.25);
  color: #f6d08b;
  border-radius: 999px;
  padding: 3px 9px;
}
.meetup-card-content {
  padding: 12px 14px 14px;
  position: relative;
  z-index: 2;
}
.meetup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border-radius: inherit;
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.meetup-card:hover::before,
.meetup-card:focus-within::before {
  background: rgba(0, 0, 0, 0.75);
}
/* Hide description and tags until hover */
.meetup-card .streets-kicker,
.meetup-card p,
.meetup-card .group-meta,
.meetup-card .thread-actions {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}
/* Reveal on hover / keyboard focus */
.meetup-card:hover .streets-kicker,
.meetup-card:hover p,
.meetup-card:hover .group-meta,
.meetup-card:hover .thread-actions,
.meetup-card:focus-within .streets-kicker,
.meetup-card:focus-within p,
.meetup-card:focus-within .group-meta,
.meetup-card:focus-within .thread-actions {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse { from { opacity: .5; } to { opacity: .9; } }
