.auth-hero,
.glass-card,
.post-card,
.stat-card,
.leader-card,
.form-shell {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 12px;
  padding: 40px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-strong), transparent 60%);
  background-position: center;
  background-size: cover;
}

.auth-hero::after {
  display: none;
  --amber: #ffd166;
  --sky: #0ea5e9;
  --navy: #071025;
  --cream: #fbfdff;
  --shadow: 0 18px 40px rgba(11, 23, 36, 0.08);
  --shadow-soft: 0 8px 20px rgba(11, 23, 36, 0.06);
}

:root {
  /* Reddit-modern dark palette tuned for Gen Z audience */
  --ink: #f7f8fa;
  --muted: #9aa6c7;
  --line: rgba(154, 166, 199, 0.12);
  --paper: #0b0d14; /* app background */
  --paper-strong: #0f1220; /* card background */
  --card-light: rgba(255,255,255,0.03);
  --accent: #ff4500; /* reddit-orange accent */
  --accent-dark: #e03e00;
  --accent-secondary: #7C5CFF; /* purple for secondary CTAs and highlights */
  --muted-bg: #0F1624; /* soft slate for card surfaces */
  --success: #22c55e;
  --muted-blue: #6f86b0;
  --navy: #0a1133;
  --cream: #081020;
  --shadow: 0 22px 60px rgba(2,6,18,0.6);
  --shadow-soft: 0 10px 28px rgba(2,6,18,0.45);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.brand-mark::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--coral), var(--sky) 42%);
  box-shadow: var(--shadow-soft);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}

.desktop-nav-link {
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav-link:hover {
  color: var(--navy);
  background: white;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-main {
  padding: 34px 28px 72px;
}

.flash-stack {
  padding: 12px 18px 0;
}

.flash {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.flash-success {
  border-color: rgba(18, 185, 129, 0.22);
  color: #047857;
}

.flash-error {
  border-color: rgba(255, 79, 100, 0.24);
  color: #be123c;
}

.flash-warn {
  border-color: rgba(245, 158, 11, 0.34);
  color: #92400e;
  font-weight: 850;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 1.05rem;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  color: white;
  background: linear-gradient(180deg, var(--coral), var(--coral-dark));
  box-shadow: 0 8px 20px rgba(11,23,36,0.08);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 24, 38, 0.1);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

.btn-block {
  width: 100%;
}

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  padding: 10px 0 32px;
}

.auth-panel {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

auth-hero,
glass-card,
post-card,
stat-card,
leader-card,
form-shell {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

auth-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 12px;
  padding: 40px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-strong), transparent 60%);
  background-position: center;
  background-size: cover;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px 20px;
  height: 120px;
  border-radius: 12px;
  /* darken overlay to remove large white sheen */
  background: linear-gradient(180deg, rgba(2,6,12,0.75), rgba(2,6,12,0.35)) !important;
  border: 1px solid rgba(255,255,255,0.03) !important;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 476px;
}

.auth-logo {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.auth-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
}

.auth-copy {
  max-width: 390px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.auth-card {
  border-radius: 8px;
  padding: clamp(24px, 5vw, 42px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 0.44rem 0.72rem;
  color: #c23b4b;
  background: rgba(240, 79, 95, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.page-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.05rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.page-subtitle {
  margin: 0.7rem 0 1.6rem;
  color: var(--muted);
  line-height: 1.6;
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: #332d3f;
  font-size: 0.88rem;
  font-weight: 850;
}

.input-wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(23, 20, 31, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap:focus-within {
  border-color: rgba(255, 79, 100, 0.65);
  background: white;
  box-shadow: 0 0 0 5px rgba(255, 79, 100, 0.1);
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  border-right: 1px solid rgba(23, 20, 31, 0.09);
  padding: 0 14px;
  color: var(--muted);
  font-weight: 900;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.input,
.select {
  min-height: 56px;
  padding: 0 16px;
}

.textarea {
  min-height: 150px;
  padding: 16px;
  resize: vertical;
}

.otp-input {
  text-align: center;
  font-size: clamp(2rem, 12vw, 3.5rem);
  font-weight: 950;
  letter-spacing: 0.42em;
}

.helper-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.link-preview-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.link-preview-error {
  color: #ff7b8b;
}

.link-preview-card {
  display: grid;
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.link-preview-card[hidden] {
  display: none;
}

.link-preview-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  background: rgba(23, 20, 31, 0.08);
}

.link-preview-image-wrap[hidden] {
  display: none;
}

.link-preview-image-wrap {
  overflow: hidden;
}

.link-preview-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 138px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.link-preview-image-wrap img[hidden] {
  display: none;
}

.link-preview-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 138px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(26, 188, 156, 0.16), transparent 46%),
    #18181d;
}

.link-preview-no-image .link-preview-placeholder {
  display: grid;
}

.link-preview-image-wrap[data-site*="linkedin"] .link-preview-placeholder {
  background:
    linear-gradient(135deg, rgba(10, 102, 194, 0.42), transparent 48%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.1), transparent 44%),
    #111820;
}

.link-preview-image-wrap[data-site*="amazon"] .link-preview-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 153, 0, 0.36), transparent 48%),
    linear-gradient(315deg, rgba(20, 110, 180, 0.18), transparent 42%),
    #171717;
}

.link-preview-image-wrap[data-site*="youtube"] .link-preview-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.35), transparent 48%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08), transparent 44%),
    #1b1112;
}

.link-preview-placeholder-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.link-preview-placeholder-text {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.link-preview-body {
  min-width: 0;
  padding: 14px 16px;
}

.link-preview-site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.link-preview-site,
.link-preview-url {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.link-preview-site {
  text-transform: uppercase;
}

.link-preview-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 20, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.link-preview-title {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.link-preview-description {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.link-preview-url {
  display: block;
  text-decoration: none;
}

@media (max-width: 640px) {
  .link-preview-card {
    grid-template-columns: 1fr;
  }

  .link-preview-image-wrap,
  .link-preview-image-wrap img,
  .link-preview-placeholder {
    min-height: 190px;
  }
}

.feed-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 8px 0 28px;
}

.feed-title {
  margin: 0;
  max-width: 780px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.94;
  font-weight: 900;
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 2px 28px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.chip-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  box-shadow: 0 14px 28px rgba(38, 86, 217, 0.2);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.post-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card:hover {
  transform: translateY(-3px);
}

/* Prevent product/post images from becoming overly tall on very large screens.
   On wide viewports use contain so the full product image is visible. */
@media (min-width: 1600px) {
  .post-card > img {
    max-height: 72vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}

.post-body {
  padding: 22px;
}

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

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  box-shadow: 0 12px 24px rgba(255, 79, 100, 0.22);
  font-weight: 950;
}

.author-name {
  display: block;
  color: #2c2638;
  font-size: 0.9rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.42rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 950;
}

.verdict-worth_it,
.badge-green {
  color: #047857;
  background: rgba(18, 185, 129, 0.14);
}

.verdict-overhyped,
.badge-red {
  color: #be123c;
  background: rgba(255, 79, 100, 0.14);
}

.verdict-maybe,
.badge-amber {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.post-title {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.25;
  font-weight: 950;
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid rgba(23, 20, 31, 0.08);
  padding-top: 14px;
}

.meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

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

.stat-card {
  border-radius: 8px;
  padding: 22px;
}

.stat-value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 950;
}

.stat-label {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-title {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  font-weight: 950;
}

.form-shell {
  width: min(100%, 860px);
  border-radius: 8px;
  padding: 28px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-button {
  min-height: 74px;
  border: 1px solid rgba(23, 20, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #4b4658;
  cursor: pointer;
  font-weight: 900;
}

.option-active-green {
  border-color: rgba(18, 185, 129, 0.42);
  color: #047857;
  background: rgba(18, 185, 129, 0.12);
}

.option-active-amber {
  border-color: rgba(245, 158, 11, 0.48);
  color: #92400e;
  background: rgba(245, 158, 11, 0.13);
}

.option-active-red {
  border-color: rgba(255, 79, 100, 0.42);
  color: #be123c;
  background: rgba(255, 79, 100, 0.12);
}

.empty-state {
  border: 1px dashed rgba(23, 20, 31, 0.14);
  border-radius: 8px;
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
}

.leader-list {
  display: grid;
  gap: 12px;
}

.leader-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  padding: 18px;
}

.leader-card-me {
  border-color: rgba(255, 79, 100, 0.34);
  background: linear-gradient(135deg, rgba(255, 79, 100, 0.13), rgba(255, 255, 255, 0.78));
}

.leader-rank {
  width: 40px;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 950;
}

.leader-info {
  flex: 1;
  min-width: 0;
}

.leader-name {
  margin: 0;
  font-weight: 950;
}

.leader-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 72px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

/* Grapevine-inspired community layout */
:root {
  --ink: #f6f8ff;
  --muted: #a0abcc;
  --line: rgba(138, 147, 173, 0.18);
  --paper: #0b1251;
  --paper-strong: #0a103f;
  --card-light: rgba(255,255,255,0.06);
  --coral: #5865f2;
  --coral-dark: #4752c4;
  --indigo: #7289da;
  --mint: #57f287;
  --amber: #faa81a;
  --sky: #57a4ff;
  --navy: #0a1133;
  --cream: #081020;
  --shadow: 0 24px 70px rgba(3, 10, 35, 0.65);
  --shadow-soft: 0 12px 30px rgba(3, 10, 35, 0.38);
}

html {
  background: var(--cream);
}

body.rizz-body {
  color: var(--ink);
  background: var(--cream);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.flash-stack,
.bottom-nav-inner {
  width: min(100%, 1220px);
}

.topbar-inner {
  min-height: 66px;
}

.brand-mark {
  color: var(--coral);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-mark::before {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--coral), var(--sky) 42%);
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.2);
}

.desktop-nav {
  border: 0;
  background: transparent;
}

.desktop-nav-link {
  border-radius: 999px;
  padding: 0.54rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.desktop-nav-link:hover {
  color: #ffffff;
  background: rgba(88, 101, 242, 0.12);
}

.app-main {
  width: min(100%, 1220px);
  padding: 26px 24px 72px;
}

.app-main-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 650px) 280px;
  gap: 22px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.rail-card,
.promo-card,
.auth-card,
.glass-card,
.post-card,
.stat-card,
.leader-card,
.form-shell,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: none;
  backdrop-filter: none;
}

.rail-card {
  padding: 14px;
}

.rail-label,
.promo-kicker {
  margin: 0 0 10px;
  color: #8a877f;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rail-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 10px;
  color: #343630;
  font-size: 0.92rem;
  font-weight: 760;
}

.rail-link:hover {
  color: #174534;
  background: #edf7f2;
}

.rail-link.compact {
  min-height: 34px;
  font-size: 0.86rem;
}

.rail-pill {
  display: inline-flex;
  margin: 0 6px 8px 0;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  color: #34624f;
  background: #edf7f2;
  font-size: 0.78rem;
  font-weight: 800;
}

.muted-card {
  background: #fbf8f0;
}

.promo-card {
  padding: 18px;
  background: #174534;
  color: white;
}

.promo-card h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.16;
  font-weight: 900;
}

.promo-card p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.promo-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.btn {
  border-radius: 999px;
  font-weight: 850;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 14px 32px rgba(88, 101, 242, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--coral-dark), var(--sky));
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--muted);
}

.flash {
  border-radius: 8px;
  box-shadow: none;
}

.auth-wrap {
  min-height: calc(100vh - 92px);
}

.auth-panel {
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 1fr) 420px;
}

.auth-hero {
  min-height: 540px;
  background:
    linear-gradient(135deg, rgba(8, 14, 55, 0.92), rgba(88, 101, 242, 0.24)),
    url("https://images.unsplash.com/photo-1556742044-3c52d6e88c62?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.auth-hero::after {
  display: none;
}

.auth-logo,
.page-title,
.feed-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.auth-card {
  background: var(--paper-strong);
}

.eyebrow {
  color: var(--sky);
  background: rgba(88, 101, 242, 0.08);
}

.input-wrap {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.input-wrap:focus-within {
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.16);
}

.feed-header {
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.feed-title {
  max-width: 520px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.04;
}

.page-subtitle {
  margin: 0.45rem 0 0;
  color: #74766f;
}

.category-rail {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.chip {
  border-color: transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.chip-active {
  background: linear-gradient(135deg, var(--sky), var(--coral));
  box-shadow: none;
}

.app-main-shell .post-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.post-card:hover {
  transform: none;
}

.post-card > img {
  aspect-ratio: 16 / 8;
  border-bottom: 1px solid var(--line);
}

.post-body {
  padding: 18px;
}

.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--indigo));
  box-shadow: none;
}

.author-name,
.post-title,
.leader-name {
  color: #252722;
}

.post-title {
  font-size: 1.08rem;
}

.post-footer {
  border-top-color: var(--line);
}

.engagement-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.engagement-row form {
  margin: 0;
}

.engage-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: #73756f;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
}

.engage-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f534b;
  background: #fffdf8;
  font-size: 1rem;
  line-height: 1;
}

.engage-button:hover,
.engage-active {
  color: #25745a;
}

.engage-button:hover span,
.engage-active span {
  border-color: rgba(47, 143, 111, 0.28);
  color: #25745a;
  background: #edf7f2;
}

.top-comment-card {
  display: block;
  margin-top: 18px;
  border-radius: 8px;
  padding: 14px 16px;
  color: #3d403a;
  background: #f3f1eb;
}

.top-comment-card span {
  display: block;
  margin-bottom: 6px;
  color: #6f726b;
  font-size: 0.78rem;
  font-weight: 900;
}

.top-comment-card p {
  margin: 0;
  color: #3d403a;
  font-size: 0.94rem;
  line-height: 1.5;
}

.thread-card {
  margin-bottom: 18px;
}

.thread-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.thread-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.comments-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.comment-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
}

.comment-textarea {
  min-height: 96px;
  padding: 4px;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.comment-slider {
  position: relative;
}

.comment-slider-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: flex-end;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f7f4ec;
  padding: 0;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--mint);
  border-color: rgba(47, 143, 111, 0.55);
}

.comment-list.comment-list-slider {
  min-height: 140px;
}

.comment-slide {
  display: none;
}

.comment-slide[style] {
  display: grid;
}

.comment-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

.comment-reply {
  margin-left: 52px;
}

.comment-body {
  border-radius: 8px;
  padding: 12px 14px;
  background: #f7f4ec;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-meta strong {
  color: #262923;
  font-size: 0.92rem;
}

.comment-meta span {
  color: #74766f;
  font-size: 0.8rem;
  font-weight: 750;
}

.comment-body p {
  margin: 0;
  color: #3b3d38;
  line-height: 1.55;
}

.comments-empty {
  margin-top: 16px;
}

.stat-grid {
  gap: 12px;
}

.stat-card {
  background: #fffdf8;
}

.leader-card-me {
  border-color: rgba(47, 143, 111, 0.28);
  background: #edf7f2;
}

.form-shell {
  margin: 0 auto;
  background: #fffdf8;
}

.option-button {
  border-color: var(--line);
  background: #ffffff;
}

.bottom-nav {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
}

.nav-item {
  color: #686a64;
}

@media (min-width: 761px) {
  .bottom-nav {
    display: none;
  }

  .topbar-actions {
    margin-left: 0.5rem;
  }
}

@media (max-width: 1120px) {
  .app-main-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .app-main-shell {
    display: block;
  }

  .side-panel {
    display: none;
  }

  .app-main {
    padding-bottom: 110px;
  }

  .thread-hero-image {
    aspect-ratio: 16 / 10;
  }

  .comment-form-footer,
  .comments-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-reply {
    margin-left: 24px;
  }

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

  .auth-hero {
    min-height: 300px;
    border-radius: 8px;
  }

  .auth-hero-content {
    min-height: 230px;
  }

  /* Ensure post images and content stack cleanly on small screens */
  .post-card > img {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    max-height: none !important;
  }

  .post-title,
  .post-excerpt,
  .engagement-row {
    margin-left: 0 !important;
  }
}

@media (max-width: 520px) {
  .app-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar-inner {
    min-height: 62px;
    padding: 0 14px;
  }

  .auth-card,
  .form-shell {
    border-radius: 8px;
    padding: 18px;
  }

  .auth-hero {
    padding: 24px;
  }

  .feed-header {
    display: block;
  }

  .stat-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }
}

/* Discord-inspired shell */
:root {
  --ink: #f6f8ff;
  --muted: #a0abcc;
  --line: rgba(138, 147, 173, 0.18);
  --paper: #0b1251;
  --paper-strong: #0a103f;
  --card-light: rgba(255,255,255,0.06);
  --coral: #5865f2;
  --coral-dark: #4752c4;
  --indigo: #7289da;
  --mint: #57f287;
  --amber: #faa81a;
  --sky: #57a4ff;
  --navy: #0a1133;
  --cream: #081020;
  --shadow: 0 24px 70px rgba(3, 10, 35, 0.65);
  --shadow-soft: 0 12px 30px rgba(3, 10, 35, 0.38);
}

html,
body.rizz-body {
  background: #09090b;
}

body.rizz-body {
  color: var(--ink);
}

.topbar {
  border-bottom: 1px solid #24242b;
  background: #111115;
  backdrop-filter: none;
}

.topbar-inner {
  min-height: 82px;
  gap: 22px;
}

.brand-mark {
  min-width: 160px;
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 900;
}

.brand-mark::before {
  display: none;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  min-height: 58px;
  margin: 0 auto;
  border: 1px solid #24242b;
  border-radius: 14px;
  padding: 0 14px;
  color: #8f8f99;
  background: #202024;
}

.top-search span {
  font-size: 1.6rem;
  line-height: 1;
}

.top-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f4f4f7;
  background: transparent;
  font: inherit;
  font-size: 1.04rem;
}

.top-search input::placeholder {
  color: #7d7d86;
}

.top-search kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid #45454e;
  border-radius: 8px;
  color: #b8b8c0;
  background: #2a2a30;
  font-size: 0.82rem;
  font-weight: 850;
}

.desktop-nav {
  display: none;
}

.topbar-actions {
  min-width: 160px;
  justify-content: flex-end;
}

.app-main {
  width: min(100%, 1780px);
  padding: 28px 32px 80px;
}

.app-main-shell {
  grid-template-columns: 370px minmax(0, 995px) 370px;
  gap: 34px;
}

.side-panel {
  top: 112px;
  gap: 24px;
}

.rail-card,
.promo-card,
.auth-card,
.glass-card,
.post-card,
.stat-card,
.leader-card,
.form-shell,
.empty-state,
.comments-panel,
.category-rail,
.feed-header {
  border: 1px solid #24242b;
  border-radius: 14px;
  background: #141418;
  box-shadow: none;
}

.rail-card {
  padding: 28px;
}

.rail-link,
.rail-muted-link {
  color: #a2a2ab;
}

.rail-link {
  min-height: 48px;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 850;
}

.rail-link:hover,
.rail-primary {
  color: #f4f4f7;
  background: transparent;
}

.rail-row {
  width: 100%;
  justify-content: space-between;
  border: 0;
  background: transparent;
  cursor: default;
}

.rail-divider {
  height: 1px;
  margin: 18px 0 28px;
  background: #24242b;
}

.muted-card {
  display: grid;
  gap: 22px;
  background: #141418;
}

.rail-muted-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.98rem;
  font-weight: 750;
}

.rail-muted-link:hover {
  color: #f4f4f7;
}

.promo-card {
  position: relative;
  margin-top: 182px;
  padding: 86px 36px 22px;
  background: #141418;
  color: #f4f4f7;
}

.promo-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -194px;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=500&q=80") center/cover;
  border-radius: 999px;
  filter: saturate(1.15);
}

.promo-ribbon {
  position: absolute;
  left: -12px;
  right: -12px;
  top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  color: #ffffff;
  background: var(--coral);
  font-size: 1rem;
  font-weight: 900;
}

.promo-card h2 {
  color: #f4f4f7;
  font-size: 1.45rem;
  text-align: center;
}

.promo-card p {
  color: #aaaab3;
  text-align: center;
}

.promo-kicker {
  display: block;
  margin-top: 6px;
  color: #a2a2ab;
  text-align: center;
}

.btn {
  min-height: 54px;
  border-radius: 12px;
}

.btn-primary {
  border: 1px solid rgba(88, 101, 242, 0.55);
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 14px 30px rgba(88, 101, 242, 0.18);
}

.btn-primary:hover {
  border-color: rgba(87, 164, 255, 0.78);
  background: linear-gradient(135deg, #ff7817, #ffa040);
}

.topbar-actions .btn-primary {
  border-radius: 14px;
  border-color: #45454e;
  background: transparent;
  box-shadow: none;
}

.btn-secondary {
  border-color: #3a3a42;
  color: #f4f4f7;
  background: #202024;
}

.btn-ghost {
  color: #a2a2ab;
}

.feed-header {
  position: relative;
  overflow: hidden;
  min-height: 194px;
  align-items: flex-start;
  padding: 24px;
  background:
    linear-gradient(rgba(14, 14, 20, 0.24), rgba(14, 14, 20, 0.18)),
    url("https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.feed-header .eyebrow {
  margin-bottom: 10px;
  color: #ffffff;
  background: transparent;
  padding: 0;
  text-transform: none;
  font-size: 1.05rem;
}

.feed-title {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.page-subtitle {
  color: #c7c7cf;
}

.feed-header .page-subtitle {
  display: inline-flex;
  width: min(100%, 940px);
  min-height: 64px;
  align-items: center;
  margin-top: 18px;
  border-radius: 10px;
  padding: 0 16px;
  color: #9d9da6;
  background: #202024;
  font-size: 1.05rem;
}

.landing-post-cta {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 140px;
  min-height: 76px;
  justify-content: flex-start;
  padding: 0 24px;
  color: #f5f5f8;
  background: #202024;
  font-size: 1.15rem;
  line-height: 1.05;
  text-align: left;
  white-space: normal;
}

.landing-compose-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 22px 28px;
  color: #f7f7fb;
  background: linear-gradient(180deg, rgba(19, 22, 42, .96), rgba(16, 18, 34, .98));
  box-shadow: 0 32px 70px rgba(8, 10, 24, .42);
  position: relative;
  z-index: 2;
}

.landing-compose-card::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: -1px;
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(249, 115, 22, .22), rgba(79, 70, 229, .18));
  filter: blur(16px);
  opacity: .55;
  z-index: -1;
}

.landing-compose-card:hover {
  border-color: rgba(249, 115, 22, .3);
  background: linear-gradient(180deg, rgba(23, 27, 55, .98), rgba(18, 21, 41, .98));
  transform: translateY(-2px);
}

.landing-compose-avatar {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 1), rgba(79, 70, 229, 1));
  font-size: 1.85rem;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(88, 101, 242, .18);
}

.landing-compose-card strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  transition: opacity .28s ease, transform .28s ease;
  overflow: hidden;
  white-space: nowrap;
}
.landing-compose-card strong .typewriter-text {
  display: inline-block;
  min-width: 1px;
  color: #ffffff;
  padding: 0 0.18em;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 106, 0, 0.15);
  transition: background .25s ease, box-shadow .25s ease;
}
.landing-compose-card:hover strong .typewriter-text {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 22px rgba(255, 106, 0, 0.24);
}
.landing-compose-card strong .typewriter-cursor {
  display: inline-block;
  color: #ffae48;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.landing-compose-card span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: .985rem;
  line-height: 1.6;
}

.landing-page {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.landing-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(10, 14, 38, 0.96), rgba(16, 23, 52, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 48px 90px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.landing-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(88, 101, 242, 0.18), transparent 25%),
              radial-gradient(circle at bottom right, rgba(55, 214, 255, 0.1), transparent 20%);
  pointer-events: none;
}

.landing-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.landing-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  align-content: center;
}

.landing-hero-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff 0%, rgba(242,247,255,0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.88;
  font-weight: 900;
  max-width: 780px;
  letter-spacing: -0.02em;
  text-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.landing-hero-copytext {
  color: rgba(242, 247, 255, 0.85);
}

.landing-hero-copytext {
  margin: 0;
  color: #c9d4ec;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.landing-hero-actions .btn-secondary {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(18, 24, 38, 0.12);
}

.landing-hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
}

.landing-live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(253, 94, 83, 0.95), rgba(248, 180, 82, 0.95));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.landing-live-strip span {
  color: rgba(242, 247, 255, 0.84);
  font-size: 0.95rem;
}

.landing-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-kpi {
  min-width: 130px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-kpi strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.hero-kpi span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-kpi {
  display: grid;
  gap: 8px;
  min-width: 130px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-kpi strong {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.hero-kpi span {
  color: #b7c3e7;
  font-size: 0.95rem;
  line-height: 1.5;
}

.landing-hero-cards {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.landing-hero-buzz {
  position: absolute;
  top: 82px;
  right: 480px;
  left: min(46vw, 760px);
  z-index: 2;
  width: auto;
  height: calc(100% - 160px);
  min-height: 390px;
  pointer-events: none;
}

.buzz-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(248, 250, 255, .88);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)),
    rgba(11, 18, 57, .68);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px) saturate(126%);
  font-size: clamp(.78rem, 1.1vw, .98rem);
  font-weight: 850;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: buzz-float 8s ease-in-out infinite;
}

.buzz-chip-primary {
  color: #fffaf3;
  border-color: rgba(255, 138, 76, .34);
  background:
    linear-gradient(135deg, rgba(255, 138, 76, .88), rgba(167, 139, 250, .72)),
    rgba(24, 20, 28, .82);
}

.buzz-chip-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, .78);
}

.buzz-chip:nth-child(1) { top: 1%; left: 8%; transform: rotate(-5deg); animation-delay: -1.2s; }
.buzz-chip:nth-child(2) { top: 11%; right: 0; transform: rotate(4deg); animation-delay: -4.4s; }
.buzz-chip:nth-child(3) { top: 23%; left: 18%; transform: rotate(-2deg); animation-delay: -2.8s; }
.buzz-chip:nth-child(4) { top: 36%; right: 10%; transform: rotate(6deg); animation-delay: -6.2s; }
.buzz-chip:nth-child(5) { top: 48%; left: 2%; transform: rotate(-7deg); animation-delay: -3.5s; }
.buzz-chip:nth-child(6) { top: 61%; right: 2%; transform: rotate(-3deg); animation-delay: -5.4s; }
.buzz-chip:nth-child(7) { top: 74%; left: 10%; transform: rotate(5deg); animation-delay: -7.1s; }
.buzz-chip:nth-child(8) { top: 86%; right: 14%; transform: rotate(-4deg); animation-delay: -1.9s; }
.buzz-chip:nth-child(9) { top: 41%; left: 35%; transform: rotate(3deg); animation-delay: -6.8s; }
.buzz-chip:nth-child(10) { top: 92%; left: 0; transform: rotate(4deg); animation-delay: -3.1s; }
.buzz-chip:nth-child(11) { top: 4%; right: 26%; transform: rotate(6deg); animation-delay: -8.1s; }

.buzz-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, .45), rgba(56, 189, 248, .08) 58%, transparent 70%);
  filter: blur(.2px);
  animation: buzz-pulse 7s ease-in-out infinite;
}

.buzz-orb-one {
  width: 130px;
  height: 130px;
  top: 23%;
  left: 42%;
}

.buzz-orb-two {
  width: 82px;
  height: 82px;
  right: 18%;
  bottom: 12%;
  animation-delay: -2.8s;
  background: radial-gradient(circle, rgba(167, 139, 250, .42), rgba(167, 139, 250, .07) 60%, transparent 72%);
}

.buzz-orb-three {
  width: 52px;
  height: 52px;
  top: 48%;
  left: 12%;
  animation-delay: -5s;
  background: radial-gradient(circle, rgba(255, 138, 76, .42), rgba(255, 138, 76, .08) 60%, transparent 72%);
}

@keyframes buzz-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

@keyframes buzz-pulse {
  0%, 100% { opacity: .45; transform: scale(.96); }
  50% { opacity: .9; transform: scale(1.06); }
}

.landing-hero-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(124,92,255,0.12);
}

.landing-hero-card-header span {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.landing-hero-card-header p {
  margin: 0;
  color: rgba(242,247,255,0.72);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 380px;
  line-height: 1.4;
}

.landing-thread-card {
  display: block;
  text-decoration: none;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.landing-thread-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.thread-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.thread-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(84, 119, 255, 0.18);
  color: #d8e5ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-thread-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.35;
}

.landing-thread-card p {
  margin: 0 0 14px;
  color: #d8e1f7;
  line-height: 1.75;
  font-size: 0.96rem;
  min-height: 64px;
}

.thread-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.landing-thread-label {
  display: inline-flex;
  color: #a9b6ea;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-card-badge-small {
  color: #99d6ff;
  background: rgba(77, 178, 255, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.landing-thread-meta {
  color: #94b4ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-contributor-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-contributor-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(124,92,255,0.12);
}

.landing-contributor-header span {
  display: inline-block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.landing-contributor-header p {
  margin: 0;
  color: rgba(242,247,255,0.72);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 560px;
  line-height: 1.4;
}

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

.contributor-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contributor-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.88), rgba(78, 205, 196, 0.86));
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.contributor-info strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.contributor-info span {
  color: rgba(242, 247, 255, 0.72);
  font-size: 0.88rem;
}

.contributor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(242, 247, 255, 0.78);
  font-size: 0.85rem;
}

.landing-feature-card {
  border-radius: 24px;
  padding: 28px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.landing-feature-card strong {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

.landing-feature-card p {
  margin: 0;
  color: #c8d1f0;
  line-height: 1.75;
}

.landing-bridge-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(59, 95, 245, 0.16), rgba(97, 56, 242, 0.11));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 72px rgba(5, 14, 34, 0.18);
}

.landing-bridge-panel h2 {
  color: #ffffff;
}

.landing-bridge-panel p {
  color: rgba(242, 246, 255, 0.82);
}

.landing-bridge-panel h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.05;
}

.landing-bridge-panel p {
  margin: 0;
  color: #d0d9f8;
  max-width: 640px;
  line-height: 1.8;
}

.landing-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1000px) {
  .landing-hero-panel,
  .landing-feature-grid,
  .landing-bridge-panel {
    grid-template-columns: 1fr;
  }

  .landing-hero-buzz {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 190px;
    min-height: 190px;
    margin-top: 6px;
    order: 2;
  }

  .landing-hero-cards {
    z-index: 3;
    order: 3;
  }

  .landing-bridge-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .landing-hero-title {
    font-size: 2.8rem;
  }

  .landing-hero-panel {
    padding: 24px;
  }

  .landing-hero-buzz {
    height: 160px;
    min-height: 160px;
  }

  .buzz-chip {
    min-height: 34px;
    padding: 0 10px;
    font-size: .74rem;
  }

  .buzz-chip:nth-child(n+7) {
    display: none;
  }

  .landing-thread-card,
  .landing-feature-card,
  .landing-bridge-panel {
    padding: 20px;
  }

  .landing-hero-metrics {
    flex-direction: column;
  }
}

.category-rail {
  margin: 24px 0 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  padding: 18px 24px 0;
  gap: 30px;
}

.chip {
  border-radius: 0;
  padding: 0 0 16px;
  color: #898991;
  background: transparent;
  font-size: 1rem;
}

.chip-active {
  border-bottom: 3px solid #e8e8ef;
  color: #e8e8ef;
  background: transparent;
}

.post-list {
  gap: 0;
}

.app-main-shell .post-list {
  gap: 0;
}

.post-card {
  border-radius: 0;
  border-left: 1px solid #24242b;
  border-right: 1px solid #24242b;
  border-bottom: 0;
  padding: 0;
}

.post-card:first-child {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-top: 1px solid #24242b;
}

.post-card:last-child {
  border-bottom: 1px solid #24242b;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.post-body {
  padding: 28px 44px;
}

.post-card > img {
  width: min(100%, 438px);
  margin: 4px 0 22px 88px;
  border: 1px solid #4b4b55;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

.avatar {
  width: 52px;
  height: 52px;
  border: 1px solid #404048;
  color: #151519;
  background: #f0f0f5;
  font-size: 1.15rem;
}

.author-name,
.post-title,
.leader-name {
  color: #ededf2;
}

.author-meta,
.meta,
.post-excerpt,
.helper-text {
  color: #a2a2ab;
}

.post-title {
  margin-left: 66px;
  font-size: 1.42rem;
  line-height: 1.32;
}

.post-excerpt {
  margin-left: 66px;
  font-size: 1.08rem;
}

.badge,
.verdict-worth_it,
.verdict-overhyped,
.verdict-maybe,
.badge-green,
.badge-red,
.badge-amber {
  color: #e7e7ed;
  background: #24242b;
}

.engagement-row {
  margin-left: 66px;
  gap: 34px;
}

.engage-button {
  color: #b9bfdb;
  font-size: 1rem;
}

.engage-button span {
  border: 1px solid rgba(108, 147, 255, 0.28);
  color: #cad7ff;
  background: rgba(82, 118, 255, 0.12);
  font-size: 1.65rem;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.engage-button:hover,
.engage-active {
  color: #93b6ff;
}

.engage-button:hover span,
.engage-active span {
  border-color: rgba(128, 168, 255, 0.52);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(76, 125, 255, 0.44), rgba(146, 92, 255, 0.3));
}

.engagement-row .share-form .engage-button {
  color: #afe7d8;
}

.engagement-row .share-form .engage-button span {
  border-color: rgba(55, 214, 169, 0.28);
  color: #9cf2d5;
  background: rgba(55, 214, 169, 0.12);
}

.engagement-row .share-form .engage-button:hover,
.engagement-row .share-form .engage-button:hover span {
  color: #e7fff8;
}

.engagement-row .share-form .engage-button:hover span {
  border-color: rgba(55, 214, 169, 0.54);
  background: linear-gradient(135deg, rgba(55, 214, 169, 0.38), rgba(64, 158, 255, 0.24));
}

.top-comment-card {
  margin-left: 66px;
  border: 1px solid #24242b;
  border-radius: 14px;
  background: #202024;
}

.post-footer {
  margin-left: 66px;
  border-top-color: #24242b;
}

.post-footer .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 180, 73, 0.24);
  border-radius: 999px;
  padding: 0.46rem 0.76rem;
  color: #ffc46f;
  background: rgba(255, 154, 35, 0.11);
  font-weight: 900;
}

.post-footer .meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff9d2f;
  box-shadow: 0 0 0 4px rgba(255, 157, 47, 0.16);
}

.auth-card,
.form-shell,
.stat-card,
.leader-card,
.comments-panel,
.comment-form {
  background: #141418;
}

.input-wrap,
.comment-body,
.top-comment-card,
.stat-card,
.link-preview-card,
.link-preview-remove {
  border-color: #24242b;
  background: #202024;
}

.input,
.select,
.textarea {
  color: #f4f4f7;
  caret-color: var(--coral);
}

.input::placeholder,
.textarea::placeholder {
  color: #8b8b96;
  opacity: 1;
}

.select option {
  color: #f4f4f7;
  background: #202024;
}

.link-preview-title,
.link-preview-remove {
  color: #f4f4f7;
}

.link-preview-image-wrap {
  background: #17171b;
}

.input-wrap:focus-within {
  border-color: rgba(88, 101, 242, 0.55);
  background: #202024;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.16);
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.textarea:-webkit-autofill,
.textarea:-webkit-autofill:hover,
.textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #f4f4f7;
  caret-color: var(--coral);
  box-shadow: 0 0 0 1000px #202024 inset;
  transition: background-color 9999s ease-out;
}

.thread-card {
  border: 1px solid #24242b;
  border-radius: 14px;
}

.thread-card .post-title,
.thread-card .post-excerpt,
.thread-card .engagement-row,
.thread-card .post-footer {
  margin-left: 0;
}

.thread-hero-image {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #24242b;
  border-radius: 14px 14px 0 0;
}

.comments-panel {
  margin-top: 22px;
}

.comment-form {
  border-color: #24242b;
}

.comment-body {
  color: #d8d8df;
}

.comment-body p,
.comment-meta strong {
  color: #ededf2;
}

.bottom-nav {
  border-top-color: #24242b;
  background: #141418;
}

@media (max-width: 1400px) {
  .app-main-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

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

  .brand-mark,
  .topbar-actions {
    min-width: 0;
  }

  .app-main {
    padding: 18px 14px 100px;
  }

  .post-body {
    padding: 22px;
  }

  .post-title,
  .post-excerpt,
  .engagement-row,
  .post-footer,
  .top-comment-card {
    margin-left: 0;
  }

  .post-card > img {
    width: 100%;
    margin-left: 0;
  }

  .landing-post-cta {
    position: static;
    width: auto;
    min-height: 54px;
    margin-top: 18px;
  }

  .landing-compose-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
  }
}

/* Rizz economy layout tuning */
.app-main {
  width: 100%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
}

.app-main-shell {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px);
  gap: 16px;
}

.left-rail .rail-card,
.right-rail .promo-card,
.right-rail .rail-card {
  padding: 14px;
}

.left-rail .rail-link,
.left-rail .rail-muted-link {
  padding-inline: 12px;
  font-size: 0.9rem;
}

.right-rail .promo-card h2 {
  font-size: 1.35rem;
  line-height: 1.08;
}

.right-rail .promo-card p {
  font-size: 0.94rem;
}

.right-rail .promo-card {
  overflow: visible;
  margin-top: clamp(118px, 12vw, 168px);
  padding: clamp(58px, 6vw, 76px) 16px 18px;
}

.right-rail .promo-card::before {
  top: calc(-1 * clamp(128px, 12vw, 184px));
  width: clamp(148px, 14vw, 200px);
  height: clamp(148px, 14vw, 200px);
}

.right-rail .promo-ribbon {
  position: static;
  display: block;
  min-height: 0;
  margin: 10px 0 12px;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.right-rail .promo-kicker {
  margin-top: 0;
  font-size: 0.78rem;
}

.app-main-thread {
  grid-template-columns: 150px minmax(0, 1fr);
}

.app-main-thread .content-column {
  grid-column: 2 / -1;
}

.app-main-thread .right-rail {
  display: none;
}

.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 18px;
  align-items: start;
}

.thread-chat-panel {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 112px);
}

.thread-chat-panel .comment-list {
  overflow-y: auto;
  padding-right: 4px;
}

.thread-chat-panel .comment-form {
  margin-top: 16px;
}

.thread-chat-panel .comment-item {
  grid-template-columns: 34px minmax(0, 1fr);
}

.thread-chat-panel .avatar {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
}

.comment-mine .comment-body {
  border-color: rgba(255, 106, 0, 0.24);
  background: rgba(255, 106, 0, 0.1);
}

@media (min-width: 1121px) and (max-width: 1400px) {
  .app-main-shell {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
  }

  .right-rail {
    display: grid;
  }
}

@media (max-width: 1120px) {
  .app-main-shell,
  .app-main-thread {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .thread-layout {
    grid-template-columns: 1fr;
  }

  .thread-chat-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .app-main-shell,
  .app-main-thread {
    display: block;
  }
}

/* Decorative floating accents */
.rizz-floaters {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.rizz-floater {
  --float-size: 128px;
  --float-x: 10vw;
  --float-y: 18vh;
  --float-delay: 0s;
  --float-duration: 16s;
  --float-range: 32px;
  position: absolute;
  left: var(--float-x);
  top: var(--float-y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: var(--float-size);
  min-height: 52px;
  max-width: min(220px, 44vw);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(17, 19, 27, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 34px rgba(255, 189, 90, 0.1);
  backdrop-filter: blur(14px);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0.56;
  transform: translate3d(0, 0, 0) rotate(-8deg);
  animation: rizz-floater-drift var(--float-duration) ease-in-out var(--float-delay) infinite;
  will-change: transform;
}

.rizz-floater-text {
  text-transform: uppercase;
}

.rizz-floater-image {
  justify-content: flex-start;
  padding: 8px 12px 8px 8px;
}

.rizz-floater-image img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.rizz-floater-image b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rizz-floater:nth-child(1) {
  --float-size: 122px;
  --float-x: 5vw;
  --float-y: 20vh;
  --float-duration: 18s;
  --float-range: 28px;
  color: #cffff4;
}

.rizz-floater:nth-child(2) {
  --float-size: 138px;
  --float-x: 78vw;
  --float-y: 16vh;
  --float-delay: -5s;
  --float-duration: 21s;
  --float-range: 38px;
  color: #ffcf8a;
}

.rizz-floater:nth-child(3) {
  --float-size: 168px;
  --float-x: 82vw;
  --float-y: 63vh;
  --float-delay: -10s;
  --float-duration: 24s;
  --float-range: 42px;
  color: #c9c2ff;
}

.rizz-floater:nth-child(4) {
  --float-size: 132px;
  --float-x: 14vw;
  --float-y: 76vh;
  --float-delay: -8s;
  --float-duration: 20s;
  --float-range: 34px;
  color: #b9dcff;
}

.rizz-floater:nth-child(5) {
  --float-size: 126px;
  --float-x: 52vw;
  --float-y: 9vh;
  --float-delay: -12s;
  --float-duration: 19s;
  --float-range: 24px;
  color: #ffd1da;
}

.topbar,
.flash-stack,
.app-main,
.bottom-nav {
  position: relative;
  z-index: 4;
}

.app-main {
  background: transparent !important;
}

@keyframes rizz-floater-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  35% {
    transform: translate3d(calc(var(--float-range) * 0.7), calc(var(--float-range) * -1), 0) rotate(7deg);
  }
  70% {
    transform: translate3d(calc(var(--float-range) * -0.45), calc(var(--float-range) * 0.65), 0) rotate(-3deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
}

@media (max-width: 760px) {
  .rizz-floater {
    --float-size: 108px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 0.76rem;
    opacity: 0.36;
  }

  .rizz-floater-image img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .rizz-floater:nth-child(2),
  .rizz-floater:nth-child(5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rizz-floater {
    animation: none !important;
  }
}

/* Final typography pass: polished, readable hierarchy */
body.rizz-body {
  font-weight: 400;
  line-height: 1.5;
}

.brand-mark {
  font-size: 1.55rem;
  font-weight: 800;
  text-shadow: none;
}

.desktop-nav-link,
.rail-link,
.rail-muted-link,
.nav-item,
.chip,
.meta,
.author-name,
.field-label,
.engage-button,
.landing-compose-card span {
  font-weight: 500;
}

.btn,
.top-search kbd,
.input-prefix,
.badge,
.stat-label,
.rail-label,
.promo-kicker,
.auth-kicker,
.eyebrow,
.post-footer .meta {
  font-weight: 700;
}

.auth-logo {
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
}

.page-title {
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  font-weight: 800;
}

.feed-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.06;
  font-weight: 850;
  max-width: 620px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.section-title,
.promo-card h2,
.landing-compose-card strong {
  font-weight: 800;
}

.post-title {
  font-size: clamp(1.14rem, 1.5vw, 1.32rem);
  line-height: 1.35;
  font-weight: 750;
}

.post-excerpt,
.comment-body,
.comment-body p,
.top-comment-card p,
.page-subtitle,
.auth-copy,
.helper-text {
  font-weight: 400;
}

.feed-header {
  min-height: 188px;
  padding: 24px;
}

.feed-header .eyebrow {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffc38f;
}

.feed-header .page-subtitle {
  width: min(100%, 720px);
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7d7df;
  background: rgba(18, 18, 24, 0.72);
  font-size: 1rem;
  font-weight: 500;
}

.landing-post-cta {
  top: 24px;
  right: 24px;
  width: auto;
  min-height: 48px;
  padding: 0 18px;
  border-color: rgba(88, 101, 242, 0.42);
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 12px 26px rgba(88, 101, 242, 0.16);
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.landing-compose-card {
  border-color: rgba(255, 106, 0, 0.22);
  background: linear-gradient(135deg, #18181d, #141418 58%, rgba(255, 106, 0, 0.1));
}

.landing-compose-card strong {
  font-size: 1.05rem;
}

.post-card {
  background: #141418;
}

.post-card:hover {
  background: #17171c;
}

.post-card > img {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.74rem;
  font-size: 0.82rem;
}

.verdict-worth_it {
  color: #d8fff3;
  background: linear-gradient(135deg, rgba(39, 213, 164, 0.24), rgba(39, 213, 164, 0.1));
}

.verdict-overhyped {
  color: #ffd5df;
  background: linear-gradient(135deg, rgba(255, 79, 100, 0.26), rgba(255, 79, 100, 0.1));
}

.verdict-maybe {
  color: #ffe7b8;
  background: linear-gradient(135deg, rgba(255, 169, 64, 0.28), rgba(255, 169, 64, 0.1));
}

.post-footer .btn-primary {
  min-height: 44px;
  padding-inline: 1.05rem;
  font-size: 0.94rem;
  font-weight: 800;
}

.stat-value,
.leader-rank,
.leader-name {
  font-weight: 800;
}

.otp-input {
  font-size: clamp(1.8rem, 10vw, 3rem);
  font-weight: 750;
}

@media (max-width: 900px) {
  .brand-mark {
    font-size: 1.35rem;
  }

  .feed-title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .page-title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .post-title {
    font-size: 1.08rem;
  }

  .feed-header {
    min-height: 190px;
    padding: 18px;
  }

  .feed-header .page-subtitle {
    min-height: auto;
    padding: 14px;
  }
}

/* Discord-inspired feed theme */
:root {
  --ink: #f6f8ff;
  --muted: #a0abcc;
  --line: rgba(138, 147, 173, 0.18);
  --paper: #0b1251;
  --paper-strong: #0a103f;
  --card-light: rgba(255,255,255,0.06);
  --coral: #5865f2;
  --coral-dark: #4752c4;
  --indigo: #7289da;
  --mint: #57f287;
  --amber: #faa81a;
  --sky: #57a4ff;
  --navy: #0a1133;
  --cream: #081020;
  --shadow: 0 24px 70px rgba(3, 10, 35, 0.65);
  --shadow-soft: 0 12px 30px rgba(3, 10, 35, 0.38);
}

html,
body.rizz-body {
  background: var(--cream);
}

body.rizz-body {
  color: var(--ink);
}

html,
body.rizz-body {
  background: #08090f;
}

body.rizz-body {
  color: #f8fafc;
  background:
    linear-gradient(130deg, rgba(255, 106, 0, 0.16), transparent 30%),
    linear-gradient(235deg, rgba(34, 199, 169, 0.12), transparent 34%),
    linear-gradient(180deg, #10121b 0%, #08090f 44%, #0b0d14 100%);
}

.app-frame {
  isolation: isolate;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 16, 0.82);
  backdrop-filter: blur(18px);
}

.auth-panel {
  width: min(100%, 1180px);
  gap: 24px;
}

.auth-hero {
  min-height: 560px;
  border-radius: 28px;
  background:
    linear-gradient(115deg, rgba(8, 9, 15, 0.86), rgba(8, 9, 15, 0.42)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.auth-card {
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 106, 0, 0.1), transparent 36%),
    rgba(17, 19, 27, 0.9);
}

.auth-logo,
.page-title {
  color: #ffffff;
}

.auth-copy {
  color: #d5dbea;
}

.topbar-inner {
  width: min(100%, 1440px);
  min-height: 74px;
  padding: 0 clamp(16px, 2.4vw, 34px);
}

.brand-mark {
  min-width: 0;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark::before {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--coral) 0%, var(--sky) 45%, var(--mint) 100%);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.34);
}

.top-search {
  width: min(100%, 520px);
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.top-search input {
  color: #f8fafc;
  font-size: 0.96rem;
}

.top-search kbd {
  height: 24px;
  min-width: 24px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  color: #d7dce8;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-actions {
  min-width: 0;
}

.topbar-actions .btn-primary,
.btn-primary {
  border: 1px solid rgba(255, 189, 90, 0.42);
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--coral) 58%, var(--indigo));
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sky), var(--coral) 58%, var(--indigo));
}

.btn-secondary,
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eef2ff;
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost {
  border-color: transparent;
  color: #a7adbd;
}

.app-main {
  width: min(100%, 1500px);
  padding: clamp(18px, 2.4vw, 34px);
}

.app-main-shell {
  grid-template-columns: minmax(190px, 230px) minmax(0, 760px) minmax(230px, 300px);
  gap: clamp(18px, 2.2vw, 30px);
  justify-content: center;
}

.rail-card,
.promo-card,
.auth-card,
.glass-card,
.post-card,
.stat-card,
.leader-card,
.form-shell,
.empty-state,
.comments-panel,
.category-rail,
.feed-header,
.landing-compose-card,
.comment-form {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 19, 27, 0.84);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.left-rail .rail-card,
.right-rail .rail-card,
.promo-card {
  border-radius: 18px;
}

.rail-card {
  padding: 18px;
}

.rail-link,
.rail-muted-link {
  color: #cdd3e3;
  text-decoration: none;
}

.rail-link {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
}

.rail-link:hover,
.rail-primary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.rail-divider {
  background: rgba(255, 255, 255, 0.09);
}

.muted-card {
  gap: 8px;
  background: rgba(17, 19, 27, 0.64);
}

.rail-muted-link {
  border-radius: 12px;
  padding: 10px 12px;
  color: #9ea6ba;
  font-size: 0.9rem;
}

.rail-muted-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.promo-card {
  overflow: hidden;
  margin-top: 0;
  padding: 20px;
  color: #f8fafc;
  background:
    linear-gradient(155deg, rgba(255, 106, 0, 0.18), transparent 46%),
    linear-gradient(25deg, rgba(124, 92, 255, 0.18), transparent 42%),
    rgba(17, 19, 27, 0.88);
}

.promo-card::before {
  display: none;
}

.promo-ribbon {
  position: static;
  display: inline-flex;
  min-height: 0;
  width: fit-content;
  margin: 0 0 16px;
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  color: #f6f8ff;
  background: linear-gradient(135deg, var(--mint), rgba(87, 242, 135, 0.28));
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: none;
}

.promo-kicker,
.rail-label {
  color: var(--sky);
}

.promo-card h2 {
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.12;
  text-align: left;
}

.promo-card p {
  color: #b8bfce;
  text-align: left;
}

.flash-stack {
  width: min(100%, 880px);
}

.flash {
  border-radius: 14px;
  background: rgba(17, 19, 27, 0.94);
}

.feed-header {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(8, 9, 15, 0.9) 0%, rgba(8, 9, 15, 0.62) 54%, rgba(8, 9, 15, 0.2) 100%),
    url("https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.feed-header::after {
  content: "LIVE";
  position: absolute;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.56rem 0.78rem;
  color: #d9fff5;
  background: rgba(34, 199, 169, 0.18);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.feed-header .eyebrow {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 189, 90, 0.22);
  border-radius: 999px;
  padding: 0.46rem 0.72rem;
  color: #ffcf8a;
  background: rgba(255, 106, 0, 0.14);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.feed-title {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 950;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.feed-header .page-subtitle {
  width: min(100%, 620px);
  min-height: auto;
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #d5dbea;
  background: transparent;
  font-size: 1.08rem;
  line-height: 1.55;
}

.landing-post-cta {
  top: 26px;
  right: 26px;
  min-height: 48px;
  border-radius: 999px;
  color: #12131a;
}

.landing-compose-card {
  grid-template-columns: 54px minmax(0, 1fr);
  margin: 18px 0;
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(34, 199, 169, 0.12), transparent 45%),
    rgba(17, 19, 27, 0.9);
}

.landing-compose-card:hover {
  border-color: rgba(255, 189, 90, 0.34);
  background:
    linear-gradient(135deg, rgba(34, 199, 169, 0.16), transparent 45%),
    rgba(24, 27, 38, 0.95);
}

.landing-compose-avatar,
.avatar {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral), var(--indigo));
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.16);
}

.landing-compose-card strong,
.post-title,
.author-name,
.leader-name {
  color: #ffffff;
}

.landing-compose-card span,
.author-meta,
.meta,
.post-excerpt,
.helper-text,
.page-subtitle {
  color: #aeb5c6;
}

.category-rail {
  position: sticky;
  top: 1px !important;
  z-index: 15;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 0 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px 0;
  background: rgba(8, 9, 15, 0.84);
  backdrop-filter: blur(18px);
}

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.68rem 0.95rem;
  color: #aeb5c6;
  background: rgba(255, 255, 255, 0.06);
}

.chip:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.chip-active {
  border-color: rgba(87, 164, 255, 0.4);
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--coral));
}

.post-list,
.app-main-shell .post-list {
  display: grid;
  gap: 18px;
}

.post-card,
.post-card:first-child,
.post-card:last-child {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    rgba(17, 19, 27, 0.9);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 189, 90, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    rgba(21, 24, 34, 0.96);
}

.post-card > img {
  display: block;
  width: 100%;
  max-height: 460px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: none;
}

/* --- BeReal-like overrides (force-light theme) --- */
body.rizz-body {
  background: var(--cream) !important;
  color: var(--ink) !important;
}

.topbar, .bottom-nav, .side-panel, .auth-card, .form-shell, .promo-card, .post-card, .glass-card {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--ink) !important;
}

.desktop-nav-link, .nav-item, .badge, .post-excerpt, .author-meta {
  color: var(--muted) !important;
}

.post-card > img { border-bottom-color: var(--line) !important; }

.btn-primary {
  background: var(--coral) !important;
  color: white !important;
  box-shadow: 0 6px 18px rgba(11,23,36,0.06) !important;
}

.brand-mark::before { box-shadow: none !important; }

/* Tidy up hero */
.auth-hero, .feed-header {
  background: linear-gradient(180deg, var(--paper-strong), transparent 60%) !important;
  color: var(--ink) !important;
}

/* Force remove dark background images/gradients set by other theme blocks */
html body.rizz-body .topbar,
.topbar,
.feed-header,
.app-frame,
.app-main,
.post-card,
.side-panel {
  background-image: none !important;
  background-color: var(--paper) !important;
}

/* Ensure containers show light borders */
.post-card,
.promo-card,
.glass-card,
.auth-hero {
  border-color: var(--line) !important;
}

/* ensure text contrast on cards */
.post-title, .post-excerpt, .author-name { color: var(--ink) !important; }

/* small screens: make sure layout is readable */
@media (max-width: 760px) {
  .post-card > img { max-height: 360px !important; object-fit: cover !important; }
}

/* end overrides */


/* === FINAL OVERRIDES: dark-base + light-accents (reduced white) === */
html, body.rizz-body, .app-frame, .app-main {
  background: var(--paper) !important; /* dark app background */
  color: var(--ink) !important;
}

/* Cards and panels use a slightly lighter surface but keep dark tone */
.topbar, .feed-header, .post-card, .glass-card, .promo-card, .side-panel, .auth-hero, .form-shell {
  background-color: var(--paper-strong) !important; /* darker card surface */
  background-image: none !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  box-shadow: 0 12px 30px rgba(2,6,12,0.45) !important;
  color: var(--ink) !important;
}

.feed-header::after, .post-card::after, .auth-hero::after { display: none !important; }

.post-title, .post-excerpt, .author-name, .desktop-nav-link { color: var(--ink) !important; }

/* ==========================
   UI Animations (subtle)
   ========================== */

@keyframes rizz-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: rizz-fade-up 420ms cubic-bezier(.2,.9,.25,1) both;
  will-change: transform, opacity;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(2,6,12,0.35);
}

.post-card img {
  transition: transform 560ms cubic-bezier(.2,.9,.25,1);
}

.post-card:hover img {
  transform: scale(1.04);
}

/* Pointer-reactive motion variables */
:root {
  --pointer-x: 0px;
  --pointer-y: 0px;
}

/* Brand mark micro-motion */
.brand-mark::before {
  transition: transform 420ms cubic-bezier(.2,.9,.25,1), box-shadow 420ms ease;
  will-change: transform;
}

/* Hero background follows pointer subtly */
.auth-hero {
  transition: background-position 420ms cubic-bezier(.2,.9,.25,1);
  background-position: calc(50% + var(--pointer-x)) calc(50% + var(--pointer-y));
}

/* Floating micro animation */
@keyframes rizz-float {
  0% { transform: translateY(0) }
  50% { transform: translateY(-6px) }
  100% { transform: translateY(0) }
}

.brand-mark::before {
  animation: rizz-float 6s ease-in-out infinite;
}

/* ===== Discord-like gradient blobs (background accents) ===== */
:root {
  --blob1-color: rgba(106, 116, 255, 0.12);
  --blob2-color: rgba(98, 232, 223, 0.10);
  --blob3-color: rgba(255, 120, 150, 0.06);
  --blob1-x: -10vw;
  --blob1-y: -8vh;
  --blob2-x: 35vw;
  --blob2-y: -20vh;
  --blob3-x: 60vw;
  --blob3-y: 65vh;
}

.app-frame::before,
.app-frame::after,
.app-frame .rizz-blob {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  filter: blur(40px) saturate(120%);
  will-change: transform, opacity;
}

.app-frame::before {
  left: 0; top: 0; width: 48vw; height: 48vh;
  background: radial-gradient(40% 40% at 20% 20%, var(--blob1-color), transparent 35%);
  transform: translate(var(--blob1-x), var(--blob1-y));
  opacity: 0.9;
  animation: rizz-blob-move 18s linear infinite;
}

.app-frame::after {
  right: 0; top: 0; width: 48vw; height: 48vh;
  background: radial-gradient(40% 40% at 80% 20%, var(--blob2-color), transparent 36%);
  transform: translate(var(--blob2-x), var(--blob2-y));
  opacity: 0.85;
  animation: rizz-blob-move 22s linear infinite reverse;
}

.rizz-blob {
  left: 40%; top: 55%; width: 38vw; height: 38vh;
  background: radial-gradient(40% 40% at 50% 60%, var(--blob3-color), transparent 38%);
  transform: translate(var(--blob3-x), var(--blob3-y));
  opacity: 0.75;
  animation: rizz-blob-move 26s linear infinite;
}

@keyframes rizz-blob-move {
  0% { transform: translate(var(--blob1-x), var(--blob1-y)) scale(1); }
  50% { transform: translate(calc(var(--blob1-x) + 6vw), calc(var(--blob1-y) + 4vh)) scale(1.06); }
  100% { transform: translate(var(--blob1-x), var(--blob1-y)) scale(1); }
}

/* Particles canvas placeholder */
#rizz-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand-mark::before,
  .post-card,
  .auth-hero { animation: none !important; transition: none !important; }
  .app-frame::before, .app-frame::after, .rizz-blob, #rizz-particles { display: none !important }
}

/* Intersection-triggered entrance: start hidden, reveal when JS toggles */
.post-card[data-animated="false"] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms cubic-bezier(.2,.9,.25,1), transform 420ms cubic-bezier(.2,.9,.25,1);
}
.post-card[data-animated="true"] {
  opacity: 1;
  transform: translateY(0);
}

/* Primary button lift and subtle emphasis */
.btn-primary {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(2,6,12,0.18);
}

/* Hero shimmer overlay */
.auth-hero {
  position: relative;
  overflow: visible;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 100%);
  mix-blend-mode: overlay;
  opacity: 0.9;
  background-size: 200% 100%;
  animation: rizz-shimmer 6s linear infinite;
}

@keyframes rizz-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Final Discord palette overrides */
html, body.rizz-body, .app-frame, .app-main {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

.topbar, .feed-header, .post-card, .glass-card, .promo-card, .side-panel, .auth-hero, .form-shell, .auth-card, .input-wrap, .category-rail, .rail-card, .promo-card, .flash, .chip, .bottom-nav, .bottom-nav-inner, .top-search {
  background: var(--paper-strong) !important;
  border-color: rgba(138, 147, 173, 0.18) !important;
  box-shadow: 0 24px 60px rgba(3, 10, 35, 0.25) !important;
  color: var(--ink) !important;
}

.topbar {
  background: rgba(11, 18, 57, 0.95) !important;
}

.brand-mark {
  color: var(--coral) !important;
}

.brand-mark::before {
  background: linear-gradient(135deg, var(--coral), var(--sky) 42%) !important;
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.24) !important;
}

.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark)) !important;
  border-color: rgba(88, 101, 242, 0.45) !important;
  box-shadow: 0 18px 36px rgba(88, 101, 242, 0.18) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--coral-dark), var(--sky)) !important;
}

.btn-secondary, .btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--ink) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.input-wrap {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(138, 147, 173, 0.18) !important;
}

.input-wrap:focus-within {
  border-color: rgba(88, 101, 242, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.16) !important;
}

.chip {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--muted) !important;
}

.chip-active {
  background: linear-gradient(135deg, var(--sky), var(--coral)) !important;
  border-color: rgba(87, 164, 255, 0.4) !important;
  color: #ffffff !important;
}

.promo-ribbon,
.rail-label,
.promo-kicker {
  color: var(--sky) !important;
}

.link-preview-card,
.link-preview-body,
.link-preview-title,
.post-title,
.post-excerpt,
.author-name,
.author-meta,
.page-subtitle,
.helper-text {
  color: var(--ink) !important;
}

/* Small interactive lifts for badges */
.badge {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.badge:hover { transform: translateY(-4px) scale(1.03); }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .post-card,
  .auth-hero::before,
  .post-card img,
  .btn-primary,
  .badge {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}


.btn-primary { background: var(--coral) !important; color: #fff !important; }

/* small screens adjustments */
@media (max-width: 760px) {
  .post-card > img { object-fit: cover !important; }
}


.post-body {
  padding: clamp(18px, 3vw, 28px);
}

.post-top {
  align-items: flex-start;
}

.post-title,
.post-excerpt,
.engagement-row,
.post-footer,
.top-comment-card {
  margin-left: 0;
}

.post-title {
  margin-top: 8px;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.18;
  font-weight: 900;
}

.post-excerpt {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.verdict-worth_it {
  color: #cffff4 !important;
  background: rgba(34, 199, 169, 0.16) !important;
}

.verdict-maybe {
  color: #ffe5b0 !important;
  background: rgba(255, 189, 90, 0.16) !important;
}

.verdict-overhyped {
  color: #ffd1da !important;
  background: rgba(255, 77, 109, 0.16) !important;
}

.engagement-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.engage-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0 12px;
  color: #cdd3e3;
  background: rgba(255, 255, 255, 0.055);
}

.engage-button span,
.engagement-row .share-form .engage-button span {
  width: auto;
  height: auto;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 1.12rem;
}

.engage-button:hover,
.engage-active,
.engagement-row .share-form .engage-button:hover {
  color: #ffffff;
  border-color: rgba(34, 199, 169, 0.34);
  background: rgba(34, 199, 169, 0.12);
}

.top-comment-card {
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.1);
}

.post-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-footer .meta {
  border-color: rgba(255, 189, 90, 0.28);
  color: #ffcf8a;
  background: rgba(255, 189, 90, 0.1);
}

.form-shell {
  width: min(100%, 760px);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.field-label {
  color: #dce2ef;
}

.section-title {
  color: #ffffff;
}

.input-wrap,
.comment-body,
.stat-card,
.link-preview-card,
.link-preview-remove,
.comment-form {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.input,
.select,
.textarea {
  color: #ffffff;
}

.select option {
  color: #ffffff;
  background: #171923;
}

.input-wrap:focus-within {
  border-color: rgba(255, 189, 90, 0.54);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

.option-grid {
  gap: 12px;
}

.option-button {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #dce2ef;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 189, 90, 0.28);
}

.option-active-green {
  border-color: rgba(34, 199, 169, 0.44);
  color: #cffff4;
  background: rgba(34, 199, 169, 0.14);
}

.option-active-amber {
  border-color: rgba(255, 189, 90, 0.48);
  color: #ffe5b0;
  background: rgba(255, 189, 90, 0.14);
}

.option-active-red {
  border-color: rgba(255, 77, 109, 0.46);
  color: #ffd1da;
  background: rgba(255, 77, 109, 0.14);
}

.link-preview-card {
  border-radius: 18px;
}

.link-preview-title {
  color: #ffffff;
}

.link-preview-url,
.link-preview-site {
  color: #aeb5c6;
}

.thread-layout {
  gap: 22px;
}

.stat-grid {
  gap: 14px;
}

.stat-card {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.06);
}

.stat-value {
  color: #ffffff;
}

.stat-label,
.leader-meta {
  color: #aeb5c6;
}

.leader-card {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.12), transparent 46%),
    rgba(17, 19, 27, 0.86);
}

.leader-card-me {
  border-color: rgba(34, 199, 169, 0.34);
  background:
    linear-gradient(135deg, rgba(34, 199, 169, 0.16), transparent 46%),
    rgba(17, 19, 27, 0.9);
}

.thread-card,
.comments-panel {
  border-radius: 22px;
}

.thread-hero-image {
  border-radius: 22px 22px 0 0;
}

.bottom-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 10, 16, 0.9);
  backdrop-filter: blur(18px);
}

.nav-item {
  color: #aeb5c6;
}

.nav-item:hover {
  color: #ffffff;
}

@media (max-width: 1180px) {
  .app-main-shell,
  .app-main-thread {
    grid-template-columns: minmax(0, 1fr);
  }

  .left-rail,
  .right-rail {
    display: none;
  }

  .category-rail {
    top: 74px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 66px;
  }

  .brand-mark::before {
    width: 30px;
    height: 30px;
  }

  .topbar-actions .btn-ghost {
    display: none;
  }

  .app-main {
    padding: 14px 12px 96px;
  }

  .feed-header {
    min-height: 240px;
    border-radius: 20px;
  }

  .feed-header::after {
    display: none;
  }

  .landing-post-cta {
    position: static;
    margin-top: 18px;
  }

  .category-rail {
    top: 66px;
    margin-inline: -12px;
    border-radius: 0;
    padding-inline: 12px;
  }

  .post-card,
  .post-card:first-child,
  .post-card:last-child,
  .form-shell,
  .comments-panel,
  .thread-card {
    border-radius: 18px;
  }

  .post-card > img {
    aspect-ratio: 4 / 3;
  }

  .engagement-row {
    flex-wrap: wrap;
  }

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

/* Keep the new gradient skin, restore the wider three-column shell */
.app-main {
  width: 100%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
}

.app-main-shell {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px);
  gap: 16px;
  justify-content: stretch;
}

.app-main-thread {
  grid-template-columns: 150px minmax(0, 1fr);
}

@media (min-width: 1121px) and (max-width: 1400px) {
  .app-main-shell {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
  }

  .right-rail {
    display: grid;
  }
}

@media (max-width: 1120px) {
  .app-main-shell,
  .app-main-thread {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .left-rail {
    display: grid;
  }

  .right-rail {
    display: none;
  }
}

/* Product detail image containment */
.thread-card {
  overflow: hidden;
}

.thread-hero-image {
  display: block;
  width: calc(100% - 40px);
  max-height: 520px;
  margin: 20px 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  aspect-ratio: 16 / 8;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.thread-card .post-body {
  padding-top: 24px;
}

.thread-card .stat-grid {
  align-items: stretch;
}

.thread-card .stat-grid .btn-primary {
  min-height: 64px;
}

@media (max-width: 760px) {
  .thread-hero-image {
    width: calc(100% - 28px);
    max-height: 360px;
    margin: 14px 14px 0;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
  }
}

/* Desktop hero image framing */
@media (min-width: 901px) {
  .feed-header {
    min-height: 300px;
    background:
      linear-gradient(90deg, rgba(8, 9, 15, 0.9) 0%, rgba(8, 9, 15, 0.58) 54%, rgba(8, 9, 15, 0.16) 100%),
      url("https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=1800&q=80") center 35% / cover no-repeat;
  }
}

@media (min-width: 1280px) {
  .feed-header {
    min-height: 320px;
    background:
      linear-gradient(90deg, rgba(8, 9, 15, 0.9) 0%, rgba(8, 9, 15, 0.56) 54%, rgba(8, 9, 15, 0.14) 100%),
      url("https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=2000&q=80") center 38% / cover no-repeat;
  }
}

/* Contrast and right-rail media polish */
.top-comment-card {
  border-color: rgba(124, 92, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 199, 169, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.top-comment-card span {
  color: #c9c2ff;
}

.top-comment-card p,
.comment-body,
.comment-body p,
.comment-meta strong {
  color: #f3f6ff;
}

.comment-meta span {
  color: #c4cbda;
}

.comments-panel,
.comment-form {
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.1), transparent 42%),
    rgba(17, 19, 27, 0.92);
}

.comment-body {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.09);
}

.comment-mine .comment-body {
  border-color: rgba(255, 189, 90, 0.34);
  background: rgba(255, 106, 0, 0.16);
}

.right-rail .promo-card {
  overflow: hidden;
  padding-top: 220px;
}

.right-rail .promo-card::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 190px;
  transform: none;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(17, 19, 27, 0.96)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=700&q=80") center/cover;
  filter: saturate(1.12) contrast(1.02);
}

.right-rail .promo-ribbon,
.right-rail .promo-kicker,
.right-rail .promo-card h2,
.right-rail .promo-card p,
.right-rail .promo-card .btn {
  position: relative;
  z-index: 1;
}

/* Keep product preview media inside the detail card */
.thread-card {
  overflow: hidden;
}

.thread-card .thread-hero-image {
  display: block;
  width: calc(100% - 40px);
  height: clamp(280px, 42vw, 520px);
  margin: 20px 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background:
    linear-gradient(135deg, rgba(255, 189, 90, 0.08), rgba(124, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.thread-card .post-body {
  padding-top: 24px;
}

@media (max-width: 760px) {
  .app-main-shell,
  .app-main-thread {
    display: block;
  }

  .left-rail,
  .right-rail {
    display: none;
  }

  .thread-card .thread-hero-image {
    width: calc(100% - 28px);
    height: clamp(220px, 72vw, 360px);
    margin: 14px 14px 0;
    border-radius: 16px;
  }
}

/* Keep the floater layer visible behind the actual cards. */
.app-main {
  background: transparent !important;
}

/* Mobile readability and media polish */
@media (max-width: 760px) {
  html {
    font-size: 15px;
  }

  body.rizz-body {
    font-size: 1rem;
    line-height: 1.55;
    text-size-adjust: 100%;
  }

  .topbar-inner {
    min-height: 62px;
    gap: 10px;
    padding-inline: 12px;
  }

  .brand-mark {
    font-size: 1.18rem !important;
  }

  .brand-mark::before {
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  .top-search {
    min-height: 40px;
    max-width: 42vw;
    padding-inline: 10px;
  }

  .top-search input {
    font-size: 0.9rem;
  }

  .top-search kbd {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .btn {
    min-height: 40px;
    border-radius: 11px;
    padding: 0.68rem 0.82rem;
    font-size: 0.9rem;
  }

  .topbar-actions .btn-primary {
    padding-inline: 0.78rem;
  }

  .feed-header {
    min-height: 210px !important;
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 0.36rem 0.58rem;
    font-size: 0.7rem;
  }

  .feed-title,
  .page-title {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
    line-height: 0.98 !important;
  }

  .page-subtitle,
  .post-excerpt,
  .auth-copy {
    font-size: 0.95rem !important;
    line-height: 1.58 !important;
  }

  .category-rail {
    gap: 8px;
    padding-block: 10px 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .chip {
    border-radius: 999px;
    padding: 0.58rem 0.78rem;
    font-size: 0.82rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card,
  .landing-compose-card,
  .feed-header,
  .form-shell,
  .comments-panel,
  .thread-card {
    border-radius: 16px !important;
  }

  .post-card > img {
    width: 100%;
    height: auto;
    max-height: 340px !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center;
  }

  .post-body {
    padding: 16px !important;
  }

  .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .author-name {
    font-size: 0.88rem !important;
  }

  .author-meta,
  .meta {
    font-size: 0.76rem !important;
  }

  .badge {
    padding: 0.34rem 0.52rem;
    font-size: 0.68rem;
  }

  .post-title {
    font-size: 1.14rem !important;
    line-height: 1.24 !important;
  }

  .landing-compose-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 22px 22px 24px;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  }

  .landing-compose-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .landing-compose-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 1.75rem;
  }

  .engagement-row {
    gap: 8px;
  }

  .engage-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .post-footer {
    align-items: stretch;
  }

  .post-footer .btn {
    flex: 0 0 auto;
  }

  .link-preview-card {
    border-radius: 16px;
  }

  .link-preview-image-wrap,
  .link-preview-image-wrap img,
  .link-preview-placeholder {
    min-height: 180px;
  }

  .thread-card .thread-hero-image,
  .thread-hero-image {
    width: calc(100% - 24px) !important;
    height: clamp(210px, 68vw, 340px) !important;
    margin: 12px 12px 0 !important;
    border-radius: 14px !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-hero {
    min-height: 300px !important;
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .auth-logo {
    font-size: clamp(2.6rem, 16vw, 4rem) !important;
  }

  .auth-card,
  .form-shell {
    padding: 20px !important;
  }

  .field-label,
  .helper-text,
  .link-preview-status {
    font-size: 0.82rem;
  }

  .input,
  .select {
    min-height: 48px;
    font-size: 1rem;
  }

  .textarea {
    min-height: 128px;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .top-search {
    max-width: 36vw;
  }

  .top-search span {
    display: none;
  }

  .feed-title,
  .page-title {
    font-size: clamp(1.82rem, 12vw, 2.45rem) !important;
  }

  .post-footer {
    flex-direction: column;
  }

  .post-footer .btn {
    width: 100%;
  }
}

/* Final background gradient: replaces the flat blue app backdrop. */
html,
body.rizz-body,
.app-frame {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 189, 90, 0.26), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(34, 199, 169, 0.2), transparent 30%),
    radial-gradient(circle at 76% 82%, rgba(255, 77, 109, 0.18), transparent 34%),
    linear-gradient(145deg, #121018 0%, #17132a 42%, #0f1720 100%) !important;
}

.topbar {
  background: rgba(18, 16, 24, 0.88) !important;
}

/* Foreground surfaces tuned for the warm gradient backdrop. */
:root {
  --ink: #fff7ed;
  --muted: #c9b9ad;
  --line: rgba(255, 225, 190, 0.16);
  --paper: rgba(22, 18, 25, 0.9);
  --paper-strong: rgba(31, 24, 36, 0.92);
  --coral: #ff8a4c;
  --coral-dark: #ea5b38;
  --indigo: #a78bfa;
  --mint: #34d399;
  --amber: #fbbf24;
  --sky: #38bdf8;
}

.topbar,
.feed-header,
.post-card,
.glass-card,
.promo-card,
.side-panel,
.auth-hero,
.form-shell,
.auth-card,
.input-wrap,
.category-rail,
.rail-card,
.flash,
.chip,
.bottom-nav,
.bottom-nav-inner,
.top-search,
.landing-compose-card,
.comments-panel,
.comment-form,
.stat-card,
.leader-card,
.thread-card,
.empty-state {
  color: var(--ink) !important;
  border-color: rgba(255, 225, 190, 0.14) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(24, 20, 28, 0.86) !important;
  box-shadow: 0 22px 58px rgba(8, 6, 12, 0.36) !important;
}

.post-card,
.rail-card,
.promo-card,
.form-shell,
.auth-card,
.comments-panel,
.thread-card {
  backdrop-filter: blur(18px) saturate(120%);
}

.post-title,
.feed-title,
.page-title,
.section-title,
.author-name,
.leader-name,
.stat-value,
.promo-card h2,
.link-preview-title {
  color: #fffaf3 !important;
}

.page-subtitle,
.post-excerpt,
.author-meta,
.helper-text,
.meta,
.rail-muted-link,
.rail-link,
.desktop-nav-link,
.nav-item,
.link-preview-url,
.link-preview-site,
.stat-label,
.leader-meta,
.promo-card p {
  color: #d5c3b8 !important;
}

.btn-primary,
.chip-active {
  color: #fffaf3 !important;
  border-color: rgba(255, 183, 112, 0.42) !important;
  background: linear-gradient(135deg, #ff8a4c 0%, #ea5b38 52%, #a78bfa 100%) !important;
  box-shadow: 0 18px 38px rgba(234, 91, 56, 0.26) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #ff8a4c 46%, #ea5b38 100%) !important;
}

.btn-secondary,
.btn-ghost,
.engage-button,
.option-button {
  color: #f5e8dc !important;
  border-color: rgba(255, 225, 190, 0.14) !important;
  background: rgba(255, 247, 237, 0.075) !important;
}

.engage-button:hover,
.engage-active {
  color: #fffaf3 !important;
  border-color: rgba(52, 211, 153, 0.36) !important;
  background: rgba(52, 211, 153, 0.14) !important;
}

.input,
.select,
.textarea {
  color: #fffaf3 !important;
}

.input::placeholder,
.textarea::placeholder,
.top-search input::placeholder {
  color: rgba(213, 195, 184, 0.72);
}

.input-wrap:focus-within,
.top-search:focus-within {
  border-color: rgba(255, 138, 76, 0.54) !important;
  box-shadow: 0 0 0 4px rgba(255, 138, 76, 0.14) !important;
}

/* Eye-catching foreground hero floaters. */
.feed-header {
  isolation: isolate;
}

.feed-header > div:first-child,
.landing-post-cta {
  position: relative;
  z-index: 3;
}

.hero-float-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.hero-product-float,
.hero-text-float {
  position: absolute;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 225, 190, 0.18);
  color: #fffaf3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(24, 20, 28, 0.7);
  box-shadow: 0 24px 60px rgba(8, 6, 12, 0.34), 0 0 46px rgba(255, 138, 76, 0.14);
  backdrop-filter: blur(16px) saturate(130%);
  animation: hero-float-drift 8s ease-in-out infinite;
  will-change: transform;
}

.hero-spark-float {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff7ed;
  box-shadow:
    0 0 22px rgba(255, 247, 237, 0.9),
    0 0 46px rgba(255, 138, 76, 0.52);
  opacity: 0.72;
  animation: hero-spark-drift 7s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-product-float {
  gap: 12px;
  width: 238px;
  min-height: 84px;
  border-radius: 20px;
  padding: 10px 14px 10px 10px;
  font-size: 0.92rem;
  font-weight: 900;
}

.hero-product-float img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.hero-product-float span,
.hero-text-float {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.hero-text-float {
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-product-float-main {
  right: 16%;
  top: 31%;
  transform: rotate(-5deg);
}

.hero-product-float-watch {
  right: 7%;
  bottom: 18%;
  width: 190px;
  animation-delay: -3s;
  transform: rotate(5deg);
}

.hero-text-float-hot {
  right: 24%;
  top: 15%;
  color: #ffe5bd;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(255, 138, 76, 0.14)),
    rgba(24, 20, 28, 0.72);
  animation-delay: -1.5s;
}

.hero-text-float-earn {
  right: 33%;
  bottom: 18%;
  color: #d5fff0;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(56, 189, 248, 0.1)),
    rgba(24, 20, 28, 0.72);
  animation-delay: -5s;
}

.hero-text-float-rating {
  right: 8%;
  top: 47%;
  color: #fff2c7;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(255, 138, 76, 0.12)),
    rgba(24, 20, 28, 0.72);
  animation: hero-float-sway 7s ease-in-out -2.4s infinite;
}

.hero-spark-one {
  right: 42%;
  top: 25%;
}

.hero-spark-two {
  right: 14%;
  top: 66%;
  width: 18px;
  height: 18px;
  background: #34d399;
  box-shadow:
    0 0 22px rgba(52, 211, 153, 0.8),
    0 0 52px rgba(56, 189, 248, 0.38);
  animation-delay: -2s;
}

.hero-spark-three {
  right: 30%;
  bottom: 12%;
  width: 9px;
  height: 9px;
  background: #a78bfa;
  box-shadow:
    0 0 18px rgba(167, 139, 250, 0.9),
    0 0 42px rgba(255, 77, 109, 0.34);
  animation-delay: -4.6s;
}

.hero-product-float-main::after,
.hero-product-float-watch::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 138, 76, 0.42), transparent 46%, rgba(167, 139, 250, 0.36));
  opacity: 0.38;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

@keyframes hero-float-drift {
  0% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
  100% {
    translate: 0 0;
  }
}

@keyframes hero-float-sway {
  0% {
    transform: translate3d(0, 0, 0) rotate(4deg);
  }
  50% {
    transform: translate3d(-12px, -10px, 0) rotate(-5deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(4deg);
  }
}

@keyframes hero-spark-drift {
  0% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  45% {
    opacity: 0.92;
    transform: translate3d(18px, -20px, 0) scale(1.18);
  }
  100% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
}

@media (max-width: 980px) {
  .hero-product-float-main {
    right: 7%;
    top: 36%;
  }

  .hero-product-float-watch,
  .hero-text-float-earn,
  .hero-text-float-rating {
    display: none;
  }

  .hero-text-float-hot {
    right: 8%;
    top: 18%;
  }

  .hero-spark-one {
    right: 28%;
    top: 20%;
  }

  .hero-spark-two {
    right: 8%;
    top: 72%;
  }
}

@media (max-width: 760px) {
  .hero-float-stage {
    opacity: 0.78;
  }

  .hero-product-float {
    width: 150px;
    min-height: 58px;
    gap: 8px;
    border-radius: 15px;
    padding: 7px 9px 7px 7px;
    font-size: 0.72rem;
  }

  .hero-product-float img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero-product-float-main {
    right: 4%;
    top: auto;
    bottom: 18px;
  }

  .hero-text-float-hot {
    right: 5%;
    top: 16px;
    min-height: 34px;
    padding-inline: 12px;
    font-size: 0.64rem;
  }

  .hero-spark-float {
    opacity: 0.48;
  }

  .hero-spark-three {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-product-float-main {
    display: none;
  }

  .hero-spark-two {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-float,
  .hero-text-float,
  .hero-spark-float {
    animation: none !important;
  }
}

/* Sticky category/action rail polish and overlap fixes. */
.category-rail {
  top: 20px !important;
  z-index: 40 !important;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px !important;
  border-radius: 20px !important;
  padding: 12px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(24, 20, 28, 0.92) !important;
  box-shadow: 0 18px 42px rgba(8, 6, 12, 0.34) !important;
  backdrop-filter: blur(18px) saturate(125%);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail .chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-post-chip {
  position: sticky;
  right: 0;
  z-index: 3;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: max-content;
  padding-inline: 1.05rem !important;
  color: #fffaf3 !important;
  border-color: rgba(255, 183, 112, 0.46) !important;
  background: linear-gradient(135deg, #ff8a4c 0%, #ea5b38 56%, #a78bfa 100%) !important;
  box-shadow: 0 14px 30px rgba(234, 91, 56, 0.26) !important;
}

.category-post-chip::before {
  content: "";
  position: absolute;
  inset: -12px auto -12px -24px;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 20, 28, 0), rgba(24, 20, 28, 0.92));
}

.post-list {
  position: relative;
  z-index: 1;
}

.right-rail .promo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.right-rail .promo-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  padding: 0.56rem 0.78rem;
  white-space: normal;
  text-align: center;
  line-height: 1.18;
}

.right-rail .promo-kicker {
  display: block;
  margin-top: 0 !important;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.right-rail .promo-card h2 {
  margin-top: 0 !important;
  overflow-wrap: anywhere;
}

.promo-ribbon,
.promo-kicker {
  position: static !important;
}

.promo-card {
  min-width: 0;
}

.promo-card h2,
.promo-card p,
.promo-card .btn {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .category-rail {
    top: 62px !important;
    margin-inline: -12px !important;
    margin-top: 12px !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
  }

  .category-post-chip {
    min-width: max-content;
    padding-inline: 0.9rem !important;
  }
}

@media (min-width: 1121px) and (max-width: 1320px) {
  .right-rail .promo-card {
    padding-top: 190px;
  }

  .right-rail .promo-card::before {
    height: 165px;
  }

  .right-rail .promo-ribbon {
    font-size: 0.72rem;
  }

  .right-rail .promo-card h2 {
    font-size: 1.28rem;
  }
}

/* Final visual corrections: sticky action, promo card fill, and readable colors. */
.category-rail {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 76px;
  padding: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.category-rail .chip {
  flex: 0 0 auto !important;
  color: #f8efe7 !important;
  background: rgba(255, 247, 237, 0.055) !important;
}

.category-rail .chip-active {
  color: #fffaf3 !important;
  background: linear-gradient(135deg, #ff8a4c 0%, #ea5b38 58%, #c084fc 100%) !important;
}

.category-rail .category-post-chip {
  position: sticky !important;
  right: 0 !important;
  z-index: 20 !important;
  margin-left: auto !important;
  min-width: max-content !important;
  min-height: 54px !important;
  padding-inline: 1.2rem !important;
  color: #fffaf3 !important;
  font-weight: 950 !important;
  background: linear-gradient(135deg, #ff8a4c 0%, #f05a3f 54%, #d875d7 100%) !important;
  box-shadow:
    -18px 0 26px rgba(24, 20, 28, 0.94),
    0 18px 34px rgba(240, 90, 63, 0.28) !important;
}

.right-rail .promo-card {
  overflow: hidden !important;
  padding: 0 0 22px !important;
  gap: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 138, 76, 0.12), rgba(24, 20, 28, 0.9) 58%),
    rgba(24, 20, 28, 0.94) !important;
}

.right-rail .promo-card::before {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: clamp(170px, 18vw, 220px) !important;
  margin: 0 0 18px !important;
  border-radius: 18px 18px 0 0 !important;
  transform: none !important;
  background:
    linear-gradient(180deg, rgba(24, 20, 28, 0) 42%, rgba(24, 20, 28, 0.94) 100%),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=800&q=80") center/cover no-repeat !important;
  filter: saturate(1.12) contrast(1.04) !important;
}

.right-rail .promo-ribbon,
.right-rail .promo-kicker,
.right-rail .promo-card h2,
.right-rail .promo-card p,
.right-rail .promo-card .btn {
  margin-left: 18px !important;
  margin-right: 18px !important;
}

.right-rail .promo-ribbon {
  width: auto !important;
  min-height: auto !important;
  margin-bottom: 12px !important;
  color: #fffaf3 !important;
  background: linear-gradient(135deg, #34d399 0%, #2f855a 100%) !important;
  box-shadow: 0 14px 30px rgba(52, 211, 153, 0.16) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.26);
}

.right-rail .promo-kicker {
  color: #fbbf24 !important;
  letter-spacing: 0.12em !important;
}

.right-rail .promo-card h2 {
  color: #fffaf3 !important;
}

.right-rail .promo-card p {
  color: #d5c3b8 !important;
}

@media (max-width: 760px) {
  .category-rail {
    min-height: 62px;
  }

  .category-rail .category-post-chip {
    min-height: 44px !important;
    padding-inline: 0.95rem !important;
  }
}

/* Remove the right promo card top gap completely. */
.right-rail {
  align-content: start;
}

.right-rail .promo-card {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.right-rail .promo-card::before {
  flex: 0 0 auto;
  min-height: 210px !important;
  margin-top: 0 !important;
}

.right-rail .promo-card .promo-ribbon {
  margin-top: 0 !important;
}

/* Floating hover feedback for like, comment, and share actions. */
.engagement-row {
  align-items: center;
}

.engagement-row form {
  margin: 0;
}

.engage-button {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 180ms cubic-bezier(.2,.9,.25,1),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease !important;
  will-change: transform;
}

.engage-button::after {
  content: "";
  position: absolute;
  inset: -30% -20%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.24), transparent 34%);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.9,.25,1);
}

.engage-button span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  transform: translateY(0) scale(1);
  transition: transform 180ms cubic-bezier(.2,.9,.25,1);
}

/* Composer modal styles */
.composer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,12,0.6);
  z-index: 9999;
  padding: 20px;
}
.composer-inner {
  width: min(760px, 96%);
  background: linear-gradient(180deg, var(--muted-bg), rgba(255,255,255,0.005));
  border: 1px solid rgba(124,92,255,0.08);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.composer-header { display:flex; justify-content:space-between; align-items:center; }
.composer-header h2 { margin:0; font-size:1.1rem; }
.composer-close { background:transparent; border:0; font-size:1.4rem; }
.composer-inner .field { margin-top:12px; }
.composer-inner .input, .composer-inner textarea { width:100%; padding:10px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color:var(--ink); }
.composer-inner .verdict label { margin-right:12px; font-weight:600; }
.composer-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
.hot-badge { background: var(--accent); color:#fff; padding:6px 10px; border-radius:999px; font-weight:800; }

/* Brand pages */
.brand-page-shell {
  display: grid;
  gap: 20px;
}

.brand-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.brand-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  background: #172033;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
}

.brand-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: #64748b;
  font-size: .9rem;
}

.brand-page-meta a {
  color: #2563eb;
  text-decoration: none;
}

.brand-form-shell {
  max-width: 720px;
}

.brand-thread-list {
  margin-top: 0;
}

.brand-page-hero-rich {
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035)),
    rgba(25, 21, 30, .88) !important;
}

.brand-page-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.brand-identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-page-media {
  position: relative;
  flex: 0 0 min(42%, 520px);
  min-height: 280px;
}

.brand-page-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(25, 21, 30, .82), rgba(25, 21, 30, 0) 45%);
}

.brand-page-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.brand-pulse-strip {
  display: grid;
  gap: 4px;
  max-width: 680px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 225, 190, .16);
  border-radius: 14px;
  background: rgba(255, 247, 237, .07);
}

.brand-pulse-strip span,
.brand-starter-card span {
  color: #ffbd8d;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.brand-pulse-strip p,
.brand-starter-card p {
  margin: 0;
  color: #d5c3b8;
}

.brand-content-grid,
.brand-starter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.brand-insight-panel,
.brand-starter-card {
  border: 1px solid rgba(255, 225, 190, .14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    rgba(24, 20, 28, .86);
  box-shadow: 0 22px 58px rgba(8, 6, 12, .26);
}

.brand-insight-panel {
  padding: 18px;
}

.brand-note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.brand-note-list span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 225, 190, .14);
  border-radius: 999px;
  color: #f5e8dc;
  background: rgba(255, 247, 237, .075);
  font-size: .86rem;
  font-weight: 700;
}

.brand-starter-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.brand-starter-card h3 {
  margin: 0;
  color: #fffaf3;
  font-size: 1rem;
  line-height: 1.3;
}

.top-search {
  position: relative;
  z-index: 10002;
}

.global-search-dropdown {
  position: absolute;
  z-index: 10003;
  top: calc(100% + 10px);
  left: 50%;
  width: min(520px, 92vw);
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 138, 76, .38);
  border-radius: 22px;
  color: #fffaf3;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    rgba(24, 20, 28, .96);
  box-shadow:
    0 24px 60px rgba(8, 6, 12, .44),
    0 0 0 1px rgba(255, 225, 190, .08) inset;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(128%);
}

.topbar {
  position: relative;
  z-index: 10000 !important;
  overflow: visible;
}

.topbar-inner {
  position: relative;
  z-index: 10001;
  overflow: visible;
}

.app-main {
  z-index: 1;
}

.global-search-label {
  padding: 8px 10px 6px;
  color: #ffbd8d;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.global-search-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px;
  border-radius: 14px;
  color: #fffaf3;
  text-decoration: none;
}

.global-search-option:hover {
  background: rgba(255, 247, 237, .095);
}

.global-search-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fffaf3;
  background: linear-gradient(135deg, #ff8a4c, #38bdf8);
  font-weight: 900;
}

.global-search-option strong,
.global-search-option small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-option strong {
  color: #fffaf3;
  font-size: .98rem;
}

.global-search-option small {
  margin-top: 3px;
  color: #d5c3b8;
  font-size: .78rem;
}

.global-search-create {
  margin-top: 6px;
  border: 1px dashed rgba(255, 225, 190, .24);
  background: rgba(255, 247, 237, .055);
}

.feed-search-dropdown {
  color: #fffaf3;
  border-color: rgba(255, 138, 76, .32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    rgba(24, 20, 28, .96);
  box-shadow: 0 22px 50px rgba(8, 6, 12, .38);
  backdrop-filter: blur(16px) saturate(126%);
}

.feed-search-dropdown-label {
  color: #ffbd8d;
}

.feed-search-option {
  color: #fffaf3;
}

.feed-search-option:hover {
  background: rgba(255, 247, 237, .095);
}

.feed-search-option span {
  color: #d5c3b8;
}

.feed-search-create {
  border-color: rgba(255, 225, 190, .24);
  background: rgba(255, 247, 237, .055);
}

@media (max-width: 860px) {
  .brand-page-hero-rich,
  .brand-identity-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-page-media {
    width: 100%;
    min-height: 210px;
    flex-basis: auto;
  }

  .brand-page-media::after {
    background: linear-gradient(180deg, rgba(25, 21, 30, 0), rgba(25, 21, 30, .78));
  }

  .brand-content-grid,
  .brand-starter-grid {
    grid-template-columns: 1fr;
  }

  .global-search-dropdown {
    left: 0;
    width: min(92vw, 420px);
    transform: none;
  }
}

/* Reddit-modern theme overrides */
.brand-mark { color: var(--accent); font-weight:900; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--ink);
  font-weight:600;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: white;
  border: 0;
  box-shadow: 0 6px 20px rgba(255,69,0,0.12);
}
.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.04);
}
.btn-secondary:hover {
  background: rgba(124,92,255,0.08);
  border-color: rgba(124,92,255,0.12);
  color: var(--accent-secondary);
}

.badge-hot, .hot-badge { background: var(--accent); color: #fff; }

/* Card surfaces use paper-strong for depth */
.thread-card, .promo-card, .post-card, .rail-card {
  background: linear-gradient(180deg, var(--muted-bg), rgba(255,255,255,0.005));
  border: 1px solid rgba(124,92,255,0.08);
}

.thread-card:hover {
  border-color: rgba(124,92,255,0.16);
  background: linear-gradient(180deg, var(--muted-bg), rgba(124,92,255,0.03));
}

/* Focus-visible outlines for keyboard users */
:focus-visible { outline: 3px solid rgba(255,69,0,0.18); outline-offset: 2px; }

/* ThreadCard specific styles */
.thread-card {
  border-radius: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 12px;
}
.thread-card .thread-top { display:flex; flex-direction:column; gap:6px; }
.thread-card .badge-hot { background: var(--accent); color:#fff; padding:6px 10px; border-radius:999px; font-weight:800; display:inline-block; }
.thread-card .thread-title { margin:0; font-size:1.02rem; color:var(--ink); }
.thread-card .thread-title { font-weight:700; letter-spacing:-0.01em; }
.thread-card .thread-title a { color:inherit; text-decoration:none; }
.thread-card .thread-title a:hover { color: var(--accent-secondary); }
.thread-card .thread-excerpt { margin-top:10px; color:var(--muted); font-size:0.96rem; line-height:1.45; }
.thread-card .meta { color:var(--muted); font-size:0.85rem; }
.thread-card .thread-comment-slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  min-height: 74px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,0.025);
}
.thread-card .thread-comment-slider:hover {
  border-color: rgba(124,92,255,0.16);
  background: rgba(124,92,255,0.06);
}
.thread-card .thread-comment-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.thread-card .thread-comment-slide {
  grid-column: 1 / 2;
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}
.thread-card .thread-comment-slide strong {
  display: inline;
  margin-right: 4px;
  color: var(--ink);
}
.thread-card .thread-comment-slide span {
  color: var(--muted);
}
.thread-card .thread-comment-dots {
  grid-column: 2 / 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.thread-card .thread-comment-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
.thread-card .thread-comment-dots i.active {
  width: 16px;
  background: var(--mint);
}
.thread-card .engage-row { display:flex; gap:10px; align-items:center; margin-top:12px; }
.thread-card .engage-button { background:transparent; border:1px solid rgba(255,255,255,0.03); padding:6px 10px; border-radius:8px; }
.thread-card .engage-button:hover { background: rgba(124,92,255,0.08); border-color: rgba(124,92,255,0.12); }

/* Responsive adjustments */
@media (max-width:900px){
  .landing-hero-panel { grid-template-columns: 1fr; padding: 20px; }
  .landing-hero-title { font-size: clamp(2.2rem, 6.5vw, 3.2rem); }
  .landing-hero-cards { margin-top: 12px; }
}

@media (max-width:480px){
  .thread-card { padding: 12px; }
  .thread-card .thread-title { font-size: 1rem; }
  .composer-inner { width: 98%; padding: 12px; }
}

/* Slight hero weight/spacing tweak for punchier headings */
.landing-hero-title { font-weight: 900; letter-spacing: -0.03em; }
.landing-hero-copytext { font-size:1.02rem; }

.feed-experience {
  position: relative;
}

.feed-experience .landing-hero-panel,
.feed-experience .feed-category-strip,
.feed-experience .interactive-thread-console,
.feed-experience .landing-contributor-panel,
.feed-experience .landing-bridge-panel,
.feed-experience .feed-reveal-card,
.feed-experience .thread-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

html:not(.feed-js) .feed-experience .landing-hero-panel,
html:not(.feed-js) .feed-experience .feed-category-strip,
html:not(.feed-js) .feed-experience .interactive-thread-console,
html:not(.feed-js) .feed-experience .landing-contributor-panel,
html:not(.feed-js) .feed-experience .landing-bridge-panel,
html:not(.feed-js) .feed-experience .feed-reveal-card,
html:not(.feed-js) .feed-experience .thread-card {
  opacity: 1;
  transform: none;
}

.feed-experience .landing-hero-panel.is-visible,
.feed-experience .feed-category-strip.is-visible,
.feed-experience .interactive-thread-console.is-visible,
.feed-experience .landing-contributor-panel.is-visible,
.feed-experience .landing-bridge-panel.is-visible,
.feed-experience .feed-reveal-card.is-visible,
.feed-experience .thread-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feed-experience [data-feed-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
}

.feed-experience [data-feed-tilt]:hover {
  box-shadow: 0 18px 46px rgba(8, 12, 28, 0.28), 0 0 0 1px rgba(122, 211, 255, 0.08);
}

.feed-experience .landing-live-strip {
  position: relative;
  isolation: isolate;
}

.feed-experience .landing-live-strip::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(122, 211, 255, 0.12), rgba(255, 192, 97, 0.12), transparent);
  transform: translateX(-60%);
  opacity: 0.65;
  z-index: -1;
  animation: feedStripSheen 7s ease-in-out infinite;
}

.feed-experience .live-pill {
  box-shadow: 0 0 0 0 rgba(253, 94, 83, 0.34);
  animation: livePulse 2.8s ease-in-out infinite;
}

.feed-experience .hero-kpi {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feed-experience .hero-kpi::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #7ad3ff, #ffd166, #45d483);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.feed-experience .hero-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 211, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.feed-experience .hero-kpi:hover::after {
  transform: scaleX(1);
}

.feed-category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 8px 2px 12px;
  scrollbar-width: none;
}

.feed-category-strip::-webkit-scrollbar {
  display: none;
}

.feed-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #dce7ff;
  text-decoration: none;
  background: rgba(255,255,255,0.055);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.feed-category-pill:hover,
.feed-category-pill.is-active {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.13);
}

.interactive-thread-console {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.thread-console-header {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.thread-console-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.thread-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(8,12,28,0.34);
  color: #cbd8ff;
}

.thread-search input {
  width: min(190px, 46vw);
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
}

.thread-search input::placeholder {
  color: rgba(220,231,255,0.62);
}

.feed-search-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, 86vw);
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, .28);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
  color: #172033;
}

.feed-search-dropdown-label {
  padding: 6px 8px 4px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feed-search-option {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  color: #172033;
  text-decoration: none;
}

.feed-search-option:hover {
  background: #f1f5f9;
}

.feed-search-option strong {
  font-size: .9rem;
}

.feed-search-option span {
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
}

.feed-search-create {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.feed-search-dropdown {
  color: #fffaf3;
  border-color: rgba(255, 138, 76, .32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)),
    rgba(24, 20, 28, .96);
  box-shadow: 0 22px 50px rgba(8, 6, 12, .38);
  backdrop-filter: blur(16px) saturate(126%);
}

.feed-search-dropdown-label {
  color: #ffbd8d;
}

.feed-search-option {
  color: #fffaf3;
}

.feed-search-option:hover {
  background: rgba(255, 247, 237, .095);
}

.feed-search-option span {
  color: #d5c3b8;
}

.feed-search-create {
  border-color: rgba(255, 225, 190, .24);
  background: rgba(255, 247, 237, .055);
}

.thread-sort-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(8,12,28,0.26);
}

.thread-sort-tab {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: #cbd8ff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.thread-sort-tab:hover,
.thread-sort-tab.is-active {
  color: #141923;
  background: #ffd166;
}

.thread-console-empty {
  margin: 12px 0;
  padding: 14px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 12px;
  color: #cbd8ff;
  text-align: center;
}

.interactive-thread-console .thread-card {
  position: relative;
  overflow: hidden;
}

.interactive-thread-console .thread-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #7ad3ff, #ffd166, #45d483);
  opacity: 0;
  transition: opacity 180ms ease;
}

.interactive-thread-console .thread-card:hover::before {
  opacity: 1;
}

.thread-card[hidden] {
  display: none;
}

@keyframes feedStripSheen {
  0%, 28% { transform: translateX(-70%); opacity: 0; }
  42%, 58% { opacity: 0.75; }
  100% { transform: translateX(70%); opacity: 0; }
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 94, 83, 0.3); }
  50% { box-shadow: 0 0 0 9px rgba(253, 94, 83, 0); }
}

@media (max-width: 760px) {
  .thread-console-header {
    align-items: stretch;
    flex-direction: column;
  }

  .thread-console-tools {
    justify-content: flex-start;
  }

  .thread-search,
  .thread-search input,
  .thread-sort-tabs {
    width: 100%;
  }

  .thread-sort-tab {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-experience .landing-hero-panel,
  .feed-experience .feed-category-strip,
  .feed-experience .interactive-thread-console,
  .feed-experience .landing-contributor-panel,
  .feed-experience .landing-bridge-panel,
  .feed-experience .feed-reveal-card,
  .feed-experience .thread-card,
  .feed-experience [data-feed-tilt],
  .feed-experience .landing-live-strip::after,
  .feed-experience .live-pill {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.engage-button:hover,
.engage-button:focus-visible {
  transform: translateY(-7px) scale(1.035);
  color: #fffaf3 !important;
  border-color: rgba(255, 183, 112, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.22), rgba(167, 139, 250, 0.16)),
    rgba(255, 247, 237, 0.09) !important;
  box-shadow:
    0 14px 28px rgba(8, 6, 12, 0.28),
    0 0 24px rgba(255, 138, 76, 0.16) !important;
}

.engage-button:hover::after,
.engage-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.engage-button:hover span,
.engage-button:focus-visible span {
  transform: translateY(-1px) scale(1.18) rotate(-8deg);
}

.engagement-row form:nth-child(3) .engage-button:hover span,
.engagement-row form:nth-child(3) .engage-button:focus-visible span {
  transform: translate(2px, -3px) scale(1.18) rotate(8deg);
}

.engage-button:active {
  transform: translateY(-2px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .engage-button,
  .engage-button::after,
  .engage-button span {
    transition: none !important;
  }

  .engage-button:hover,
  .engage-button:focus-visible,
  .engage-button:hover span,
  .engage-button:focus-visible span {
    transform: none !important;
  }
}

/* Circle initial avatars */
.avatar {
  overflow: hidden;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.8), rgba(167, 139, 250, 0.82)) !important;
  box-shadow: 0 12px 28px rgba(8, 6, 12, 0.22);
  transition: transform 180ms cubic-bezier(.2,.9,.25,1), box-shadow 180ms ease;
}

.author:hover .avatar,
.leader-card:hover .avatar,
.comment-item:hover .avatar {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 34px rgba(8, 6, 12, 0.3), 0 0 26px rgba(255, 138, 76, 0.14);
}

.landing-compose-avatar {
  overflow: hidden;
}

/* Responsive full-product image framing */
.post-card > img {
  width: 100% !important;
  height: auto !important;
  max-height: min(520px, 58vh) !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: contain !important;
  object-position: center !important;
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.08), rgba(167, 139, 250, 0.08)),
    rgba(255, 247, 237, 0.035) !important;
}

.post-card:hover > img {
  transform: none !important;
}

.thread-card .thread-hero-image,
.thread-hero-image {
  width: calc(100% - 40px) !important;
  height: auto !important;
  max-height: min(620px, 64vh) !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  object-position: center !important;
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.08), rgba(167, 139, 250, 0.08)),
    rgba(255, 247, 237, 0.035) !important;
}

.link-preview-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .post-card > img {
    max-height: 360px !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
  }

  .thread-card .thread-hero-image,
  .thread-hero-image {
    width: calc(100% - 24px) !important;
    max-height: 420px !important;
    margin: 12px 12px 0 !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
  }
}

/* Final product media frame: no cropping, stable responsive height. */
.post-list .post-card > img,
article.post-card > img {
  display: block !important;
  width: 100% !important;
  height: clamp(260px, 34vw, 520px) !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.08), rgba(167, 139, 250, 0.08)),
    rgba(255, 247, 237, 0.035) !important;
}

.thread-card .thread-hero-image,
img.thread-hero-image {
  display: block !important;
  width: calc(100% - 40px) !important;
  height: clamp(280px, 42vw, 620px) !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .post-list .post-card > img,
  article.post-card > img {
    height: clamp(220px, 72vw, 380px) !important;
  }

  .thread-card .thread-hero-image,
  img.thread-hero-image {
    width: calc(100% - 24px) !important;
    height: clamp(220px, 72vw, 420px) !important;
    margin: 12px 12px 0 !important;
  }
}
