/* ============================================================
   TealRiot — Premium Outlier Network
   Apple-grade dark system. True black, hairline borders,
   iOS system colors, zero neon glow. Not another social clone.
   ============================================================ */

:root {
  --bg-darkest: #000000;
  --bg-dark: #0a0a0c;
  --bg-card: #1c1c1e;
  --bg-input: #1c1c1e;
  --bg: #000000;
  --nav-bg: rgba(10, 10, 12, 0.72);
  --bg-darker: #000000;
  --teal: #30d5c8;
  --teal-dim: #1f9e92;
  --teal-dark: #0a3b36;
  --teal-soft: #7be8de;
  --teal-glow: 0 0 0 rgba(0, 0, 0, 0);
  --purple: #5e5ce6;
  --purple-dim: #4543b8;
  --purple-soft: #9290f0;
  --purple-glow: 0 0 0 rgba(0, 0, 0, 0);
  --riot: #5e5ce6;
  --riot-dim: #4543b8;
  --blue: #0a84ff;
  --blue-dim: #0060df;
  --blue-soft: #64d2ff;
  --text: #ffffff;
  --text-dim: rgba(235, 235, 245, 0.6);
  --text-muted: rgba(235, 235, 245, 0.35);
  --text-very-muted: rgba(235, 235, 245, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --hover-bg: rgba(255, 255, 255, 0.05);
  --danger: #ff453a;
  --radius: 12px;
  --radius-sm: 8px;
  --accent: #30d5c8;
  --accent-glow: rgba(0, 0, 0, 0);
  --accent-text: #7be8de;
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --font-mono: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 100%;
  --header-h: 53px;
  --left-nav-w: 260px;
  --right-sidebar-w: 0px;
}

/* ── Theme experiment — Pure (default) vs Lifted for appeal ── */
body.theme-lifted {
  --bg-darkest: #000000;
  --bg-dark: #101014;
  --bg-card: #1c1c1e;
  --bg-input: #1c1c1e;
  --bg: #000000;
  --nav-bg: rgba(12, 12, 14, 0.72);
  --bg-darker: #000000;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-dim: rgba(235, 235, 245, 0.6);
  --text-muted: rgba(235, 235, 245, 0.38);
  --surface-0: #0a0a0c;
  --surface-1: rgba(28, 28, 30, 0.88);
  --surface-2: rgba(36, 36, 38, 0.92);
}
body.theme-lifted { background: var(--bg); }
body.theme-lifted .left-nav,
body.theme-lifted .feed-main,
body.theme-lifted .right-sidebar,
body.theme-lifted .feed-dock,
body.theme-lifted .profile-panel,
body.theme-lifted .creator-dashboard,
body.theme-lifted .dock-row-body,
body.theme-lifted .feed-center { background: var(--bg); }
body.theme-lifted .left-nav {
  background:
    radial-gradient(circle at 8% 3%, rgba(48, 213, 200, 0.14), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(94, 92, 230, 0.12), transparent 34%),
    linear-gradient(165deg, rgba(16, 24, 34, 0.98), rgba(8, 12, 20, 0.98)) !important;
  border: 1px solid rgba(123, 232, 222, 0.14) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
body.theme-lifted .left-nav-item:hover {
  background: linear-gradient(90deg, rgba(48, 213, 200, .09), rgba(94, 92, 230, .045)) !important;
}
body.theme-lifted .left-nav-item.active {
  background: linear-gradient(100deg, rgba(48, 213, 200, .2), rgba(94, 92, 230, .12)) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #30d5c8, inset 0 1px 0 rgba(255,255,255,.065), 0 7px 20px rgba(0,0,0,.2) !important;
}
body.theme-lifted .left-nav-item.active::before,
body.theme-lifted .left-nav-item.active::after { background: #30d5c8 !important; }
body.theme-lifted .left-nav-section-label,
body.theme-lifted .left-nav-section-title { color: rgba(123,232,222,.58) !important; }
body.theme-lifted .post-card,
body.theme-lifted .quote-card,
body.theme-lifted .eyevly-card,
body.theme-lifted .flick-card,
body.theme-lifted .creator-dashboard-card,
body.theme-lifted .dock-row { background: var(--bg-card); border-color: var(--line-soft); }
body.theme-lifted .eyevly-thumb { border-color: var(--line-soft); }
body.theme-lifted .dash-field input,
body.theme-lifted .dash-field textarea,
body.theme-lifted .dash-field select { background: var(--bg-input); border-color: var(--line-soft); }
body.theme-lifted .flick-thumb { background: #101014; }

/* Split diff — only place panes differ so you can tell them apart */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


h1, h2 {
  letter-spacing: -0.02em;
  text-transform: none;
}


a {
  color: var(--text);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
}

/* ============================================================
   Auth Screen
   ============================================================ */

.auth-screen {
  display: none;
}

.auth-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(48, 213, 200, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 5%, rgba(37, 44, 54, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(255, 255, 255, 0.03), transparent 60%),
    #05070b;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

.auth-screen.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.auth-screen.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Footer — inside center column, below the card */
.auth-screen .auth-powered {
  padding: 12px 0 4px;
  text-align: center;
}
.auth-screen .auth-footer-line {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding-bottom: 4px;
}
.auth-footer-tr {
  font-weight: 600;
  color: #FFFFFF;
}
.auth-footer-co {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer-co:hover {
  color: #FFFFFF;
}

/* Hide main app sidebar when auth screen is visible */
.auth-screen.active ~ .app-shell .right-sidebar,
.auth-screen.active ~ .app-shell #radar-card {
  display: none !important;
}

/* Hard-kill position:fixed elements that escape display:none parent */
body:not(.app-ready) .right-sidebar,
body:not(.app-ready) #radar-card {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Music player must never float over the auth screen */
.auth-screen.active ~ .mini-player,
.auth-screen.active ~ .mp-pill,
.auth-screen.active ~ .n27-dsp {
  display: none !important;
}
body:not(.app-ready) .mini-player,
body:not(.app-ready) .mp-pill,
body:not(.app-ready) .n27-dsp {
  display: none !important;
}

/* Anti-flash: if token detected, hide auth screen before JS loads */
html.tr-authed .auth-screen { display: none !important; }

/* 3-column layout: descriptions | login | feed */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.auth-panel {
  flex-shrink: 0;
}

.auth-left {
  width: 240px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.7;
}

.auth-center {
  flex: 0 1 400px;
}

.auth-right {
  width: 300px;
  padding-top: 20px;
  opacity: 0.7;
}

/* Footer row spanning full width */
.auth-footer-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

/* Left panel info cards */
.auth-info-card {
  background: rgba(6, 6, 12, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.auth-info-icon {
  margin-bottom: 12px;
}

.auth-info-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #30d5c8;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.auth-info-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.auth-info-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-info-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.auth-info-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0a0a0c;
  flex-shrink: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.auth-info-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Right panel feed */
.auth-feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(235, 235, 245, 0.4);
  margin-bottom: 16px;
  text-transform: uppercase;
}

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

.auth-feed-loading {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
}

.auth-feed-card {
  background: rgba(6, 6, 12, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.2s;
}

.auth-feed-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.auth-feed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-feed-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-input);
  object-fit: cover;
}

.auth-feed-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.auth-feed-handle {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.auth-feed-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-left: auto;
}

.auth-feed-body {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

/* Powered by Nucleus badge */
.auth-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  margin-top: 24px;
}

.auth-powered-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.auth-powered-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(from 0deg, var(--purple), var(--pink), #fff, var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ap-spin 4s linear infinite;
}

@keyframes ap-spin {
  to { transform: rotate(360deg); }
}

.auth-powered-ring span {
  font-size: 8px;
  font-weight: 700;
  color: rgba(235, 235, 245, 0.4);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.auth-powered-text {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.auth-powered-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9px;
  background: linear-gradient(90deg, #fff, #0a0a0c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-powered-27 {
  font-size: 8px;
  color: #30d5c8;
  -webkit-text-fill-color: #30d5c8;
}

/* Responsive adjustments for auth screen */
@media (max-width: 1100px) {
  .auth-screen.active { padding-top: 40px; }
}

.auth-card {
  background: rgba(10, 10, 14, 0.82);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 56px 48px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-card .logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  display: block;
}

.auth-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7be8de 0%, var(--teal) 55%, #1f9e92 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.auth-card .tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.auth-card .auth-logo-glow {
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tabs button {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: var(--text-dim);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.auth-tabs button.active {
  background: var(--bg-darkest);
  color: #30d5c8;
  border: 1.5px solid #30d5c8;
}

.auth-field {
  margin-bottom: 16px;
  text-align: left;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.auth-field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.auth-field input[type="date"]:focus {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(0,255,200,0.1);
  outline: none;
}

.auth-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #30d5c8;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-field input:focus {
  border-bottom-color: #30d5c8;
}

.auth-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #30d5c8;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  margin-top: 8px;
  transition: all 150ms;
  letter-spacing: 1px;
  text-transform: uppercase;
}


.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-nucleus {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--text);
  border: 1px solid #444;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-nucleus:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.03);
  color: #06221b;
}

.nav-ecosystem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-ecosystem:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

/* Topbar search bar */
.search-bar {
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(154, 162, 173, 0.08);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 500;
  max-height: 400px;
  overflow-y: auto;
}

.search-group {
  padding: 8px 14px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.1s;
}


.search-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .search-bar { max-width: none; margin: 0 8px; }
  .search-bar input { height: 38px; font-size: 0.85rem; }
}

/* ============================================================
   App Shell
   ============================================================ */

.app-shell {
  display: none;
}

.app-shell.active {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 100vh;
}

.topbar {
  display: none;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 0;
  margin-left: 0;
  margin-right: var(--right-sidebar-w);
  gap: 0;
  border-top: 1px solid var(--border);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.topbar .brand span {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.topbar .nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topbar .nav button {
  background: transparent;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.topbar .nav button:hover,
.topbar .nav button.active {
  background: rgba(154, 162, 173, 0.1);
  color: var(--text);
}

.topbar .nav .logout-btn {
  color: var(--text-muted);
}

/* ============================================================
   Left Navigation (persistent sidebar)
   ============================================================ */

.left-nav {
  background: var(--bg-darkest);
  border-right: none !important;
  padding: 8px 16px 0;
  position: fixed;
  top: 0;
  width: var(--left-nav-w);
  min-width: var(--left-nav-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.left-nav::-webkit-scrollbar {
  display: none;
}

.left-nav:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* Sticky bottom — Post + Account stay visible while MORE scrolls */
.nav-post-btn {
  position: sticky;
  bottom: 58px;
  background: var(--bg-darkest);
  z-index: 2;
}
.left-nav-account-row {
  position: sticky;
  bottom: 0;
  background: var(--bg-darkest);
  z-index: 2;
  padding-bottom: 14px;
  margin-bottom: 0;
}

.left-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #8b8d96;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  margin-bottom: 2px;
  text-decoration: none;
  background: transparent;
  border: none;
}


.left-nav-item:active {
  background: rgba(255,255,255,0.08);
  transform: scale(0.98);
}


.left-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  opacity: 0.75;
}
.left-nav-item:hover svg,
.left-nav-item.active svg {
  opacity: 1;
}

.left-nav-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.left-nav-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.left-nav-label {
  font-size: 11px;
  color: rgba(235, 235, 245, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 12px;
  margin-bottom: 8px;
  margin-top: 4px;
  font-weight: 700;
  font-family: var(--font-display);
}

.left-nav .genre-filter {
  font-size: 12px;
  padding: 6px 10px;
  color: #ffffff;
}

.left-nav .genre-filter:hover {
  color: #ffffff;
}

/* ============================================================
   Right Sidebar (persistent)
   ============================================================ */

.right-sidebar {
  background: var(--bg-darkest);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 56px 16px 16px;
  position: fixed;
  top: 0;
  width: var(--right-sidebar-w);
  min-width: var(--right-sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 90;
  overflow-y: auto;
}

/* Override: hide right-sidebar unless app is active (position:fixed escapes parent display:none) */
.right-sidebar {
  display: none !important;
}
.app-shell.active .right-sidebar {
  display: flex !important;
}

/* ============================================================
   Composer
   ============================================================ */

.composer {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.composer textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.95rem;
  resize: none;
  min-height: 80px;
  line-height: 1.6;
  padding: 12px;
  transition: border-color 0.2s;
}


.composer textarea::placeholder {
  color: var(--text-muted);
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}






.composer .btn-post:active:not(:disabled) {
  transform: scale(0.97);
}

.composer .btn-post:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Composer Tools — Image Upload + GIF Search
   ============================================================ */

.composer-tools {
  display: flex;
  gap: 4px;
}

.tool-btn {
  background: transparent;
  color: var(--text-muted);
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-btn:active {
  transform: scale(0.94);
}

.tool-btn:hover {
  color: var(--teal);
  border-color: rgba(48, 213, 200, 0.30);
  background: rgba(255, 255, 255, 0.03);
}

.tool-btn img,
.tool-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tool-btn img {
  filter: none;
  opacity: 0.85;
}

.tool-btn:hover img {
  opacity: 1;
  filter: none;
}

.tool-btn svg {
  stroke: currentColor;
}

/* Image preview in composer */
.composer-preview {
  margin: 12px 0 0;
}

.preview-wrap {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.preview-wrap img {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius-sm);
  display: block;
}

.preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.preview-remove:hover {
  background: rgba(255, 71, 87, 0.8);
  color: #fff;
}

/* ============================================================
   Video Upload — 27s max duration
   ============================================================ */

.video-upload-btn {
  position: relative;
}

.video-duration-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #0a0a0c;
  color: var(--bg-darkest);
  font-size: 0.55rem;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.video-preview {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.video-preview video {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-duration-indicator {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.05em;
}


.post-video video {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  background: #000;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ============================================================
   Voice Note Recording
   ============================================================ */

.voice-note-btn {
  position: relative;
  cursor: pointer;
}

.voice-note-btn.recording {
  color: var(--danger) !important;
}

.voice-note-btn.recording svg {
  stroke: var(--danger) !important;
  animation: mic-pulse 1s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-top: 8px;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.25);
  border-radius: var(--radius-sm);
}

.recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: rec-blink 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes rec-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.recording-timer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.audio-preview {
  margin-top: 8px;
  border-radius: 12px;
  overflow: visible;
  border: 1px solid var(--border);
  background: var(--bg-darkest);
  position: relative;
}

.audio-preview-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

.audio-preview-inner .voice-player {
  margin-top: 0;
}

.audio-preview-inner .preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 71, 87, 0.15);
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.audio-preview-inner .preview-remove:hover {
  background: rgba(255, 71, 87, 0.4);
}

/* Styled audio player in feed posts */
.post-audio .voice-player {
  margin-top: 0;
}

/* ============================================================
   LinkedIn-style Compose Box
   ============================================================ */

.linkedin-compose-box {
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.linkedin-compose-box:hover {
  border-color: #2a3238;
}

.linkedin-compose-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.linkedin-compose-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(154, 162, 173, 0.15);
  border: 2px solid rgba(154, 162, 173, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.linkedin-compose-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.linkedin-compose-avatar span {
  font-size: 16px;
  font-weight: 700;
  color: #30d5c8;
  letter-spacing: 0.03em;
}

.linkedin-compose-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.linkedin-compose-input:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.linkedin-compose-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.linkedin-compose-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.linkedin-compose-action:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.linkedin-compose-action img,
.linkedin-compose-action svg {
  width: 20px;
  height: 20px;
  filter: brightness(0.8) saturate(0.6);
  transition: filter 0.15s;
}

.linkedin-compose-action:hover img,
.linkedin-compose-action:hover svg {
  filter: brightness(1) saturate(1);
}

/* Post images */
.post-image {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* GIF/photo frames — never crop: contain, not cover. Full image always visible.
   image-orientation auto-rotates mobile photos shot in portrait that EXIF marks as landscape. */
.post-image img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: block;
  background: rgba(255, 255, 255, 0.02);
  image-orientation: from-exif;
}

/* GIFs keep their native animation frame — no fixed-height squash */
.post-image img[src*=".gif"], .post-image img[src*=".gif?"] {
  object-fit: contain;
  max-height: 560px;
  height: auto;
}

/* ============================================================
   Notifications + Mention Dropdown
   ============================================================ */

.nav-notif {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#dm-badge {
  background: #0a0a0c;
}

/* Mention dropdown */
.mention-dropdown {
  display: none;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.mention-item:hover {
  background: rgba(154, 162, 173, 0.1);
}

/* ============================================================
   GIF Picker
   ============================================================ */

.gif-picker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.gif-picker-header {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.gif-picker-header input {
  flex: 1;
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.9rem;
}


.gif-close {
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-dim);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
}

.gif-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.gif-item {
  cursor: pointer;
  padding: 0;
  border: 0;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-input);
  transition: transform 0.1s;
}


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

@media (max-width: 600px) {
  .gif-results { grid-template-columns: repeat(2, 1fr); }
}

.feed-search-bar {
  position: relative;
  margin-bottom: 16px;
}

.feed-search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-search-bar input:focus {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(154, 162, 173, 0.08);
}

.feed-search-bar input::placeholder {
  color: var(--text-muted);
}

.feed-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.feed-tabs button {
  background: transparent;
  color: var(--text-dim);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  transition: color 0.15s;
}


.feed-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #0a0a0c;
  border-radius: 3px;
}

/* ============================================================
   Post Card
   ============================================================ */

.post-card {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}


.post-pinned-indicator {
  font-size: 0.72rem;
  color: #30d5c8;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-pinned-indicator svg {
  filter: none;
}

.btn-pin {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.btn-pin:hover {
  opacity: 1;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.post-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(154, 162, 173, 0.2), rgba(154, 162, 173, 0.15));
  border: 1.5px solid rgba(154, 162, 173, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-header .avatar:hover {
  border-color: rgba(154, 162, 173, 0.5);
  filter: brightness(1.06);
  cursor: pointer;
}

.post-header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Universal avatar image sizing — applies everywhere a .avatar appears
   (notifications, DM conversations, search, mentions), not just .post-header.
   Without this, images render at native size outside the post feed. */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Universal avatar layout — any .avatar div (with or without an <img>)
   centers its content. The initials fallback in avatarHtml() relies on
   this; without it the first letter sits in the top corner of the box. */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

/* Same fix for .avatar-lg — the edit-profile upload preview lives OUTSIDE
   .profile-header, so the scoped rule above doesn't catch it and the preview
   image rendered at native size. */
.avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-header .meta {
  flex: 1;
  min-width: 0;
}


.post-header .meta .name.clickable,
.post-author-name {
  cursor: pointer;
  color: #ffffff;
  transition: color 0.15s, text-decoration-color 0.15s;
  text-decoration: none;
  text-underline-offset: 3px;
}

.post-header .meta .name.clickable:hover,
.post-author-name:hover,
.post-header .meta .name.clickable:focus-visible,
.post-author-name:focus-visible {
  color: var(--teal) !important;
  text-decoration: underline;
  text-decoration-color: rgba(48, 213, 200, 0.35);
}


.clickable {
  cursor: pointer;
  transition: color 0.15s;
}

.clickable:hover {
  color: var(--teal);
}

.post-header .time {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.post-body {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.post-body .hashtag {
  color: #b0a8c0;
  cursor: pointer;
}
.post-body .hashtag:hover {
  color: var(--text);
}

.post-body .mention {
  color: var(--blue);
  cursor: pointer;
}

/* Mention links also appear in profile bios — same accent as posts */
.profile-header .bio .mention,
.bio .mention {
  color: var(--blue);
  cursor: pointer;
}

.link-preview-card {
  transition: border-color 0.2s;
}

.link-preview-card img {
  background: var(--bg);
}


.post-actions {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  padding-top: 10px;
}

.post-actions button {
  background: transparent;
  color: #8b8d96;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}

.post-actions button svg {
  transition: color 0.15s, filter 0.15s;
}


.post-actions button:hover svg {
  filter: none;
}


.post-actions button.liked svg {
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}


.post-actions button.btn-repost.reposted svg {
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.post-actions button.btn-delete {
  margin-left: auto;
  opacity: 0.5;
}

.post-actions button.btn-delete:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--danger);
  opacity: 1;
}

/* Report buttons — subtle by default, red on hover (mirrors btn-delete). */
.post-actions button.btn-report,
.post-actions button.btn-report-reply {
  opacity: 0.5;
}

.post-actions button.btn-report:hover,
.post-actions button.btn-report-reply:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--danger);
  opacity: 1;
}

.post-actions .icon {
  font-size: 1.1rem;
}

/* ============================================================
   Inline Thread Preview (inside feed cards)
   ============================================================ */

.thread-preview {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.thread-preview-reply {
  display: flex;
  gap: 8px;
  padding: 4px 0;
}

.thread-preview-reply:not(:last-child) {
  margin-bottom: 4px;
}

.thread-preview-body {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  word-wrap: break-word;
}

.thread-preview-name {
  font-weight: 700;
  margin-right: 4px;
  color: #30d5c8;
}

.thread-preview-text {
  white-space: pre-wrap;
}

.thread-preview-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.btn-view-thread {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}


/* ============================================================
   Profile View
   ============================================================ */

.profile-header {
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,38,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,38,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: gridPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.profile-header .avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 2px;
  margin: 0 auto 16px;
  background: var(--purple-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.profile-header .avatar-lg.avatar-online {
  border-color: #39d98a;
  box-shadow: 0 0 8px rgba(57, 217, 138, 0.12);
}


.profile-header .avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header .display-name {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: monospace;
  margin-bottom: 4px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.profile-header .handle {
  color: #30d5c8;
  font-size: 12px;
  font-family: monospace;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.profile-header .bio {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.profile-header .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
  position: relative;
  z-index: 1;
}

.profile-header .stats .stat {
  display: flex;
  gap: 6px;
}

.profile-header .stats .stat .num {
  font-weight: 700;
  color: #fff;
}

.profile-header .stats .stat .label {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.profile-header .btn-follow {
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 150ms;
  background: #30d5c8;
  color: #000;
  border: none;
  font-weight: 600;
}

.profile-header .btn-follow:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

/* "Following" is now an outline/secondary style */
.profile-header .btn-follow.following {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}


/* Profile actions container */
.profile-actions {
  position: relative;
  z-index: 1;
}

/* Profile corner actions — top-right of profile card */
.profile-corner-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.corner-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #8b8d96;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}


.corner-action-btn.corner-action-nuke {
  color: var(--danger);
  border-color: rgba(255, 71, 87, 0.3);
  font-size: 16px;
  font-weight: 700;
}

.corner-action-btn.corner-action-nuke:hover {
  background: rgba(255, 71, 87, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.corner-action-btn.corner-action-report {
  color: #8b8d96;
  border-color: rgba(255, 255, 255, 0.1);
}

.corner-action-btn.corner-action-report:hover {
  background: rgba(48, 213, 200, 0.01);
  border-color: #2c2c2e;
  color: #30d5c8;
}

.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

/* Artist badge — shown next to display name for account_type='artist' */
.artist-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(180, 139, 255, 0.18), rgba(138, 77, 245, 0.10));
  color: #ffffff;
  border: 1px solid rgba(180, 139, 255, 0.35);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Profile links — chips under the bio */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 4px 0 12px;
}

.profile-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-darkest);
  color: #30d5c8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}

.profile-link-chip::before {
  content: '≡';
  font-size: 1rem;
  margin-right: 4px;
  line-height: 1;
}


/* Profile Content Tabs (Posts | Replies | Code | Media | Reposts) */
.profile-content-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  background: rgba(5, 5, 9, 0.6);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
}

.profile-content-tabs button {
  background: transparent;
  color: var(--text-muted);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  text-transform: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  border-radius: 0;
}


.profile-content-tabs button.active {
  color: var(--accent-text, var(--text));
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-bottom-color: var(--teal);
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(48, 213, 200, 0.12);
  margin: 4px 4px 6px;
  padding: 7px 14px;
  border-bottom: none;
}

.profile-content-tabs button.active::after {
  display: none;
}

.profile-content-tabs button.tab-disabled {
  opacity: 0.35;
  cursor: default;
}

.profile-content-tabs button.tab-disabled:hover {
  color: var(--text-very-muted);
  background: transparent;
}

/* ============================================================
   Artist Stats Block (metadata only — no content surveillance)
   ============================================================ */

.artist-stats-block {
  margin-top: 16px;
}

.chart-peak-badge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffdf6b;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.artist-stats-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  margin-bottom: 12px;
}

.artist-stat {
  text-align: center;
  flex: 1;
}

.artist-stat .num {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.artist-stat .label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Releases list */
.artist-releases {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.15s;
}

.release-card:hover {
  border-color: var(--border-hover);
}

.release-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--purple-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.release-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-genre {
  font-size: 0.75rem;
  color: var(--purple-soft);
}

.release-stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.track-play-btn {
  background: #0a0a0c;
  color: #fff;
  border: 1px solid #30d5c8;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.track-play-btn:hover {
  background: var(--purple-soft);
  color: var(--bg-darkest);
}

/* Verified badge — pristine iOS-grade squircle: clean gradient, crisp check, zero glow */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #0A84FF 0%, #0060DF 100%);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.verified-badge.admin-badge {
  background: linear-gradient(135deg, #8f87ff, #5e5ce6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Super admin badge — stryfe: brand teal nucleus gradient, static + crisp */
.verified-badge.super-admin-badge {
  background: linear-gradient(135deg, #30d5c8, #0ea89a);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 0.7rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.25);
  animation: none;
}

/* Super admin username styling */
.super-admin-name {
  background: linear-gradient(135deg, #30d5c8, #4dd4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Compact verified badge for inline contexts (DM conv names, etc.) */
.verified-badge.badge-sm {
  width: 14px;
  height: 14px;
  border-radius: 4.5px;
  font-size: 0.5rem;
  margin-left: 4px;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.14),
    0 1px 1.5px rgba(0, 0, 0, 0.25);
}

/* Role badges — gradient pills with depth */
.role-badge {
  font-family: var(--font-display);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 9px;
  background: rgba(48, 213, 200, 0.14);
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 800;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.3);
}





/* Ensure profile display-name is always white (hover handled by .clickable rules) */
.profile-header .display-name,
.explore-name {
  color: #ffffff;
}


/* ============================================================
   Utility
   ============================================================ */

.loading {
  text-align: center;
  padding: 40px;
  color: #30d5c8;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Skeleton loaders — animated placeholders */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-input) 0%, rgba(154, 162, 173,0.08) 50%, var(--bg-input) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--bg-input) 0%, rgba(154, 162, 173,0.08) 50%, var(--bg-input) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

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

/* Fade-in animations */
.fade-in { animation: fadeInUp 0.3s ease-out; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-top { animation: slideInTop 0.4s ease-out; }

@keyframes slideInTop {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-bottom { animation: slideInBottom 0.3s ease-out; }

@keyframes slideInBottom {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   Profile Editing / Settings
   ============================================================ */

.edit-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 600px;
  margin: 0 auto;
}

/* Settings Tabs */
.settings-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  scrollbar-width: none;
}





.settings-panel {
  display: none;
}


.edit-profile-card select,
.edit-profile-card textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

/* CSS Sandbox presets */
.preset-btn {
  padding: 6px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(154, 162, 173, 0.05);
}

/* ============================================================
   Luxury Profile Studio — Settings Redesign
   ============================================================ */

.settings-glass {
  background: linear-gradient(165deg, rgba(17, 23, 38, 0.88), rgba(10, 14, 23, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 48px rgba(0, 0, 0, 0.38);
}

/* Particle Background */
.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle-bg span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(154, 162, 173, 0.4);
  border-radius: 50%;
  animation: particle-float 15s infinite linear;
}

.particle-bg span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle-bg span:nth-child(2) { left: 25%; top: 40%; animation-delay: 2s; animation-duration: 14s; }
.particle-bg span:nth-child(3) { left: 40%; top: 60%; animation-delay: 4s; animation-duration: 16s; }
.particle-bg span:nth-child(4) { left: 55%; top: 30%; animation-delay: 1s; animation-duration: 13s; }
.particle-bg span:nth-child(5) { left: 70%; top: 70%; animation-delay: 3s; animation-duration: 15s; }
.particle-bg span:nth-child(6) { left: 85%; top: 15%; animation-delay: 5s; animation-duration: 11s; }
.particle-bg span:nth-child(7) { left: 15%; top: 80%; animation-delay: 6s; animation-duration: 17s; }
.particle-bg span:nth-child(8) { left: 60%; top: 50%; animation-delay: 7s; animation-duration: 12s; }
.particle-bg span:nth-child(9) { left: 35%; top: 10%; animation-delay: 8s; animation-duration: 14s; }
.particle-bg span:nth-child(10) { left: 80%; top: 45%; animation-delay: 9s; animation-duration: 16s; }

@keyframes particle-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* Hero Section */
.settings-hero {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(48, 213, 200, 0.14), transparent 62%),
    linear-gradient(135deg, rgba(48, 213, 200, 0.08), rgba(37, 44, 54, 0.16), rgba(4, 52, 44, 0.12));
  padding: 40px 24px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, #ffffff 0%, #7be8de 45%, #30d5c8 75%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.settings-hero-admin {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #0a0a0c;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
  transition: all 0.2s;
}

.settings-hero-admin:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(154, 162, 173, 0.12);
}

.settings-hero-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Avatar Dropzone */
.avatar-dropzone {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px dashed rgba(154, 162, 173, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.avatar-dropzone:hover {
  border-color: #2c2c2e;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.avatar-dropzone.drag-over {
  border-color: #2c2c2e;
  border-style: solid;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
  transform: scale(1.05);
}

.avatar-dropzone.drag-over .avatar-dropzone-overlay {
  opacity: 1;
  background: rgba(48, 213, 200, 0.02);
}

.avatar-preview-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(154, 162, 173, 0.3), rgba(37, 44, 54, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-dropzone-initials {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-dropzone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}

.avatar-dropzone:hover .avatar-dropzone-overlay {
  opacity: 1;
}

.avatar-dropzone-overlay svg {
  margin-bottom: 4px;
  opacity: 0.9;
}

.avatar-uploading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar-spinner {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #30d5c8;
  display: inline-block;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  animation: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.avatar-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Tab Slider */
.settings-tabs-container {
  position: relative;
  z-index: 1;
}

.settings-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 0 24px;
  overflow-x: auto;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  scrollbar-width: none;
}


.settings-tab {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
  position: relative;
}

.settings-tab:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.settings-tab.active {
  color: #00100d;
  background: linear-gradient(180deg, #7be8de 0%, var(--teal) 100%);
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: 0 2px 10px rgba(48, 213, 200, 0.12);
}

.tab-slider {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #0a0a0c, rgba(255, 255, 255, 0.1));
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Settings Panel */
.settings-panel {
  display: none;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.settings-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Labels */
.float-label {
  position: relative;
  margin-bottom: 20px;
}

.float-label label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 4px;
}

.float-label input,
.float-label textarea,
.float-label select {
  width: 100%;
  padding: 14px;
  background: rgba(5, 5, 15, 0.6);
  border: 1px solid rgba(154, 162, 173, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.float-label textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 150px;
  box-sizing: border-box;
}

.float-label input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 14px;
}

.float-label select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237878a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.float-label label:not(.float-label-static) {
  transition: all 0.2s ease;
}

.float-label.focused label,
.float-label.has-value label {
  top: -8px;
  left: 10px;
  font-size: 0.75rem;
  color: #30d5c8;
  background: rgba(5, 5, 15, 0.9);
}

.float-label .form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding-left: 2px;
}

.float-label-static {
  position: static !important;
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Input Glow — teal focus system */
.input-glow:focus {
  border-color: rgba(48, 213, 200, 0.55);
  box-shadow: 0 0 0 4px rgba(48, 213, 200, 0.12), 0 0 20px rgba(48, 213, 200, 0.08);
}

.input-glow:focus::placeholder {
  opacity: 0.5;
}

/* Shimmer Button — Apple pill */
.btn-shimmer {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #14e0c8, #0fb5a3);
  border: none;
  border-radius: 999px;
  color: #04211d;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out, ease-out), box-shadow 0.2s var(--ease-out, ease-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 22px rgba(20, 224, 200, 0.22);
  margin-top: 8px;
}

.btn-shimmer:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 30px rgba(20, 224, 200, 0.3);
}

.btn-shimmer:active {
  transform: translateY(0);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.btn-shimmer:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-shimmer:disabled::after {
  animation: none;
}

/* ============================================================
   Links Editor + Block List (Edit Profile)
   ============================================================ */

.edit-link-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}

.edit-link-row .link-platform {
  flex: 0 0 38%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

.edit-link-row .link-url {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

.edit-link-row .link-platform:focus,
.edit-link-row .link-url:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.link-remove-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s;
}

.link-remove-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 71, 87, 0.1);
}

.edit-block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.edit-block-row:last-child {
  border-bottom: none;
}

.unblock-btn {
  font-size: 0.75rem;
}

/* ============================================================
   Thread View
   ============================================================ */

.back-btn {
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
}


.thread-toggle {
  margin-top: 12px;
  margin-bottom: 4px;
}

.thread-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}



.reply-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  margin-top: 8px;
  border-left: 2px solid var(--purple-dim);
}


/* ============================================================
   DMs (Direct Messages)
   ============================================================ */

.dm-layout {
  display: flex;
  gap: 0;
  width: 100%;
  height: calc(100vh - 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dm-sidebar {
  width: 240px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
}

.dm-new {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.dm-conversations {
  flex: 1;
  overflow-y: auto;
}

.dm-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(154, 162, 173, 0.05);
}

.dm-conv-item:hover {
  background: rgba(255,255,255,0.04);
}

.dm-conv-item.active {
  background: rgba(48, 213, 200, 0.01);
  border-left: 3px solid #30d5c8;
}

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

.dm-conv-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #30d5c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-conv-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dm-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-darkest);
}

.dm-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.dm-empty .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.dm-chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
}

.dm-chat-name {
  font-weight: 700;
  color: #30d5c8;
}

.dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.dm-msg-me {
  align-self: flex-end;
  align-items: flex-end;
}

.dm-msg-them {
  align-self: flex-start;
}

.dm-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.dm-msg-me .dm-msg-bubble {
  background: #0a0a0c;
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.dm-msg-them .dm-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.dm-msg-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

.dm-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}

.dm-input-bar input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.9rem;
}

.dm-input-bar input:focus {
  border-color: var(--text);
}

.dm-input-bar .btn-post {
  padding: 8px 20px;
  border-radius: 8px;
  background: #30d5c8;
  color: #000;
  border: none;
  transition: all 150ms;
}

.dm-input-bar .btn-post:hover {
  background: transparent;
  color: #30d5c8;
}

.dm-new-form {
  padding: 24px;
  max-width: 360px;
  margin: 0 auto;
  align-self: center;
  width: 100%;
}

/* Mobile DM layout */
@media (max-width: 600px) {
  .dm-layout { flex-direction: column; height: calc(100vh - var(--header-h) - 32px); }
  .dm-sidebar { width: 100%; height: 45%; }
  .dm-chat { height: 55%; }
  .dm-chat-header .back-btn { display: inline-block !important; }
}

.reply-flattened {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 6px 12px;
  font-style: italic;
}

.inline-reply-composer {
  border: 1px solid #1c1c1e !important;
  background: #0a0a0c !important;
  border-radius: 16px !important;
  box-shadow: none;
}

.inline-reply-composer textarea {
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 12px 14px 8px;
  width: 100%;
  resize: none;
  transition: color 0.2s;
}

.inline-reply-composer textarea::placeholder {
  color: var(--text-muted);
}

.inline-reply-composer textarea:focus {
  outline: none;
  color: #fff;
}

.inline-reply-composer .composer-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 12px;
  border-top: 1px solid #1c1c1e;
}

.inline-reply-composer .composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-reply-composer .char-counter {
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(235, 235, 245, 0.35);
  flex: 1;
  letter-spacing: 0.02em;
}

.inline-reply-composer .btn-inline-reply,
.inline-reply-composer .btn-inline-reply-submit,
.inline-reply-composer .btn-inline-cancel {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.inline-reply-composer .btn-inline-reply,
.inline-reply-composer .btn-inline-reply-submit {
  background: transparent;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  font-weight: 600;
}

.inline-reply-composer .btn-inline-reply:hover:not(:disabled),
.inline-reply-composer .btn-inline-reply-submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
}

.inline-reply-composer .btn-inline-reply:disabled,
.inline-reply-composer .btn-inline-reply-submit:disabled {
  color: rgba(235, 235, 245, 0.35);
  border-color: #2c2c2e;
  opacity: 1;
  cursor: not-allowed;
}

.inline-reply-composer .btn-inline-cancel {
  background: transparent;
  color: rgba(235, 235, 245, 0.35);
  border: 1px solid #2c2c2e;
}

.inline-reply-composer .btn-inline-cancel:hover {
  color: #ffffff;
  border-color: #3a3a3a;
}

.inline-reply-composer .tool-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  color: rgba(235, 235, 245, 0.6) !important;
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
  min-width: auto !important;
  min-height: auto !important;
}
.inline-reply-composer .tool-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.inline-reply-composer .tool-btn svg {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
}
.inline-reply-composer .tool-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.inline-reply-box {
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.inline-reply-preview {
  padding: 8px 0;
}

.inline-reply-preview .preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 200px;
}

.inline-reply-preview .preview-wrap img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
}

.reply-composer-wrap {
  margin-top: 16px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #8b8d96;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}


.empty-state .empty-hex {
  margin-bottom: 20px;
}

.empty-state .empty-title {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: #8b8d96;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.empty-state .empty-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.empty-state .empty-action {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #30d5c8;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}


.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #39d98a;
  padding: 12px 24px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  z-index: 9999;
  animation: toastIn 0.3s ease, toastOut 0.5s ease 1.5s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Mobile */
@media (max-width: 600px) {
  .main-content {
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 80px;
  }
  .left-nav { display: none; }
  .right-sidebar { display: none; }
  .topbar .nav button { padding: 8px 10px; font-size: 0.8rem; }
  .auth-card { padding: 28px 20px; }
}

/* ============================================================
   Mobile Bottom Tab Bar
   ============================================================ */

.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  justify-content: space-around;
}

.mobile-tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 10px;
  transition: color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.mobile-tabbar button:active {
  transform: scale(0.92);
}

.mobile-tabbar button.active:active {
  transform: translateY(-1px) scale(0.92);
}


.mobile-tabbar .tab-icon {
  font-size: 1.3rem;
}

.mobile-tabbar .tab-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  /* Authed only — the tabbar must never float over the login/foyer screen */
  html.tr-authed .mobile-tabbar { display: flex; }
  .topbar .nav { display: none; }
  .main-content { padding-bottom: 80px; }
}

/* ============================================================
   SVG Icon Styles
   ============================================================ */

.nav-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
  transition: color 0.15s;
}

.nav-notif:hover .nav-icon,
.nav-ecosystem:hover .nav-icon,
.topbar .nav button:hover .nav-icon {
  color: #ffffff;
}

.fab-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.post-fab {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(98, 106, 117, 0.1), 0 0 30px rgba(98, 106, 117, 0.05);
}

.fab-icon {
  font-size: 24px;
  font-weight: 300;
  color: #f2f2f5;
  line-height: 1;
}



.icon-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 50%;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: rgba(154, 162, 173, 0.1);
}

.icon-cover {
  width: 32px;
  height: 32px;
}


.mobile-tabbar .tab-icon {
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  transition: color 0.15s;
}

.mobile-tabbar button.active .tab-icon {
  color: var(--text);
}

.mobile-tabbar button:hover .tab-icon {
  color: var(--text);
}

/* Show post-fab only when authenticated (app-shell is active) */
.app-shell.active .post-fab {
  display: flex;
}

@media (max-width: 600px) {
  .post-fab {
    bottom: 88px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .fab-icon { width: 24px; height: 24px; }
}

/* ============================================================
   Unauthenticated Explore Page
   ============================================================ */

.unauth-explore {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.explore-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.explore-section {
  background: transparent;
}

.explore-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.explore-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explore-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.explore-tag:hover {
  border-color: var(--border-hover);
}

.explore-rank {
  font-weight: 800;
  color: rgba(235, 235, 245, 0.4);
  width: 20px;
}

.explore-tag-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.explore-tag-stats {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.explore-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explore-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.explore-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.explore-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  flex-shrink: 0;
}

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

.explore-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #30d5c8;
}

.explore-handle {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.explore-post-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 10px;
}

.explore-post-img-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(235, 235, 245, 0.4);
  background: rgba(154, 162, 173,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.explore-post-stats {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.explore-cta {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.explore-cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.explore-cta-text {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.explore-cta-btn {
  max-width: 280px;
  margin: 0 auto;
}

/* Right sidebar search bar */
.sidebar-search {
  width: 100%;
  position: relative;
}




.sidebar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* ============================================================
   Feed Layout (center column)
   ============================================================ */

.feed-center {
  flex: 1;
  min-width: 0;
  max-width: 600px;
  padding: 56px 16px 0;
  background: var(--bg) !important;
}

.feed-layout {
  display: block;
  max-width: 600px;
  margin: 0 auto;
}

.feed-main {
  min-width: 0;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 8px 0;
}

.feed-grid-item {
  transition: transform 0.15s, box-shadow 0.15s;
}

.feed-grid-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(98, 106, 117, 0.15);
}

.feed-sidebar {
  display: none;
}

.sidebar-card {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}



.sidebar-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.85;
  filter: brightness(1.8);
}

.sidebar-empty {
  padding: 16px;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* Trending items */
.trend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}


.trend-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.pulse-bullet {
  width: 8px;
  height: 8px;
  background: #0a0a0c;
  border-radius: 50%;
  animation: bullet-pulse 2s ease-in-out infinite;
}

@keyframes bullet-pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 4px #30d5c8; }
  50% { opacity: 1; box-shadow: 0 0 10px #30d5c8, 0 0 20px rgba(255, 255, 255, 0.05); }
}

.linkedin-compose-action .compose-icon-white,
.linkedin-compose-action .compose-icon-white:hover {
  filter: brightness(0) invert(1) !important;
}


.trend-content {
  flex: 1;
  min-width: 0;
}


.trend-item:hover .trend-tag {
  color: var(--text);
}

.trend-stats {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Full-page trending list */
.trending-list-full .trend-item {
  border-bottom: 1px solid var(--border);
}
.trending-list-full .trend-item:last-child {
  border-bottom: none;
}

/* Responsive — hide sidebars on tablet */
@media (max-width: 1024px) {
  .left-nav { display: none; }
  .right-sidebar { display: none; }
  .main-content {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 800px) {
  .feed-sidebar { display: none; }
}

/* ============================================================
   Repost marker + embedded quote card
   ============================================================ */

.repost-marker {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding-left: 2px;
}

.quote-card {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple-dim);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}


.quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-header .meta .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #30d5c8;
}

.quote-header .meta .handle {
  font-size: 0.78rem;
}

.quote-card .post-image {
  margin-top: 8px;
}

/* ============================================================
   Compose modal — Premium cyberpunk / glassmorphism
   ============================================================ */

@keyframes composer-glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(154, 162, 173, 0.12), 0 0 30px rgba(154, 162, 173, 0.08), 0 16px 48px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 22px rgba(154, 162, 173, 0.12), 0 0 44px rgba(154, 162, 173, 0.12), 0 16px 48px rgba(0, 0, 0, 0.5); }
}

@keyframes composer-border-glow {
  0%, 100% { border-color: rgba(154, 162, 173, 0.25); }
  33% { border-color: rgba(154, 162, 173, 0.3); }
  66% { border-color: rgba(100, 140, 255, 0.25); }
}

@keyframes post-btn-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(154, 162, 173, 0.12), 0 0 16px rgba(154, 162, 173, 0.1); }
  50% { box-shadow: 0 0 14px rgba(154, 162, 173, 0.12), 0 0 28px rgba(154, 162, 173, 0.12); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 5vh 16px;
  /* Keep the feed readable while composing; the surface provides focus. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.compose-modal {
  width: 100%;
  max-width: 560px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: modal-in 0.2s ease-out;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.62), 0 0 0 0 rgba(0, 0, 0, 0);
}

.nav-compose {
  width: 100%;
  border: 1px solid rgba(48, 213, 200, 0.24);
  background: rgba(48, 213, 200, 0.07);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.nav-compose:hover { background: rgba(48, 213, 200, 0.12); color: #7fffe8; }
.nav-compose-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.compose-modal .composer-footer { gap: 12px; }
.compose-modal .char-counter { margin-left: auto; }

.compose-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 162, 173, 0.5), rgba(154, 162, 173, 0.5), rgba(100, 140, 255, 0.5), transparent);
}

.compose-modal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(154, 162, 173, 0.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.compose-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.compose-modal-header span {
  background: linear-gradient(135deg, #ffffff, #0a0a0c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
}

.compose-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 0;
  transition: all 0.2s;
}

.compose-modal-close:hover {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.3);
  color: #ffffff;
}

.compose-modal textarea {
  width: 100%;
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  min-height: 100px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s;
}


.compose-modal textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}


.compose-modal .composer-footer {
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.compose-modal .composer-footer .char-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #30d5c8;
}

.compose-modal .btn-post {
  background: #30d5c8;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 9px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  transition: all 150ms;
}

.compose-modal .btn-post:not(:disabled):hover {
  background: transparent;
  color: #8b8d96;
}

.compose-modal .btn-post:not(:disabled):active {
  transform: scale(0.98);
}

.compose-modal .btn-post:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  animation: none;
}

.compose-modal .composer-tools .tool-btn {
  color: rgba(255, 255, 255, 0.6);
}

.compose-modal .composer-tools .tool-btn:hover {
  color: #ffffff;
}

/* Ensure composer icons are always white regardless of SVG fill */
.compose-modal .composer-tools .tool-btn img.icon-btn,
.compose-modal .composer-tools .tool-btn svg.icon-btn {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.compose-modal .composer-tools .tool-btn:hover img.icon-btn,
.compose-modal .composer-tools .tool-btn:hover svg.icon-btn {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}

/* Video duration badge in modal composer */
.compose-modal .video-duration-badge {
  background: rgba(154, 162, 173, 0.9);
  color: #fff;
}

/* Video preview in modal composer */
.compose-modal .video-preview {
  border-color: rgba(154, 162, 173, 0.2);
  margin-top: 10px;
}

.compose-modal .video-preview .preview-remove {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.compose-modal .video-preview .preview-remove:hover {
  background: rgba(255, 71, 87, 0.8);
}

.compose-modal .video-duration-indicator {
  background: rgba(154, 162, 173, 0.85);
  color: #fff;
  font-family: var(--font-mono);
}

.compose-modal .audio-preview {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-darkest);
  padding: 0;
}

.compose-modal .audio-preview .audio-preview-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.compose-modal .audio-preview .voice-player {
  margin-top: 0;
}

.compose-modal .audio-preview .preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 71, 87, 0.15);
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.compose-modal .audio-preview .preview-remove:hover {
  background: rgba(255, 71, 87, 0.4);
}

.compose-modal .recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-top: 8px;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.25);
  border-radius: var(--radius-sm);
}

.compose-modal .recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: rec-blink 1s ease-in-out infinite;
  flex-shrink: 0;
}

.compose-modal .recording-timer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================================
   Report modal (mirrors compose-modal structure)
   ============================================================ */
.report-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.15s ease-out;
}

.report-modal-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.report-modal-body select {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}

.report-modal-body select:focus {
  outline: none;
  border-color: var(--text);
}

.report-modal-body textarea {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
}

.report-modal-body textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.report-modal-body .btn-primary {
  margin-top: 14px;
  width: 100%;
}

/* ============================================================
   Submission & Cap Modals
   ============================================================ */
.submission-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.15s ease-out;
}

.submission-modal textarea {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
}

.submission-modal textarea:focus {
  outline: none;
  border-color: var(--text);
}

.submission-modal select {
  width: 100%;
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}

.submission-modal select:focus {
  outline: none;
  border-color: var(--text);
}

.submission-modal .btn-primary {
  margin-top: 14px;
  width: 100%;
}

.submission-modal .form-field {
  margin-bottom: 12px;
}

.submission-modal .form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 600;
}

.submission-modal .form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.submission-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-darkest);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.submission-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.submission-status-badge.pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.submission-status-badge.approved {
  background: rgba(154, 162, 173, 0.15);
  color: #30d5c8;
}

.submission-status-badge.rejected {
  background: rgba(255, 71, 87, 0.15);
  color: #ff453a;
}

.submission-status-badge.refunded {
  background: rgba(155, 155, 155, 0.15);
  color: #999;
}

/* Cap intercept modal */
.cap-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.15s ease-out;
  text-align: center;
}

.cap-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.cap-modal h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

.cap-modal-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.4;
}

.cap-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cap-btn-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
}

.cap-btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.cap-btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

.cap-btn-sub {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Track submission badge (in artist profile releases) */
.release-submission-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

.release-submission-badge.pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.release-submission-badge.approved {
  background: rgba(154, 162, 173, 0.15);
  color: #30d5c8;
}

.release-submission-badge.rejected {
  background: rgba(255, 71, 87, 0.15);
  color: #ff453a;
}

/* Submission queue cards (admin) */
.submission-queue-card {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.submission-queue-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.submission-queue-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.submission-queue-actions .btn-approve {
  background: rgba(154, 162, 173, 0.15);
  color: #30d5c8;
  border: 1px solid rgba(154, 162, 173, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.submission-queue-actions .btn-approve:hover {
  background: rgba(255,255,255,0.06);
}

.submission-queue-actions .btn-reject {
  background: rgba(255, 71, 87, 0.1);
  color: #ff453a;
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.submission-queue-actions .btn-reject:hover {
  background: rgba(255, 71, 87, 0.2);
}

/* ============================================================
   Admin Safety Console
   ============================================================ */
.admin-console {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 20px 20px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.admin-header h2 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(48, 213, 200, 0.12);
  margin: 0;
}

.admin-tools {
  display: flex;
  gap: 8px;
}

.admin-report-card {
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.admin-report-card:hover {
  border-color: rgba(48, 213, 200, 0.04);
  transform: translateY(-1px);
}

.admin-report-target {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.admin-report-reason {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(48, 213, 200, 0.35);
  border-radius: 0 8px 8px 0;
}

.admin-report-actions {
  flex-wrap: wrap;
  gap: 4px;
}

.admin-report-actions .btn-admin-action {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-report-actions .btn-admin-action svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.admin-report-actions .btn-admin-action:hover {
  background: rgba(48, 213, 200, 0.01);
  color: var(--teal);
  border-color: rgba(48, 213, 200, 0.30);
  transform: translateY(-1px);
}

.admin-report-actions .btn-admin-action[data-action="escalated"]:hover,
.admin-report-actions .btn-admin-action[data-action="suspended"]:hover {
  background: rgba(255, 71, 87, 0.12);
  color: var(--danger);
  border-color: var(--danger);
}

/* Status chips — color by severity, using existing theme vars. */
.admin-status-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.admin-status-chip.status-open,
.admin-status-chip.status-reviewing {
  background: rgba(48, 213, 200, 0.12);
  color: var(--teal);
}

.admin-status-chip.status-warned {
  background: rgba(255, 170, 0, 0.14);
  color: #ffb020;
}

.admin-status-chip.status-dismissed {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.admin-status-chip.status-suspended,
.admin-status-chip.status-escalated {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

/* Safety status filter — pill tabs (matches profile/settings pills) */
#admin-status-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
#admin-status-tabs::-webkit-scrollbar { display: none; }
#admin-status-tabs button {
  padding: 7px 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  white-space: nowrap;
}
#admin-status-tabs button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
#admin-status-tabs button.active {
  color: #00100d;
  background: linear-gradient(180deg, #7be8de 0%, var(--teal) 100%);
  box-shadow: 0 2px 10px rgba(48, 213, 200, 0.12);
}

/* Audit log panel */
#admin-audit-panel {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.audit-section {
  margin-bottom: 20px;
}

.audit-section h3 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.audit-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.audit-type {
  font-weight: 700;
  color: var(--text);
}

.audit-type.audit-lea {
  color: var(--danger);
}

.audit-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ============================================================
   Mini-Player (luxury tech / hacker vibe, glassmorphism)
   Sits fixed at the bottom; on mobile it stacks above the tabbar.
   ============================================================ */

.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: rgba(2, 2, 4, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid rgba(20, 224, 200, 0.14);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(20, 224, 200, 0.08) inset, 0 -8px 40px rgba(20, 224, 200, 0.06);
}

.mp-full {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 16px;
  width: 100%;
}

/* Track info — left */
.mp-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
  width: 220px;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.mp-cover {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0a0a14;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 224, 200, 0.2);
  box-shadow: 0 0 14px rgba(20, 224, 200, 0.12), 0 0 30px rgba(20, 224, 200, 0.05);
  transition: box-shadow 0.3s;
}

.mp-cover:hover {
  box-shadow: 0 0 22px rgba(20, 224, 200, 0.12);
}

.mp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-meta {
  min-width: 0;
}

.mp-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.mp-artist {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center controls */
.mp-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0 20px;
}

/* Right section */
.mp-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Shared button base */
.mp-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.mp-btn:hover {
  color: var(--text);
  background: rgba(154, 162, 173,0.1);
}

/* Play / Pause button — bigger, teal accent with glow */
.mp-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(0, 212, 255, 0.1));
  color: #30d5c8;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), inset 0 0 0 rgba(0, 0, 0, 0);
}

.mp-play:hover {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.03), rgba(0, 212, 255, 0.18));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), inset 0 0 0 rgba(0, 0, 0, 0);
  transform: scale(1.06);
}

.mp-play.playing {
  background: linear-gradient(135deg, #14E0C8, #00d4ff);
  color: #04140F;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 40px rgba(20, 224, 200, 0.12);
}

.mp-play:active {
  transform: scale(0.95);
}

/* Progress bar area */
.mp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mp-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
  letter-spacing: 0.04em;
  user-select: none;
}

.mp-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}

.mp-progress:hover {
  height: 6px;
}

.mp-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #14E0C8, #00d4ff);
  width: 0%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(20, 224, 200, 0.12);
}

.mp-progress-knob {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 22px rgba(20, 224, 200, 0.12);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
  z-index: 2;
}

.mp-progress:hover .mp-progress-knob {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Volume controls */
.mp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-volume-btn {
  padding: 5px;
}

.mp-volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.mp-volume-slider:hover {
  height: 5px;
}

.mp-volume-bar {
  height: 100%;
  border-radius: 4px;
  background: #0a0a0c;
  width: 80%;
  pointer-events: none;
}

/* Minimize / Close */
.mp-minimize, .mp-close {
  padding: 5px;
}

.mp-close:hover {
  color: var(--danger);
  background: rgba(255,71,87,0.1);
}

/* Hidden audio element */
#mp-audio {
  display: none;
}

/* ============================================================
   Minimized pill — floating bottom-right
   ============================================================ */
.mp-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 260;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(2, 2, 4, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 224, 200, 0.18);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 18px rgba(20, 224, 200, 0.12);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.mp-pill:hover {
  border-color: rgba(20, 224, 200, 0.38);
  box-shadow: 0 4px 28px rgba(0,0,0,0.6), 0 0 30px rgba(20, 224, 200, 0.12);
  transform: translateY(-2px);
}

.mp-pill-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(0, 212, 255, 0.12));
  border: none;
  color: #30d5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.mp-pill-play:hover {
  background: rgba(48, 213, 200, 0.03);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.mp-pill-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stack the player above the mobile tabbar on small screens */
@media (max-width: 600px) {
  .mini-player { bottom: 60px; }
  .mp-info { width: 140px; padding-right: 10px; }
  .mp-cover { width: 36px; height: 36px; border-radius: 8px; }
  .mp-controls { padding: 0 10px; gap: 8px; }
  .mp-volume-wrap { display: none; }
  .mp-pill { bottom: 70px; right: 12px; }
}

/* ============================================================
   Upload Form (artist track release)
   ============================================================ */

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  max-width: 480px;
}

.upload-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.upload-form .opt {
  font-weight: 400;
  color: var(--text-dim);
}

.upload-form input[type="text"],
.upload-form input[type="file"] {
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.upload-form input[type="text"]:focus {
  border-color: var(--text);
}

.upload-form .form-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.coming-soon-banner {
  padding: 14px 16px;
  margin-bottom: 8px;
  background: rgba(154, 162, 173, 0.07);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: rgba(235, 235, 245, 0.4);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================================
   Charts Page
   ============================================================ */

.page-card {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.charts-week {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.charts-tabs {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.charts-tabs .tab-count {
  opacity: 0.6;
  font-size: 0.78rem;
  margin-left: 3px;
}

.chart-section-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 18px 0 8px;
  padding-left: 2px;
}

.chart-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.chart-entry:hover {
  background: rgba(154, 162, 173, 0.04);
}

.chart-rank {
  font-weight: 800;
  font-size: 1rem;
  color: rgba(235, 235, 245, 0.4);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.chart-entry .release-cover {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.chart-peak-note {
  color: rgba(235, 235, 245, 0.4);
  font-weight: 600;
  margin-right: 6px;
}

/* ============================================================
   Phase 4 — Discovery sidebar elements
   (scope tabs, suggested-users rail, charts rail)
   ============================================================ */

.sidebar-header-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.scope-tabs {
  display: flex;
  gap: 2px;
}

.scope-tabs button {
  background: transparent;
  color: var(--text-dim);
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  transition: all 0.15s;
}

.scope-tabs button:hover {
  color: var(--text);
}

.scope-tabs button.active {
  background: rgba(154, 162, 173, 0.15);
  color: var(--text);
}

/* Suggested users rail */
/* Terminal-style suggested users */
#suggested-widget .sidebar-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #30d5c8;
  text-shadow: 0 0 8px rgba(154, 162, 173, 0.12), 0 0 16px rgba(100, 140, 255, 0.12);
  animation: signal-pulse 2s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(154, 162, 173, 0.12), 0 0 16px rgba(100, 140, 255, 0.12); }
  50% { text-shadow: 0 0 14px rgba(154, 162, 173, 0.12), 0 0 28px rgba(100, 140, 255, 0.12); }
}

#suggested-widget .sidebar-icon {
  display: none;
}

.terminal-log {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 12px;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(10,10,18,0.4) 0%, rgba(5,5,12,0.2) 100%);
  border-radius: 6px;
  border: 1px solid rgba(154, 162, 173,0.1);
}

.terminal-log::-webkit-scrollbar {
  display: none;
}

.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 0;
  color: #30d5c8;
  opacity: 0;
  animation: terminal-appear 0.3s ease forwards;
  letter-spacing: 0.04em;
}

@keyframes terminal-appear {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.terminal-prompt {
  color: var(--text-muted);
  font-size: 0.72rem;
  opacity: 1;
  text-shadow: 0 0 6px rgba(154, 162, 173, 0.12);
}

.terminal-user {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.terminal-user:hover {
  background: rgba(154, 162, 173, 0.08);
  box-shadow: inset 0 0 12px rgba(100,140,255,0.08);
}

.terminal-user:hover .terminal-name {
  color: #fff;
  text-shadow: 0 0 10px rgba(154, 162, 173, 0.12), 0 0 20px rgba(100, 140, 255, 0.12);
}

.terminal-prefix {
  color: #9a7cb8;
  font-size: 0.75rem;
  text-shadow: 0 0 4px rgba(100, 140, 255, 0.12);
  animation: prefix-blink 1.2s step-end infinite;
}

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

.terminal-name {
  color: #e0d0f0;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-shadow: 0 0 6px rgba(154, 162, 173, 0.12);
  transition: all 0.15s;
}

.terminal-status {
  color: var(--text-muted);
  font-size: 0.68rem;
  opacity: 0.7;
}

.terminal-done {
  color: var(--text-muted);
  font-size: 0.72rem;
  opacity: 1;
  animation: blink-cursor 1s step-end infinite;
}

.terminal-empty {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px;
  text-shadow: 0 0 4px rgba(154, 162, 173, 0.12);
}

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

.btn-follow-mini {
  background: linear-gradient(135deg, #626a75, #9aa2ad);
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.74rem;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-follow-mini:hover {
  background: rgba(255,255,255,0.04);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
}


/* Charts rail (compact weekly top) */
.chart-rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  transition: background 0.15s;
}

.chart-rail-item:hover {
  background: rgba(255,255,255,0.04);
}

.chart-rail-rank {
  font-weight: 800;
  font-size: 0.85rem;
  color: rgba(235, 235, 245, 0.4);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.chart-rail-cover {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  overflow: hidden;
}

.chart-rail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chart-rail-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-rail-genre {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact play button in the rail rows */
.chart-rail-item .track-play-btn {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================================
   Admin Panel
   ============================================================ */

.admin-panel {
  padding: 20px 24px;
}

.admin-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-search input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--text);
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--nav-bg);
  border-radius: 8px;
  margin-bottom: 4px;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-name {
  font-weight: 600;
  color: #30d5c8;
  text-decoration: none;
}

.admin-user-name:hover {
  color: rgba(255, 255, 255, 0.1);
}

.admin-user-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-user-badge {
  font-size: 0.85rem;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.admin-pagination button {
  padding: 6px 12px;
}

.admin-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Genre Filter Banner
   ============================================================ */

.genre-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: rgba(154, 162, 173, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: rgba(235, 235, 245, 0.4);
  font-size: 0.9rem;
}


.genre-filter-clear {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.genre-filter-clear:hover {
  background: rgba(154, 162, 173, 0.12);
}

/* ============================================================
   Save / Bookmark Button
   ============================================================ */

.post-actions button.btn-save {
  margin-left: auto;
  opacity: 0.6;
}

.post-actions button.btn-save:hover {
  opacity: 1;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.post-actions button.btn-save.saved {
  opacity: 1;
  color: var(--text);
}

/* ============================================================
   Hot Regions Widget (right sidebar)
   ============================================================ */

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
  position: relative;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--teal), 0 0 12px var(--teal);
  animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--teal), 0 0 12px var(--teal); }
  50% { opacity: 0.6; box-shadow: 0 0 3px var(--teal), 0 0 6px var(--teal); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

#hot-regions-widget .sidebar-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.4);
  text-shadow: none;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Scanline overlay */
#hot-regions-widget .sidebar-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
}

.hot-region-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  opacity: 0;
  animation: surge-row-in 0.4s ease forwards;
}

.hot-region-item:hover {
  background: rgba(255,255,255,0.04);
}

.hot-region-item:hover .hot-region-name {
  text-shadow: none;
}

.hot-region-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 28px;
  text-align: center;
  color: rgba(235, 235, 245, 0.4);
  text-shadow: none;
  animation: surge-glow 3s ease-in-out infinite;
}

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

.hot-region-name {
  font-weight: 500;
  font-size: 0.82rem;
  color: rgba(235, 235, 245, 0.4);
  letter-spacing: 0.04em;
  text-shadow: none;
  animation: surge-city-pulse 4s ease-in-out infinite;
}

.hot-region-count {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.hot-region-trend {
  font-size: 0.7rem;
  font-weight: 700;
}

.trend-up { color: #00e5a0; text-shadow: 0 0 8px rgba(0, 229, 160, 0.12); animation: surge-arrow-pulse 2s ease-in-out infinite; }
.trend-down { color: #ff453a; text-shadow: 0 0 8px rgba(255, 71, 87, 0.12); }
.trend-stable { color: rgba(0, 229, 160, 0.3); }

/* ============================================================
   Nuke Confirmation Modal
   ============================================================ */

.nuke-modal {
  background: var(--bg-card);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 71, 87, 0.12);
}

.nuke-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.nuke-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 12px;
}

.nuke-modal-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

.nuke-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.nuke-modal-actions .btn-secondary {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.nuke-modal-actions .btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

.nuke-modal-actions .btn-danger {
  padding: 10px 24px;
  background: var(--danger);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.nuke-modal-actions .btn-danger:hover {
  opacity: 0.85;
  box-shadow: 0 0 16px rgba(255, 71, 87, 0.12);
}

/* ============================================================
   Floating DM Panel (LinkedIn-style)
   ============================================================ */

.dm-float-panel {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 360px;
  height: 460px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5), 0 0 1px rgba(154, 162, 173, 0.12);
  animation: dm-float-in 0.2s ease-out;
  overflow: hidden;
}

@keyframes dm-float-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dm-float-panel.hidden {
  display: none !important;
}

/* Float panel header (always visible, shows "Messages" or conversation name) */
.dm-float-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}


.dm-float-title {
  flex: 1;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.dm-float-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1;
}


/* Float body — holds conversation list OR chat thread */
.dm-float-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Conversation list inside float panel */
.dm-float-conv-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.dm-float-conv-list::-webkit-scrollbar {
  width: 4px;
}

.dm-float-conv-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Search bar inside conversation list */
.dm-float-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.dm-float-search input {
  width: 100%;
  padding: 7px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s;
}


.dm-float-search input::placeholder {
  color: var(--text-muted);
}

/* Individual conversation row in float panel */
.dm-float-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(154, 162, 173, 0.04);
}



.dm-float-conv-info {
  flex: 1;
  min-width: 0;
}

.dm-float-conv-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-float-conv-preview {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dm-float-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.dm-float-conv-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.dm-float-conv-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}

/* Chat thread inside float panel */
.dm-float-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dm-float-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-darkest);
  flex-shrink: 0;
}

.dm-float-back {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}


.dm-float-chat-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(235, 235, 245, 0.4);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Messages area */
.dm-float-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  min-height: 0;
}

.dm-float-messages::-webkit-scrollbar {
  width: 4px;
}

.dm-float-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Chat bubbles in float panel */
.dm-float-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.dm-float-msg-me {
  align-self: flex-end;
  align-items: flex-end;
}

.dm-float-msg-them {
  align-self: flex-start;
}

.dm-float-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.dm-float-msg-them .dm-float-msg-row {
  flex-direction: row;
}

.dm-float-msg-me .dm-float-msg-row {
  flex-direction: row-reverse;
}

.dm-float-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(154, 162, 173, 0.25), rgba(154, 162, 173, 0.2));
  border: 1px solid rgba(154, 162, 173, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 0.6rem;
  flex-shrink: 0;
  overflow: hidden;
}

.dm-float-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-float-msg-bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}



.dm-float-msg-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  padding: 0 4px;
}

/* Reply quote inside a bubble */
.dm-float-msg-bubble { position: relative; display: flex; flex-direction: column; gap: 6px; }
.dm-float-quoted {
  background: rgba(255,255,255,0.07);
  border-left: 2.5px solid #30d5c8;
  border-radius: 8px;
  padding: 5px 8px 5px 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-dim);
  cursor: pointer;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-float-quoted-from { color: #30d5c8; font-weight: 700; margin-right: 6px; }
.dm-float-msg-me .dm-float-quoted { border-left-color: #fff; background: rgba(255,255,255,0.18); }
.dm-float-msg-me .dm-float-quoted-from { color: #fff; }
.dm-float-bubble-text { word-break: break-word; }
.dm-float-reply-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.dm-float-msg-bubble:hover .dm-float-reply-btn,
.dm-float-msg-bubble:focus-within .dm-float-reply-btn { opacity: 1; }
.dm-float-msg-me .dm-float-reply-btn { background: rgba(0,0,0,0.22); }
@media (hover: none) { .dm-float-reply-btn { opacity: 0.55; } }

/* Reply bar above input */
.dm-reply-bar {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
  padding: 6px 10px;
  flex-shrink: 0;
}
.dm-reply-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border-left: 2.5px solid #30d5c8;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
}
.dm-reply-bar-to { color: #30d5c8; font-weight: 700; white-space: nowrap; }
.dm-reply-bar-snippet { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dm-reply-bar-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.dm-reply-bar-close:hover { color: var(--text); border-color: var(--text-muted); }

/* PFP polish — ensure initials sit cleanly even at 24px */
.dm-float-msg-avatar { font-size: 0.58rem; letter-spacing: 0.02em; }

/* DM input-bar tools (photo / emoji / GIF) */
.dm-tool-btn {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  line-height: 1;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.dm-tool-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dm-tool-btn:hover { color: var(--accent-text, var(--teal)); background: color-mix(in srgb, var(--accent, var(--teal)) 10%, transparent); border-color: color-mix(in srgb, var(--accent, var(--teal)) 38%, transparent); transform: translateY(-1px); }
.dm-tool-btn:focus-visible { outline: 2px solid var(--accent, var(--teal)); outline-offset: 2px; }
.dm-tool-btn.dm-tool-gif {
  border-color: var(--line-soft);
}

/* Media inside a DM bubble (photo / GIF) */
.dm-float-msg-media {
  border-radius: 10px;
  overflow: hidden;
  max-width: 240px;
  cursor: zoom-in;
}
.dm-float-msg-media img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  image-orientation: from-exif;
}
.dm-float-msg-me .dm-float-msg-media img { border: 1px solid rgba(0,0,0,0.15); }

/* Pending media strip above the input */
.dm-media-preview {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border);
  padding: 8px 10px;
  flex-shrink: 0;
}
.dm-media-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 200px;
}
.dm-media-chip img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.dm-media-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 5px;
}
.dm-media-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-media-remove:hover { border-color: var(--text-muted); }

/* GIF picker + emoji picker — docked above input (float + big-mode Messages) */
#dm-float-panel .gif-picker,
#dm-float-panel .ep-panel,
.dm-page .gif-picker,
.dm-page .ep-panel {
  position: fixed;
  margin: 0;
  flex-shrink: 0;
  z-index: 10001;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
#dm-float-panel .gif-picker,
.dm-page .gif-picker { width: min(360px, calc(100vw - 24px)); max-height: min(380px, 52vh); display: flex; flex-direction: column; overscroll-behavior: contain; }
#dm-float-panel .gif-picker .gif-results,
.dm-page .gif-picker .gif-results { overflow-y: auto; max-height: 300px; }

/* ============================================================
   Full-page Messages (Threads-style mode)
   ============================================================ */
.dm-page {
  display: flex;
  height: calc(100vh - 150px);
  min-height: 460px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Left pane — conversation list */
.dm-page-side {
  width: 340px;
  min-width: 300px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-darker, rgba(255,255,255,0.015));
}
.dm-page-side-head {
  padding: 20px 20px 10px;
  flex-shrink: 0;
}
.dm-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.dm-page-search {
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.dm-page-search input {
  width: 100%;
  padding: 9px 16px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}
.dm-page-search input:focus { border-color: rgba(48,213,200,0.4); }
.dm-page-search input::placeholder { color: var(--text-very-muted); }
.dm-page-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.dm-page-tabs button {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dm-page-tabs button:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.dm-page-tabs button.active {
  background: var(--text);
  color: #0a0a0c;
  border-color: var(--text);
}
.dm-page-conv-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}
.dm-page-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.12s;
}
.dm-page-conv-item:hover { background: rgba(255,255,255,0.03); }
.dm-page-conv-item.active { background: rgba(255,255,255,0.055); }
.dm-page-conv-info { min-width: 0; flex: 1; }
.dm-page-conv-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-page-conv-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.dm-page-conv-dot { opacity: 0.5; margin: 0 2px; }

/* Right pane — thread */
.dm-page-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg, transparent);
}
.dm-page-thread {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.dm-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.dm-page-header-avatar { flex-shrink: 0; display: flex; }
.dm-page-header-name { display: flex; flex-direction: column; min-width: 0; }
.dm-page-header-display { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.dm-page-header-handle { font-size: 0.75rem; color: var(--text-muted); }
.dm-page-back {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 8px;
  flex-shrink: 0;
}
.dm-page-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dm-page-time {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-very-muted);
  margin: 18px 0 10px;
  flex-shrink: 0;
}
.dm-page-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 68%;
}
.dm-page-msg-them { align-self: flex-start; }
.dm-page-msg-me { align-self: flex-end; justify-content: flex-end; }
.dm-page-ava { flex-shrink: 0; width: 28px; display: flex; }
.dm-page-ava-spacer { width: 28px; }
.dm-page-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 18px;
  word-break: break-word;
}
.dm-page-msg-them .dm-page-bubble {
  background: var(--surface-2, rgba(255,255,255,0.06));
  border: 1px solid var(--line-soft);
  color: var(--text);
}
.dm-page-msg-me .dm-page-bubble {
  background: var(--teal);
  color: #0a0a0c;
}
/* Threads-style tail corners on group starts/ends */
.dm-page-msg-them.dm-g-start .dm-page-bubble { border-top-left-radius: 6px; }
.dm-page-msg-them.dm-g-end .dm-page-bubble { border-bottom-left-radius: 6px; }
.dm-page-msg-me.dm-g-start .dm-page-bubble { border-top-right-radius: 6px; }
.dm-page-msg-me.dm-g-end .dm-page-bubble { border-bottom-right-radius: 6px; }
.dm-page-bubble-text { white-space: pre-wrap; }
/* quoted + media variants inside page bubbles */
.dm-page-msg-me .dm-float-quoted { border-left-color: #fff; background: rgba(255,255,255,0.18); }
.dm-page-msg-me .dm-float-quoted-from { color: #fff; }
.dm-page-msg-me .dm-float-msg-media img { border: 1px solid rgba(0,0,0,0.15); }
.dm-page-thread-empty {
  margin: auto;
  text-align: center;
  padding: 40px;
}
.dm-page-empty {
  margin: auto;
  text-align: center;
  padding: 60px 24px;
}
.dm-page-empty-icon { font-size: 2.2rem; opacity: 0.35; margin-bottom: 12px; }
.dm-page-empty-title { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.dm-page-empty-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

/* Page input bar */
.dm-page-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.dm-page-input-bar input {
  flex: 1;
  padding: 10px 18px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.dm-page-input-bar input:focus { border-color: rgba(48,213,200,0.4); }
.dm-page-input-bar input::placeholder { color: var(--text-very-muted); }

/* Float-panel expand button (open full view) */
.dm-float-expand {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.dm-float-expand:hover { color: var(--teal); }

/* Page-thread pop-out toggle (corner mode) */
.dm-page-collapse {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.dm-page-collapse:hover {
  color: var(--teal);
  border-color: rgba(48, 213, 200, 0.4);
  background: rgba(48, 213, 200, 0.06);
}

/* Mobile — list and thread swap full-width */
@media (max-width: 900px) {
  .dm-page { height: calc(100vh - 170px); }
  .dm-page-side { width: 100%; min-width: 0; }
  .dm-page-back { display: block; }
  .dm-page-msg { max-width: 85%; }
  .dm-page.in-thread .dm-page-side { display: none; }
}

/* Input bar inside float panel */
.dm-float-input-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-darkest);
  flex-shrink: 0;
}

.dm-float-input-bar input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
}


.dm-float-input-bar input::placeholder {
  color: var(--text-muted);
}

.dm-float-send {
  padding: 6px 16px;
  background: var(--bg-darkest);
  color: #30d5c8;
  border: 1.5px solid #30d5c8;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}


.dm-float-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Empty state inside float */
.dm-float-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  gap: 8px;
}

.dm-float-empty .icon {
  font-size: 2rem;
  opacity: 0.4;
}

/* New DM form inside float */
.dm-float-new-form {
  padding: 16px;
}

.dm-float-new-form .auth-field {
  margin-bottom: 12px;
}

.dm-float-new-form .auth-field label {
  font-size: 0.8rem;
}

.dm-float-new-form .auth-field input {
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Mobile float panel */
@media (max-width: 600px) {
  .dm-float-panel {
    width: 100%;
    right: 0;
    height: calc(100vh - 60px);
    bottom: 60px;
    border-radius: 0;
  }

  .dm-float-msg {
    max-width: 88%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   GRAND OPENING — Apple Quality × Dystopian Quantum Tech Luxury
   Premium UI overhaul: alignments, detailing, spacing, glow
   ═══════════════════════════════════════════════════════════════════ */

/* ── Left Nav Premium ───────────────────────────────────────────── */
.left-nav {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.left-nav-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 12px 8px;
}

/* ── FAB Premium ────────────────────────────────────────────────── */
.post-fab {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  backdrop-filter: blur(12px);
}



.post-fab .fab-icon {
  font-size: 22px;
  font-weight: 300;
  color: #f2f2f5;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}


/* ── Composer Premium ───────────────────────────────────────────── */
.composer-bar {
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.98), rgba(8, 8, 14, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.composer-bar textarea,
.composer-bar input {
  background: rgba(20, 20, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-display);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer-bar textarea:focus,
.composer-bar input:focus {
  border-color: rgba(98, 106, 117, 0.4);
  box-shadow: 0 0 0 3px rgba(98, 106, 117, 0.08), 0 0 16px rgba(98, 106, 117, 0.06);
  outline: none;
}


.compose-modal textarea {
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.compose-modal textarea:focus {
  border-color: #2c2c2e;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  outline: none;
}

/* ── Post Cards Premium ─────────────────────────────────────────── */
.post-card {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}


/* ── Sidebar Cards Premium ──────────────────────────────────────── */
.sidebar-card {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.4);
  border-bottom: 1px solid rgba(98, 106, 117, 0.06);
  background: linear-gradient(90deg, rgba(98, 106, 117, 0.04), transparent);
}

.sidebar-body {
  padding: 8px 0;
}

/* ── Trending / Sub Nets Premium ────────────────────────────────── */
.trend-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(98, 106, 117, 0.04);
  transition: background 0.15s;
  cursor: pointer;
}




.trend-genre {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Buttons Premium ────────────────────────────────────────────── */
.btn-primary {
  background: #30d5c8;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 150ms;
}

.btn-primary:hover {
  background: #0a0a0c;
  color: #30d5c8;
  border: 1px solid #30d5c8;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-follow {
  background: #30d5c8;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 7px 20px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 150ms;
}

.btn-follow:hover {
  background: rgba(255,255,255,0.04);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
  transform: none;
}


/* Message button — AAA style */
.btn-message {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
}


/* ── DM Float Panel Premium ─────────────────────────────────────── */
.dm-float-panel {
  border: 1px solid rgba(98, 106, 117, 0.15);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.98), rgba(8, 8, 14, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(98, 106, 117, 0.12),
    0 0 40px rgba(98, 106, 117, 0.04);
}

.dm-float-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(98, 106, 117, 0.1);
  background: linear-gradient(90deg, rgba(98, 106, 117, 0.06), transparent);
}

.dm-float-conv-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(98, 106, 117, 0.04);
  transition: background 0.15s;
}


/* ── Topbar Premium ─────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid rgba(98, 106, 117, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.98), rgba(6, 6, 12, 0.95));
}

/* ── Input Fields Premium ───────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
  background: rgba(15, 15, 28, 0.6);
  border: 1px solid rgba(98, 106, 117, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-display);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: rgba(98, 106, 117, 0.35);
  box-shadow: 0 0 0 3px rgba(98, 106, 117, 0.06);
  outline: none;
}

/* ── Scrollbar Premium ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}




/* ── Profile Card Premium ───────────────────────────────────────── */
.profile-header {
  border-bottom: 1px solid rgba(98, 106, 117, 0.08);
}

.profile-stats {
  display: flex;
  gap: 24px;
}

.profile-stat {
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s;
}

.profile-stat:hover {
  background: rgba(98, 106, 117, 0.06);
}

/* ── Loading States Premium ─────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 32px;
  color: #30d5c8;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.loading::after {
  content: '';
  display: none;
}

/* ── Empty States Premium ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #8b8d96;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.empty-state .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

/* ── Data Stream Loader ──────────────────────────────────────────── */
.data-stream-loader {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #30d5c8;
  letter-spacing: 0.5px;
  display: inline-block;
}

.data-stream-loader .cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Toast Notifications Premium ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #39d98a;
  padding: 12px 24px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: toastIn 0.3s ease, toastOut 0.5s ease 1.5s forwards;
}

.toast.show {
  opacity: 1;
}

/* ── Genre Tags Premium ─────────────────────────────────────────── */
.genre-filter {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(98, 106, 117, 0.08);
  border: 1px solid rgba(98, 106, 117, 0.15);
  color: #9aa2ad;
  cursor: pointer;
  transition: all 0.2s;
}

.genre-filter:hover,
.genre-filter.active {
  background: rgba(98, 106, 117, 0.15);
  border-color: rgba(98, 106, 117, 0.3);
  box-shadow: 0 0 12px rgba(98, 106, 117, 0.1);
}

/* ── Modal Overlay Premium ──────────────────────────────────────── */
.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Subtle Glow Utility ────────────────────────────────────────── */
.glow-violet {
  box-shadow: 0 0 12px rgba(98, 106, 117, 0.12), 0 0 24px rgba(98, 106, 117, 0.08);
}

.glow-violet-strong {
  box-shadow: 0 0 16px rgba(98, 106, 117, 0.12), 0 0 32px rgba(98, 106, 117, 0.12);
}

/* ── Separator Lines Premium ────────────────────────────────────── */
hr, .divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 106, 117, 0.12), transparent);
  margin: 0;
}

/* ── Creator Profile ────────────────────────────────────────────── */

.creator-profile-header {
  text-align: left;
  padding: 24px;
  padding-right: 90px; /* room for profile-corner-actions (absolutely positioned top-right) */
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(98, 106, 117, 0.08);
  border-radius: 0;
}

.creator-header-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}


.creator-avatar.avatar-online {
  border-color: #39d98a;
  box-shadow: none;
}

.creator-avatar.avatar-offline {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

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

/* Override profile-header .avatar-lg specificity (0-3-0) for creator avatars */
.creator-profile-header .avatar-lg.avatar-online {
  border-color: #39d98a;
  box-shadow: none;
}

.creator-profile-header .avatar-lg.avatar-offline {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

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

.display-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.display-name-row .display-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: monospace;
  color: var(--text);
}

.creator-header-info .handle {
  color: #8b8d96;
  font-size: 12px;
  font-family: monospace;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Creator badge */
.creator-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 123, 212, 0.18), rgba(230, 58, 155, 0.10));
  color: #ffffff;
  border: 1px solid rgba(255, 123, 212, 0.35);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Creator type icon (soccer ball etc.) */
.creator-type-icon {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Stats row — terminal readout */
.creator-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
}

.creator-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.creator-stat-icon {
  display: none;
}

.creator-stat-bracket {
  color: #555;
}

.creator-stat-label {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.creator-stat-value {
  color: #fff;
  font-weight: 700;
}

.creator-stat-separator {
  color: #333;
}

/* Header actions */
.creator-header-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
}

.creator-header-actions .btn-follow {
  margin-top: 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: monospace;
  text-transform: uppercase;
  font-weight: 600;
  background: #30d5c8;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.creator-header-actions .btn-follow:hover {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #FFFFFF;
}

.creator-header-actions .btn-follow.following {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}

.creator-header-actions .btn-follow.following:hover {
  border-color: rgba(255,255,255,0.4);
  color: #FFFFFF;
}

.creator-header-actions .btn-message {
  margin-top: 0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: monospace;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.creator-header-actions .btn-message:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

/* Featured video */
.creator-featured {
  margin-bottom: 24px;
}

.creator-featured-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.creator-video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s;
}

.creator-video-card:hover {
  border-color: var(--border-hover);
}

.creator-video-aspect {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* EYEPLVY provenance ring — violet instead of green */
.creator-video-aspect::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(154, 162, 173, 0.12);
  pointer-events: none;
}

.creator-video-placeholder {
  color: var(--text-very-muted);
}

.creator-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(2, 2, 4, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(154, 162, 173, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.creator-play-btn:hover {
  transform: scale(1.05);
  border-color: rgba(154, 162, 173, 0.5);
}

.creator-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(2, 2, 4, 0.7);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.creator-eyeplvy-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(2, 2, 4, 0.7);
  color: #30d5c8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.creator-video-info {
  padding: 12px 14px;
  background: var(--bg-card);
}

.creator-video-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-video-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Creator tabs — Dark Matrix style */
.creator-tabs {
  border-bottom: 1px solid var(--border);
}

.creator-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #666;
  padding: 14px 20px;
  font-size: 13px;
  font-family: var(--font-display);
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.creator-tabs button.active {
  color: var(--text);
  border-bottom-color: #30d5c8;
}

.creator-tabs button:hover:not(.active) {
  color: var(--teal);
  background: var(--hover-bg);
}

.creator-tabs button svg {
  width: 14px;
  height: 14px;
}

/* Video grid */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.creator-grid-loading,
.creator-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.creator-grid-item {
  cursor: pointer;
}

.creator-grid-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.creator-grid-item:hover .creator-grid-thumb {
  border-color: var(--border-hover);
}

.creator-grid-item-placeholder {
  color: var(--text-very-muted);
}

.creator-grid-hover {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 4, 0);
  transition: background 0.2s;
}

.creator-grid-item:hover .creator-grid-hover {
  background: rgba(2, 2, 4, 0.3);
}

.creator-grid-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(2, 2, 4, 0.75);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.creator-grid-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-grid-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.creator-grid-meta svg {
  width: 12px;
  height: 12px;
}

/* Tab content */
.creator-tab-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 24px 0;
}

.creator-tab-about {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
}

/* Responsive */
@media (max-width: 640px) {
  .creator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .creator-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .creator-header-actions {
    align-items: center;
  }
  .creator-stats-row {
    justify-content: center;
  }
}

/* ── Sidebar Network Search ────────────────────────────────────── */
.sidebar-search {
  position: relative;
}

.sidebar-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.sidebar-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.sidebar-search-input::placeholder {
  color: var(--text-very-muted);
  font-style: normal;
}

.sidebar-search-input:focus {
  border-color: #2c2c2e;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
}

.sidebar-search .search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(5, 5, 12, 0.98);
  border: 1px solid rgba(98, 106, 117, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(98, 106, 117, 0.12);
  z-index: 500;
  max-height: 380px;
  overflow-y: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-search .search-group {
  padding: 10px 14px 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-very-muted);
}

.sidebar-search .search-result {
  padding: 8px 14px;
  border-radius: 0;
  transition: background 0.15s;
}

.sidebar-search .search-result:hover {
  background: rgba(98, 106, 117, 0.06);
}

/* ============================================================
   Surge Times — Spaceport Departure Board
   ============================================================ */

.surge-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #0a0a0c, transparent);
  margin: 0;
  opacity: 0.3;
}

.surge-header {
  padding: 12px 16px 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.4);
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Scanline overlay */
.surge-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
}

.surge-icon {
  font-size: 0.8rem;
  animation: surge-blink 2s ease-in-out infinite;
}

@keyframes surge-blink {
  0%, 100% { opacity: 1; text-shadow: none; }
  50% { opacity: 0.2; text-shadow: none; }
}

.surge-body {
  padding: 2px 0 !important;
  position: relative;
  overflow: hidden;
}

/* Scanline sweep animation on the body */
.surge-body::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0a0a0c, transparent);
  opacity: 0.15;
  animation: surge-sweep 4s linear infinite;
  pointer-events: none;
}

@keyframes surge-sweep {
  0% { top: 0; }
  100% { top: 100%; }
}

.surge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
  opacity: 0;
  animation: surge-row-in 0.4s ease forwards;
}

@keyframes surge-row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.surge-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.surge-row:hover .surge-city {
  text-shadow: none;
}

.surge-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal), 0 0 14px rgba(0, 229, 160, 0.12);
  animation: surge-dot-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.surge-row:nth-child(2n) .surge-indicator { animation-delay: 0.4s; }
.surge-row:nth-child(3n) .surge-indicator { animation-delay: 0.8s; }
.surge-row:nth-child(5n) .surge-indicator { animation-delay: 1.2s; }

@keyframes surge-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--teal), 0 0 14px rgba(0, 229, 160, 0.12); transform: scale(1); }
  50% { opacity: 0.3; box-shadow: 0 0 2px var(--teal); transform: scale(0.7); }
}

.surge-code {
  font-weight: 700;
  font-size: 0.78rem;
  min-width: 22px;
  letter-spacing: 0.08em;
  color: rgba(235, 235, 245, 0.4);
  text-shadow: none;
  animation: surge-glow 3s ease-in-out infinite;
}

@keyframes surge-glow {
  0%, 100% { text-shadow: none; }
  50% { text-shadow: none; }
}

.surge-city {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(235, 235, 245, 0.4);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: none;
  animation: surge-city-pulse 4s ease-in-out infinite;
}

.surge-row:nth-child(2n) .surge-city { animation-delay: 0.6s; }
.surge-row:nth-child(3n) .surge-city { animation-delay: 1.2s; }
.surge-row:nth-child(5n) .surge-city { animation-delay: 1.8s; }

@keyframes surge-city-pulse {
  0%, 100% { opacity: 0.85; text-shadow: none; }
  50% { opacity: 1; text-shadow: none; }
}

.surge-meta {
  font-size: 0.6rem;
  color: rgba(235, 235, 245, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surge-count {
  font-size: 0.68rem;
  color: rgba(235, 235, 245, 0.4);
  min-width: 16px;
  text-align: right;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.surge-arrow {
  font-size: 0.6rem;
  min-width: 12px;
  text-align: center;
}

.surge-arrow.trend-up {
  color: #00e5a0;
  text-shadow: 0 0 8px rgba(0, 229, 160, 0.12);
  animation: surge-arrow-pulse 2s ease-in-out infinite;
}

.surge-arrow.trend-down {
  color: var(--danger);
  text-shadow: 0 0 8px rgba(255, 71, 87, 0.12);
}

.surge-arrow.trend-stable {
  color: rgba(0, 229, 160, 0.3);
}

@keyframes surge-arrow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Terminal empty state */
.terminal-empty {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(235, 235, 245, 0.4);
  opacity: 0.5;
  text-shadow: none;
  animation: terminal-blink 1.5s step-end infinite;
}

@keyframes terminal-blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.2; }
}

/* ============================================================
   Stories Row — Horizontal Scrollable Avatars
   ============================================================ */

#stories-row {
  margin-bottom: 16px;
  overflow: hidden;
}

.stories-track {
  display: flex;
  gap: 14px;
  padding: 8px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stories-track::-webkit-scrollbar {
  display: none;
}

.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s;
}

.story-bubble:hover {
  transform: scale(1.08);
}

.story-ring {
  width: 64px;
  height: 64px;
  border-radius: 2px;
  padding: 2px;
  background: linear-gradient(135deg, #0a0a0c, #0a0a0c, #0a0a0c);
  box-shadow: 0 0 8px rgba(154, 162, 173, 0.12);
}

@keyframes ring-rotate {
  0% { background: linear-gradient(0deg, #0a0a0c, #0a0a0c, #0a0a0c); }
  25% { background: linear-gradient(90deg, #0a0a0c, #0a0a0c, #0a0a0c); }
  50% { background: linear-gradient(180deg, #0a0a0c, #0a0a0c, #0a0a0c); }
  75% { background: linear-gradient(270deg, #0a0a0c, #0a0a0c, #0a0a0c); }
  100% { background: linear-gradient(360deg, #0a0a0c, #0a0a0c, #0a0a0c); }
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--bg-card);
  border: 2px solid var(--bg-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.story-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* --- Add Story (+) button ring --- */
.story-ring--add {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.35));
  box-shadow: none;
  animation: none;
}

.story-ring--add .story-avatar {
  background: var(--bg-card);
}

.story-add-icon {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.story-ring--demo {
  background: rgba(0, 180, 160, 0.25);
  box-shadow: none;
  animation: none;
}

/* --- Story Modal (Add Story) --- */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.story-modal {
  background: linear-gradient(150deg, #151b2a 0%, #0d111b 72%);
  border: 1px solid rgba(93, 202, 165, 0.28);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(154, 162, 173, 0.08);
  animation: modal-in 0.18s ease-out;
}

.story-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
}


.story-modal-close {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 1;
}


.story-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-caption-input {
  background: rgba(4, 8, 15, 0.76);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 15px 16px;
  resize: vertical;
  min-height: 112px;
  outline: none;
}




.story-modal .video-preview {
  border-color: rgba(154, 162, 173, 0.2);
  margin-top: 0;
}

.story-modal .video-preview video {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  background: #000;
}

.story-modal .video-preview .preview-remove {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}


.story-modal .video-duration-indicator {
  background: rgba(154, 162, 173, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  position: absolute;
  bottom: 6px;
  left: 6px;
}

.story-viewer-video {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #000;
}





.story-submit-btn:hover {
  opacity: 0.85;
}

/* --- Story Viewer (full-screen overlay) --- */
.story-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 16px;
}

.story-viewer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.story-viewer-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 2px solid #30d5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFFFFF;
  overflow: hidden;
  flex-shrink: 0;
}

.story-viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.story-viewer-info {
  display: flex;
  flex-direction: column;
}

.story-viewer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.story-viewer-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.story-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-viewer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.story-viewer-close:hover {
  color: var(--text);
}

.story-delete-btn {
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.3);
  border-radius: 6px;
  color: #dc3232;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.story-delete-btn:hover {
  background: rgba(220, 50, 50, 0.25);
}

.story-viewer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 200px;
}

.story-viewer-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 16px;
}

.story-viewer-caption {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}

.story-viewer-caption--empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

/* ============================================================
   Custom Wave Audio Player — Voice Notes
   ============================================================ */

.voice-player {
  display: flex;
  flex-direction: column;
  background: var(--bg-darkest);
  border: 1px solid rgba(20, 224, 200, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(20, 224, 200, 0.04);
}

.voice-player:hover {
  border-color: rgba(20, 224, 200, 0.28);
  box-shadow: 0 0 20px rgba(20, 224, 200, 0.1);
}

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

.voice-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.02), rgba(0, 212, 255, 0.1));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.voice-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.voice-play-btn:active {
  transform: scale(0.95);
}

.voice-play-btn svg {
  fill: #30d5c8;
}

.voice-player.playing .voice-play-btn {
  background: linear-gradient(135deg, #14E0C8, #00d4ff);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.voice-player.playing .voice-play-btn svg {
  fill: #04140F;
}

.voice-waveform {
  flex: 1;
  height: 36px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.voice-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5px;
}

.voice-waveform-bar {
  flex: 1;
  min-width: 2px;
  max-width: 4px;
  background: rgba(48, 213, 200, 0.12);
  border-radius: 1px;
  transition: background 0.15s;
  transform-origin: center;
}

.voice-player.playing .voice-waveform-bar.active {
  background: linear-gradient(180deg, #14E0C8, #00d4ff);
  box-shadow: 0 0 6px rgba(20, 224, 200, 0.12);
}

.voice-player.playing .voice-waveform-bar.behind {
  background: rgba(48, 213, 200, 0.04);
}

.voice-player.playing .voice-waveform-bar.ahead {
  background: rgba(255, 255, 255, 0.08);
}

.voice-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 75px;
  text-align: right;
  flex-shrink: 0;
}

.voice-progress-wrap {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  cursor: pointer;
  position: relative;
}

.voice-progress-fill {
  height: 100%;
  background: #0a0a0c;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.voice-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #0a0a0c;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.voice-progress-wrap:hover .voice-progress-fill::after {
  opacity: 1;
}

/* ================================================================
   Story Overlay Editor — Instagram-style text & sticker overlays
   ================================================================ */

.story-editor-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.story-editor-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex: 1;
}

.story-editor-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-editor-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0c 0%, #1a0a2e 40%, #0d1f3c 70%, #0a0a0c 100%);
}

.story-editor-layers {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Overlay elements on canvas */
.se-overlay-element {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.08s;
}

.se-overlay-element:active {
  cursor: grabbing;
}

.se-overlay-element.se-overlay-selected {
  border-color: rgba(93, 202, 165, 0.8);
  box-shadow: 0 0 0 3px rgba(93, 202, 165, 0.12);
}

.se-overlay-pop {
  animation: se-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes se-pop-in {
  0% { transform: translate(-50%, -50%) translate(var(--x, 50%), var(--y, 40%)) scale(0); opacity: 0; }
  100% { transform: translate(-50%, -50%) translate(var(--x, 50%), var(--y, 40%)) scale(1); opacity: 1; }
}

.se-overlay-text {
  white-space: nowrap;
  line-height: 1.3;
  pointer-events: none;
}

.se-overlay-sticker {
  line-height: 1;
  pointer-events: none;
}

.se-overlay-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 50, 50, 0.9);
  border: 2px solid #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
  padding: 0;
}

.se-overlay-element:hover .se-overlay-delete,
.se-overlay-element.se-overlay-selected .se-overlay-delete {
  opacity: 1;
}

.se-overlay-grip {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  opacity: 0;
}

.se-overlay-element:hover .se-overlay-grip,
.se-overlay-element.se-overlay-selected .se-overlay-grip {
  opacity: 1;
}

/* Bottom toolbar */
.story-editor-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
  z-index: 20;
}

.se-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 54px;
  backdrop-filter: blur(8px);
}

.se-tool-btn:hover {
  background: rgba(255,255,255,0.2);
}

.se-tool-btn svg {
  flex-shrink: 0;
}

.se-tool-done {
  background: #0a0a0c;
  border-color: #2c2c2e;
  color: #000;
}

.se-tool-done:hover {
  opacity: 0.85;
}

.se-font-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.se-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
}

/* Size bar */
.story-editor-size-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 16px;
  z-index: 25;
  backdrop-filter: blur(8px);
}

.se-size-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.se-size-btn:hover {
  background: rgba(255,255,255,0.2);
}

.se-size-label {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* Sticker tray */
.story-editor-sticker-tray {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 12px;
  z-index: 25;
  backdrop-filter: blur(8px);
  max-width: 90vw;
}

.se-sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.se-sticker-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.se-sticker-item:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.15);
}

/* Color tray */
.story-editor-color-tray {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 10px 16px;
  z-index: 25;
  backdrop-filter: blur(8px);
}

.se-color-grid {
  display: flex;
  gap: 8px;
  align-items: center;
}

.se-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.se-color-swatch:hover {
  transform: scale(1.15);
}

.se-color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 1px 4px rgba(0,0,0,0.4);
}

/* Story viewer overlay rendering */
.sv-media-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-media-wrap--text {
  min-height: 300px;
  background: linear-gradient(135deg, #0a0a0c 0%, #1a0a2e 40%, #0d1f3c 70%, #0a0a0c 100%);
  border-radius: 8px;
}

.sv-overlay-text,
.sv-overlay-sticker {
  text-align: center;
}

.story-viewer-body--gradient {
  background: linear-gradient(180deg, rgba(26,10,46,0.3) 0%, rgba(13,31,60,0.3) 100%);
}

/* ============================================================
   EYEPLVY — Get Quote Button & Modal
   ============================================================ */

.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(48, 213, 200, 0.04);
  border-radius: 8px;
  background: transparent;
  color: var(--accent, #30d5c8);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-quote:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.3);
}

.creator-header-actions .btn-quote {
  margin-top: 0;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 13px;
  font-family: monospace;
  text-transform: uppercase;
  font-weight: 600;
}

/* Quote Modal Overlay */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Quote Modal Card */
.quote-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card, rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  margin: 16px;
}

.quote-modal-header {
  position: relative;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

.quote-modal-subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted, #8b8b9e);
}

.quote-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #8b8b9e);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quote-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #fff);
}

.quote-modal-body {
  padding: 20px 24px;
}

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

.quote-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #b0b0c0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quote-field label .required {
  color: var(--accent, #30d5c8);
}

.quote-field textarea,
.quote-field input,
.quote-field select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.quote-field textarea:focus,
.quote-field input:focus,
.quote-field select:focus {
  outline: none;
  border-color: var(--accent, #2c2c2e);
}

.quote-field textarea {
  resize: vertical;
  min-height: 80px;
}

.quote-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.quote-field select option {
  background: var(--bg-card, rgba(255, 255, 255, 0.1));
  color: var(--text-primary, #fff);
}

.quote-field-row {
  display: flex;
  gap: 12px;
}

.quote-field-row .quote-field {
  flex: 1;
}

.quote-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quote-cancel-btn {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #8b8b9e);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quote-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #fff);
}

.quote-submit-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #0a0a0c);
  color: #0a1f1c;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quote-submit-btn:hover {
  filter: brightness(1.1);
}

.quote-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quote-success {
  text-align: center;
  padding: 32px 16px;
}

.quote-success h4 {
  margin: 16px 0 8px;
  font-size: 1.1rem;
  color: var(--text-primary, #fff);
}

.quote-success p {
  font-size: 0.9rem;
  color: var(--text-muted, #8b8b9e);
  line-height: 1.5;
}

/* Creator Dashboard */
.creator-dashboard {
  padding: 16px;
}

.creator-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .creator-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.creator-dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03);
}


.creator-dashboard-card.full-width {
  grid-column: 1 / -1;
}

.dashboard-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: rgba(98, 106, 117, 0.08);
  border-radius: 8px;
  min-width: 80px;
}

.dashboard-stat .num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

.dashboard-stat .label {
  font-size: 0.7rem;
  color: var(--text-muted, #888);
  margin-top: 2px;
}

.dashboard-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Dashboard form fields */
.dash-field {
  margin-bottom: 12px;
}

.dash-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-field input,
.dash-field textarea,
.dash-field select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-input, rgba(30, 30, 45, 0.9));
  border: 1px solid rgba(98, 106, 117, 0.2);
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-size: 0.85rem;
  font-family: inherit;
}

.dash-field input:focus,
.dash-field textarea:focus,
.dash-field select:focus {
  outline: none;
  border-color: var(--purple, #9aa2ad);
}

.dash-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-dash-upload {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #626a75, #9aa2ad);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-dash-upload:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* Video list in dashboard */
.dash-video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(98, 106, 117, 0.1);
}

.dash-video-item:last-child {
  border-bottom: none;
}

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

.dash-video-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.dash-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-status-badge.published {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dash-status-badge.draft {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.dash-status-badge.scheduled {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}


.btn-dash-sm:hover {
  background: rgba(255,255,255,0.06);
}

.btn-dash-sm.danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-dash-sm.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Quote request items */
.dash-quote-item {
  padding: 12px;
  border-bottom: 1px solid rgba(98, 106, 117, 0.1);
}

.dash-quote-item:last-child {
  border-bottom: none;
}

.dash-quote-desc {
  font-size: 0.82rem;
  color: var(--text-primary, #fff);
  margin-bottom: 6px;
}

.dash-quote-meta {
  font-size: 0.72rem;
  color: var(--text-muted, #888);
  margin-bottom: 8px;
}

.dash-quote-actions {
  display: flex;
  gap: 8px;
}

.btn-dash-accept {
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-dash-decline {
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
}

.dash-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted, #888);
  font-size: 0.82rem;
}

/* ============================================================
   @miku Verification Badges & Reply Styling
   ============================================================ */

/* Miku's reply card — subtle teal accent */
.reply-card.miku-reply {
  border-left: 2px solid #30d5c8;
  background: rgba(0, 212, 255, 0.03);
  border-radius: 8px;
}

.reply-card.miku-reply .post-body {
  white-space: pre-line;
}

/* Verification badge — checkmark or cross */
.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.verify-badge.verify-pass {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.12);
}

.verify-badge.verify-fail {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.12);
}

.verify-badge.verify-unknown {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(107, 114, 128, 0.12);
}

/* Confidence tag inside Miku's reply */
.verify-confidence {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
  vertical-align: middle;
}

.verify-confidence.high {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.verify-confidence.medium {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.verify-confidence.low {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Miku verification loading indicator */
.verify-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: #30d5c8;
  font-size: 0.85rem;
  animation: mikuPulse 1.5s ease-in-out infinite;
}

.verify-loading .miku-spinner {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #30d5c8;
  display: inline-block;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  animation: none;
  flex-shrink: 0;
}

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

@keyframes mikuSpin {
  to { transform: rotate(360deg); }
}

/* Miku name styling in reply header */
.name-miku {
  color: #30d5c8 !important;
}

/* Miku verified badge — cyan gradient, static + crisp (no glow) */
.verified-badge.miku-verify-badge {
  background: linear-gradient(135deg, #4dc8ff, #0f9fe0);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.25);
  animation: none;
}

@keyframes mikuGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 1px 2px rgba(0,0,0,0.35), 0 0 8px rgba(0, 212, 255, 0.12); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 1px 2px rgba(0,0,0,0.35), 0 0 14px rgba(0, 212, 255, 0.12); }
}

/* Upload Error Modal — persistent overlay for oversized files */
.upload-error-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.upload-error-box {
  background: #0d0d1a;
  border: 1px solid #ff4466;
  border-radius: 16px;
  padding: 32px;
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 30px rgba(255, 68, 102, 0.12);
  animation: slideUp 0.25s ease;
}
.upload-error-msg {
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.5;
}
.upload-error-close {
  background: linear-gradient(135deg, #ff4466, #cc2244);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-error-close:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 68, 102, 0.12);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Edit Post UI */
.btn-edit {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.btn-edit:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.edit-textarea {
  width: 100%;
  background: rgba(15, 15, 28, 0.9);
  border: 1px solid rgba(37, 44, 54, 0.3);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px;
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.edit-textarea:focus {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(154, 162, 173, 0.1);
}
.edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}
.edit-save-btn, .edit-cancel-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.edit-save-btn {
  background: linear-gradient(135deg, #0a0a0c, rgba(255, 255, 255, 0.1));
  color: #fff;
}
.edit-save-btn:hover {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: scale(1.02);
}
.edit-cancel-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.edit-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.edited-tag {
  color: var(--text-dim);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ============================================================
   Subnets — Genre-based communities
   ============================================================ */

/* Sidebar subnet items */
.subnet-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.subnet-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--subnet-color, rgba(37, 44, 54, 0.2));
  box-shadow: 0 0 8px color-mix(in srgb, var(--subnet-color, #252c36) 20%, transparent);
}
.subnet-nav-item.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--subnet-color, #252c36) 15%, transparent), transparent);
  color: var(--text);
  border-color: var(--subnet-color, rgba(37, 44, 54, 0.3));
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--subnet-color, #252c36) 8%, transparent);
}
.subnet-nav-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.subnet-nav-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subnet-nav-count {
  font-size: 10px;
  color: var(--subnet-color, var(--text-muted));
  background: color-mix(in srgb, var(--subnet-color, #252c36) 12%, transparent);
  padding: 1px 6px;
  border-radius: 8px;
  flex-shrink: 0;
  font-weight: 600;
}

/* Sidebar subnet styles */
.subnet-sidebar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  cursor: pointer;
  text-transform: uppercase;
  user-select: none;
}
.subnet-sidebar-header:hover { color: var(--text); }
.subnet-toggle-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.subnet-sidebar-count {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 8px;
}
.subnet-sidebar-empty {
  padding: 4px 12px 8px;
}
.subnet-add-link {
  font-size: 12px;
  color: rgba(235, 235, 245, 0.4);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.subnet-add-link:hover { opacity: 1; }
.subnet-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.subnet-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--subnet-color, #252c36);
  box-shadow: 0 0 6px var(--subnet-color, #252c36);
  animation: subnetPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes subnetPulse {
  0%, 100% { box-shadow: 0 0 4px var(--subnet-color, #252c36); opacity: 0.7; }
  50% { box-shadow: 0 0 10px var(--subnet-color, #252c36); opacity: 1; }
}
.subnet-nav-more {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.subnet-nav-more:hover { color: #FFFFFF; }

/* Subnet grid card pin button */
.subnet-pin-btn {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,15,28,0.8);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.subnet-pin-btn:hover {
  border-color: var(--subnet-color, #FFFFFF);
  color: var(--subnet-color, #FFFFFF);
  box-shadow: 0 0 8px color-mix(in srgb, var(--subnet-color, #FFFFFF) 30%, transparent);
}
.subnet-pin-btn.pinned {
  background: var(--subnet-color, #FFFFFF);
  color: #fff;
  border-color: var(--subnet-color, #FFFFFF);
}
/* Subnets grid view — club rooms */
.subnets-grid-view {
  padding: 24px 20px 40px;
  max-width: 960px;
}
.subnets-grid-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(48, 213, 200, 0.12);
}
.subnets-grid-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--riot);
  margin-bottom: 6px;
}
.subnets-grid-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.subnets-grid-header p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
  max-width: 42em;
  line-height: 1.45;
}
.subnets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.subnets-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed rgba(48, 213, 200, 0.25);
  background: rgba(255, 255, 255, 0.015);
}
.subnets-empty-mark {
  font-size: 1.8rem;
  color: var(--teal);
  margin-bottom: 10px;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.subnets-empty-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 6px;
}
.subnets-empty-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Subnet club-room card */
.subnet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, transparent 42%),
    linear-gradient(340deg, rgba(37, 44, 54, 0.05) 0%, transparent 40%),
    #0a0a0c;
  border: 1px solid rgba(48, 213, 200, 0.18);
  border-left: 3px solid var(--subnet-color, var(--teal));
  border-radius: 2px;
  padding: 18px 16px 14px;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s, box-shadow 0.22s;
  overflow: hidden;
  min-height: 196px;
}
.subnet-card.pinned {
  border-color: rgba(48, 213, 200, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.subnet-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 0 rgba(0, 0, 0, 0),
    0 0 0 1px rgba(37, 44, 54, 0.12);
}
.subnet-card-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--subnet-color, var(--teal)) 28%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.25s;
}
.subnet-card:hover .subnet-card-glow {
  opacity: 1;
}
.subnet-card-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  opacity: 0.5;
}
.subnet-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.subnet-card-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.subnet-room-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--riot);
  border: 1px solid rgba(37, 44, 54, 0.35);
  padding: 2px 6px;
  background: rgba(37, 44, 54, 0.08);
}
.subnet-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subnet-color, var(--teal));
  border: 1px solid color-mix(in srgb, var(--subnet-color, var(--teal)) 35%, transparent);
  background: color-mix(in srgb, var(--subnet-color, var(--teal)) 10%, transparent);
  border-radius: 2px;
}
.subnet-card-icon svg {
  width: 22px;
  height: 22px;
}
.subnet-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.subnet-card-slug {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  opacity: 0.75;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.subnet-card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  flex: 1;
}
.subnet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.subnet-card-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Subnet browse — filter/sort bar */
.subnets-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.subnets-filter-pills {
  display: flex;
  gap: 6px;
}
.subnets-filter-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.subnets-filter-pill:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(48, 213, 200, 0.25);
}
.subnets-filter-pill.active {
  background: rgba(48, 213, 200, 0.12);
  color: var(--teal);
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.subnets-sort-select {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
.subnets-sort-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.subnets-sort-select option {
  background: #121220;
  color: var(--text);
}

/* Subnet browse — Join / Joined button */
.subnet-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.subnet-join-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--teal);
  background: rgba(48, 213, 200, 0.12);
  color: var(--teal);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.subnet-join-btn:hover {
  background: var(--teal);
  color: #000;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.subnet-joined-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid rgba(37, 44, 54, 0.4);
  background: rgba(37, 44, 54, 0.1);
  color: var(--riot);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
}

/* Subnet feed header bar */
.subnet-feed-header {
  padding: 16px 20px;
  margin-bottom: 0;
  border-radius: 0;
}
.subnet-feed-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subnet-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.subnet-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.subnet-feed-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
}
.subnet-feed-icon {
  font-size: 1.3rem;
}
.subnet-feed-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Subnet composer box */
.subnet-compose-box {
  margin-bottom: 4px;
}
.subnet-compose-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 16px;
  border: 1px solid;
  margin: 12px 0 4px;
  font-weight: 500;
}

/* Subnet tag on post cards */
.post-subnet-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  margin: 6px 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.post-subnet-tag .subnet-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.post-subnet-tag .subnet-tag-icon svg {
  width: 14px;
  height: 14px;
}
.post-subnet-tag:hover {
  color: rgba(235, 235, 245, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

/* Subnet tag chip in compose modal */
#subnet-tag-chip {
  animation: fadeIn 0.15s ease;
}

/* Subnet card animation */
@keyframes subnetFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.subnets-grid .subnet-card {
  animation: subnetFadeIn 0.3s ease forwards;
  opacity: 0;
}
.subnets-grid .subnet-card:nth-child(1) { animation-delay: 0ms; }
.subnets-grid .subnet-card:nth-child(2) { animation-delay: 50ms; }
.subnets-grid .subnet-card:nth-child(3) { animation-delay: 100ms; }
.subnets-grid .subnet-card:nth-child(4) { animation-delay: 150ms; }
.subnets-grid .subnet-card:nth-child(5) { animation-delay: 200ms; }
.subnets-grid .subnet-card:nth-child(6) { animation-delay: 250ms; }
.subnets-grid .subnet-card:nth-child(7) { animation-delay: 300ms; }
.subnets-grid .subnet-card:nth-child(8) { animation-delay: 350ms; }
.subnets-grid .subnet-card:nth-child(9) { animation-delay: 400ms; }
.subnets-grid .subnet-card:nth-child(10) { animation-delay: 450ms; }
.subnets-grid .subnet-card:nth-child(11) { animation-delay: 500ms; }
.subnets-grid .subnet-card:nth-child(12) { animation-delay: 550ms; }

/* === SIDEBAR CONSOLIDATION STYLES === */

/* Search input in sidebar */
.sidebar-search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px 0 12px;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: border-color 0.2s;
}


/* Section headers (DISCOVER) */
.left-nav-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5f5e5a);
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  margin-top: 8px;
}

.section-chevron {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}
.left-nav-section-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.left-nav-section-body.collapsed {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* Section label (APPS) */
.left-nav-section-label {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-very-muted, #484868);
  text-transform: uppercase;
  border-top: 1px solid var(--border, #0e0e20);
  margin-top: 8px;
}

/* Account row */
.left-nav-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(13, 18, 28, 0.8);
  border: 1px solid rgba(27, 34, 48, 0.6);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: linear-gradient(135deg, #626a75, #9aa2ad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.account-info {
  flex: 1;
  min-width: 0;
}
.account-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e6f7fb);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Account flyout */
.account-flyout {
  position: absolute;
  bottom: 70px;
  left: 12px;
  right: 12px;
  background: rgba(10, 10, 20, 0.98);
  border: 1px solid rgba(98, 106, 117, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  z-index: 100;
  padding: 6px;
  animation: flyout-in 0.15s ease;
}
@keyframes flyout-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.account-flyout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim, #b8b8c8);
  cursor: pointer;
  transition: all 0.15s;
}

.account-flyout-item.danger {
  color: var(--danger, #ff453a);
}
.account-flyout-item.danger:hover {
  background: rgba(255, 71, 87, 0.1);
}
.account-flyout-divider {
  height: 1px;
  background: var(--border, #0e0e20);
  margin: 4px 8px;
}

/* FAB menu */
.fab-menu {
  position: fixed;
  bottom: 90px;
  left: 24px;
  background: rgba(10, 10, 20, 0.98);
  border: 1px solid rgba(98, 106, 117, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  z-index: 160;
  padding: 6px;
  min-width: 160px;
  animation: flyout-in 0.15s ease;
}
.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim, #b8b8c8);
  cursor: pointer;
  transition: all 0.15s;
}


/* Badge pill unified */
.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #3c3489;
  color: #cecbf6;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Right panel "Active now" module */
.active-now-module {
  padding: 16px 20px;
}
.active-now-module .active-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.active-now-module .active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.12);
}
.active-now-module .active-name {
  font-size: 13px;
  color: var(--text-dim);
}

/* === NULLXRE SEARCH === */
.nullxre-search {
  position: relative;
  margin-bottom: 4px;
}

.nullxre-search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.nullxre-search-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(235, 235, 245, 0.4);
  text-shadow: none;
}

.nullxre-search-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-very-muted);
  background: rgba(98, 106, 117, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

.nullxre-search-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(98, 106, 117, 0.04);
  border: 1px solid rgba(98, 106, 117, 0.06);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.nullxre-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px var(--purple);
  animation: hintPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* Nullxre search result with trending velocity */
.nullxre-trend-velocity {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.nullxre-trend-velocity.hot {
  color: #ff453a;
  background: rgba(255, 71, 87, 0.1);
}

.nullxre-trend-velocity.warm {
  color: #ffa502;
  background: rgba(255, 165, 2, 0.1);
}

.nullxre-trend-velocity.rising {
  color: #2ed573;
  background: rgba(46, 213, 115, 0.1);
}

/* ── Command Palette (Ctrl+K) ────────────────────────────── */
.tr-cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.tr-cmd-modal {
  width: 560px;
  max-width: 90vw;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 1px rgba(176, 38, 255, 0.12);
}

.tr-cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tr-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
}


.tr-cmd-results {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.tr-cmd-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 100ms;
  border-bottom: 1px solid #0d0d12;
}


.tr-cmd-result.selected {
  border-left: 2px solid #30d5c8;
}

.tr-cmd-result-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
}


.tr-cmd-result-label {
  font-family: var(--font-display);
  font-size: 13px;
  color: #ccc;
}


.tr-cmd-result-shortcut {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 11px;
  color: #555;
  letter-spacing: 0.05em;
}

.tr-cmd-footer {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #060609;
}

.tr-cmd-hint {
  font-family: var(--font-display);
  font-size: 11px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-cmd-hint kbd {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  font-size: 10px;
  font-family: var(--font-display);
  color: #888;
}

.tr-cmd-empty {
  padding: 24px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: #555;
}

/* ============================================================
   TealRiot — AAA Luxury-Tech Overhaul
   ============================================================ */

/* Post text weight */
.post-body {
  font-size: 14px;
  font-weight: 300;
}

/* Active nav indicator */
.left-nav-item.active {
  color: #0a0a0c;
}

/* Micro-interactions */
@keyframes fade-in-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card.new-post {
  animation: fade-in-slide-down 300ms ease-out;
}

/* Like button heartbeat */
.like-btn.liked {
  color: #14E0C8 !important;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.like-btn.liked svg {
  animation: heartbeat 100ms ease-in-out;
}

/* Surge city tags */
.surge-city-tag {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: border-color 200ms;
}

.surge-city-tag:hover {
  border-color: #2c2c2e;
}

/* ============================================================
   AAA Dark Matrix — Profile Page Overhaul
   ============================================================ */

/* Custom CSS Editor Modal */
.css-editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.css-editor-container {
  width: 900px;
  max-width: 90vw;
  height: 600px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
}

.css-editor-textarea {
  flex: 1;
  background: #0a0a0c;
  color: rgba(235, 235, 245, 0.4);
  border: none;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  resize: none;
  outline: none;
  line-height: 1.6;
}

.css-editor-preview {
  flex: 1;
  background: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.css-editor-buttons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.css-editor-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 150ms;
}

.css-editor-btn:hover {
  border-color: #2c2c2e;
  color: #8b8d96;
}

.css-editor-btn.css-editor-save {
  background: #0a0a0c;
  color: #000;
  border: none;
}

.css-editor-btn.css-editor-save:hover {
  background: #0a0a0c;
  border: 1px solid #30d5c8;
  color: #30d5c8;
}

/* Public Key Fingerprint */
.profile-key-fingerprint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.copy-key-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 2px;
  transition: color 0.15s;
}

.copy-key-btn:hover {
  color: #8b8d96;
}

/* Gear icon for CSS editor */
.css-editor-gear {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.css-editor-gear:hover {
  color: #8b8d96;
}

/* Code tab content styling */
.profile-code-block {
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(235, 235, 245, 0.4);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-code-block code {
  color: inherit;
}

/* Profile banner overlay for identity matrix */
.profile-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #0a0a0c);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   Verified Artist Badge
   ============================================================ */
.verified-artist-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8b8d96;
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid rgba(176, 38, 255, 0.3);
  padding: 2px 6px;
  margin-left: 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ============================================================
   EYEPLVY Video Grid
   ============================================================ */
.eyevly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 16px 0;
}

.eyevly-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.eyevly-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
  box-shadow: 0 16px 38px rgba(0,0,0,0.4), 0 0 26px rgba(48,213,200,0.07);
}


.eyevly-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.04);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
}
.eyevly-thumb img,
.eyevly-thumb video { transition: transform 0.35s var(--ease-out); }
.eyevly-thumb-flick {
  aspect-ratio: 9 / 16;
  max-height: 520px;
  max-width: 320px;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #0a0a0c;
}
.eyevly-card:has(.eyevly-thumb-flick) {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.eyevly-card:hover .eyevly-thumb img,
.eyevly-card:hover .eyevly-thumb video { transform: scale(1.05); }

.eyevly-thumb img,
.eyevly-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyevly-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  opacity: 1;
  transition: background 150ms, opacity 150ms;
  pointer-events: none;
}

.eyevly-card:hover .eyevly-play-overlay {
  background: rgba(0, 0, 0, 0.42);
}

.eyevly-play-triangle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.eyevly-play-triangle::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 14px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}



.eyevly-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}


.eyevly-featured-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #8b8d96;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  letter-spacing: 0.1em;
  z-index: 2;
}

/* ============================================================
   Dark Matrix Telemetry Dashboard — Right Sidebar Widgets
   ============================================================ */

/* Blinking cursor animation for all widget headers */
@keyframes matrix-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Override widget cards to dashed border */
.right-sidebar .sidebar-card {
  background: #0a0a0c;
  border: 1px solid #1c1c1e;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 16px;
}

/* ── MESH SCANNER (Trending) ─────────────────────────────── */
.mesh-scanner-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #30d5c8;
  padding: 10px 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mesh-scanner-header .cursor-block {
  display: inline-block;
  animation: matrix-cursor-blink 1s step-end infinite;
}

.mesh-scanner-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}



.mesh-scanner-item .hex-prefix {
  color: #888;
  min-width: 42px;
  flex-shrink: 0;
}

.mesh-scanner-item .tag-name {
  color: #30d5c8;
  font-weight: 700;
}

.mesh-scanner-item:hover .tag-name {
  color: rgba(235, 235, 245, 0.4);
}

.mesh-scanner-item .dots-connector {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: #333;
  font-size: 10px;
  letter-spacing: 2px;
}

.mesh-scanner-item .hit-count {
  color: #888;
  text-align: right;
  min-width: 55px;
  flex-shrink: 0;
}

/* ── GLOBAL NODE PING (Surge Times) ──────────────────────── */
.node-ping-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #30d5c8;
  padding: 10px 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.node-ping-header .cursor-block {
  display: inline-block;
  animation: matrix-cursor-blink 1s step-end infinite;
}

.node-ping-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.node-ping-row:last-child {
  border-bottom: none;
}

.node-ping-row .city-code {
  color: #fff;
  font-weight: 700;
  min-width: 20px;
  flex-shrink: 0;
}

.node-ping-row .city-name {
  color: #888;
}

.node-ping-row .dots-connector {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: #333;
  font-size: 10px;
  letter-spacing: 2px;
}

.node-ping-row .status-online {
  color: #30d5c8;
  font-weight: 700;
  animation: node-status-pulse 2s ease-in-out infinite;
}

.node-ping-row .status-standby {
  color: #888;
}

.node-ping-row .status-syncing {
  color: #666;
}

.node-ping-row .latency {
  color: #888;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}

@keyframes node-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── ACTIVE SYSOPS (Active Now) ──────────────────────────── */
.sysops-header {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #30d5c8;
  padding: 10px 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sysops-header .cursor-block {
  display: inline-block;
  animation: matrix-cursor-blink 1s step-end infinite;
}

.sysops-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}


.sysops-user .online-square {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: #39d98a;
  box-shadow: 0 0 4px #39d98a;
  flex-shrink: 0;
}

.sysops-user .admin-square {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: #0a0a0c;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  flex-shrink: 0;
}

.sysops-user .online-square.offline {
  background: #555;
  box-shadow: none;
}

.sysops-user .username {
  color: #fff;
  font-weight: 700;
}

.sysops-user .user-info {
  color: #888;
}

.sysops-empty {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #666;
}

.sysops-empty .cursor-block {
  display: inline-block;
  animation: matrix-cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
.right-sidebar::-webkit-scrollbar {
  width: 8px;
}




/* ============================================================
   Foyer — Club door (unauth)
   ============================================================ */
.foyer-door {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}


.foyer-mark-img {
  display: block;
  margin: 0 auto 18px;
  filter: brightness(1.12) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.foyer-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #fff 30%, var(--teal) 70%, var(--riot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.foyer-line {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0;
  max-width: 320px;
  line-height: 1.45;
}

.foyer-nucleus {
  width: 100%;
  max-width: 360px;
  margin: 0 0 20px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.foyer-email {
  width: 100%;
  max-width: 360px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(12, 16, 22, 0.65);
  border-radius: var(--radius);
}

.foyer-email-toggle {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}

.foyer-email-toggle::-webkit-details-marker { display: none; }
.foyer-email-toggle::after {
  content: '+';
  float: right;
  color: var(--teal);
  font-weight: 600;
}
.foyer-email[open] .foyer-email-toggle::after { content: '−'; }
.foyer-email[open] .foyer-email-toggle { border-bottom: 1px solid var(--border); color: var(--text); }


.foyer-email-panel .auth-tabs {
  margin-bottom: 14px;
}

.foyer-forgot {
  text-align: right;
  margin-bottom: 12px;
}
.foyer-forgot a {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}
.foyer-forgot a:hover { color: var(--teal); }

.foyer-artist-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-very-muted);
  margin: 4px 0 28px;
  padding: 8px 14px;
  border-left: 2px solid var(--riot);
  text-align: left;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
}

.foyer-door .auth-card { background: transparent; border: none; box-shadow: none; }

@media (max-width: 520px) {
  .foyer-door { padding: 32px 18px 24px; }
  .foyer-brand { letter-spacing: 0.12em; }
}

/* ============================================================
   EYEPLVY Cinema
   ============================================================ */
.eyevly-cinema {
  width: 100%;
  min-height: calc(100vh - var(--header-h, 53px));
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(37, 44, 54, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(255, 255, 255, 0.03), transparent 50%),
    var(--bg-darkest);
  margin: 0 -8px;
  padding: 0 0 48px;
}

.eyevly-cinema-hero {
  padding: 36px 24px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.eyevly-cinema-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
}



.eyevly-cinema-edit-btn:hover {
  background: var(--riot);
  color: #05070b;
}

.eyevly-cinema-body { padding: 8px 16px 0; }

.eyevly-cinema-section { margin-top: 20px; }



.eyevly-grid-bleed {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}


.eyevly-card-featured:hover {
  border-color: var(--riot);
  box-shadow: 0 0 24px rgba(37, 44, 54, 0.12);
}

.eyevly-provenance {
  display: inline-block;
  margin-right: 6px;
  color: var(--text-very-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyevly-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
  min-height: 160px;
}

.eyevly-cinema .eyevly-play-label {
  color: var(--teal);
  border-color: rgba(48, 213, 200, 0.04);
}

.eyevly-cinema .eyevly-featured-tag {
  color: var(--riot);
  border-color: rgba(37, 44, 54, 0.45);
  background: rgba(5, 6, 8, 0.85);
}

.eyevly-cinema .eyevly-card {
  background: var(--bg-card);
  border-color: var(--border);
  overflow: hidden;
}

.eyevly-cinema .eyevly-thumb {
  background: var(--bg-darkest);
  border-bottom-color: var(--border);
}

.eyevly-cinema .eyevly-thumb img,
.eyevly-cinema .eyevly-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   AAA POLISH — social surfaces, identity, and tactile motion
   ============================================================ */
:root {
  --surface-0: #05070b;
  --surface-1: rgba(11, 15, 14, 0.86);
  --surface-2: rgba(15, 20, 18, 0.92);
  --line-soft: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}


button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
[tagindex]:focus-visible {
  outline: none !important;
}

.app-shell.active {
  position: relative;
  isolation: isolate;
}

.main-content {
  border-top: none;
  background: transparent;
}

/* Navigation: calm glass frame with one precise active rail. */
.left-nav {
  left: 0;
  background: rgba(5, 7, 10, 0.86);
  border-right: none !important;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.2);
  padding: 18px 12px 16px;
}


.left-nav .brand img {
  border-radius: 10px !important;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.sidebar-search-inline {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: var(--line-soft) !important;
  border-radius: 10px !important;
  min-height: 38px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-inline:focus-within {
  background: rgba(255, 255, 255, 0.022) !important;
  border-color: rgba(48, 213, 200, 0.30) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.left-nav-item {
  border-radius: 9px !important;
  border-left-width: 2px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out), transform 0.18s var(--ease-out), border-color 0.18s ease;
}

.left-nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  transform: translateX(2px);
}


.left-nav-item.active#nav-eyeplay,
#nav-eyeplay:hover {
  border-left-color: var(--riot) !important;
}

.left-nav-section-header,
.left-nav-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.14em;
}



/* Feed rhythm: a readable editorial column rather than a terminal dump. */
.feed-center {
  max-width: 700px;
  padding: 24px 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
/* Full-bleed views — JS toggles .tr-fullbleed on #feed-center */
.feed-center.tr-fullbleed { background: transparent !important; padding-bottom: 0 !important; border-right: none !important; }
.feed-center.tr-fullbleed #feed { display: none !important; }
.feed-center.tr-fullbleed .feed-main { padding-bottom: 0 !important; }
/* Global: feed-center blends into the page — no visible box */
#feed-center { background: transparent !important; border-right: none !important; border-left: none !important; }
#feed-center .feed-main { padding-bottom: 0 !important; }
.dock-row-body { background: transparent !important; }
.feed-dock { background: transparent !important; }
.feed-main:has(.creator-profile-header) { padding-bottom: 0 !important; }
.feed-main:has(.profile-header) { padding-bottom: 0 !important; }

.feed-layout {
  max-width: 660px;
}

.feed-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 -4px 14px;
  padding: 0 4px;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.84) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}




.feed-tabs button.active::after {
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--riot));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.post-card {
  position: relative;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
}



.post-header .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.post-header .meta .name,
.post-header .meta .name:not(:hover):not(:focus-visible) {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.94rem;
}

.post-header .meta .handle,
.post-header .time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.post-body {
  color: rgba(244, 245, 247, 0.9);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.66;
  letter-spacing: 0.002em;
}

.post-body .hashtag,
.post-body .mention,
.post-link {
  color: var(--teal) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-image,
.post-video,
.post-audio,
.quote-card,
.link-preview-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.post-actions {
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.post-actions button {
  min-width: 38px;
  min-height: 34px;
  justify-content: center;
  border-radius: 9px;
  color: var(--text-muted);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
}


.post-actions button.liked,
.post-actions button.btn-repost.reposted,
.post-actions button.btn-save.saved {
  color: #14E0C8;
}

.post-actions button.btn-delete,
.post-actions button.btn-report,
.post-actions button.btn-report-reply {
  opacity: 0.35;
}

.post-actions button.btn-delete:hover,
.post-actions button.btn-report:hover,
.post-actions button.btn-report-reply:hover {
  opacity: 1;
}

/* Right rail: Apple lux — glass, blur, long-pane */
.right-sidebar {
  right: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 20px 14px;
}
.tr-article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}
.tr-article-card:hover {
  background: rgba(255, 255, 255, 0.025);
}
#articles-feed {
  display: grid;
  gap: 0;
  padding: 0 0 80px;
}
.tr-article-card .article-thumb {
  width: 100%;
  height: 126px;
  min-height: 0;
  grid-column: 2;
  grid-row: 1;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(0.82) contrast(1.04);
}
.tr-article-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px 24px 22px 0;
}
.tr-article-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(48, 213, 200, 0.72);
  font: 700 0.58rem/1 var(--font-mono);
  letter-spacing: 0.16em;
}
.tr-article-kicker span {
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.tr-article-title {
  margin: 0;
  color: #f4f5f6;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.tr-article-excerpt {
  display: -webkit-box;
  margin: 9px 0 13px;
  overflow: hidden;
  color: rgba(235, 235, 245, 0.62);
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tr-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  color: rgba(235, 235, 245, 0.42);
  font: 600 0.62rem/1.3 var(--font-display);
  letter-spacing: 0.04em;
}
.tr-article-meta span {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.tr-article-meta span + span::before {
  content: none;
}
.tr-article-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}
.tr-article-read svg {
  transition: transform 0.18s var(--ease-out);
}
.tr-article-card:hover .tr-article-read svg {
  transform: translateX(4px);
}

/* Compact article page headers — the writing starts sooner. */
.tr-articles-masthead,
.tr-library-masthead {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 14px;
}
.tr-articles-masthead::after,
.tr-library-masthead::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin-top: 0;
}
.tr-articles-masthead .tr-masthead-index { margin-bottom: 7px; }
.tr-library-masthead .tr-masthead-index { margin-bottom: 0; }
.tr-articles-masthead .tr-masthead-title,
.tr-library-masthead .tr-masthead-title {
  max-width: none;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
}
.tr-articles-masthead .tr-publish-actions { margin-top: 0; }
.tr-write-btn {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}
.tr-write-btn:hover { border-color: var(--teal); color: var(--teal); }

/* Reads-style discovery rail. */
.tr-articles-rail .discover-card-head { padding-bottom: 13px; }
.tr-rail-label {
  margin: 15px 2px 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tr-rail-label:first-child { margin-top: 3px; }
.tr-rail-label-reads { margin-top: 18px; }
.tr-featured-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-1);
}
.tr-featured-author-avatar,
.tr-featured-author-avatar img {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--teal);
  font-weight: 750;
  object-fit: cover;
}
.tr-featured-author-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.tr-featured-author-copy strong { overflow: hidden; color: var(--text); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.tr-featured-author-copy strong .identity-badge svg { width: 12px; height: 12px; vertical-align: -2px; }
.tr-featured-author-copy span { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.58rem; }
.tr-featured-author-copy small { color: var(--text-dim); font-size: 0.64rem; }
.tr-rail-read {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tr-rail-read:hover { background: rgba(255,255,255,0.025); }
.tr-rail-read-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.tr-rail-read-meta { display: flex; align-items: center; gap: 4px; overflow: hidden; color: var(--text-muted); font-size: 0.58rem; white-space: nowrap; }
.tr-rail-read-meta time { margin-left: 3px; font-family: var(--font-mono); }
.tr-rail-read-meta .identity-badge svg { width: 11px; height: 11px; vertical-align: -2px; }
.tr-rail-read-copy > strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 0.77rem; line-height: 1.23; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tr-rail-read-copy > small { color: var(--text-muted); font-size: 0.62rem; }
.tr-rail-read-thumb { width: 66px; height: 56px; flex: 0 0 auto; border-radius: 8px; background: var(--surface-2); object-fit: cover; }
.tr-topic-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 5px; }
.tr-topic-list button { padding: 6px 9px; border: 1px solid var(--line-soft); border-radius: 7px; background: transparent; color: var(--text-dim); font: 650 0.62rem/1 var(--font-display); cursor: pointer; }
.tr-topic-list button:hover { border-color: var(--line-bright); color: var(--text); }
.tr-topic-list button.active { border-color: rgba(48,213,200,.42); background: rgba(48,213,200,.09); color: var(--teal); }
.tr-article-card-foot { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; }
.tr-article-actions { display: flex; align-items: center; gap: 8px; margin-top: 32px; padding: 15px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.tr-article-actions.compact { gap: 3px; margin: 12px 0 0 auto; padding: 0; border: 0; }
.tr-article-actions button { display: inline-flex; align-items: center; gap: 6px; min-width: 38px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
.tr-article-actions.compact button { min-width: 30px; height: 30px; padding: 0 6px; }
.tr-article-actions button:hover { border-color: var(--line-soft); background: var(--surface-2); color: var(--text); }
.tr-article-actions button.active { color: var(--teal); }
.tr-article-actions button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-article-actions button.active svg { fill: rgba(48,213,200,.2); }
.tr-article-actions button span { font-size: .64rem; font-weight: 700; }
.tr-article-comments { margin-top: 34px; scroll-margin-top: 30px; }
.tr-comments-head { display: flex; align-items: baseline; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.tr-comments-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.025em; }
.tr-comments-head span { color: var(--text-muted); font: 650 .66rem/1 var(--font-mono); }
.tr-comments-list { display: flex; flex-direction: column; }
.tr-comment { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.tr-comment-avatar, .tr-comment-avatar img { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--teal); object-fit: cover; }
.tr-comment-meta { display: flex; align-items: center; gap: 8px; }
.tr-comment-meta strong { color: var(--text); font-size: .8rem; }
.tr-comment-meta time { color: var(--text-muted); font: .58rem/1 var(--font-mono); }
.tr-comment p { margin: 5px 0 0; color: var(--text-dim); font-size: .83rem; line-height: 1.48; }
.tr-comments-empty { padding: 24px 0; color: var(--text-muted); font-size: .78rem; }
.tr-comment-composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 18px; }
.tr-comment-composer textarea { min-height: 50px; resize: vertical; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-1); color: var(--text); padding: 11px 12px; font: .82rem/1.45 var(--font-display); }
.tr-comment-composer textarea:focus { outline: none; border-color: rgba(48,213,200,.42); }
.tr-comment-composer button, .tr-comment-signin { align-self: end; min-height: 38px; padding: 0 15px; border: 1px solid rgba(48,213,200,.34); border-radius: 8px; background: rgba(48,213,200,.09); color: var(--teal); font-weight: 700; cursor: pointer; }
.tr-comment-signin { margin-top: 18px; }
.tr-editor-topic-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--text-muted); font: 700 .62rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.tr-editor-topic-label select { border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface-1); color: var(--text); padding: 7px 10px; font: 650 .72rem/1 var(--font-display); text-transform: none; letter-spacing: 0; }
.saved-section-label { margin: 18px 0 8px; color: var(--text-muted); font: 700 .6rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.saved-article-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.saved-article-card { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; min-height: 116px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface-1); cursor: pointer; }
.saved-article-card:hover { border-color: var(--line-bright); background: var(--surface-2); }
.saved-article-card > img { width: 92px; height: 96px; border-radius: 7px; object-fit: cover; }
.saved-article-card > div { min-width: 0; }
.saved-article-card > div > span { color: var(--teal); font: 700 .54rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.saved-article-card h3 { display: -webkit-box; margin: 7px 0 4px; overflow: hidden; color: var(--text); font-size: .86rem; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.saved-article-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text-muted); font-size: .67rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.saved-article-card .tr-article-actions.compact { margin-top: 6px; }
.saved-article-card .tr-article-actions.compact button:not([data-article-save]) { display: none; }
@media (max-width: 700px) { .saved-article-grid { grid-template-columns: 1fr; } }

.trending-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 11px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.trending-row:hover {
  background: rgba(255,255,255,0.045);
  transform: translateX(2px);
}
.trending-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.trending-author { display: flex; align-items: center; min-width: 0; gap: 5px; line-height: 1.1; }
.trending-author strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trending-author .identity-badge { flex: 0 0 auto; }
.trending-author .identity-badge svg { width: 13px; height: 13px; }
.trending-time {
  flex: 0 0 auto;
  margin-left: 1px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.03em;
}
.trending-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#tr-articles-card, #trending-card, #eth-ticker-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 0.5px solid var(--line-soft) !important;
  border-radius: 16px !important;
  overflow: hidden;
}
#tr-articles-card .discover-card-head,
#trending-card .discover-card-head,
#eth-ticker-card .discover-card-head {
  background: transparent !important;
  border-bottom: 0.5px solid var(--line-soft) !important;
  padding: 12px 14px !important;
}
#tr-articles-card .discover-card-title,
#trending-card .discover-card-title,
#eth-ticker-card .discover-card-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: -0.01em !important;
}
#eth-ticker-card .eth-tab {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif !important;
}


.right-sidebar .sidebar-header,
.right-sidebar .mesh-scanner-header,
.right-sidebar .node-ping-header,
.right-sidebar .sysops-header,
.right-sidebar .surge-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.022), transparent 72%);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.trend-item,
.mesh-scanner-item,
.surge-row,
.sysops-user {
  transition: background 0.18s ease, transform 0.18s var(--ease-out);
}

.trend-item:hover,
.mesh-scanner-item:hover,
.surge-row:hover,
.sysops-user:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(2px);
}

/* Composer and FAB: one clear primary action. */
.linkedin-compose-box,
.composer {
  background: linear-gradient(145deg, rgba(15, 20, 18, 0.9), rgba(8, 11, 16, 0.86));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.14);
}

.linkedin-compose-input,
.composer textarea {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  font-family: var(--font-display);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.composer textarea:hover {
  background: transparent;
  border-color: var(--line-soft, rgba(255, 255, 255, 0.06));
}

.composer textarea:focus,
.linkedin-compose-input:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

.composer .btn-post,
.compose-modal .btn-post,
.profile-header .btn-follow:not(.following) {
  background: linear-gradient(135deg, var(--teal), #10ad9a);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #04100d;
  box-shadow: 0 8px 20px rgba(48, 213, 200, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s var(--ease-out), background 0.18s ease, box-shadow 0.18s ease;
}

.composer .btn-post:hover:not(:disabled),
.compose-modal .btn-post:hover:not(:disabled),
.profile-header .btn-follow:not(.following):hover {
  background: linear-gradient(135deg, #7be8de, var(--teal));
  color: #04100d;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(48, 213, 200, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.tool-btn {
  border-radius: 9px;
}

.post-fab {
  left: auto;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 24, 29, 0.96), rgba(8, 13, 17, 0.96));
  border-color: rgba(48, 213, 200, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 255, 255, 0.05);
}


/* Creator profiles: identity-led hero with clear stats and tabs. */
.profile-header,
.creator-profile-header {
  background:
    radial-gradient(circle at 10% 0%, rgba(48, 213, 200, 0.12), transparent 42%),
    radial-gradient(circle at 100% 10%, rgba(37, 44, 54, 0.11), transparent 38%),
    linear-gradient(145deg, rgba(15, 20, 18, 0.96), rgba(7, 10, 14, 0.92));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.18);
}

.profile-header::after {
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.025), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: 0.8;
}

.profile-header .avatar-lg,
.creator-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(48, 213, 200, 0.30);
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.02), rgba(37, 44, 54, 0.16));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.022), 0 12px 28px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-align: center;
  overflow: hidden;
}

.profile-header .display-name,
.display-name-row .display-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  letter-spacing: -0.02em;
  text-transform: none;
}

.profile-header .handle,
.creator-header-info .handle {
  color: var(--teal);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.profile-header .bio {
  color: var(--text-dim);
  font-family: var(--font-display);
  line-height: 1.65;
}

.profile-header .stats,
.creator-stats-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-header .btn-follow.following {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-dim);
}

.profile-link-chip {
  border-color: rgba(48, 213, 200, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: var(--teal);
  transition: transform 0.18s var(--ease-out), background 0.18s ease, border-color 0.18s ease;
}

.profile-link-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(48, 213, 200, 0.05);
  color: var(--teal-soft);
}

.profile-content-tabs {
  border-color: var(--line-soft);
  border-radius: 0 0 14px 14px;
  background: rgba(7, 10, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-content-tabs button {
  font-family: var(--font-display);
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
  transition: color 0.18s ease, background 0.18s ease;
}

.profile-content-tabs button:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}


/* Modal layers: spatial, soft, and easy to dismiss. */
.modal-overlay {
  background: rgba(2, 4, 6, 0.72);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.compose-modal,
.report-modal,
.submission-modal,
.nuke-modal,
.cap-modal {
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18, 24, 31, 0.97), rgba(7, 10, 14, 0.97));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Mobile: retain identity and one-thumb feed focus. */
@media (max-width: 1024px) {
  .feed-center {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .feed-center {
    max-width: none;
    padding: 14px 12px 104px;
  }

  .feed-layout {
    max-width: none;
  }

  .feed-tabs {
    margin-inline: -2px;
  }

  .feed-tabs button {
    flex: 1;
    padding-inline: 10px;
    font-size: 12px;
  }

  .post-card {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
  }

  .post-body {
    font-size: 0.95rem;
  }

  .post-actions {
    justify-content: space-between;
  }

  .post-actions button {
    flex: 1;
  }

  .profile-header,
  .creator-profile-header {
    border-radius: 14px;
    padding: 22px 16px;
  }

  .creator-header-row {
    gap: 14px;
  }

  .profile-header .avatar-lg,
  .creator-avatar {
    width: 76px;
    height: 76px;
  }

  .post-fab {
    right: 16px;
    bottom: 86px;
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .mobile-tabbar {
    background: rgba(6, 9, 12, 0.88);
    border-top-color: var(--line-soft);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.22);
  }

  .mobile-tabbar button {
    border-radius: 10px;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease-out);
  }

  .mobile-tabbar button.active {
    color: var(--teal);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   OPEN NETWORK / LUXURY TECH FRONT DOOR
   Broad invitation, editorial confidence, TealRiot signature.
   ============================================================ */
:root {
  --surface-0: #05070b;
  --surface-1: rgba(11, 15, 14, 0.86);
  --surface-2: rgba(15, 20, 18, 0.94);
  --line-soft: rgba(238, 241, 245, 0.11);
  --line-bright: rgba(238, 241, 245, 0.24);
  --teal: #30d5c8;
  --teal-soft: #7be8de;
  --teal-dim: rgba(255, 255, 255, 0.1);
  --riot: rgba(255, 255, 255, 0.1);
  --riot-dim: rgba(255, 255, 255, 0.1);
  --text: #eef1f5;
  --text-dim: rgba(235, 235, 245, 0.6);
  --text-muted: rgba(235, 235, 245, 0.4);
  --text-very-muted: rgba(235, 235, 245, 0.24);
  --font-editorial: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: #000000;
  font-family: var(--font-display);
  color: #ffffff;
}

/* The public front door is a composed three-part invitation on desktop. */
.auth-screen.active {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(380px, 520px) minmax(190px, 0.72fr);
  align-items: center;
  gap: clamp(26px, 5vw, 96px);
  padding: clamp(28px, 5vw, 72px) clamp(24px, 6vw, 112px);
  min-height: 100svh;
  height: auto;
  overflow: auto;
}

.auth-screen.active::before {
  opacity: 0.26;
}

.auth-screen.active::after {
  opacity: 0.22;
}

.auth-side {
  position: relative;
  z-index: 2;
  max-width: 250px;
  color: var(--text-dim);
}

.auth-side-left { justify-self: end; }
.auth-side-right { justify-self: start; }

.auth-side-index,
.foyer-kicker,
.foyer-side-foot {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-side-index {
  color: var(--teal);
  margin-bottom: 22px;
}

.auth-side h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

.auth-side h2 em {
  color: var(--teal);
  font-family: var(--font-editorial);
  font-size: 1.16em;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.auth-side p {
  max-width: 230px;
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.84rem;
  line-height: 1.65;
}

.auth-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.auth-side-tags span {
  border: 1px solid rgba(48, 213, 200, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-side-list {
  display: grid;
  gap: 14px;
}

.auth-side-list > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.auth-side-list span {
  color: var(--riot);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.auth-side-list p {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-side-foot {
  margin-top: 30px;
  color: var(--text-muted);
}

.foyer-door {
  position: relative;
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px) clamp(22px, 4vw, 38px) 24px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 26px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.05), transparent 35%),
    radial-gradient(circle at 100% 8%, rgba(255, 146, 125, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(20, 28, 27, 0.9), rgba(7, 11, 11, 0.94));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.foyer-door::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--riot), transparent);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.foyer-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 34px;
  color: var(--text-muted);
}

.foyer-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
}

.foyer-open i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.foyer-mark {
  width: 100%;
  margin-bottom: 20px;
}

.foyer-mark-img {
  width: 76px;
  height: 76px;
  margin: 0 auto 17px;
  filter: brightness(1.08) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.foyer-brand {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: 0.23em;
  line-height: 0.96;
}

.foyer-promise {
  margin: 0 auto 14px;
  color: var(--text);
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: none;
}

.foyer-promise em {
  color: var(--teal);
  font-style: italic;
}

.foyer-line {
  max-width: 370px;
  margin: 0 auto;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.88rem;
  line-height: 1.65;
}

.foyer-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 24px;
}

.foyer-pills span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foyer-pills span:first-child { color: var(--teal); border-color: rgba(48, 213, 200, 0.03); }
.foyer-pills span:last-child { color: var(--riot); border-color: rgba(255, 146, 125, 0.28); }

.foyer-nucleus {
  min-height: 52px;
  max-width: none;
  margin: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  box-shadow: 0 14px 30px rgba(65, 192, 169, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #06221b;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}

.foyer-nucleus:hover {
  background: linear-gradient(135deg, #d8fff3, var(--teal-soft));
  color: #06221b;
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(65, 192, 169, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.foyer-secondary {
  width: 100%;
  min-height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.foyer-secondary:hover {
  border-color: rgba(255, 146, 125, 0.42);
  background: rgba(255, 146, 125, 0.08);
  color: #000000;
  transform: translateY(-1px);
}

.foyer-email {
  max-width: none;
  margin-bottom: 14px;
  border-color: var(--line-soft);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.foyer-email-toggle {
  padding: 14px 16px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.foyer-email-toggle::after { color: var(--riot); }
.foyer-email[open] .foyer-email-toggle { color: var(--text); border-bottom-color: var(--line-soft); }

.foyer-email-panel { padding: 18px; }

.foyer-artist-note {
  max-width: none;
  margin: 2px 0 22px;
  border: 1px solid rgba(255, 146, 125, 0.2);
  border-left: 2px solid var(--riot);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 146, 125, 0.045);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  padding: 10px 12px;
  text-transform: none;
}

.foyer-artist-note strong { color: var(--riot); font-weight: 600; }

.foyer-door .auth-powered { margin-top: 4px; padding: 9px 0 4px; }
.foyer-door .auth-footer-line { color: var(--text-muted); font-family: var(--font-display); }

/* Authenticated surfaces inherit the same restrained, editorial contrast. */
.app-shell.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), transparent 30%, transparent 70%, rgba(37, 44, 54, 0.02));
}

.left-nav,
.right-sidebar {
  background: rgba(7, 10, 10, 0.88);
  border-color: var(--line-soft);
}

.left-nav .brand span { font-family: var(--font-display); }

.post-card,
.linkedin-compose-box,
.composer,
.radar-card,
.sidebar-card {
  border-color: var(--line-soft);
  background: linear-gradient(145deg, rgba(19, 27, 26, 0.92), rgba(8, 12, 12, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 36px rgba(0, 0, 0, 0.18);
}


.feed-center { max-width: 960px; }

@media (max-width: 1100px) {
  .auth-screen.active {
    grid-template-columns: minmax(360px, 520px);
    justify-content: center;
  }

  .auth-side { display: none; }
}

@media (max-width: 600px) {
  .auth-screen.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
    padding: 18px 12px 30px;
  }

  .foyer-door {
    width: 100%;
    margin: auto 0;
    border-radius: 21px;
    padding: 20px 16px 18px;
  }

  .foyer-kicker { margin-bottom: 28px; font-size: 0.55rem; }
  .foyer-brand { font-size: 2.25rem; letter-spacing: 0.16em; }
  .foyer-promise { font-size: 2.15rem; }
  .foyer-line { font-size: 0.82rem; }
  .foyer-pills { margin: 18px 0 21px; }
  .foyer-pills span { padding: 5px 9px; }
  .foyer-nucleus { min-height: 50px; }
}

/* Right rail widget upgrade: distinct modules with readable telemetry. */
.right-sidebar .nullxre-search,
.right-sidebar #trending-widget {
  position: relative;
}

.right-sidebar .nullxre-search {
  padding: 14px;
}

.right-sidebar .nullxre-search-header {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.right-sidebar .nullxre-search-tag {
  border: 1px solid rgba(48, 213, 200, 0.02);
  border-radius: 999px;
  color: var(--teal);
  padding: 3px 7px;
  font-size: 0.58rem;
}

.right-sidebar .nullxre-search-input-wrap {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


.right-sidebar .sidebar-search-input {
  color: var(--text) !important;
  font-family: var(--font-display) !important;
}

.right-sidebar .nullxre-search-hint {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  line-height: 1.4;
}

.right-sidebar #trending-widget > .sidebar-body {
  padding: 8px 10px;
}

.right-sidebar #trending-widget .mesh-scanner-header,
.right-sidebar #trending-widget .node-ping-header,
.right-sidebar #trending-widget .sysops-header {
  padding: 14px 16px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.right-sidebar #trending-widget .mesh-scanner-header {
  border-top: none;
}

.right-sidebar #trending-widget .scope-tabs button {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text-muted);
}


.right-sidebar #trending-widget .mesh-scanner-item,
.right-sidebar #trending-widget .surge-row,
.right-sidebar #trending-widget .sysops-user {
  margin: 0;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
}

.right-sidebar #trending-widget .mesh-scanner-item:hover,
.right-sidebar #trending-widget .surge-row:hover,
.right-sidebar #trending-widget .sysops-user:hover {
  background: rgba(255, 255, 255, 0.022);
  transform: none;
}


.right-sidebar #trending-widget .hit-count,
.right-sidebar #trending-widget .latency,
.right-sidebar #trending-widget .surge-meta,
.right-sidebar #trending-widget .surge-count {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   RADAR — unified right-rail surface (Discover / Mesh / Charts)
   ═══════════════════════════════════════════════════════════ */
.radar-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(14, 19, 26, 0.92), rgba(6, 9, 13, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.22);
  margin-bottom: 8px;
}

.radar-header {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
}

.radar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--text);
}

.radar-glyph {
  color: var(--teal);
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  opacity: 0.85;
}

.radar-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: radarLivePulse 1.8s ease-in-out infinite;
}

@keyframes radarLivePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.radar-tabs {
  display: flex;
  gap: 4px;
  padding: 2px 14px 12px;
}

.radar-tab {
  flex: 1;
  padding: 7px 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.radar-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}


.radar-panel {
  padding: 0 14px 10px;
}

.radar-section {
  padding: 4px 0 6px;
}

.radar-section + .radar-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

.radar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.radar-section-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 0.54rem;
}

.radar-section-count {
  min-width: 20px;
  text-align: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.radar-section .scope-tabs {
  display: flex;
  gap: 4px;
}

.radar-section .scope-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.radar-section .scope-tabs button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.radar-section .scope-tabs button.active {
  background: rgba(48, 213, 200, 0.12);
  border-color: rgba(48, 213, 200, 0.30);
  color: var(--teal);
}

/* Discover — trending rows (replaces hex-prefix + dots-connector) */
.radar-trend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  margin: 2px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.radar-trend-item:hover {
  background: rgba(255, 255, 255, 0.025);
  transform: translateX(2px);
}

.radar-trend-rank {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-very-muted);
  min-width: 22px;
}

.radar-trend-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radar-trend-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-trend-heat {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.radar-trend-heat i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), rgba(176, 38, 255, 0.9));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: width 0.5s var(--n27-f-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.radar-trend-genre {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.66rem;
  margin-left: 4px;
}

.radar-trend-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Mesh — node ping rows */
.radar-node-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: 2px 0;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.radar-node-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.radar-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.radar-node-dot.online {
  background: var(--teal);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  animation: radarLivePulse 2s ease-in-out infinite;
}

.radar-node-dot.standby {
  background: #3a3f4a;
}

.radar-node-code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text);
  min-width: 24px;
}

.radar-node-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-node-latency {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--teal);
  white-space: nowrap;
}

/* Mesh — active sysops rows */
.radar-sysop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  margin: 2px 0;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.radar-sysop-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.radar-sysop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #3a3f4a;
}

.radar-sysop-dot.online {
  background: var(--teal);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.radar-sysop-dot.admin {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(176, 38, 255, 0.12);
}

.radar-sysop-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-sysop-state {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.radar-section .node-ping-show-more {
  padding-top: 2px;
}

.node-ping-toggle {
  display: block;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 8px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.node-ping-toggle:hover {
  color: var(--teal);
  background: rgba(255, 255, 255, 0.025);
}

.radar-panel .sidebar-body {
  padding: 2px 0 6px;
}

.radar-panel .active-now-module {
  padding: 0;
}

.radar-empty {
  padding: 18px 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .radar-header { padding-top: 12px; }
  .radar-panel { padding: 0 12px 8px; }
}

/* ═══════════════════════════════════════════════════════════
   MAIN COMPOSER — X-style, borderless, in-flow
   (no fixed positioning, no backdrop blur)
   ═══════════════════════════════════════════════════════════ */
.main-composer {
  padding: 18px 4px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.main-composer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(48, 213, 200, 0.05), rgba(176, 38, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}



.main-composer-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(176, 38, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 240, 248, 0.85);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
}


.composer-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.composer-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 0 8px;
  color: transparent;
  z-index: 3;
}

.composer-highlight .hl-tag {
  color: #7be8de;
  font-weight: 600;
}

.composer-highlight .hl-mention {
  color: #b06fff;
  font-weight: 600;
}

.main-composer .composer-highlight {
  padding: 10px 0 4px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.composer-highlight .hl-custom-emoji {
  position: relative;
  display: inline-block;
  border-radius: 4px;
  background: rgba(5, 7, 11, 0.98);
  color: transparent;
  box-shadow: 0 0 0 2px rgba(5, 7, 11, 0.98);
  vertical-align: baseline;
}
.composer-highlight .hl-custom-emoji > span { color: transparent; }
.composer-highlight .hl-custom-emoji img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.main-composer #composer-text {
  position: relative;
  z-index: 2;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  color: rgba(244, 240, 248, 0.95);
  caret-color: rgba(244, 240, 248, 0.95);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 10px 0 4px;
  resize: none;
  min-height: 44px;
  box-shadow: none;
}

.main-composer #composer-text:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.main-composer #composer-text::placeholder {
  color: rgba(139, 141, 150, 0.55);
  font-weight: 400;
}

.main-composer .composer-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 0 12px;
}


.main-composer .tool-btn {
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  color: rgba(139, 141, 150, 0.9);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.main-composer .tool-btn:hover {
  color: #7be8de;
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.main-composer .tool-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.main-composer .video-duration-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: transparent;
  color: rgba(139, 141, 150, 0.7);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0;
}

.main-composer .btn-post {
  margin-left: auto;
  border-radius: 999px;
  padding: 9px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #7be8de, #2bb8d9 55%, #9a5cff);
  border: none;
  color: #02090c;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 6px 18px rgba(48, 213, 200, 0.12);
}

.main-composer .btn-post:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 26px rgba(48, 213, 200, 0.12);
}

.main-composer .btn-post:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ring counter — thin, quiet */
.main-composer .composer-footer .char-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-right: 2px;
}

.char-ring {
  display: inline-block;
  vertical-align: middle;
  transition: stroke-dashoffset 0.25s ease, stroke 0.25s ease;
}

.char-ring-count {
  display: inline-block;
  min-width: 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Draft chip — quiet glass pill */
.draft-chip {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(176, 38, 255, 0.06);
  border: 1px solid rgba(176, 38, 255, 0.16);
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: rgba(244, 240, 248, 0.8);
}

.draft-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b06fff;
  box-shadow: 0 0 8px rgba(176, 38, 255, 0.12);
}

.draft-chip-discard {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(139, 141, 150, 0.8);
  font-family: var(--font-display);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.15s ease;
}

.draft-chip-discard:hover {
  color: #ff453a;
}

.main-composer .audio-preview,
.main-composer .video-preview,
.main-composer .composer-preview {
  margin-top: 12px;
}

.main-composer .recording-indicator {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .main-composer { padding: 14px 2px 0; }
  .main-composer-avatar { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════
   TEALRIOT INTERIOR — ICE NETWORK LAYER
   In-app shell brought into the luxury editorial system:
   icy cyan on deep blue-black, hairline structure, editorial
   accents. Sweeps the last acid-neon / violet leftovers.
   ═══════════════════════════════════════════════════════════ */
:root {
  --ice-glow: 0 0 0 rgba(0, 0, 0, 0);
  --ice-glow-strong: 0 0 0 rgba(0, 0, 0, 0);
}

/* ── Global quiet polish ─────────────────────────────────── */
.app-shell {
  scrollbar-color: rgba(48, 213, 200, 0.22) transparent;
}

.app-shell button:focus-visible,
.app-shell input:focus-visible,
.app-shell textarea:focus-visible,
.app-shell a:focus-visible,
.app-shell [tagindex]:focus-visible {
  outline: none !important;
}
.feed-center { scrollbar-gutter: stable; }
.feed-center::-webkit-scrollbar { width: 8px; }
.feed-center::-webkit-scrollbar-thumb { background: rgba(48, 213, 200, 0.12); border-radius: 4px; }

/* ── Left nav ────────────────────────────────────────────── */
.left-nav { padding: 16px 12px 14px; }



.tr-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  line-height: 1;
}
.tr-brand-teal { color: var(--text); }
.tr-brand-riot {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.left-nav-item .nav-index {
  display: none;
}


.left-nav-item.active#nav-eyeplay,
#nav-eyeplay:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
#nav-eyeplay.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.left-nav-section-header {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  margin-top: 12px;
}




.left-nav-account-row {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}

.account-avatar {
  border-radius: 6px;
  background: linear-gradient(135deg, #0a0a0c, rgba(255, 255, 255, 0.1));
  color: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.account-name { color: var(--text); }


.account-flyout-item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}
.account-flyout-divider { background: var(--line-soft); }

/* ── Feed ────────────────────────────────────────────────── */
.feed-tabs {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.feed-tabs button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.feed-tabs button .tab-index {
  font-size: 0.55rem;
  color: var(--text-very-muted);
  transition: color 0.15s;
}


.feed-tabs button.active .tab-index { color: var(--teal); }
.feed-tabs button.active::after {
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(48, 213, 200, 0.12));
  border-radius: 2px;
}

.post-card.fade-in { animation: cardFade 0.35s var(--ease-out); }
@keyframes cardFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header { gap: 12px; }
.post-header .avatar {
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.1));
  border: 1px solid var(--line-soft);
  color: var(--text);
}
.post-header .avatar:hover {
  box-shadow: var(--ice-glow);
  border-color: rgba(48, 213, 200, 0.30);
}
.post-header .meta .name { font-weight: 600; letter-spacing: 0.01em; }
.post-header .time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.post-body {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.62;
}
.post-pinned-indicator { color: var(--teal-dim); letter-spacing: 0.1em; }

.post-actions { margin-top: 10px; }
.post-actions button {
  color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 5px 10px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s var(--ease-out);
}
.post-actions button:hover {
  color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.post-actions button.liked,
.post-actions button.liked:hover { color: #14E0C8; }
.post-actions button.btn-repost.reposted,
.post-actions button.btn-repost.reposted:hover { color: var(--teal); }

.quote-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(37, 44, 54, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.quote-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-bright);
}
.quote-header .meta .name { color: var(--teal); }

.repost-marker { color: var(--text-muted); }

/* ── Composer (in-flow + modal) ──────────────────────────── */
.main-composer { padding: 20px 4px 0; }
.main-composer::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03), transparent);
  opacity: 0;
}

.composer-highlight .hl-tag { color: var(--teal); }


#compose-modal-overlay .compose-modal {
  max-width: 600px;
  padding: 0;
  overflow: visible;
  border: 1px solid #2b2c31;
  border-radius: 18px;
  background: #090a0c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.68);
}
#compose-modal-overlay .compose-modal::before,
#compose-modal-overlay .compose-modal::after { display: none; }
#compose-modal-overlay .compose-modal-header {
  height: 44px;
  justify-content: flex-start;
  margin: 0;
  padding: 6px 14px 0;
  border-bottom: 0;
}
#compose-modal-overlay .compose-modal-close { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; }
#compose-modal-overlay .compose-modal-close:hover { background: rgba(255,255,255,.06); color: var(--text); }
#compose-modal-overlay .compose-modal-content { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 16px 22px 0; }
#compose-modal-overlay .compose-modal-avatar,
#compose-modal-overlay .compose-modal-avatar img { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: var(--surface-2); color: var(--teal); font-weight: 750; object-fit: cover; }
#compose-modal-overlay .compose-modal-main { min-width: 0; }
#compose-modal-overlay .modal-composer-input-wrap { min-height: 135px; }
#compose-modal-overlay .composer-highlight { padding: 7px 0 10px; font-size: 1.18rem; line-height: 1.45; }
#compose-modal-overlay .composer-highlight .hl-custom-emoji { background: #090a0c; box-shadow: 0 0 0 2px #090a0c; }
#compose-modal-overlay #modal-composer-text { position: relative; z-index: 2; min-height: 118px; padding: 7px 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--text); font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; box-shadow: none; }
#compose-modal-overlay #modal-composer-text:focus { outline: none; border: 0; box-shadow: none; }
#compose-modal-overlay .composer-footer { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px 12px 80px; border-top: 1px solid rgba(255,255,255,.08); }
#compose-modal-overlay .composer-tools { display: flex; align-items: center; gap: 4px; }
#compose-modal-overlay .tool-btn { display: inline-flex; width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); }
#compose-modal-overlay .tool-btn:hover { background: rgba(48,213,200,.08); color: var(--teal); }
#compose-modal-overlay .tool-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
#compose-modal-overlay .modal-char-meter { display: inline-flex; min-width: 20px; margin-left: auto; margin-right: 4px; align-items: center; gap: 6px; color: var(--text-muted); font-family: var(--font-mono); font-size: .66rem; font-variant-numeric: tabular-nums; }
#compose-modal-overlay .modal-char-meter[hidden] { display: none; }
#compose-modal-overlay .modal-char-meter svg { width: 20px; height: 20px; overflow: visible; }
#compose-modal-overlay .modal-char-meter circle { fill: none; stroke-width: 1.6; }
#compose-modal-overlay .modal-char-track { stroke: rgba(235,235,245,.12); }
#compose-modal-overlay .modal-char-progress { stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .16s ease, stroke .16s ease; }
#compose-modal-overlay .modal-char-meter span { min-width: 18px; text-align: right; color: currentColor; }
#compose-modal-overlay .btn-post { min-width: 68px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: linear-gradient(135deg, #5ce6d5, #3dc3d6); color: #03100f; font-family: var(--font-display); font-size: .82rem; font-weight: 750; letter-spacing: 0; text-transform: none; box-shadow: none; }
#compose-modal-overlay .btn-post:hover:not(:disabled) { background: linear-gradient(135deg, #76eee0, #5bcfe0); color: #03100f; transform: translateY(-1px); }
#compose-modal-overlay .btn-post:disabled { border-color: #2c2d31; background: rgba(255,255,255,.04); color: rgba(235,235,245,.34); opacity: 1; }
#compose-modal-overlay .composer-preview,
#compose-modal-overlay .video-preview,
#compose-modal-overlay .audio-preview { margin: 8px 0 12px; }
@media (max-width: 640px) {
  #compose-modal-overlay { padding: 0; align-items: flex-end; }
  #compose-modal-overlay .compose-modal { max-width: none; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 16px 16px 0 0; }
  #compose-modal-overlay .compose-modal-content { padding-right: 16px; padding-left: 16px; }
  #compose-modal-overlay .composer-footer { padding-left: 16px; }
  #compose-modal-overlay .modal-char-meter span { display: none; }
}

.composer, .inline-reply-composer {
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
}


.btn-post {
  background: var(--teal);
  color: #0a0a0c;
  border-radius: 999px;
  padding: 8px 22px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(48, 213, 200, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn-post:hover:not(:disabled) {
  background: var(--teal-soft);
  color: #0a0a0c;
  box-shadow: 0 6px 20px rgba(48, 213, 200, 0.03);
}
.btn-post:active:not(:disabled) { transform: translateY(1px); }
.btn-post:disabled { opacity: 0.32; cursor: not-allowed; }

.char-counter {
  color: var(--teal-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.char-counter.warn { color: #ff9f0a; }
.char-counter.danger { color: var(--danger); }

.draft-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(48, 213, 200, 0.02);
  color: var(--text-dim);
}
.draft-chip-dot {
  background: var(--teal);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.draft-chip-discard { color: var(--text-muted); }

/* ── RADAR sidebar ───────────────────────────────────────── */
.radar-card { border-radius: 12px; }
.radar-glyph { filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }
.radar-tab.active {
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  box-shadow: 0 4px 14px rgba(48, 213, 200, 0.12);
}
.radar-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-dim);
}
.radar-live-dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); }

.right-sidebar .nullxre-search-tag {
  border-color: rgba(48, 213, 200, 0.28);
}
.right-sidebar .nullxre-search-input-wrap {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-soft);
  border-radius: 999px;
}
.right-sidebar .nullxre-search-input-wrap:focus-within {
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: var(--ice-glow);
}
.right-sidebar #trending-widget .scope-tabs button.active {
  background: rgba(48, 213, 200, 0.12);
  color: var(--text);
}
.right-sidebar #trending-widget .mesh-scanner-item:hover,
.right-sidebar #trending-widget .surge-row:hover,
.right-sidebar #trending-widget .sysops-user:hover {
  background: rgba(255, 255, 255, 0.025);
}
.right-sidebar #trending-widget .tag-name,
.right-sidebar #trending-widget .status-online,
.right-sidebar #trending-widget .surge-city { color: var(--teal); }
.node-ping-toggle { color: var(--text-muted); }

/* ── FAB + menus ─────────────────────────────────────────── */
.post-fab {
  border-color: rgba(48, 213, 200, 0.30);
  background: linear-gradient(145deg, rgba(14, 21, 36, 0.96), rgba(7, 11, 20, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 0 rgba(0, 0, 0, 0);
}


.post-fab:hover .fab-icon { color: var(--teal-soft); }

.fab-menu {
  background: rgba(10, 15, 26, 0.96);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}
.fab-menu-item:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

/* ── Mobile tab bar ──────────────────────────────────────── */
.mobile-tabbar button { position: relative; }
.mobile-tabbar {
  background: rgba(7, 11, 20, 0.96);
  border-top-color: var(--line-soft);
}
.mobile-tabbar button.active { color: var(--teal); }
.mobile-tabbar button.active .tab-label { color: var(--teal-soft); }
.mobile-tabbar button.active::before {
  content: '';
  position: absolute;
  top: -6px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* ── States: loading / empty / toast / misc ──────────────── */
.loading {
  color: var(--teal-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.empty-state { color: var(--text-muted); }
.empty-state .empty-title {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}
.empty-state .empty-subtitle {
  color: var(--text-muted);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
}
.empty-state .empty-action {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(48, 213, 200, 0.3);
  padding-bottom: 2px;
}
.empty-state .empty-action:hover { color: var(--teal-soft); }

.toast {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--teal-soft);
  font-family: var(--font-mono);
}

.genre-filter-banner {
  border: 1px solid rgba(48, 213, 200, 0.22);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  color: var(--text-dim);
}
.genre-filter-banner strong { color: var(--teal); }

.search-dropdown {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}



.stories-track::-webkit-scrollbar { height: 4px; }
.stories-track::-webkit-scrollbar-thumb { background: rgba(48, 213, 200, 0.12); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   TEALRIOT FEED — EDITORIAL POLISH
   Makes the feed column itself a designed surface: masthead,
   name/handle hierarchy, ice stories, refined media & replies.
   ═══════════════════════════════════════════════════════════ */

/* ── Masthead ────────────────────────────────────────────── */
.feed-masthead {
  padding: 18px 4px 4px;
}
.feed-masthead-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--teal-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feed-masthead-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  text-transform: none;
  margin: 0;
}
.feed-masthead-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: -0.01em;
}
.feed-masthead-title::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(48, 213, 200, 0.05), var(--line-soft), transparent);
}

/* ── Post header hierarchy ───────────────────────────────── */
.post-header .meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.post-header .meta .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-header .handle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.post-header .handle:hover { color: var(--teal); }

/* ── Stories row — ice rings ─────────────────────────────── */
.stories-track { gap: 16px; padding: 14px 4px 16px; }
.story-bubble { gap: 7px; }
.story-ring {
  border-radius: 50%;
  background: linear-gradient(135deg, #7be8de, #0a0a0c, rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.story-avatar {
  border-radius: 50%;
  border: 2px solid var(--surface-0);
  background: var(--surface-2);
  color: var(--text-dim);
}
.story-avatar img { border-radius: 50%; }
@keyframes ring-rotate {
  0%   { background: linear-gradient(0deg, #7be8de, #0a0a0c, rgba(255, 255, 255, 0.1)); }
  25%  { background: linear-gradient(90deg, #7be8de, #0a0a0c, rgba(255, 255, 255, 0.1)); }
  50%  { background: linear-gradient(180deg, #7be8de, #0a0a0c, rgba(255, 255, 255, 0.1)); }
  75%  { background: linear-gradient(270deg, #7be8de, #0a0a0c, rgba(255, 255, 255, 0.1)); }
  100% { background: linear-gradient(360deg, #7be8de, #0a0a0c, rgba(255, 255, 255, 0.1)); }
}
.story-ring--add {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.4));
}
.story-add-icon { color: var(--teal); text-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.story-ring--demo { background: rgba(48, 213, 200, 0.12); }
.story-name {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

/* ── Media ───────────────────────────────────────────────── */
.post-image,
.post-video,
.post-audio .voice-player {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #000;
}
.post-image img,
.post-video video { border-radius: 8px; }
.post-image img:hover { opacity: 0.97; }

/* ── Link preview ────────────────────────────────────────── */
.link-preview-card {
  display: flex !important;
  gap: 12px !important;
  padding: 10px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.022)) !important;
  overflow: hidden !important;
  align-items: center !important;
  margin-top: 10px !important;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out) !important;
}
.link-preview-card:hover { border-color: var(--line-bright) !important; background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03)) !important; }
.link-preview-thumb {
  width: 92px !important;
  height: 92px !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}
.link-preview-body { flex: 1 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; justify-content: center !important; gap: 3px !important; }
.link-preview-domain { font-size: 0.67rem !important; color: var(--text-muted) !important; letter-spacing: .02em !important; }
.link-preview-title { font-size: 0.84rem !important; font-weight: 650 !important; color: var(--text) !important; line-height: 1.3 !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.link-preview-desc { font-size: 0.74rem !important; color: var(--text-muted) !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; line-height: 1.4 !important; }
.post-link { color: var(--teal) !important; }
.post-link:hover { color: var(--teal-soft) !important; }

/* ── Thread preview ──────────────────────────────────────── */
.thread-preview {
  margin-top: 14px;
  padding: 4px 0 0;
  border-top: 1px solid var(--line-soft);
}
.thread-preview-reply {
  gap: 10px;
  padding: 7px 0;
  position: relative;
}
.thread-preview-reply .avatar { flex-shrink: 0; }

.thread-preview-name {
  color: var(--text);
  font-weight: 600;
}
.thread-preview-name:hover { color: var(--teal); }
.thread-preview-time { color: var(--text-very-muted); font-size: 0.7rem; }
.btn-view-thread {
  margin-top: 4px;
  padding: 9px 8px 4px;
  border-top: 1px solid var(--line-soft);
  color: var(--teal-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.15s, background 0.15s;
}
.btn-view-thread:hover { color: var(--teal); background: rgba(255, 255, 255, 0.02); }

/* ── Reply cards ─────────────────────────────────────────── */
.reply-card {
  border-left: 2px solid rgba(48, 213, 200, 0.4);
  background: var(--surface-1);
  border-color: var(--line-soft);
  border-radius: 8px;
}
.reply-card:hover { border-left-color: var(--teal); }

/* ── Feed rhythm ─────────────────────────────────────────── */
.feed-main { padding-bottom: 16px; }
.feed-main #feed .post-card:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   TEALRIOT THREAD / PROFILE / MESSAGES — EDITORIAL LAYER
   X-grade thread cards (spine rows, no boxes), editorial
   profile header, luxury DM float panel.
   ═══════════════════════════════════════════════════════════ */

/* ── THREAD — X-style ────────────────────────────────────── */
.back-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 2px;
}
.back-btn:hover {
  color: var(--teal);
  background: transparent;
}

.thread-toggle { margin: 4px 0 12px; }
.thread-toggle-btn {
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
}
.thread-toggle-btn:hover {
  border-color: rgba(48, 213, 200, 0.04);
  color: var(--teal);
}

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

/* Reply rows: X-style connected rows, not boxed cards. */
.reply-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0 12px 0;
  margin: 0;
  transition: background 0.15s ease;
}
.reply-card:hover {
  background: rgba(255, 255, 255, 0.018);
}
/* Thread spine — vertical hairline through avatar centers. */
.reply-card::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(48, 213, 200, 0.12), rgba(255, 255, 255, 0.03));
  z-index: 0;
}
.reply-card > .post-header,
.reply-card > .post-body,
.reply-card > .post-actions {
  position: relative;
  z-index: 1;
}
.reply-card .post-header { gap: 12px; margin-bottom: 6px; }
.reply-card .post-header .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.12));
  border: 1px solid var(--line-soft);
  box-shadow: 0 0 0 3px var(--surface-0);
}
.reply-card .post-header .meta .name { font-size: 0.9rem; }
.reply-card .post-header .handle { font-size: 0.72rem; }
.reply-card .post-body { font-size: 0.92rem; }
.reply-card .post-actions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  gap: 18px;
}
.reply-card .post-actions button { font-size: 0.78rem; padding: 4px 8px; }
.reply-card .btn-reply-tree { color: var(--text-muted); }
.reply-card .btn-reply-tree:hover { color: var(--teal); background: rgba(255, 255, 255, 0.03); }
.reply-card .btn-like-reply.liked { color: #14E0C8; }
.reply-card .btn-report-reply { opacity: 0.5; }
.reply-card .btn-report-reply:hover { color: var(--danger); opacity: 1; background: rgba(255, 71, 87, 0.1); }

/* Thread reply composer — X-style, avatar + inline. */
.thread-reply-composer {
  display: flex;
  gap: 12px;
  border: none !important;
  background: transparent !important;
  padding: 6px 0 16px !important;
  margin-bottom: 8px !important;
}

.thread-reply-composer textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  resize: none;
  padding: 8px 0;
  caret-color: rgba(235, 235, 245, 0.6);
  transition: border-color 0.2s;
}
.thread-reply-composer textarea:focus {
  outline: none;
  border-bottom-color: #3a3a3a;
}



/* ── PROFILE — editorial ─────────────────────────────────── */
.profile-header {
  background: linear-gradient(165deg, rgba(11, 15, 14, 0.9), rgba(6, 10, 18, 0.94));
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 34px 28px 26px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 36px rgba(0, 0, 0, 0.18);
}
.profile-header::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}
.profile-header .avatar-lg {
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.25));
  border: 2px solid var(--line-soft);
  color: var(--text);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), var(--ice-glow);
}
.profile-header .avatar-lg.avatar-offline { border-color: var(--line-soft); }
.profile-header .display-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}
.profile-header .handle {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.profile-header .bio {
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.92rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.profile-header .stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.profile-header .stats .stat .num { color: var(--text); }
.profile-header .stats .stat .label { color: var(--text-muted); }
.profile-header .stats .stat .stat-bracket { color: var(--teal-dim); }

.profile-header .btn-follow {
  border-radius: 999px;
  background: var(--teal);
  color: #0a0a0c;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 9px 22px;
  box-shadow: 0 4px 16px rgba(48, 213, 200, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.profile-header .btn-follow:hover {
  background: var(--teal-soft);
  color: #0a0a0c;
  box-shadow: 0 6px 20px rgba(48, 213, 200, 0.03);
}
.profile-header .btn-follow.following {
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--text-dim);
  box-shadow: none;
}
.profile-header .btn-follow.following:hover {
  border-color: rgba(48, 213, 200, 0.05);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.025);
}

.btn-message {
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 22px;
  transition: all 0.15s ease;
}
.btn-message:hover {
  border-color: rgba(48, 213, 200, 0.05);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.025);
}

.corner-action-btn {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text-muted);
}
.corner-action-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(48, 213, 200, 0.04);
  color: var(--teal);
}

.profile-content-tabs {
  background: rgba(18, 20, 24, 0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line-soft);
  border-top: none;
  border-radius: 0;
  padding: 8px 10px;
  gap: 0;
}
.profile-content-tabs button {
  color: var(--text-muted, var(--text-dim));
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.profile-content-tabs button .tab-index {
  font-size: 0.54rem;
  color: var(--text-very-muted);
  transition: color 0.15s ease;
}
.profile-content-tabs button:hover {
  color: var(--accent-text, var(--teal));
  background: color-mix(in srgb, var(--accent, var(--teal)) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent, var(--teal)) 24%, transparent);
}
.profile-content-tabs button.active {
  color: var(--accent-text, var(--text));
  background: color-mix(in srgb, var(--accent, var(--teal)) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent, var(--teal)) 42%, transparent);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 4px rgba(0, 0, 0, 0.25);
}
.profile-content-tabs button.active .tab-index { color: var(--accent-text, var(--accent, var(--teal))); }
.profile-content-tabs button.tab-disabled {
  opacity: 0.35;
  cursor: default;
}
.profile-content-tabs button.tab-disabled:hover {
  color: var(--text-dim);
  background: transparent;
  border-color: transparent;
}

.profile-link-chip {
  border-color: var(--line-soft);
  color: var(--text-dim);
}
.profile-link-chip:hover {
  border-color: rgba(48, 213, 200, 0.04);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.02);
}

.wallet-display {
  border-color: rgba(48, 213, 200, 0.22) !important;
  color: var(--teal-dim) !important;
  border-radius: 8px !important;
}

/* ── MESSAGES — luxury float panel ────────────────────────── */
.dm-float-panel {
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.5), 0 0 0 rgba(0, 0, 0, 0);
}
.dm-float-header,
.dm-float-chat-header {
  background: rgba(10, 15, 26, 0.9);
  border-bottom: 1px solid var(--line-soft);
}
.dm-float-header:hover { background: rgba(10, 15, 26, 0.96); }
.dm-float-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}
.dm-float-close:hover { background: rgba(255, 71, 87, 0.12); color: var(--danger); }
.dm-float-back:hover { background: rgba(255, 255, 255, 0.04); color: var(--teal); }
.dm-float-chat-name { color: var(--text-dim); font-family: var(--font-display); font-size: 0.85rem; }

.dm-float-search { border-bottom: 1px solid var(--line-soft); }
.dm-float-search input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dm-float-search input:focus {
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: var(--ice-glow);
}

.dm-float-conv-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}
.dm-float-conv-item:hover { background: rgba(255, 255, 255, 0.025); }
.dm-float-conv-item.active {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--teal);
}
.dm-float-conv-name { color: var(--text); font-family: var(--font-display); }
.dm-float-conv-preview { color: var(--text-muted); }
.dm-float-conv-time { color: var(--text-very-muted); font-family: var(--font-mono); font-size: 0.64rem; }

.dm-float-msg-avatar {
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.12));
  border: 1px solid var(--line-soft);
}
.dm-float-msg-me .dm-float-msg-bubble {
  background: var(--teal);
  color: #0a0a0c;
  border-bottom-right-radius: 4px;
}
.dm-float-msg-them .dm-float-msg-bubble {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.dm-float-msg-time { color: var(--text-very-muted); font-family: var(--font-mono); font-size: 0.62rem; }

.dm-float-input-bar {
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 15, 26, 0.9);
}
.dm-float-input-bar input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dm-float-input-bar input:focus {
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: var(--ice-glow);
}
.dm-float-send {
  background: var(--teal);
  color: #0a0a0c;
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(48, 213, 200, 0.12);
  transition: background 0.15s, box-shadow 0.15s;
}
.dm-float-send:hover { background: var(--teal-soft); box-shadow: 0 6px 18px rgba(48, 213, 200, 0.03); }
.dm-float-send:disabled { opacity: 0.35; }

/* ═══════════════════════════════════════════════════════════
   TEALRIOT INTERIOR — ICE SYSTEM II
   The pass that takes every remaining surface out of the old
   acid/violet era and into the editorial ice system. Where the
   feed layers made the timeline luxury, this makes the WHOLE
   product feel designed: pages, notifications, discovery,
   settings, console, pickers, modals, mobile.

   House rules honoured:
   - rounded-square 6–8px; circles only for avatars
   - violet reserved for verified / subnet / avatar-ring only
   - append-only; never refactor the history above
   ═══════════════════════════════════════════════════════════ */

:root {
  --ice-lift: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ice-rail: linear-gradient(180deg, var(--teal), rgba(255, 255, 255, 0.04));
  --num: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── 0. Sweep the last violet out of the global chrome ────── */
.app-shell ::-webkit-scrollbar-thumb,
.app-shell *::-webkit-scrollbar-thumb {
  background: rgba(48, 213, 200, 0.12);
  border-radius: 4px;
}
.app-shell ::-webkit-scrollbar-thumb:hover,
.app-shell *::-webkit-scrollbar-thumb:hover {
  background: rgba(48, 213, 200, 0.12);
}

.app-shell .topbar {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.98), rgba(6, 10, 18, 0.95));
}

/* Every text-ish input in the app speaks ice, not violet. */
.app-shell input[type="text"],
.app-shell input[type="email"],
.app-shell input[type="password"],
.app-shell input[type="search"],
.app-shell input[type="url"],
.app-shell input[type="number"],
.app-shell select,
.app-shell textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}
.app-shell input::placeholder,
.app-shell textarea::placeholder { color: var(--text-very-muted); }

/* Numerals are engineered, not incidental. */
.app-shell .stat .num,
.app-shell .chart-rank,
.app-shell .trend-rank,
.app-shell .notif-time,
.app-shell .post-actions .count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ── 1. The page masthead system ──────────────────────────── */
/* Every non-feed view gets the same editorial opening as the
   timeline: mono index kicker, display title with a serif
   italic accent, gradient hairline. This is what X never does. */
.tr-masthead {
  position: relative;
  padding: 28px 4px 24px;
  margin-bottom: 18px;
}
.tr-masthead-index {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(48, 213, 200, 0.78);
  margin-bottom: 13px;
}
.tr-masthead-title {
  margin: 0;
  font-family: var(--font-display);
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--text);
  text-transform: none;
}
.tr-masthead-title .tr-title-accent {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal);
}
.tr-masthead-deck {
  max-width: 58ch;
  margin: 15px 0 0;
  color: rgba(235, 235, 245, 0.58);
  font-family: var(--font-editorial);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.42;
}
.tr-publish-actions { display:flex;gap:10px;align-items:center;margin-top:22px; }
.tr-access-btn { display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:10px 16px;background:var(--teal);color:#00110e;font-size:.76rem;font-weight:750;cursor:pointer;transition:transform .18s var(--ease-out),box-shadow .18s var(--ease-out); }
.tr-access-btn:hover { transform:translateY(-1px);box-shadow:0 8px 24px rgba(48,213,200,.2); }
.tr-access-btn.ghost { background:transparent;color:var(--text);border:1px solid rgba(255,255,255,.14); }
.tr-access-btn svg { width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7; }
.tr-access-pending { padding:9px 13px;border:1px solid rgba(48,213,200,.2);border-radius:999px;font-family:var(--font-mono);font-size:.59rem;letter-spacing:.12em;text-transform:uppercase;color:var(--teal); }

.tr-editor-overlay,.tr-gate-overlay { position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.78);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px); }
.tr-editor-modal { width:min(880px,100%);max-height:94vh;overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:#111216;box-shadow:0 35px 100px rgba(0,0,0,.6); }
.tr-editor-head { position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid rgba(255,255,255,.075);background:rgba(17,18,22,.94);backdrop-filter:blur(12px); }
.tr-editor-head > div { display:flex;flex-direction:column;gap:2px; }
.tr-editor-head small { font-family:var(--font-mono);font-size:.5rem;letter-spacing:.18em;color:var(--teal); }
.tr-editor-head strong { font-size:.9rem; }
.tr-editor-head > button,.tr-gate-head > button { display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.09);border-radius:50%;background:transparent;color:var(--text);cursor:pointer; }
.tr-editor-head > button svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5; }
.tr-editor-sheet { padding:36px clamp(22px,7vw,76px); }
.tr-editor-title,.tr-editor-dek,.tr-editor-body { display:block;width:100%;resize:none;border:0;outline:0;background:transparent;color:var(--text); }
.tr-editor-title { min-height:64px;font-family:var(--font-display,var(--font));font-size:clamp(2rem,5vw,3.5rem);font-weight:780;line-height:1.04;letter-spacing:-.045em; }
.tr-editor-dek { margin-top:10px;font-family:Georgia,serif;font-size:1.15rem;line-height:1.5;color:rgba(235,235,245,.56); }
.tr-cover-control { margin:28px 0;border:1px dashed rgba(255,255,255,.14);border-radius:15px;overflow:hidden;background:rgba(255,255,255,.02); }
.tr-cover-preview { display:grid;place-items:center;min-height:180px;color:rgba(235,235,245,.35);font-family:var(--font-mono);font-size:.58rem;letter-spacing:.14em;text-transform:uppercase; }
.tr-cover-preview img { display:block;width:100%;max-height:380px;object-fit:cover; }
.tr-cover-control > div:last-child { display:flex;align-items:center;gap:10px;padding:11px 13px;border-top:1px solid rgba(255,255,255,.07); }
.tr-cover-control > div:last-child > span { color:var(--text-muted);font-size:.68rem; }
.tr-cover-upload { flex-shrink:0;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.08);font-size:.7rem;font-weight:650;cursor:pointer; }
.tr-cover-upload input { display:none; }
#tr-article-image { flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text-dim);font-size:.72rem; }
.tr-format-bar { position:sticky;top:67px;z-index:1;display:flex;align-items:center;gap:5px;margin:0 -10px 18px;padding:8px 10px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(20,21,25,.94);backdrop-filter:blur(10px); }
.tr-format-bar button { display:grid;place-items:center;width:32px;height:30px;border:0;border-radius:7px;background:transparent;color:var(--text-dim);cursor:pointer; }
.tr-format-bar button:hover { background:rgba(255,255,255,.08);color:var(--text); }
.tr-format-bar button svg { width:15px;height:15px;fill:currentColor;stroke:currentColor;stroke-width:1.4; }
.tr-format-bar > span { margin-left:auto;font-size:.63rem;color:var(--text-muted); }
.tr-editor-body { min-height:390px;font-family:Georgia,serif;font-size:1.12rem;line-height:1.75; }
.tr-editor-foot { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08); }
#tr-article-status { font-size:.74rem;color:var(--text-muted); }
.tr-editor-foot > div:last-child { display:flex;gap:8px; }
.tr-editor-foot button { padding:9px 15px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.07);color:var(--text);font-weight:650;cursor:pointer; }
.tr-editor-foot #tr-article-submit { border-color:transparent;background:var(--teal);color:#00110e; }
.tr-editor-foot .tr-editor-cancel { background:transparent;border-color:transparent;color:var(--text-muted); }

.tr-reader { max-width:760px;margin:0 auto;padding:42px 28px 100px; }
.tr-reader-back { margin-bottom:45px;border:0;background:transparent;color:var(--text-muted);font-size:.72rem;cursor:pointer; }
.tr-reader-kicker { margin-bottom:13px;font-family:var(--font-mono);font-size:.56rem;letter-spacing:.2em;color:var(--teal); }
.tr-reader h1 { font-family:var(--font-display,var(--font));font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.02;letter-spacing:-.055em; }
.tr-reader-dek { margin:20px 0 16px;font-family:Georgia,serif;font-size:1.28rem;line-height:1.5;color:rgba(235,235,245,.62); }
.tr-reader-byline { display:flex;align-items:center;gap:9px;margin:22px 0 34px;font-size:.72rem;color:var(--text-muted); }
.tr-reader-byline span { width:3px;height:3px;border-radius:50%;background:var(--teal); }
.tr-reader-cover { width:calc(100% + 80px);max-height:640px;margin:0 -40px 44px;object-fit:cover;border-radius:16px; }
.tr-reader-body { font-family:Georgia,serif;font-size:1.12rem;line-height:1.82;color:rgba(245,245,248,.88); }
.tr-reader-body p,.tr-reader-body ul,.tr-reader-body blockquote { margin:0 0 1.6em; }
.tr-reader-body h2 { margin:1.6em 0 .65em;font-family:var(--font-display,var(--font));font-size:2rem;letter-spacing:-.035em; }
.tr-reader-body h3 { margin:1.5em 0 .6em;font-size:1.35rem; }
.tr-reader-body blockquote { padding:5px 0 5px 24px;border-left:3px solid var(--teal);font-size:1.35rem;font-style:italic;color:#fff; }
.tr-reader-body li { margin:.4em 0; }

.tr-gate-modal { width:min(620px,100%);max-height:82vh;overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:#131419; }
.tr-gate-head { display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid rgba(255,255,255,.08); }
.tr-gate-head small { font-family:var(--font-mono);font-size:.5rem;letter-spacing:.18em;color:var(--teal); }
.tr-gate-head h2 { margin-top:3px;font-size:1.2rem; }
.tr-gate-list { padding:10px; }
.tr-gate-row { display:flex;justify-content:space-between;gap:18px;padding:14px;border-bottom:1px solid rgba(255,255,255,.065); }
.tr-gate-row p { margin-top:4px;font-size:.73rem;color:var(--text-muted); }
.tr-gate-row > div:last-child { display:flex;gap:6px;align-items:center; }
.tr-gate-row button { padding:7px 10px;border:0;border-radius:8px;background:var(--teal);color:#00110e;font-weight:700;cursor:pointer; }
.tr-gate-row button.deny { background:rgba(255,255,255,.08);color:var(--text-dim); }
.tr-gate-empty { padding:28px;text-align:center;color:var(--text-muted);font-size:.8rem; }
.tr-masthead::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, rgba(48, 213, 200, 0.72), rgba(48, 213, 200, 0.12) 34%, transparent 78%);
}

/* Legacy .page-title pages inherit the same voice for free. */
.app-shell .page-card { padding: 0 4px 80px; }
.app-shell .page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.app-shell .page-title svg { width: 20px; height: 20px; opacity: 0.75; }
.app-shell .charts-week {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}

/* Shared empty voice for every page-level empty state. */
.app-shell .sidebar-empty {
  color: var(--text-muted);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  text-align: center;
  border: 1px dashed var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
}

/* ── 3. Charts — the ranking board ────────────────────────── */
.app-shell .chart-section-title {
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.app-shell .chart-list { gap: 0; }
.app-shell .chart-entry {
  gap: 16px;
  padding: 13px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  transition: background 0.16s ease, padding-left 0.2s var(--ease-out);
}
.app-shell .chart-entry:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 16px;
}
.app-shell .chart-rank {
  width: 34px;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: left;
  transition: color 0.16s;
}
.app-shell .chart-entry:hover .chart-rank { color: var(--teal); }
/* The podium earns its own weight. */
.app-shell .chart-list .chart-entry:nth-child(1) .chart-rank { color: var(--teal); font-size: 1.5rem; }
.app-shell .chart-list .chart-entry:nth-child(2) .chart-rank { color: var(--teal-dim); font-size: 1.38rem; }
.app-shell .chart-list .chart-entry:nth-child(3) .chart-rank { color: var(--text-muted); font-size: 1.3rem; }

.app-shell .chart-entry .release-cover {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #000;
  display: grid;
  place-items: center;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.app-shell .chart-entry:hover .release-cover {
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: var(--ice-glow);
}
.app-shell .chart-entry .release-cover img { width: 100%; height: 100%; object-fit: cover; }
.app-shell .chart-entry .release-title {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}
.app-shell .chart-entry .release-genre {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.app-shell .chart-entry .release-genre:hover { color: var(--teal); }
.app-shell .chart-entry .release-stats {
  margin-top: 3px;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app-shell .chart-peak-note { color: var(--riot-dim); margin-right: 8px; }

.app-shell .track-play-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.app-shell .track-play-btn:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #0a0a0c;
  box-shadow: 0 4px 16px rgba(48, 213, 200, 0.12);
}
.app-shell .track-play-btn svg { width: 13px; height: 13px; }

/* ── 4. Trending — velocity board ─────────────────────────── */
.app-shell .trending-list-full .trend-item {
  gap: 16px;
  padding: 14px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.16s ease, padding-left 0.2s var(--ease-out);
}
.app-shell .trending-list-full .trend-item:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 16px;
}
.app-shell .trending-list-full .trend-rank {
  width: 32px;
  flex-shrink: 0;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: color 0.16s;
}
.app-shell .trending-list-full .trend-item:hover .trend-rank { color: var(--teal); }
.app-shell .trending-list-full .trend-tag {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.15s;
}
.app-shell .trending-list-full .trend-item:hover .trend-tag { color: var(--teal); }
.app-shell .trending-list-full .trend-stats {
  margin-top: 3px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 5. Artists — the roster ──────────────────────────────── */
.app-shell .artist-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.16s ease, padding-left 0.2s var(--ease-out);
}
.app-shell .artist-row:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 16px;
}
.app-shell .artist-row .avatar {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(37, 44, 54, 0.12));
  border: 1px solid var(--line-soft);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.app-shell .artist-row:hover .avatar {
  border-color: rgba(48, 213, 200, 0.04);
  box-shadow: var(--ice-glow);
}
.app-shell .artist-row-name {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.app-shell .artist-row:hover .artist-row-name { color: var(--teal); }
.app-shell .artist-row-handle {
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}
.app-shell .artist-row-stats {
  flex-shrink: 0;
  text-align: right;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
}
.app-shell .artist-row-stats strong {
  color: var(--text-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ── 6. EYEPLVY — the cinema keeps its riot ───────────────── */
.eyevly-cinema-hero {
  padding: 34px 4px 26px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}
.eyevly-cinema-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 30px rgba(37, 44, 54, 0.12);
}
.eyevly-cinema-tagline {
  margin: 16px 0 0;
  color: var(--riot);
  font-family: var(--font-editorial);
  font-style: normal;
  font-size: 1.22rem;
  letter-spacing: 0;
}
.eyevly-cinema-credit {
  margin: 10px 0 0;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyevly-cinema-edit-btn {
  margin-top: 20px;
  border: 1px solid rgba(37, 44, 54, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--riot);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.eyevly-cinema-edit-btn:hover {
  background: rgba(37, 44, 54, 0.1);
  border-color: var(--riot);
  box-shadow: 0 0 20px rgba(37, 44, 54, 0.12);
}

.eyevly-cinema-section-title {
  margin: 30px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyevly-cinema .eyevly-card {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}
.eyevly-cinema .eyevly-card:hover {
  border-color: rgba(48, 213, 200, 0.30);
  transform: translateY(-3px);
  box-shadow: var(--ice-lift);
}
.eyevly-cinema .eyevly-card-featured { border-color: rgba(37, 44, 54, 0.28); }
.eyevly-cinema .eyevly-card-featured:hover {
  border-color: var(--riot);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(37, 44, 54, 0.12);
}
.eyevly-featured-tag {
  background: rgba(37, 44, 54, 0.14);
  border: 1px solid rgba(37, 44, 54, 0.32);
  border-radius: 4px;
  color: var(--riot);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 4px 8px;
}
.eyevly-thumb { background: #000; border-radius: 0; }
.eyevly-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyevly-play-overlay { background: rgba(3, 8, 16, 0.55); backdrop-filter: blur(2px); }


.eyevly-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.eyevly-creator {
  margin-top: 8px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.78rem;
}
.eyevly-provenance {
  display: block;
  margin-bottom: 3px;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyevly-cinema-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.1rem;
}

/* ── 7. Settings — the control desk ───────────────────────── */
.settings-hero {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(11, 15, 14, 0.6), transparent);
}
.settings-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.settings-hero-sub {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.settings-hero-admin {
  border: 1px solid rgba(37, 44, 54, 0.3);
  border-radius: 999px;
  background: rgba(37, 44, 54, 0.08);
  color: var(--riot);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.settings-hero-admin:hover {
  background: rgba(37, 44, 54, 0.14);
  border-color: var(--riot);
}

.settings-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  scrollbar-width: none;
  overflow-x: auto;
}
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 8px 14px;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.settings-tab:hover {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.settings-tab.active {
  color: var(--teal);
  background: transparent;
  border-bottom-color: var(--teal);
  box-shadow: none;
}
.settings-glass {
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.settings-panel label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── 8. Command console (⌘K) ──────────────────────────────── */
.tr-cmd-overlay {
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: cmdFade 0.18s var(--ease-out);
}
@keyframes cmdFade { from { opacity: 0; } to { opacity: 1; } }

.tr-cmd-modal {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.035), var(--ice-glow);
  animation: cmdRise 0.24s var(--ease-out);
}
@keyframes cmdRise {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tr-cmd-input-wrap {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.01);
}
.tr-cmd-input-wrap svg { color: var(--teal); stroke: var(--teal); }
.tr-cmd-input { color: var(--text); font-family: var(--font-mono); letter-spacing: 0.04em; }
.tr-cmd-input::placeholder { color: var(--text-very-muted); }
.tr-cmd-results { scrollbar-color: rgba(48, 213, 200, 0.22) transparent; }
.tr-cmd-result {
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease, padding-left 0.16s var(--ease-out);
}
.tr-cmd-result:hover,
.tr-cmd-result.selected {
  background: rgba(255, 255, 255, 0.035);
  padding-left: 24px;
}
.tr-cmd-result.selected { border-left-color: var(--teal); }
.tr-cmd-result-icon { color: var(--text-muted); }
.tr-cmd-result.selected .tr-cmd-result-icon { color: var(--teal); }
.tr-cmd-result-label { font-family: var(--font-mono); color: var(--text-dim); letter-spacing: 0.04em; }
.tr-cmd-result.selected .tr-cmd-result-label { color: var(--text); }
.tr-cmd-result-shortcut { color: var(--text-very-muted); letter-spacing: 0.1em; }
.tr-cmd-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(6, 10, 18, 0.7);
}
.tr-cmd-hint { color: var(--text-very-muted); font-family: var(--font-mono); }
.tr-cmd-hint kbd {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.tr-cmd-empty {
  color: var(--text-muted);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

/* ── 9. Pickers, modals, dropdowns ────────────────────────── */
/* openEmojiPicker() deliberately reuses the gif-picker chrome
   (`picker.className = 'gif-picker'`), so these cover both pickers. */
.gif-picker {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.gif-picker-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.01);
}
.gif-picker-header input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-display);
}
.gif-picker-header input:focus {
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: var(--ice-glow);
}
.gif-close,
.story-modal-close {
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.gif-close:hover,
.story-modal-close:hover {
  color: var(--danger);
  background: rgba(255, 71, 87, 0.1);
}
.gif-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.15s, transform 0.18s var(--ease-out);
}
.gif-item:hover {
  border-color: rgba(48, 213, 200, 0.05);
  transform: scale(1.02);
  box-shadow: var(--ice-glow);
}

.emoji-category-title {
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.emoji-item {
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.emoji-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.15);
}

.story-modal-header,
.story-modal-footer {
  border-color: var(--line-soft);
}
.story-modal-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.upload-error-box {
  background: var(--surface-2);
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.upload-error-msg { color: var(--text-dim); font-family: var(--font-display); }
.upload-error-close {
  border-radius: 999px;
  background: var(--teal);
  color: #0a0a0c;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
}
.upload-error-close:hover { background: var(--teal-soft); }

.upload-form label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Search — dropdown + results share the ice grammar. */
.search-dropdown {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.search-result {
  border-bottom: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  transition: background 0.14s, border-color 0.14s, padding-left 0.16s var(--ease-out);
}
.search-result:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--teal);
  padding-left: 16px;
}
.search-result:last-child { border-bottom: none; }

/* ── 10. Thread spine — curved joins beat straight lines ──── */
/* X draws a flat vertical rule. A curved elbow into each avatar
   reads engineered rather than accidental. */
.thread-replies .reply-card::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 20px;
  width: 13px;
  height: 13px;
  border-left: 2px solid rgba(48, 213, 200, 0.22);
  border-bottom: 2px solid rgba(48, 213, 200, 0.22);
  border-bottom-left-radius: 10px;
  pointer-events: none;
  z-index: 0;
}
.thread-replies .reply-card:hover::before {
  background: linear-gradient(180deg, var(--teal), rgba(48, 213, 200, 0.12));
}
.thread-replies .reply-card:hover::after {
  border-color: rgba(48, 213, 200, 0.05);
}
.thread-replies .reply-card:last-child::before {
  bottom: auto;
  height: 26px;
}

/* TealRiot reading signal — the intentional color bar at the feed top. */
@supports (animation-timeline: scroll()) {
  .feed-center::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    display: block;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--teal-soft), var(--teal), var(--riot));
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    z-index: 40;
    animation: trReadProgress linear both;
    animation-timeline: scroll(self);
  }
  @keyframes trReadProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ── 11. Motion & material ────────────────────────────────── */
.post-card {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}
.feed-main #feed .post-card:hover {
  border-color: rgba(48, 213, 200, 0.22);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

/* Skeletons breathe instead of blinking. */
.skeleton-line,
.skeleton-avatar {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(48, 213, 200, 0.13) 50%,
    rgba(255, 255, 255, 0.025) 70%
  );
  background-size: 220% 100%;
  animation: iceShimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes iceShimmer {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *,
  .app-shell *::before,
  .app-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 12. Mobile — the small-screen audit ──────────────────── */
@media (max-width: 600px) {
  .tr-masthead { padding: 16px 2px 14px; }
  .tr-masthead-title { font-size: 1.75rem; }
  .tr-masthead-deck { font-size: 1rem; }
  .tr-article-card { grid-template-columns: minmax(0, 1fr) 112px; border-radius: 0; }
  .tr-article-card .article-thumb { width: 112px; height: 88px; min-height: 0; aspect-ratio: auto; }
  .tr-article-body { padding: 16px 12px 16px 0; }
  .tr-article-title { font-size: 1.04rem; }
  .tr-article-excerpt { font-size: 0.78rem; }
  .tr-article-meta { gap: 5px 9px; }
  .tr-article-meta span + span::before { margin-right: 9px; }

  .app-shell .page-card { padding: 0 2px 90px; }
  .app-shell .page-title { font-size: 1.35rem; }

  .notif-page-head { min-height: 64px; padding: 0 16px; }
  .notif-page-head h2 { font-size: 1.25rem; }
  #notif-list { padding: 8px 10px 84px; }
  .notif-section-header { top: 64px; }
  .app-shell .notif-item { min-height: 72px; padding: 12px 14px; gap: 12px; }
  .app-shell .notif-icon { width: 20px; height: 20px; }
  .app-shell .notif-text { font-size: 0.84rem; }
  .notif-primary { gap: 9px; }
  .notif-time { font-size: .55rem; }

  .app-shell .chart-entry { gap: 12px; padding: 12px 4px; }
  .app-shell .chart-entry:hover { padding-left: 4px; }
  .app-shell .chart-rank { width: 26px; font-size: 1.05rem; }
  .app-shell .chart-entry .release-cover { width: 40px; height: 40px; }

  .app-shell .trending-list-full .trend-item { padding: 13px 4px; gap: 12px; }
  .app-shell .trending-list-full .trend-item:hover { padding-left: 4px; }

  .app-shell .artist-row { padding: 13px 4px; gap: 12px; }
  .app-shell .artist-row:hover { padding-left: 4px; }
  .app-shell .artist-row-stats { font-size: 0.6rem; }

  .eyevly-cinema-hero { padding: 24px 2px 20px; }
  .eyevly-cinema-tagline { font-size: 1.05rem; }

  .tr-cmd-overlay { padding-top: 8vh; }
  .tr-cmd-modal { width: 94vw; border-radius: 12px; }
  .tr-cmd-footer { flex-wrap: wrap; gap: 10px; }

  .dm-float-panel { border-radius: 12px 12px 0 0; }
  .thread-replies .reply-card::after { left: 15px; }
}

/* ── 13. Account row avatar can carry a real image ────────── */
/* updateAccountRow() swaps in an <img> when the user has an avatar; without
   this the gradient placeholder would show through and the image would spill. */
.account-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  overflow: hidden !important;
  display: grid !important;
  place-items: center;
  border-radius: 7px !important;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
}
.account-avatar img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  border-radius: inherit;
}

/* ═══════════════════════════════════════════════════════════
   TEALRIOT INTERIOR — PREMIUM RAILS
   Left nav + right RADAR elevated: quieter glass, denser type
   hierarchy, restrained ice glow. Append-only.
   ═══════════════════════════════════════════════════════════ */

/* Left rail — docked glass column */
.left-nav {
  background:
    linear-gradient(180deg, rgba(11, 15, 14, 0.92) 0%, rgba(6, 10, 18, 0.97) 100%);
  border-right: 1px solid rgba(238, 241, 245, 0.10);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding: 20px 14px 18px;
}


.tr-brand {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}


.sidebar-search-inline {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(238, 241, 245, 0.12);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.sidebar-search-inline:focus-within {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035), var(--ice-glow);
}

.left-nav-item {
  border-radius: 8px;
  margin: 2px 0;
  padding: 11px 12px 11px 10px;
  border-left-width: 2px;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.left-nav-item .nav-index {
  font-size: 0.55rem;
  opacity: 0.85;
}




.left-nav-section-header {
  margin-top: 16px;
  padding-top: 14px;
  letter-spacing: 0.22em;
  color: var(--text-very-muted);
}

/* Account dock — contained capsule */
.left-nav-account-row {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(238, 241, 245, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  gap: 11px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.account-name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.account-handle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.account-flyout {
  background: rgba(8, 12, 20, 0.97);
  border: 1px solid rgba(238, 241, 245, 0.14);
  border-radius: 12px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.account-flyout-item {
  border-radius: 0;
  padding: 11px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.account-flyout-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

/* Right rail — RADAR as a quiet instrument panel */
.right-sidebar {
  background:
    linear-gradient(180deg, rgba(10, 15, 26, 0.94) 0%, rgba(6, 10, 18, 0.98) 100%);
  border-left: 1px solid rgba(238, 241, 245, 0.10);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  padding: 16px 14px 24px;
}

.right-sidebar .sidebar-card,
#radar-card,
.right-sidebar .radar-card,
.right-sidebar [class*="widget"] {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(238, 241, 245, 0.10);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* RADAR header / tabs */
.radar-header,
#radar-card .card-header,
.right-sidebar .section-kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.radar-tabs,
#radar-tabs,
.trending-scope-tabs,
#trending-scope-tabs {
  gap: 4px;
}
.radar-tabs button,
#radar-tabs button,
.trending-scope-tabs button,
#trending-scope-tabs button,
.right-sidebar .scope-tab {
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.radar-tabs button:hover,
#radar-tabs button:hover,
.trending-scope-tabs button:hover,
#trending-scope-tabs button:hover {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.025);
}
.radar-tabs button.active,
#radar-tabs button.active,
.trending-scope-tabs button.active,
#trending-scope-tabs button.active,
.right-sidebar .scope-tab.active {
  color: var(--teal-soft);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(48, 213, 200, 0.22);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}

/* Trending / discover rows */
.right-sidebar .trend-item,
.right-sidebar .hot-region-item,
.right-sidebar .suggested-user,
.right-sidebar .discover-item {
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.right-sidebar .trend-item:hover,
.right-sidebar .hot-region-item:hover,
.right-sidebar .suggested-user:hover,
.right-sidebar .discover-item:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(238, 241, 245, 0.10);
}

.right-sidebar input[type="text"],
.right-sidebar input[type="search"],
#nullxre-search-input,
.right-sidebar .search-input {
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(238, 241, 245, 0.12) !important;
}

@media (prefers-reduced-motion: reduce) {
  .left-nav-item,
  .left-nav-account-row,
  .sidebar-search-inline,
  .radar-tabs button,
  .trending-scope-tabs button {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   TEALRIOT — STORY COMPOSER (out of 2010)
   Replace the dashed-box "New Story" dialog with the same
   ice/editorial language as the rest of the app.
   ═══════════════════════════════════════════════════════════ */

.story-modal-overlay {
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 24px;
}

.story-modal {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(37, 44, 54, 0.06), transparent 50%),
    rgba(10, 15, 26, 0.98);
  border: 1px solid rgba(238, 241, 245, 0.16);
  border-radius: 14px;
  max-width: 440px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.story-modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: start;
  padding: 22px 22px 0;
  border-bottom: none;
  position: relative;
}

.story-modal-kicker {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dim);
}

.story-modal-index {
  color: var(--teal);
}

.story-modal-header h3 {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.story-modal-header h3 .tr-title-accent {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.01em;
}

.story-modal-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(238, 241, 245, 0.14);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.story-modal-close:hover {
  color: var(--text);
  background: rgba(255, 71, 87, 0.1);
  border-color: rgba(255, 71, 87, 0.35);
}

.story-modal-body {
  padding: 18px 22px 8px;
  gap: 14px;
}

.story-caption-input {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(238, 241, 245, 0.14);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.55;
  padding: 14px 16px;
  min-height: 120px;
  resize: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.story-caption-input:focus {
  border-color: rgba(48, 213, 200, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04), var(--ice-glow);
  background: rgba(255, 255, 255, 0.015);
  outline: none;
}
.story-caption-input::placeholder {
  color: var(--text-very-muted);
  font-weight: 400;
}

.story-upload-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.story-upload-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(238, 241, 245, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: var(--teal-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.story-upload-chip:hover {
  border-color: rgba(48, 213, 200, 0.04);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--ice-glow);
}
.story-upload-chip svg { flex-shrink: 0; color: var(--teal); }
.story-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.story-upload-copy strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.story-upload-copy small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.story-upload-chip .video-duration-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0c;
  background: var(--teal);
  border-radius: 6px;
  padding: 4px 8px;
}
.story-upload-hint {
  margin: 0;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-very-muted);
}

/* Kill the old tool-btn look if anything still uses it inside the modal */
.story-modal .tool-btn.video-upload-btn {
  display: none;
}

.story-modal .video-preview {
  position: relative;
  border: 1px solid rgba(238, 241, 245, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.story-modal .video-preview video {
  max-height: 200px;
  border-radius: 0;
}
.story-modal .video-preview .preview-remove {
  background: rgba(6, 10, 18, 0.75);
  border: 1px solid rgba(238, 241, 245, 0.2);
  border-radius: 7px;
  color: var(--text);
  width: 28px;
  height: 28px;
}
.story-modal .video-preview .preview-remove:hover {
  background: rgba(255, 71, 87, 0.85);
  border-color: transparent;
}
.story-modal .video-duration-indicator {
  background: rgba(6, 10, 18, 0.82);
  border: 1px solid rgba(48, 213, 200, 0.30);
  color: var(--teal-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  border-radius: 6px;
  padding: 3px 7px;
}

.story-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 22px 22px;
  justify-content: flex-end;
  border-top: 1px solid rgba(238, 241, 245, 0.08);
  margin-top: 8px;
}

.story-cancel-btn {
  background: transparent;
  border: 1px solid rgba(238, 241, 245, 0.16);
  border-radius: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.story-cancel-btn:hover {
  color: var(--text);
  border-color: rgba(238, 241, 245, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.story-submit-btn {
  background: var(--teal);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #0a0a0c;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.story-submit-btn:hover {
  background: var(--teal-soft);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .story-modal { max-width: 100%; border-radius: 12px; }
  .story-modal-header h3 { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════════════════
   TEALRIOT — SOCIAL CALM (X / Threads rhythm)
   Keep ice identity. Drop ops-console chrome. Hairline feed,
   circular avatars, airy nav, sticky For you tabs, Post CTA.
   Append-only. 2026-08-10 ice5.
   ═══════════════════════════════════════════════════════════ */

/* Shell — theme-owned base (pure/lifted #000, cyber obsidian) */
.app-shell.active {
  background: var(--bg) !important;
}
.feed-center,
.feed-main,
.feed-layout {
  background: var(--bg) !important;
}

/* ── Left nav: Threads air, X Post pill ─────────────────── */
.left-nav {
  background: var(--nav-bg) !important;
  border-right: 1px solid var(--line-soft) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 12px 12px 14px !important;
  gap: 2px;
}
.left-nav .brand {
  padding: 8px 10px 18px !important;
  margin-bottom: 6px !important;
  border-bottom: none !important;
}
.tr-brand { font-size: 1.35rem !important; }
.tr-brand-riot { text-shadow: none !important; }

.sidebar-search-inline {
  display: none !important; /* discovery lives on the right, like X */
}

.nav-index,
.tab-index,
.feed-masthead-index,
.radar-trend-rank {
  display: none !important;
}

.left-nav-item {
  border-left: none !important;
  border-radius: 999px !important;
  margin: 1px 0 !important;
  padding: 12px 16px !important;
  gap: 16px;
  font-size: 1.05rem !important;
  font-weight: 500;
  letter-spacing: -0.01em !important;
  color: var(--text);
  box-shadow: none !important;
}
.left-nav-item svg,
.left-nav-item img {
  width: 19px !important;
  height: 19px !important;
  flex-shrink: 0;
}
.left-nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-left-color: transparent !important;
}
.left-nav-item.active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  color: #fff;
}
.left-nav-item.active#nav-eyeplay,
#nav-eyeplay:hover {
  background: rgba(37, 44, 54, 0.10) !important;
}

.left-nav-section-header {
  margin-top: 18px !important;
  padding: 10px 16px 6px !important;
  letter-spacing: 0.08em !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  border-top: none !important;
}

/* Big Post CTA — X white pill, iced */
/* Account dock — circular avatar, X row */
.left-nav-account-row {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  padding: 10px 12px !important;
  margin-top: 4px !important;
  gap: 12px !important;
}
.left-nav-account-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.account-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.account-avatar img {
  border-radius: 50% !important;
}
.account-name {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}
.account-handle {
  font-family: var(--font-display) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0 !important;
  text-transform: none;
}
.account-more { color: var(--text-muted); flex-shrink: 0; }

/* ── Feed tabs — sticky For you / Following ─────────────── */
.feed-tabs,
.feed-tabs-sticky {
  display: flex !important;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}
.feed-tabs button {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: var(--text-muted) !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 16px 12px !important;
  box-shadow: none !important;
}
.feed-tabs button:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text) !important;
}
.feed-tabs button.active {
  color: #fff !important;
  font-weight: 700 !important;
  border-bottom-color: var(--teal) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Hide leftover editorial masthead if any view still emits it */
.feed-masthead { display: none !important; }

/* ── Composer — Threads strip ───────────────────────────── */
.main-composer {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 16px 12px !important;
  margin: 0 !important;
}
.main-composer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.main-composer-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border-radius: 50% !important;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.main-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.composer-input-wrap { flex: 1; min-width: 0; }
#composer-text,
.main-composer textarea {
  font-size: 1.2rem !important;
  line-height: 1.4 !important;
  padding: 8px 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 28px;
}
.main-composer .composer-footer {
  padding-left: 52px;
  margin-top: 4px;
}
.main-composer .btn-post {
  border-radius: 999px !important;
  background: var(--teal) !important;
  color: #0a0a0c !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  box-shadow: none !important;
}


/* ── Posts — X/Threads row (avatar | content) ───────────── */
#feed {
  display: flex;
  flex-direction: column;
}
.post-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  transition: background 0.12s ease;
}
.post-card:hover {
  background: rgba(255, 255, 255, 0.025) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

.post-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.post-avatar-col {
  flex-shrink: 0;
  width: 40px;
}
.post-content-col {
  flex: 1;
  min-width: 0;
}

.post-card .avatar,
.post-avatar-col .avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
}
.post-card .avatar img,
.post-avatar-col .avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.post-card .post-header {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 2px;
  padding: 0;
}
.post-card .post-header .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  min-width: 0;
  width: 100%;
}
.post-card .post-header .name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #fff;
  display: inline;
}
.post-card .post-header .handle,
.post-card .post-header .time,
.post-meta-sep {
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0 !important;
}
.post-meta-sep { margin: 0 2px; }

.post-card .post-body {
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
  color: var(--text);
  margin: 2px 0 10px;
  padding: 0;
}
.post-card .post-image,
.post-card .post-video {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 8px 0 4px;
  width: 100%;
  background: #000;
}
.post-card .post-image img,
.post-card .post-video video {
  border-radius: 16px;
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

/* ── Carousel (multi-image posts) — natural height, no crop ── */
.post-card .post-image.carousel {
  position: relative;
  width: 100%;
  max-height: 560px;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  margin: 8px 0 4px;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 0;
  max-height: 560px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.carousel-arrow:hover { background: rgba(0, 0, 0, 0.75); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, width 0.2s ease;
}
.carousel-dot.active {
  background: #30d5c8;
  width: 18px;
}

.post-card .post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  max-width: 100%;
  justify-content: space-between;
}
.post-card .post-actions button {
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--text-muted) !important;
  padding: 6px 10px !important;
  min-width: 0;
  gap: 6px;
  font-size: 0.82rem;
}
.post-card .post-actions button:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--teal) !important;
}
.post-card .post-actions .btn-like.liked,
.post-card .post-actions .btn-like:hover {
  color: #14E0C8 !important;
}
.post-card .post-actions .btn-like.liked:hover {
  background: rgba(37, 44, 54, 0.1) !important;
}

/* ── Right rail — quieter cards, less HUD ───────────────── */
.right-sidebar {
  background: var(--bg) !important;
  border-left: 1px solid var(--line-soft) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 14px 16px 28px !important;
}
.right-sidebar .sidebar-card,
#radar-card,
.right-sidebar .radar-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden;
}
.radar-header,
#radar-card .card-header {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: #fff !important;
  padding: 14px 16px 8px;
}
.radar-glyph { display: none; }
.radar-tabs button,
#radar-tabs button,
.trending-scope-tabs button {
  border-radius: 999px !important;
  font-family: var(--font-display) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 6px 12px !important;
}
.radar-trend-item {
  padding: 12px 16px !important;
  border-radius: 0 !important;
  gap: 10px;
}
.radar-trend-tag {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}
.radar-trend-heat { display: none !important; }
.radar-trend-count {
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  color: var(--text-muted);
}

/* Stories sit quieter under composer */
#stories-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .nav-post-btn { display: none; } /* FAB still covers mobile */
}

/* ═══════════════════════════════════════════════════════════
   TEALRIOT — DISCOVER RAIL (right widget)
   Quiet card stack: search · what's moving · who to follow.
   Mesh demoted to Network tab. Append-only. ice6.
   ═══════════════════════════════════════════════════════════ */

.right-sidebar {
  background: var(--bg) !important;
  border-left: 1px solid var(--line-soft) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 14px 16px 32px !important;
  overflow: hidden;
}

.discover-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px !important;
}

.discover-rail:has(.discover-content) {
  flex: 1;
  min-height: 0;
}

.discover-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

/* Feed-aware content wrapper — fills all remaining space below search */
.discover-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Articles card: full-bleed */
.discover-content #tr-articles-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.discover-content #tr-articles-card .discover-card-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Riot Pulse card: full-bleed on post feeds */
.discover-content #riot-pulse-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.discover-content #riot-pulse-card .pulse-trending {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* EYEPLVY rail — YouTube-style thumbnails, scrollable */
.discover-content #eyeplay-rail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.discover-content #eyeplay-rail .eyeplay-rail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 8px;
}
.discover-content #live-sidebar {
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.discover-content #live-sidebar .live-chat {
  flex: 1;
  min-height: 0;
  height: auto;
}
.eyeplay-rail-row {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 8px;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.eyeplay-rail-row:hover { background: rgba(255,255,255,0.06); transform: translateX(2px); }
.eyeplay-rail-thumb {
  width: 92px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
  position: relative;
}
.eyeplay-rail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eyeplay-rail-dur {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 999px;
  font-family: var(--font-mono);
}
.eyeplay-rail-body::-webkit-scrollbar { width: 4px; }
.eyeplay-rail-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
.discover-content #eyeplay-rail .flicks-rail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 8px;
}
.flicks-rail-tile {
  min-width: 0;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.flicks-rail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: linear-gradient(145deg, #16191d, #070809);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.flicks-rail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out), filter 0.25s;
}
.flicks-rail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.12) 52%, rgba(0,0,0,0.92) 100%);
}
.flicks-rail-rank,
.flicks-rail-dur {
  position: absolute;
  top: 8px;
  z-index: 2;
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(5,7,9,0.68);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.82);
  font: 700 0.55rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}
.flicks-rail-rank { left: 8px; color: var(--teal); }
.flicks-rail-dur { right: 8px; letter-spacing: 0; }
.flicks-rail-play {
  position: absolute;
  right: 9px;
  bottom: 47px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(48, 213, 200, 0.92);
  color: #00110e;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transform: scale(0.9);
  transition: transform 0.18s var(--ease-out);
}
.flicks-rail-copy {
  position: absolute;
  right: 9px;
  bottom: 10px;
  left: 9px;
  z-index: 2;
  min-width: 0;
}
.flicks-rail-copy strong,
.flicks-rail-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flicks-rail-copy strong { color: #fff; font-size: 0.72rem; line-height: 1.2; }
.flicks-rail-copy small { margin-top: 3px; color: rgba(255,255,255,0.58); font: 600 0.56rem/1.2 var(--font-mono); }
.flicks-rail-tile:hover .flicks-rail-poster {
  transform: translateY(-3px);
  border-color: rgba(48, 213, 200, 0.32);
  box-shadow: 0 14px 30px rgba(0,0,0,0.42);
}
.flicks-rail-tile:hover img { transform: scale(1.04); filter: saturate(1.08); }
.flicks-rail-tile:hover .flicks-rail-play { transform: scale(1); }

/* Trending pfp — replaces rank number */
.trending-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Theme-aware rail cards — every theme gets its surface tokens, never hardcoded */
body.theme-lifted .discover-card,
body.theme-lifted .right-sidebar .discover-card {
  background: var(--bg-card);
  border-color: var(--line-soft);
}
body.theme-cyber .discover-card,
body.theme-cyber .right-sidebar .discover-card {
  background: var(--bg-card);
  border-color: var(--line-soft);
}

.discover-card.sticky,
.discover-search.sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.discover-search {
  padding: 0;
}

.discover-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--text-muted);
}
.discover-search-row svg { flex-shrink: 0; opacity: 0.75; }
.discover-search-row input,
.discover-search .sidebar-search-input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  padding: 0 !important;
}


.discover-search .search-dropdown {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
  border-radius: 0 0 16px 16px;
}

.discover-tabs,
.discover-rail .radar-tabs {
  display: flex !important;
  gap: 4px !important;
  padding: 2px !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px !important;
  margin: 0 !important;
}

.discover-tab,
.discover-rail .radar-tab {
  flex: 1;
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  font-family: var(--font-display) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
  cursor: pointer;
}

.discover-tab.active,
.discover-rail .radar-tab.active {
  color: #0a0a0c !important;
  background: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.discover-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discover-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 10px;
}

.discover-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.discover-card-meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.discover-scope {
  display: flex;
  gap: 4px;
}
.discover-scope button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
}
.discover-scope button:hover { color: var(--text); }
.discover-scope button.active {
  color: var(--teal-soft, #7be8de);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(48, 213, 200, 0.22);
}


.discover-empty {
  padding: 14px 16px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Trending rows — Threads calm */
/* ── Riot widget (right rail) — replaces the hashtag trending widget ── */
.riot-widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.riot-widget-logo {
  width: 22px;
  height: 22px;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(48, 213, 200, 0.45));
}

.riot-widget-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal);
  opacity: 0.9;
}

.riot-widget-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(48, 213, 200, 0.8);
  animation: riotWidgetPulse 2.2s ease-in-out infinite;
}

@keyframes riotWidgetPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.riot-widget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 16px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}

.riot-widget-row:hover {
  background: rgba(48, 213, 200, 0.06);
}

.riot-widget-link {
  text-decoration: none;
}

.riot-widget-avatar,
.riot-widget-thumb {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex: none;
  object-fit: cover;
}

.riot-widget-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 213, 200, 0.14);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.riot-widget-thumb-empty {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.18), rgba(48, 213, 200, 0.05));
}

.riot-widget-chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  padding: 2px 7px;
  border: 1px solid rgba(48, 213, 200, 0.28);
  border-radius: 999px;
  background: rgba(48, 213, 200, 0.08);
}

.riot-widget-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.riot-widget-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text);
}

.riot-widget-text {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.riot-widget-meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--text-very-muted);
}

/* Who to follow */
.discover-follow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.discover-follow-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.discover-follow-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.discover-follow-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.discover-follow-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.discover-follow-handle {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.discover-follow-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0c;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.12s ease, opacity 0.12s ease;
}



.discover-more-btn {
  display: block;
  width: 100%;
  padding: 10px 16px 14px;
  border: none;
  background: transparent;
  color: var(--teal, #30d5c8);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

/* Soften leftover chart rail inside discover cards */
.discover-card .chart-rail-item {
  padding: 10px 14px;
  border-radius: 0;
}
.discover-card .radar-empty {
  padding: 14px 16px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Hide old RADAR chrome if any CSS still injects it */
.discover-rail .radar-header,
.discover-rail .radar-glyph,
.discover-rail .radar-live,
.discover-rail .nullxre-search-header,
.discover-rail .nullxre-search-hint {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   2026-08-11 — Brand: mark-only left rail (drop TealRiot word)
   ═══════════════════════════════════════════════════════════ */
.left-nav .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 4px 6px 16px !important;
  margin-bottom: 10px !important;
}


.left-nav .brand .brand-mark {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
  filter: drop-shadow(0 0 6px rgba(20, 224, 200, 0.12));
}
.left-nav .brand:hover .brand-mark {
  transform: scale(1.04);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 22px rgba(37, 44, 54, 0.12);
  filter: drop-shadow(0 0 10px rgba(20, 224, 200, 0.12));
}

/* ═══════════════════════════════════════════════════════════
   2026-08-11 — Thread spine clear + flush 3-column rails
   1) Reply body/actions were under the vertical spine (clash).
   2) Fixed sidebars at viewport edges left a huge gutter; keep
      nav | feed | discover as one centered cluster.
   ═══════════════════════════════════════════════════════════ */

/* Thread: body + actions align under the name, clear of the spine */
.reply-card {
  --reply-avatar: 32px;
  --reply-gap: 12px;
  --reply-indent: calc(var(--reply-avatar) + var(--reply-gap));
}
.reply-card .post-body,
.reply-card .post-actions {
  padding-left: var(--reply-indent);
  box-sizing: border-box;
}
/* Spine sits through avatar center; elbow must not reach into text */
.reply-card::before {
  left: calc(var(--reply-avatar) / 2 - 1px);
  z-index: 0;
}
.thread-replies .reply-card::after {
  left: calc(var(--reply-avatar) / 2 - 1px);
  width: calc(var(--reply-indent) - var(--reply-avatar) / 2);
  max-width: 18px;
}
.reply-card .post-header .avatar {
  position: relative;
  z-index: 2;
}

/* Desktop: nav | feed | rail — one tight cluster, all side-by-side */
@media (min-width: 1101px) {
  .main-content {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Left bar: sticky sibling hugging the feed's left border (unmovable, scrolls with page) */
  .left-nav {
    position: sticky !important;
    left: auto !important;
    top: 0 !important;
    margin: 0 !important;
    flex: 0 0 var(--left-nav-w);
    width: var(--left-nav-w) !important;
    min-width: var(--left-nav-w) !important;
    height: 100vh;
    max-height: 100vh;
    align-self: flex-start !important;
    border-right: none;
  }

  .feed-center {
    flex: 1 1 0;
    width: 100%;
    max-width: 900px !important;
    min-width: 0;
    margin: 0 !important;
    border-left: 1px solid var(--line-soft, rgba(255,255,255,0.06)) !important;
    border-right: 1px solid var(--line-soft, rgba(255,255,255,0.06)) !important;
  }
  #feed-2-view {
    display: none !important;
  }
  /* Right rail: sticky sibling of the feed — adjacent side-by-side,
     scrolls with page but never drifts (unmovable next to the feed). */
  .right-sidebar {
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    width: 360px !important;
    max-width: 360px !important;
    min-width: 360px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-left: 1px solid var(--line-soft, rgba(255,255,255,0.06)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10 !important;
  }
  .right-sidebar .discover-card {
    border-radius: 12px !important;
  }
  .right-sidebar .discover-card-head {
    padding: 10px 12px 8px !important;
  }
  .right-sidebar .discover-card-body {
    padding: 0 12px 12px !important;
  }
  #dsp-card .discover-card-body {
    gap: 8px !important;
  }
  #dsp-card #dsp-queue-list {
    max-height: 140px !important;
  }
  #feed-2-mount {
    width: 100%;
  }

  .profile-panel {
    display: none;
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start;
    height: 100vh;
    max-height: 100vh;
    border-left: 1px solid var(--line-soft, rgba(255,255,255,0.06));
  }
  .profile-panel.open {
    display: block !important;
  }
  .main-content {
    gap: 0 !important;
    padding: 0 !important;
  }
  .profile-panel.open {
    display: block !important;
    flex: 0 1 500px !important;
  }
  .profile-panel.open ~ .right-sidebar {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   2026-08-11 — Brand: mark-only left rail (drop TealRiot word)
   ═══════════════════════════════════════════════════════════ */
.left-nav .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 4px 6px 16px !important;
  margin-bottom: 10px !important;
}
.left-nav .brand .tr-brand {
  display: flex !important;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #eef1f5;
}
.left-nav .brand .tr-brand .tr-brand-riot {
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #30d5c8;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  border-bottom: none;
}
.left-nav .brand .brand-mark {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
}
.left-nav .brand:hover .brand-mark {
  transform: scale(1.04);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 0 22px rgba(37, 44, 54, 0.12);
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — Feed v2: X/Threads parity + Post button + search padding
   ═══════════════════════════════════════════════════════════ */

/* Post cards — roomier, lifted, brand-dark */
.post-card {
  background: rgba(17, 24, 21, 0.72);
  border: 1px solid rgba(238, 241, 245, 0.07);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(238, 241, 245, 0.03), 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


/* Avatars — ring + presence glow */
.post-card .avatar,
.post-avatar-col .avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
.post-avatar-col { width: 44px; }

/* Header — hierarchy: name > handle > time */
.post-header { margin-bottom: 8px; }
.post-header .meta .name { font-size: 0.98rem; letter-spacing: 0.01em; }
.post-header .meta .handle { font-size: 0.86rem; }
.post-header .meta .time { color: var(--text-dim); font-size: 0.82rem; }

/* Body — readable, relaxed */
.post-body {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* Media — framed, rounded */
.post-image { margin-top: 12px; border-radius: 12px; }
.post-image img { border-radius: 12px; }

/* Thread preview — spine + breathing */
.thread-preview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 241, 245, 0.06);
}
.thread-preview-reply { gap: 10px; padding: 5px 0; }
.thread-preview-body { font-size: 0.87rem; line-height: 1.5; }

/* Actions — X-style pill buttons, generous tap targets */
@media (min-width: 900px) {
  .post-actions {
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(238, 241, 245, 0.06);
  }
  .post-actions button {
    min-width: 40px;
    min-height: 34px;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
  }
  .post-actions button:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #30d5c8;
  }
  .post-actions button:hover svg { filter: none; opacity: 1; }
  .post-actions button .icon { display: flex; }
}

/* Composer — match card language */
.composer {
  background: rgba(17, 24, 21, 0.72);
  border: 1px solid rgba(238, 241, 245, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.composer textarea {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.6;
}



/* Right rail search — breathing room for the inset input */
#search-input { padding: 0 12px !important; }
.discover-search-row { gap: 12px; padding: 13px 16px; }


/* Brand wordmark — sit flush beside the mark */
.left-nav .brand { gap: 10px !important; }
.left-nav .brand .tr-brand { font-size: 1.05rem !important; }
.left-nav .brand .tr-brand .tr-brand-riot { text-shadow: 0 0 0 rgba(0, 0, 0, 0) !important; }

/* Post button — left-nav aesthetic (mono uppercase, teal accent rail) */
.post-fab {
  width: auto;
  height: auto;
  border-radius: 0px;
  background: rgba(16, 20, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #30d5c8;
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #eef1f5;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02), 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


.post-fab .fab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  filter: none;
  color: #30d5c8;
}

@media (max-width: 600px) {
  .post-fab {
    bottom: 88px;
    right: 16px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
  }
  .post-fab .fab-label { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — Clickable threads: inline expanding replies
   ═══════════════════════════════════════════════════════════ */

.thread-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 10px;
  margin: -2px 0 2px -10px;
  color: #30d5c8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.thread-expand-toggle svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out, ease);
}
.thread-expand-toggle.open svg {
  transform: rotate(180deg);
}
.thread-expand-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

.thread-preview-reply {
  cursor: pointer;
  border-radius: 8px;
  padding: 3px 6px;
  margin: 0 -6px;
  transition: background 0.15s ease;
}
.thread-preview-reply:hover {
  background: rgba(255, 255, 255, 0.025);
}
.thread-preview-replies {
  padding-top: 2px;
}

.thread-expanded {
  margin-top: 10px;
  padding: 10px 2px 4px;
  border-top: 1px dashed rgba(238, 241, 245, 0.08);
}
.thread-expand-loading,
.thread-expand-empty {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 8px 12px;
}

.inline-thread-reply {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  margin-left: calc(var(--tdepth, 0) * 18px);
}
.inline-thread-reply + .inline-thread-reply {
  border-top: 1px solid rgba(238, 241, 245, 0.04);
}
.inline-thread-body {
  flex: 1;
  min-width: 0;
}
.inline-thread-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.inline-thread-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s;
}
.inline-thread-name:hover {
  color: #30d5c8;
}
.inline-thread-time {
  color: var(--text-dim);
  font-size: 0.75rem;
}
.inline-thread-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  word-wrap: break-word;
  margin-top: 2px;
}
.inline-thread-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.inline-thread-actions button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.inline-thread-actions button:hover {
  color: #30d5c8;
  background: rgba(255, 255, 255, 0.04);
}
.inline-thread-actions .btn-like-reply.liked {
  color: #14E0C8;
}
.inline-thread-actions svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.thread-branch-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 5px 10px;
  margin-left: -10px;
  color: #30d5c8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.thread-branch-expand:hover {
  background: rgba(255, 255, 255, 0.04);
}
.thread-branch-expand svg {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out, ease);
}
.thread-branch-expand:hover svg {
  transform: translateX(2px);
}

.thread-branch-children {
  margin: 4px 0 6px 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(48, 213, 200, 0.12);
}
.inline-thread-branch {
  margin: 4px 0 6px 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(48, 213, 200, 0.12);
}

.reply-flattened {
  padding: 6px 0;
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — Right rail v2: match feed card language
   ═══════════════════════════════════════════════════════════ */

.right-sidebar {
  background: #05070b !important;
  background-image:
    radial-gradient(ellipse 70% 40% at 90% -5%, rgba(255, 255, 255, 0.035), transparent 55%),
    radial-gradient(ellipse 55% 35% at 0% 100%, rgba(37, 44, 54, 0.06), transparent 50%) !important;
  border-left: 1px solid rgba(238, 241, 245, 0.07) !important;
  padding: 14px 16px 32px !important;
}

.discover-card {
  background: rgba(17, 24, 21, 0.72);
  border: 1px solid rgba(238, 241, 245, 0.07);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(238, 241, 245, 0.03), 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


.discover-search-row svg {
  opacity: 1;
  color: rgba(48, 213, 200, 0.65);
}
.discover-search .search-dropdown {
  border-top: 1px solid rgba(238, 241, 245, 0.07);
  border-radius: 0 0 14px 14px;
}

.discover-tabs,
.discover-rail .radar-tabs {
  background: rgba(17, 24, 21, 0.72);
  border: 1px solid rgba(238, 241, 245, 0.07);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.discover-tab:hover,
.discover-rail .radar-tab:hover {
  color: #eef1f5 !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.discover-tab.active,
.discover-rail .radar-tab.active {
  color: #eef1f5 !important;
  background: rgba(48, 213, 200, 0.12) !important;
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0), 0 0 12px rgba(255, 255, 255, 0.04) !important;
}

.discover-card-title {
  color: #eef1f5;
}
.discover-card-body {
  padding: 6px 0 10px;
}
.discover-empty {
  padding: 16px 18px 18px;
}

.riot-widget-row:hover .riot-widget-text {
  color: var(--text);
}

.discover-follow-row {
  border-radius: 8px;
  transition: background 0.12s ease;
}
.discover-follow-row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.discover-follow-avatar {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.discover-follow-name {
  color: #eef1f5;
}
.discover-follow-btn {
  background: #0a0a0c;
  color: #0a0a0c;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.discover-follow-btn:hover {
  background: #7be8de;
  color: #0a0a0c;
}
.discover-follow-btn.following {
  background: transparent;
  color: #eef1f5;
  box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
}
.discover-follow-btn.following:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #eef1f5;
}

.discover-more-btn {
  padding: 12px 18px 14px;
  transition: background 0.12s ease;
}
.discover-more-btn:hover {
  background: rgba(255, 255, 255, 0.025);
}

.radar-trend-item {
  border-radius: 8px;
  transition: background 0.12s ease;
}
.radar-trend-item:hover {
  background: rgba(255, 255, 255, 0.025);
}
.discover-card .chart-rail-item {
  border-radius: 8px;
  transition: background 0.12s ease;
}
.discover-card .chart-rail-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Mesh panel rows — brand borders + text */
.node-ping-row {
  border-bottom: 1px dashed rgba(238, 241, 245, 0.06);
}
.node-ping-row .city-code {
  color: #eef1f5;
}
.node-ping-row .dots-connector {
  color: rgba(238, 241, 245, 0.16);
}
.node-ping-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Active now — hover only, keep rows clean */
.active-now-module .active-user {
  border-radius: 8px;
  padding: 6px 4px;
  margin: 0 -4px;
  transition: background 0.12s ease;
}
.active-now-module .active-user:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — Facelift: nav Post CTA, right rail, feed width
   ═══════════════════════════════════════════════════════════ */

/* Left-nav Post CTA — clean teal pill, X/Threads rhythm */
.nav-post-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 14px 0 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #8b8d96;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}
.nav-post-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f5;
}

.nav-post-btn svg {
  stroke: #14E0C8 !important;
}

/* Composer — purge leftover purple/blue accents */
.main-composer::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03), transparent);
}

.composer-highlight .hl-mention {
  color: #30d5c8;
}


/* Right rail — exact match to left nav surface */
.right-sidebar {
  background: #05070b !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 12px 12px 14px !important;
}

.discover-card:hover {
  border-color: rgba(48, 213, 200, 0.25);
}
.discover-search.sticky,
.discover-card.sticky {
  background: rgba(10, 15, 13, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.discover-tabs,
.discover-rail .radar-tabs {
  background: rgba(11, 17, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Feed — a tad wider (600 → 680) */
.feed-layout {
  max-width: 680px;
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — EYEPLVY player modal
   ═══════════════════════════════════════════════════════════ */

.eyeply-player-overlay {
  z-index: 300;
}
.eyeply-player {
  position: relative;
  width: min(860px, 92vw);
  background: linear-gradient(165deg, rgba(17, 26, 22, 0.97), rgba(8, 12, 10, 0.98));
  border: 1px solid rgba(48, 213, 200, 0.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.eyeply-player video {
  width: 100%;
  max-height: 68vh;
  border-radius: 12px;
  background: #000;
  display: block;
}
.eyeply-player-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(238, 241, 245, 0.12);
  background: rgba(5, 7, 13, 0.8);
  color: #eef1f5;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.eyeply-player-close:hover {
  background: rgba(48, 213, 200, 0.12);
  border-color: rgba(48, 213, 200, 0.04);
}
.eyeply-player-info {
  padding: 14px 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eyeply-player-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #eef1f5;
}
.eyeply-player-creator {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══ FLICK Doom-Scroll Player (YouTube Shorts style) ═══════════ */
/* ── Flick corner mini-player (replaces full-screen doomscroll) ── */
.flick-corner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9500;
  width: 208px;
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  overflow: visible;
}
.flick-corner .fc-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.flick-corner .fc-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
}
.flick-corner .fc-pp {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 7;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.flick-corner .fc-pp:hover { background: rgba(0, 0, 0, 0.75); }
.flick-corner .fc-pp.fc-playing svg { display: none; }
.flick-corner .fc-pp.fc-playing::after {
  content: '❚❚';
  font-size: 0.6rem;
  font-weight: 700;
}
.flick-corner .fc-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.flick-corner .fc-scanline {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.08) 3px, rgba(0, 0, 0, 0.08) 4px);
  opacity: 0.5;
}
.flick-corner .fc-open-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #000;
  background: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out);
  pointer-events: none;
}
.flick-corner .fc-video:hover .fc-open-hint { opacity: 1; }
.flick-corner .fc-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.flick-corner .fc-counter {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.flick-corner .fc-close {
  pointer-events: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.flick-corner .fc-close:hover { background: rgba(255, 69, 58, 0.8); }
.flick-corner .fc-meta {
  padding: 8px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.flick-corner .fc-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flick-corner .fc-creator {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(235, 235, 245, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flick-corner .fc-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.flick-corner .fc-actions .ds-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}
.flick-corner .fc-comments {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 70%;
  background: rgba(10, 10, 12, 0.98);
  border: 1px solid #2c2c2e;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.flick-corner .fc-comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #1c1c1e;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}
.flick-corner .fc-rail {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.flick-corner .fc-rail::-webkit-scrollbar { display: none; }
.flick-corner .fc-rail .ds-rail-item {
  width: 44px;
  height: 72px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .flick-corner {
    right: 10px;
    bottom: 78px;
    width: 164px;
  }
  .flick-corner .fc-actions .ds-action-count { display: none; }
  .flick-corner .fc-actions .ds-action { padding: 4px 6px; }
}
/* Quick-scroll thumbnail rail (right corner) */
.ds-rail-item {
  width: 56px;
  height: 96px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.15);
  background: #0a0a0c;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.ds-rail-item:hover { border-color: rgba(255,255,255,0.4); transform: scale(1.05); }
.ds-rail-item.active {
  border-color: #5e5ce6;
  box-shadow: 0 0 10px rgba(94, 92, 230, 0.12);
}
.ds-rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ds-rail-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
}
/* Side info wider than the video column — positioned right of center */
@media (min-width: 600px) {
  .ds-actions { right: max(24px, calc(50% - 260px)); }
  .ds-info { left: max(24px, calc(50% - 240px)); }
}
/* Liked state */
.ds-liked svg { fill: #5e5ce6 !important; stroke: #5e5ce6 !important; }
.ds-liked { transform: scale(1.15); }
/* Comments panel */
.ds-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #1c1c1e;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.ds-comments-close {
  background: none;
  border: none;
  color: rgba(235, 235, 245, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
}
.ds-comments-close:hover { color: #fff; }
.ds-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: #2c2c2e transparent;
}
.ds-comment {
  padding: 10px 0;
  border-bottom: 1px solid #1c1c1e;
}
.ds-comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ds-comment-user {
  font-size: 0.82rem;
  font-weight: 600;
  color: #eef1f5;
}
.ds-comment-time {
  font-size: 0.7rem;
  color: rgba(235, 235, 245, 0.35);
}
.ds-comment-body {
  font-size: 0.85rem;
  color: #c9cdd3;
  line-height: 1.4;
}
.ds-comments-empty,
.ds-comments-loading {
  text-align: center;
  padding: 24px;
  color: rgba(235, 235, 245, 0.35);
  font-size: 0.82rem;
}
.ds-comments-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #1c1c1e;
}
.ds-comments-input-wrap input {
  flex: 1;
  background: #0a0a0c;
  border: 1px solid #2c2c2e;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.ds-comments-input-wrap input:focus { border-color: rgba(235, 235, 245, 0.6); }
.ds-comments-send {
  background: transparent;
  color: rgba(235, 235, 245, 0.6);
  border: 1px solid #2c2c2e;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.ds-comments-send:hover { color: #fff; border-color: rgba(235, 235, 245, 0.6); }

.eyevly-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}
.eyevly-card-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(238, 241, 245, 0.14);
  background: rgba(5, 7, 13, 0.5);
  color: rgba(238, 241, 245, 0.65);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.eyevly-card-delete:hover {
  background: rgba(255, 77, 77, 0.12);
  border-color: rgba(255, 77, 77, 0.5);
  color: #ff6b6b;
}

/* YT Shorts-style muted previews */
.eyevly-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.eyevly-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.eyevly-thumb:hover .eyevly-preview-video { opacity: 1; }
.eyevly-thumb:hover .eyevly-thumb-img { opacity: 0; }
.eyevly-preview-video-auto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eyevly-thumb.eyevly-previewing .eyevly-play-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — Premium+++ pass: motion, micro-detail, EYEPLVY brand
   ═══════════════════════════════════════════════════════════ */

/* ── Foundation: smoothing, caret, selection ─────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
input, textarea, select { caret-color: #30d5c8; }
.app-shell ::selection {
  background: rgba(48, 213, 200, 0.12);
  color: #f2fffb;
}

/* ── Motion quality: press states + consistent curves ────── */
.btn-post:active, .nav-post-btn:active, .post-fab:active,
.main-composer .btn-post:active {
  transform: scale(0.965);
}
.action-pill:active, .post-actions button:active {
  transform: scale(0.92);
}
.post-card, .eyevly-card, .btn-post, .nav-post-btn, .post-fab,
.composer, .main-composer {
  transition-timing-function: cubic-bezier(0.22, 0.8, 0.24, 1) !important;
}

/* ── Feed: border-glow hover + tabular numerals ─────────── */
.post-card {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 8px 28px -18px rgba(0, 0, 0, 0.6);
}

.post-stats, .action-count, .stat-value, .post-meta {
  font-variant-numeric: tabular-nums;
}
.post-media img, .post-media video, .post-image {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

/* ── Composer: focus glow ────────────────────────────────── */
.main-composer:focus-within {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
.main-composer:focus-within::after {
  opacity: 0 !important;
}
.composer textarea:focus,
.inline-reply-composer textarea:focus,
.composer input:focus,
.main-composer input:focus,
.main-composer textarea:focus {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Modals: cinematic backdrop ──────────────────────────── */
.modal-overlay {
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  background: rgba(2, 5, 4, 0.62) !important;
}

/* ── Focus-visible: one unified teal ring ────────────────── */
.app-shell button:focus-visible,
.app-shell a:focus-visible,
.app-shell input:focus-visible,
.app-shell textarea:focus-visible,
.app-shell select:focus-visible,
.app-shell [tagindex]:focus-visible {
  outline: none !important;
}

/* ── Section headers: teal rail accent ───────────────────── */
.eyevly-cinema-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #eef1f5 !important;
  text-transform: none !important;
}
.eyevly-cinema-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0a0a0c, rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* ── EYEPLVY cards: brand card language ──────────────────── */
.eyevly-card {
  background: linear-gradient(170deg, rgba(17, 26, 22, 0.85), rgba(8, 13, 11, 0.92));
  border: 1px solid rgba(238, 241, 245, 0.07) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 10px 30px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s cubic-bezier(0.22, 0.8, 0.24, 1),
    border-color 0.22s ease, box-shadow 0.22s ease;
}
.eyevly-card:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 213, 200, 0.22) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2),
    0 20px 44px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.025);
}
.eyevly-card-featured {
  border-color: rgba(48, 213, 200, 0.18) !important;
}
.eyevly-card-featured:hover {
  border-color: rgba(48, 213, 200, 0.30) !important;
}
.eyevly-thumb {
  background: #000 !important;
  border-bottom: 1px solid rgba(238, 241, 245, 0.05) !important;
}
.eyevly-info { padding: 13px 15px 15px !important; }
.eyevly-title {
  font-family: var(--font-display) !important;
  font-size: 0.94rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #eef1f5 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eyevly-creator { color: var(--text-dim) !important; }

/* Featured tag — teal glass chip */
.eyevly-featured-tag {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 4;
  font-family: var(--font-mono) !important;
  font-size: 9.5px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #30d5c8 !important;
  background: rgba(4, 16, 13, 0.78) !important;
  border: 1px solid rgba(48, 213, 200, 0.30) !important;
  border-radius: 999px !important;
  padding: 4px 9px !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), 0 0 0 rgba(0, 0, 0, 0);
}

/* Play overlay — glass chip, fades on preview */
.eyevly-play-overlay {
  background: linear-gradient(180deg, rgba(3, 8, 6, 0.18), rgba(3, 8, 6, 0.5)) !important;
  backdrop-filter: none !important;
  transition: opacity 0.25s ease;
}
.eyevly-play-label {
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(238, 241, 245, 0.92) !important;
  background: rgba(4, 16, 13, 0.62);
  border: 1px solid rgba(238, 241, 245, 0.22) !important;
  border-radius: 999px !important;
  padding: 6px 13px !important;
  backdrop-filter: blur(6px);
}

/* EYEPLVY hero — YouTube/MUTINY scrim for #1 place feel */
/* EYEPLVY — cinematic powerhouse header */
.eyevly-cinema-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  padding: 34px 28px 26px !important;
  margin-bottom: 18px !important;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.55), rgba(4, 6, 10, 0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 70px rgba(0, 0, 0, 0.5) !important;
}
.ecv-backdrop {
  position: absolute; inset: -40px; z-index: -2;
  background-size: cover; background-position: center 30%;
  filter: blur(26px) brightness(0.5) saturate(1.25);
  transform: scale(1.15);
  opacity: 0; transition: opacity 0.8s ease;
}
.ecv-backdrop.on { opacity: 1; }
.ecv-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 320px at 16% -10%, rgba(48, 213, 200, 0.16), transparent 62%),
    radial-gradient(520px 300px at 92% 110%, rgba(94, 92, 230, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.62) 100%);
}
.ecv-brandrow { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.ecv-mark {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; color: #00110e;
  background: linear-gradient(135deg, #30d5c8, #19b8a8);
  box-shadow: 0 4px 20px rgba(48,213,200,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}
.eyevly-cinema-brand {
  position: relative; z-index: 1;
  letter-spacing: 0.24em !important;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
  text-shadow: 0 2px 24px rgba(48, 213, 200, 0.25);
}
.ecv-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; color: var(--teal);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(48, 213, 200, 0.3); background: rgba(48, 213, 200, 0.08);
}
.ecv-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 8px rgba(48,213,200,0.8); animation: ecvPulse 1.8s ease-in-out infinite; }
@keyframes ecvPulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.ecv-content { position: relative; z-index: 1; }
.eyevly-cinema-hero .eyevly-cinema-tagline {
  position: relative; z-index: 1;
  font-size: 1.02rem !important; color: rgba(235,235,245,0.78) !important;
  margin: 12px 0 14px !important;
}
.ecv-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ecv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09); background: rgba(255,255,255,0.045);
  color: rgba(235,235,245,0.72);
}
.ecv-chip b { color: #fff; font-weight: 800; }
.ecv-chip-dim { border-style: dashed; opacity: 0.75; }
.eyevly-cinema-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.eyevly-cinema-empty {
  border: 1px dashed rgba(48, 213, 200, 0.18);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-display);
  background: rgba(17, 26, 22, 0.35);
}
.eyevly-grid { gap: 14px !important; }

/* ── Player modal: refined ───────────────────────────────── */
.eyeply-player {
  border-radius: 20px !important;
  border: 1px solid rgba(238, 241, 245, 0.09) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 60px -20px rgba(255, 255, 255, 0.05) !important;
}

/* ── Left nav: hover tint refinement ─────────────────────── */
.left-nav-item:not(.active):hover {
  background: rgba(238, 241, 245, 0.045);
}

/* ── Considerate motion ──────────────────────────────────── */
/* Search flash — left-nav Search routes focus here */
/* ═══ EMOJI PANEL v2 ═══ */
.ep-panel {
  width: 380px; max-width: calc(100vw - 32px);
  position: relative;
  /* above the fixed left-nav (z-index:90) so the rail can never paint over the panel edge */
  z-index: 200;
  /* small lil gap off the feed's left edge */
  margin-left: 4px;
  margin-top: 6px;
  background: linear-gradient(165deg, rgba(20,26,38,0.92), rgba(10,14,22,0.95));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 22px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  overflow: hidden;
}
.ep-tabs {
  display: flex; align-items: center; gap: 2px;
  padding: 8px 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ep-tab {
  min-width: 30px; height: 30px; padding: 0 4px;
  border: none; border-radius: 9px; background: transparent;
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: background .15s ease, transform .12s var(--ease-out), box-shadow .15s ease;
}
.ep-tab:hover { background: rgba(255,255,255,0.06); }
.ep-tab:active { transform: scale(0.9); }
.ep-tab.active { background: rgba(48,213,200,0.14); box-shadow: inset 0 0 0 1px rgba(48,213,200,0.35); }
.ep-search {
  flex: 1; min-width: 60px; margin-left: 6px;
  height: 28px; padding: 0 10px;
  background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 999px;
  outline: none; font-size: 0.78rem;
}
.ep-search:focus { border-color: rgba(48,213,200,0.45); }
.ep-close { margin-left: 4px; }
.ep-body { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 12px; }
.ep-hint { padding: 18px 8px; font-size: .78rem; color: rgba(235,235,245,.5); }
.ep-empty { padding: 18px 8px; font-size: .78rem; color: rgba(235,235,245,.5); }
.ep-section-title {
  position: sticky; top: 0;
  padding: 8px 4px 5px; margin: 2px 0 4px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(235,235,245,0.45);
  background: linear-gradient(180deg, rgba(16,22,34,0.97), rgba(16,22,34,0.86));
  backdrop-filter: blur(8px);
}
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.ep-item {
  aspect-ratio: 1/1; display: grid; place-items: center;
  font-size: 21px; line-height: 1;
  background: transparent; border: none; border-radius: 9px;
  cursor: pointer;
  transition: background .13s ease, transform .12s var(--ease-out);
}
.ep-item:hover { background: rgba(255,255,255,0.08); transform: scale(1.15); }
.ep-item:active { transform: scale(0.95); }
.ep-item.ep-custom img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.custom-emoji { width: 1.15em; height: 1.15em; vertical-align: -0.2em; object-fit: contain; margin: 0 1px; }
/* Composer :slug: autocomplete — shows custom emoji matches while typing */
.composer-emoji-ac { position: absolute; left: 12px; right: 12px; bottom: 100%; margin-bottom: 6px; background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.45); z-index: 40; max-height: 180px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.composer-emoji-ac:empty { display: none; }
.composer-emoji-ac-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: background 0.12s; }
.composer-emoji-ac-item:hover, .composer-emoji-ac-item.active { background: var(--hover-bg); }
.composer-emoji-ac-item img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.composer-emoji-ac-item span { font-size: 0.82rem; color: var(--text); }
.composer-emoji-ac-item small { margin-left: auto; font-size: 0.65rem; color: var(--text-muted); font-family: var(--font-mono); }
/* LYRA tip button + modal (Phase 4) */
.btn-tip { color: var(--text-muted); transition: color 0.15s ease, transform 0.15s ease; }
.btn-tip:hover { color: var(--teal); transform: scale(1.08); }
.btn-tip .icon { font-size: 1.05rem; line-height: 1; }
.tip-modal { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 16px; width: 100%; max-width: 380px; padding: 0; overflow: hidden; }
.tip-modal-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.tip-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tip-amt { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line-soft); background: transparent; color: var(--text); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.15s ease; }
.tip-amt:hover { border-color: var(--teal); }
.tip-amt.active { background: rgba(48, 213, 200, 0.14); border-color: var(--teal); color: var(--teal); }
.tip-custom-row { display: flex; align-items: center; gap: 8px; }
.tip-custom-row input { flex: 1; background: var(--bg-input); border: 1px solid var(--line-soft); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 0.95rem; outline: none; }
.tip-custom-row input:focus { border-color: var(--teal); }
.tip-unit { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
#tip-message { background: var(--bg-input); border: 1px solid var(--line-soft); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 0.9rem; outline: none; width: 100%; }
#tip-message:focus { border-color: var(--teal); }
.tip-note { font-size: 0.72rem; color: var(--text-muted); line-height: 1.5; }
#tip-send-btn { width: 100%; padding: 12px; border-radius: 12px; border: none; background: #f5f5f7; color: #000; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
#tip-send-btn:active { transform: scale(0.98); }
/* Top Tipped rail + ENS chip */
.profile-tip-action { width:32px; height:32px; padding:0; border-radius:8px; border:1px solid color-mix(in srgb, var(--accent, var(--teal)) 34%, var(--line-soft)); background:color-mix(in srgb, var(--accent, var(--teal)) 9%, transparent); color:var(--accent-text, var(--teal)); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:transform .15s ease, background .15s ease, border-color .15s ease; }
.profile-tip-action svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.profile-tip-action:hover { transform:translateY(-1px); background:color-mix(in srgb, var(--accent, var(--teal)) 18%, transparent); border-color:var(--accent, var(--teal)); }
.profile-tip-action:focus-visible { outline:2px solid var(--accent, var(--teal)); outline-offset:2px; }
.profile-tip-action:active { transform:translateY(0); }
.profile-web3-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; align-items:center; }
.web3-chip { font-family:var(--font-mono); font-size:0.68rem; font-weight:600; padding:3px 9px; border-radius:999px; cursor:default; transition:border-color 0.15s; }
.web3-chip.web3-wallet { color:var(--teal); border:1px solid rgba(48,213,200,0.3); background:rgba(48,213,200,0.08); cursor:pointer; }
.web3-chip.web3-wallet:hover { border-color:rgba(48,213,200,0.55); }
.web3-chip.web3-ens { color:var(--purple); border:1px solid rgba(94,92,230,0.3); background:rgba(94,92,230,0.08); }
.web3-chip.web3-tips { color:var(--teal); border:1px solid rgba(48,213,200,0.25); background:rgba(48,213,200,0.06); }
.web3-chip.web3-tips small { font-size:0.6rem; color:var(--text-muted); }
.tipped-row { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:9px 16px; cursor:pointer; transition:background 0.12s ease; }
.tipped-row:hover { background: rgba(48,213,200,0.06); }
.tipped-rank { font-family: var(--font-mono); font-size:0.7rem; font-weight:700; width:16px; flex:none; }
.tipped-avatar { width:32px; height:32px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.8rem; background:rgba(48,213,200,0.14); color:var(--teal); overflow:hidden; }
.tipped-avatar img { width:100%; height:100%; object-fit:cover; }
.tipped-main { flex:1; min-width:0; }
.tipped-name { font-size:0.78rem; font-weight:650; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tipped-meta { font-size:0.68rem; color:var(--text-muted); }
.tipped-amt { font-family: var(--font-mono); font-size:0.72rem; font-weight:700; color:var(--teal); flex:none; }
.ens-chip { font-family: var(--font-mono); font-size:0.68rem; color:var(--teal); border:1px solid rgba(48,213,200,0.3); background:rgba(48,213,200,0.08); border-radius:999px; padding:1px 7px; margin-left:6px; vertical-align:middle; }
@media (max-width: 480px){ .ep-panel{width:calc(100vw - 24px)} .ep-grid{grid-template-columns:repeat(7,1fr)} }

/* Search flash — left-nav Search routes focus here */
.discover-search.search-flash {
  animation: searchFlash 1.2s ease;
}
@keyframes searchFlash {
  0%,100% { border-color: var(--line-soft); box-shadow: none; }
  25%,65% { border-color: rgba(48,213,200,0.55); box-shadow: 0 0 0 3px rgba(48,213,200,0.14), 0 0 24px rgba(48,213,200,0.18); }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .eyevly-card, .btn-post, .nav-post-btn, .post-fab,
  .composer, .main-composer, .eyevly-featured-tag, .eyeply-player {
    transition: none !important;
  }
  .eyevly-card:hover, .post-fab:hover { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════
   2026-08-17 — Notifications: sleek grouped cards + teal brand
   ═══════════════════════════════════════════════════════════ */

/* Notifications — continuous modern activity stream */
.notif-page-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.notif-page-head h2 {
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: -.035em;
}
#notif-list { display:flex;flex-direction:column;padding:12px 18px 70px; }
.notif-group { margin:0; }
.notif-items {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.075);
  border-radius:16px;
  background:rgba(255,255,255,.018);
}
.notif-section-header {
  position:sticky;
  top:78px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 4px 9px;
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  font-family:var(--font-mono);
  font-size:.58rem;
  font-weight:650;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:rgba(235,235,245,.48);
}
.notif-section-header small {
  display:grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 6px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  font-size:.53rem;
  letter-spacing:0;
  color:var(--text-muted);
}
.notif-item {
  position:relative;
  display:flex;
  align-items:center;
  gap:15px;
  min-height:78px;
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:transparent;
  transition:background .16s ease;
}
.notif-item:last-child { border-bottom:0; }
.notif-item:hover { background:rgba(255,255,255,.035); }
.notif-item.notif-unread { background:linear-gradient(90deg,rgba(48,213,200,.075),rgba(48,213,200,.018) 55%,transparent); }
.notif-item.notif-unread:hover { background:linear-gradient(90deg,rgba(48,213,200,.105),rgba(48,213,200,.035) 58%,rgba(255,255,255,.015)); }
.notif-avatar-stack { position:relative;flex:0 0 auto;width:48px;height:48px; }
.notif-avatar-stack .avatar { width:46px !important;height:46px !important;border:1px solid rgba(255,255,255,.09) !important;border-radius:50% !important;box-shadow:0 5px 16px rgba(0,0,0,.24) !important; }
.notif-icon {
  position:absolute;
  right:-2px;
  bottom:-2px;
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  border:2px solid #0b0d12;
  border-radius:50%;
  background:#17201f;
  color:var(--teal);
}
.notif-icon svg { width:11px;height:11px;filter:none !important; }
.notif-item[data-type="like"] .notif-icon { background:#281622;color:#ff5b9b; }
.notif-content { flex:1;min-width:0; }
.notif-primary { display:flex;align-items:flex-start;justify-content:space-between;gap:16px; }
.notif-text { min-width:0;font-size:.91rem;line-height:1.48;color:rgba(235,235,245,.6); }
.notif-text strong { color:#f6f7f9 !important;font-weight:680; }
.notif-text span { color:rgba(235,235,245,.58); }
.notif-time { flex:0 0 auto;padding-top:2px;font-family:var(--font-mono);font-size:.6rem;letter-spacing:.03em;color:rgba(235,235,245,.32);font-variant-numeric:tabular-nums; }
.notif-unread-dot { position:absolute;right:8px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--teal);box-shadow:0 0 0 4px rgba(48,213,200,.08); }
.notif-item:active { background:rgba(255,255,255,.055); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .notif-unread-dot { animation: none; }
  .notif-item, .notif-item .avatar { transition: none !important; }
}

/* ═══ FRONTIER OVERRIDE — TealRiot (8/17/26) ═══
   De-muddy: neutral obsidian base + vibrant teal + real magenta accent. */
:root {
  --bg-darkest: #05070b;
  --bg-dark: #0a0a0c;
  --bg-card: #0b1018;
  --bg-input: #0a0a0c;
  --bg: #0a0a0c;
  --nav-bg: #0a0a0c;
  --bg-darker: #05070b;
  --teal: #30d5c8;
  --teal-soft: #7be8de;
  --teal-glow: 0 0 0 rgba(0, 0, 0, 0);
  /* real riot magenta accent (was muddy dark-green) */
  --purple: #5e5ce6;
  --purple-dim: #c02a6e;
  --purple-soft: #ff6fb0;
  --purple-glow: 0 0 16px rgba(94, 92, 230, 0.12);
  --riot: #5e5ce6;
  --riot-dim: #c02a6e;
  --blue: #30d5c8;
  --blue-soft: #7be8de;
  --text: #f2fbf8;
  --text-dim: #a7b2bf;
  --text-muted: #6b7686;
  --border: #1a2233;
  --border-hover: #2c3a52;
  --hover-bg: rgba(255, 255, 255, 0.035);
  --radius: 14px;
  --radius-sm: 10px;
}

/* Clean, vibrant body background — no muddy olive */
body {
  background: #000000;
  font-family: var(--font-display);
  color: #ffffff;
}

/* Right sidebar — premium glass panel, not muddy slab */
.right-sidebar {
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.92), rgba(6, 9, 15, 0.96)) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* Sidebar cards — rounded, subtle glass */
.sidebar-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}
.sidebar-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px 14px 0 0 !important;
}

/* ═══ TEALRIOT — NEUTRAL OBSIDIAN (8/17/26) ═══
   Clean, premium, Bluesky/Threads-like. Teal is a subtle accent — it's a play
   on words, not a wallpaper. Magenta is a rare signal, not a coat of paint. */
:root {
  --bg-darkest: #000000;
  --bg-dark: #05070b;
  --bg-card: #0a0a0c;
  --bg-input: #0a0a0c;
  --bg: #05070b;
  --nav-bg: #05070b;
  --bg-darker: #000000;
  --teal: #30d5c8;
  --teal-dim: #1f9e92;
  --teal-dark: #0a3b36;
  --teal-soft: #7be8de;
  --teal-glow: 0 0 0 rgba(0, 0, 0, 0);
  --purple: #5e5ce6;
  --purple-dim: #4543b8;
  --purple-soft: #9290f0;
  --purple-glow: 0 0 14px rgba(94, 92, 230, 0.12);
  --riot: #5e5ce6;
  --riot-dim: #4543b8;
  --blue: #30d5c8;
  --blue-dim: #1f9e92;
  --blue-soft: #7be8de;
  --text: #eef1f5;
  --text-dim: #9aa2ad;
  --text-muted: #626a75;
  --text-very-muted: #3b424d;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: #252c36;
  --hover-bg: rgba(255, 255, 255, 0.035);
  --danger: #ff453a;
  --radius: 14px;
  --radius-sm: 10px;
  --accent: #30d5c8;
  --accent-glow: rgba(48, 213, 200, 0.14);
  --accent-text: #7be8de;
}

/* Base surface — clean black, restrained ambient light */
body {
  background: #000000;
  font-family: var(--font-display);
  color: #ffffff;
}

/* Composer — clean, single card */
.composer {
  background: #0a0a0c !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
}


.composer .btn-post {
  background: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%);
  color: #000000;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.char-counter { color: #4a525c !important; font-family: var(--font-display) !important; }

/* Feed tabs — clean underline */
.feed-tabs { border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; }





/* Post cards — clean, no teal tint */
.post-card {
  background: #0a0a0c !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: none !important;
  transition: border-color 0.15s, background 0.15s !important;
}

.post-card .post-body, .post-card .post-content, .post-card p {
  font-family: var(--font-display) !important;
}
.post-pinned-indicator { color: var(--teal) !important; }

/* Follow buttons — clean pill, teal only as accent */
.btn-follow, .btn-follow-mini, .btn-primary {
  background: var(--teal) !important;
  color: #02100c !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: monospace !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}



/* Trend items — clean rows */
.trend-item { padding: 12px 16px !important; }



/* Right sidebar — clean panel, not a second dashboard */
.right-sidebar {
  background: #05070b !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 16px 14px !important;
}

.sidebar-header {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 14px 18px !important;
}



/* Left nav — clean, subtle active state */
.left-sidebar, .left-nav, nav.sidebar { background: #05070b !important; }
.nav-link.active, .left-nav .active, .nav-item.active {
  color: var(--text) !important;
  background: var(--hover-bg) !important;
  border-radius: 10px !important;
}
.left-nav .nav-link, .nav-item {
  color: var(--text-dim) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}

/* Post detail — clean reader (Bluesky vibe) */
.post-detail .post-card { border-radius: 14px !important; }
.thread-line { background: #1d242e !important; }

/* Links — neutral, teal only on hover */
a { color: var(--teal-soft) !important; }


/* Auth screen — clean, premium login to match */
.auth-screen {
  background: var(--bg) !important;
}
.auth-screen .auth-layout, .auth-screen .auth-card,
.auth-screen .auth-panel {
  background: var(--bg-card) !important;
  border-color: var(--line-soft) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5) !important;
}
.auth-screen .auth-title, .auth-screen h1, .auth-screen h2 {
  font-family: var(--font-display) !important;
  color: #eef1f5 !important;
}
.auth-screen .auth-logo, .auth-screen .brand-mark {
  color: var(--teal) !important;
}
.auth-screen input, .auth-screen .auth-input {
  background: var(--bg-input) !important;
  border-color: var(--line-soft) !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  border-radius: 10px !important;
}

.auth-screen button, .auth-screen .btn-auth, .auth-screen .btn-primary {
  background: var(--teal) !important;
  color: #02100c !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}
.auth-screen button:hover { background: var(--teal-soft) !important; }
.auth-screen .auth-copy, .auth-screen .auth-desc, .auth-screen p {
  color: #9aa2ad !important;
  font-family: var(--font-display) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — PREMIUM REDESIGN (8/18/26)
   References: X (Twitter), Bluesky, Threads
   Pure black bg, white text, gray secondary, teal ONLY for brand/CTAs
   ═══════════════════════════════════════════════════════════════════════════ */

/* Root: premium palette */
:root {
  --bg-darkest: #000000 !important;
  --bg-dark: #0a0a0c !important;
  --bg-card: #0a0a0c !important;
  --bg-input: #0a0a0c !important;
  --bg: #000000 !important;
  --nav-bg: #000000 !important;
  --bg-darker: #000000 !important;
  --teal: #30d5c8 !important;
  --teal-dim: #1f9e92 !important;
  --teal-dark: #0a3b36 !important;
  --teal-soft: #7be8de !important;
  --teal-glow: none !important;
  --purple: #5e5ce6 !important;
  --purple-dim: #4543b8 !important;
  --purple-soft: #9290f0 !important;
  --purple-glow: none !important;
  --riot: #5e5ce6 !important;
  --riot-dim: #4543b8 !important;
  --blue: #30d5c8 !important;
  --blue-dim: #1f9e92 !important;
  --blue-soft: #7be8de !important;
  --text: #ffffff !important;
  --text-dim: rgba(235, 235, 245, 0.6) !important;
  --text-muted: rgba(235, 235, 245, 0.35) !important;
  --text-very-muted: rgba(235, 235, 245, 0.22) !important;
  --border: #1c1c1e !important;
  --border-hover: #2c2c2e !important;
  --hover-bg: rgba(255, 255, 255, 0.03) !important;
  --danger: #ff453a !important;
  --radius: 12px !important;
  --radius-sm: 8px !important;
  --accent: #30d5c8 !important;
  --accent-glow: rgba(48, 213, 200, 0.08) !important;
  --accent-text: #7be8de !important;
  --line-soft: #1c1c1e !important;
  --line-bright: #2c2c2e !important;
  --font-mono: 'JetBrains Mono', monospace !important;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif !important;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Body: pure black, no gradients */
body {
  background: var(--bg) !important;
  background-image: none !important;
  font-family: var(--font-display) !important;
  color: #ffffff !important;
}

/* App shell: pure black */
.app-shell {
  background: var(--bg) !important;
}

/* Left nav: pure black, white text, gray inactive */
.left-nav, .left-sidebar {
  background: var(--nav-bg) !important;
  border-right: 1px solid var(--line-soft) !important;
}

.left-nav-item {
  color: var(--text-dim) !important;
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 12px 16px !important;
  border-radius: 999px !important;
  transition: background 0.15s !important;
}



.left-nav-item.active::before {
  background: #30d5c8 !important;
}

/* Feed center: pure black */
.feed-center {
  background: var(--bg) !important;
  border-left: 1px solid var(--line-soft) !important;
  border-right: 1px solid var(--line-soft) !important;
}

/* Feed tabs: clean, teal only for active underline */
.feed-tabs {
  border-bottom: 1px solid var(--line-soft) !important;
  background: var(--bg-darker) !important;
}

.feed-tabs button {
  color: rgba(235, 235, 245, 0.6) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 14px 20px !important;
  border: none !important;
  background: transparent !important;
  transition: color 0.15s !important;
}

.feed-tabs button:hover {
  color: #ffffff !important;
}

.feed-tabs button.active {
  color: #ffffff !important;
}

.feed-tabs button.active::after {
  background: #30d5c8 !important;
  height: 2px !important;
}

/* Composer: clean card, no teal glow */
.composer {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: none !important;
}

.composer textarea {
  background: transparent !important;
  border-color: var(--line-soft) !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
}

.composer textarea:focus {
  border-color: rgba(48, 213, 200, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(48, 213, 200, 0.12) !important;
  outline: none !important;
}

/* Post button: teal gradient, clean, no blur */
.composer .btn-post {
  background: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: none !important;
  transition: all 0.15s !important;
}


/* Follow buttons: outlined, teal on hover */
.btn-follow, .btn-follow-mini {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid #2c2c2e !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: var(--font-display) !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}



/* Right sidebar: clean widgets, no teal */
.right-sidebar {
  background: var(--bg) !important;
  border-left: 1px solid var(--line-soft) !important;
  padding: 20px 16px !important;
}


.right-sidebar .sidebar-header {
  border-bottom: 1px solid var(--line-soft) !important;
  background: transparent !important;
  color: var(--text-dim) !important;
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  padding: 12px 16px !important;
  text-transform: uppercase !important;
}

/* Search bar: clean, no teal icon */
.sidebar-search input {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  transition: border-color 0.15s !important;
}


/* Trend items: clean rows */
.trend-item {
  padding: 12px 16px !important;
  transition: background 0.15s !important;
}


.trend-tag, .trend-count {
  color: var(--text-dim) !important;
  font-family: var(--font-display) !important;
}

/* Post cards: clean, no teal borders */
.post-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: none !important;
}


/* Links: white, teal only on hover */
a {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

a:hover {
  color: #30d5c8 !important;
}

/* Floating Post button: clean, no blur */
.post-fab {
  background: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(48, 213, 200, 0.03) !important;
}


.fab-icon {
  color: #000000 !important;
}
.post-fab.hidden { transform: translateX(calc(100% + 40px)) !important; opacity: 0 !important; pointer-events: none !important; }
.post-fab-peek {
  position: fixed;
  bottom: 28px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  z-index: 149;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28);
}
.post-fab-peek.visible { display: flex !important; }
.post-fab .fab-hide {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(235, 235, 245, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.post-fab:hover .fab-hide,
.post-fab:focus-within .fab-hide {
  opacity: 1;
}
.post-fab .fab-hide:hover {
  background: rgba(44, 44, 46, 0.95);
  color: rgba(235, 235, 245, 0.9);
}

/* Auth screen: clean, premium */
.auth-screen {
  background: #000000 !important;
}

.auth-screen .auth-card {
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.auth-screen input {
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
}

.auth-screen input:focus {
  border-color: rgba(48, 213, 200, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(48, 213, 200, 0.12) !important;
  outline: none !important;
}

.auth-screen button {
  background: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-family: var(--font-display) !important;
}

/* Icons: white, not teal */
.icon-btn, .nav-icon, .search-icon {
  color: rgba(235, 235, 245, 0.6) !important;
}

.icon-btn:hover, .nav-icon:hover, .search-icon:hover {
  color: #ffffff !important;
}

/* Badges: neutral, not teal */
.badge, .trend-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
}

/* Scrollbar: subtle */
::-webkit-scrollbar {
  width: 8px !important;
}

::-webkit-scrollbar-track {
  background: #000000 !important;
}

::-webkit-scrollbar-thumb {
  background: #1c1c1e !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #2c2c2e !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — FINAL POLISH (8/18/26)
   Neutralize remaining teal accents — keep teal ONLY for Post button + logo
   ═══════════════════════════════════════════════════════════════════════════ */

/* Nav icons: monochrome */
.left-nav-item svg,
.left-nav-item .icon,
.nav-icon,
.left-nav-item .material-icons,
.left-nav-item .material-symbols-outlined {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: rgba(235, 235, 245, 0.6) !important;
}

.left-nav-item:hover svg,
.left-nav-item:hover .icon,
.left-nav-item:hover .nav-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

.left-nav-item.active svg,
.left-nav-item.active .icon,
.left-nav-item.active .nav-icon {
  color: #14E0C8 !important;
  stroke: #14E0C8 !important;
  fill: #14E0C8 !important;
}

/* Notifications bell — identity violet dot, visible only on unread (toggled by JS) */
#nav-notif svg circle.nav-bell-dot {
  stroke: #9A6BFF !important;
  fill: #9A6BFF !important;
  display: none;
}

/* Right sidebar tabs: neutral, white text for active, no teal underline */
.right-sidebar .sidebar-header-tabs button,
.right-sidebar .tab-btn,
.right-sidebar .feed-tabs button {
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
}

.right-sidebar .sidebar-header-tabs button.active,
.right-sidebar .tab-btn.active,
.right-sidebar .feed-tabs button.active {
  color: #ffffff !important;
  background: transparent !important;
}


/* Badges: neutral */
.badge,
.trend-badge,
.sidebar-card .badge,
.sidebar-card .trend-badge,
[class*="badge"],
[class*="tag"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
  font-weight: 500 !important;
}

/* Search icon: neutral */
.search-icon,
.sidebar-search svg,
.sidebar-search .icon {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: rgba(235, 235, 245, 0.6) !important;
}

/* "Your Story" circle: neutral border */
.story-circle,
.story-add,
[class*="story"] {
  border-color: #2c2c2e !important;
}


/* All icons in composer, cards, etc: monochrome */
.composer svg,
.post-card svg,
.post-actions svg,
.sidebar-card svg,
.icon-btn svg {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: rgba(235, 235, 245, 0.6) !important;
}

.composer svg:hover,
.post-card svg:hover,
.post-actions svg:hover,
.sidebar-card svg:hover,
.icon-btn svg:hover {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* Floating Post button: keep teal but reduce glow */
.post-fab {
  box-shadow: 0 2px 8px rgba(48, 213, 200, 0.12) !important;
}

/* Trending widget, suggested follows: neutral accents */
.trend-item,
.suggested-follow-item,
.who-to-follow-item {
  border-bottom: 1px solid #1c1c1e !important;
}


/* Any remaining teal text: neutralize */
.teal-text,
.text-teal,
[class*="teal"]:not(.btn-post):not(.btn-follow):not(.post-fab) {
  color: #ffffff !important;
}

/* Dividers, borders: subtle */
.divider,
.hr,
hr {
  background: #1c1c1e !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Profile avatar rings: neutral */
.avatar-ring,
.story-ring,
[class*="ring"] {
  border-color: #2c2c2e !important;
  box-shadow: none !important;
}

/* Active states in lists: white text, subtle bg */
.list-item.active,
.menu-item.active,
.sidebar-item.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Remove any remaining teal gradients */
*[style*="30d5c8"]:not(.btn-post):not(.post-fab):not(.logo) {
  color: inherit !important;
  background: inherit !important;
  border-color: inherit !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — BLUESKY-STYLE LEFT NAV (8/18/26)
   Remove numbered indices, clean white icons, X/Threads/Bluesky aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide numbered indices */
.nav-index {
  display: none !important;
}

/* Left nav items: clean, X/Bluesky-style */
.left-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  margin: 2px 0 !important;
  border-radius: 999px !important;
  color: rgba(235, 235, 245, 0.6) !important;
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  border: none !important;
  background: transparent !important;
}

.left-nav-item svg {
  width: 19px !important;
  height: 19px !important;
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: none !important;
  stroke-width: 1.5 !important;
  flex-shrink: 0 !important;
}

.left-nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.left-nav-item:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
.left-nav-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 12, 0.92);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font: 500 12px var(--font-display);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  pointer-events: none;
}

.left-nav-item.active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.left-nav-item.active svg {
  color: #14E0C8 !important;
  stroke: #14E0C8 !important;
}

/* Section headers: clean, subtle */
.left-nav-section-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  margin-top: 16px !important;
  color: rgba(235, 235, 245, 0.6) !important;
  font-family: var(--font-display) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: color 0.15s !important;
}

.left-nav-section-header:hover {
  color: #ffffff !important;
}

.section-chevron {
  font-size: 0.7rem !important;
  transition: transform 0.15s !important;
}

/* Sub-nav items: indented */
.left-nav-section-body .left-nav-item {
  padding-left: 40px !important;
  font-size: 0.9rem !important;
}

/* Post button: Bluesky-style, teal gradient */
.post-btn-sidebar,
.post-btn,
[class*="post-btn"]:not(.post-fab):not(.nav-post-btn) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 16px 8px !important;
  padding: 12px 24px !important;
  background: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}


/* Logo: keep teal brand */
.logo, .brand-logo, [class*="logo"] {
  color: #30d5c8 !important;
}

.logo svg, .brand-logo svg {
  fill: #30d5c8 !important;
  stroke: #30d5c8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — SIDE BACKGROUNDS FIX (8/18/26)
   Solid black bg on left nav + right sidebar, clean borders, no gradients
   ═══════════════════════════════════════════════════════════════════════════ */

/* Left nav: solid black, subtle right border */
.left-nav,
.left-sidebar,
nav.left-nav,
#left-nav {
  background: var(--nav-bg) !important;
  background-image: none !important;
  background-color: var(--nav-bg) !important;
  border-right: 1px solid var(--line-soft) !important;
}

/* Right sidebar: solid black, subtle left border */
.right-sidebar,
#right-sidebar {
  background: var(--bg) !important;
  background-image: none !important;
  background-color: var(--bg) !important;
  border-left: 1px solid var(--line-soft) !important;
}

/* Right sidebar widgets: clean cards, no teal glow */
.right-sidebar .sidebar-card,
.right-sidebar .trending-widget,
 .right-sidebar .who-to-follow,
 .right-sidebar .mesh-scanner,
 .right-sidebar .node-ping,
 .right-sidebar .sysops,
 .right-sidebar .surge {
   background: var(--bg-card) !important;
   background-image: none !important;
   border: 1px solid var(--line-soft) !important;
   border-radius: 16px !important;
   box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
   margin-bottom: 16px !important;
 }

 /* Remove any teal glows from widgets */
 .right-sidebar .sidebar-card::before,
 .right-sidebar .sidebar-card::after,
 .trending-widget::before,
 .trending-widget::after,
 .who-to-follow::before,
 .who-to-follow::after {
   display: none !important;
 }

 /* Widget headers: clean, no teal */
 .right-sidebar .sidebar-header,
 .right-sidebar .mesh-scanner-header,
 .right-sidebar .node-ping-header,
 .right-sidebar .sysops-header,
 .right-sidebar .surge-header,
 .trending-widget .sidebar-header {
   background: transparent !important;
   background-image: none !important;
   border-bottom: 1px solid var(--line-soft) !important;
   color: var(--text-muted) !important;
   font-family: var(--font-display) !important;
   font-size: 0.75rem !important;
   font-weight: 700 !important;
   letter-spacing: 0.08em !important;
   padding: 12px 16px !important;
   text-transform: uppercase !important;
 }

 /* Widget items: clean rows */
 .trend-item,
 .mesh-scanner-item,
 .surge-row,
 .sysops-user,
 .who-to-follow-item,
 .suggested-follow-item {
   background: transparent !important;
   border-bottom: 1px solid var(--line-soft) !important;
   padding: 12px 16px !important;
   transition: background 0.15s !important;
 }

 .trend-item:last-child,
 .mesh-scanner-item:last-child,
 .surge-row:last-child,
 .sysops-user:last-child,
 .who-to-follow-item:last-child,
 .suggested-follow-item:last-child {
   border-bottom: none !important;
 }

 .trend-item:hover,
 .mesh-scanner-item:hover,
 .surge-row:hover,
 .sysops-user:hover,
 .who-to-follow-item:hover,
 .suggested-follow-item:hover {
   background: rgba(255, 255, 255, 0.04) !important;
 }

/* Follow buttons: outlined, teal on hover */
.btn-follow,
.btn-follow-mini {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid #2c2c2e !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: monospace !important;
  text-transform: uppercase !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}



/* Search bar: clean */
.sidebar-search input,
.right-sidebar input[type="text"],
.right-sidebar input[type="search"] {
  background: #0a0a0c !important;
  background-image: none !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  transition: border-color 0.15s !important;
  box-shadow: none !important;
}

.sidebar-search input:focus,
.right-sidebar input:focus {
  border-color: #2c2c2e !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Search icon: neutral */
.sidebar-search svg,
.sidebar-search .icon,
.sidebar-search .search-icon {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: rgba(235, 235, 245, 0.6) !important;
}

/* "Your Story" circle: neutral border */
.story-circle,
.story-add,
[class*="story-circle"],
[class*="story-add"] {
  border: 2px solid #2c2c2e !important;
  background: transparent !important;
}

.story-circle:hover,
.story-add:hover {
  border-color: #ffffff !important;
}

/* Post button at bottom of left nav: teal gradient, clean */
.left-nav .post-btn,
.left-nav .post-btn-sidebar,
.left-nav button[class*="post"]:not(.nav-post-btn),
#post-btn-sidebar {
  background: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%) !important;
  background-image: linear-gradient(135deg, #30d5c8 0%, #1f9e92 100%) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  font-family: var(--font-display) !important;
  box-shadow: none !important;
  transition: all 0.15s !important;
}

.left-nav .post-btn:hover,
.left-nav .post-btn-sidebar:hover,
.left-nav button[class*="post"]:not(.nav-post-btn):hover {
  background: linear-gradient(135deg, #7be8de 0%, #30d5c8 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(48, 213, 200, 0.02) !important;
}

/* User profile at bottom of left nav: clean */
.left-nav .user-profile,
.left-nav .user-info,
#user-profile-sidebar {
  background: transparent !important;
  border-top: 1px solid #1c1c1e !important;
  padding: 12px 16px !important;
}

/* Remove any remaining teal gradients from non-CTA elements */
*[style*="linear-gradient"][style*="30d5c8"]:not(.btn-post):not(.post-fab):not(.logo) {
  background: #0a0a0c !important;
  background-image: none !important;
}

/* Composer area: clean */
.composer {
  background: #0a0a0c !important;
  background-image: none !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* Feed area: solid black */
.feed-center,
#feed-center,
.feed-container,
#feed-container {
  background: var(--bg) !important;
  background-image: none !important;
  background-color: var(--bg) !important;
}

/* App shell: solid black */
.app-shell,
#app-shell {
  background: var(--bg) !important;
  background-image: none !important;
  background-color: var(--bg) !important;
}

/* Body: solid black, no gradients */
body,
html {
  background: var(--bg) !important;
  background-image: none !important;
  background-color: var(--bg) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — KILL GREEN EDGES (8/18/26)
   Force pure black on body/html, kill any green gradients/ambient effects
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kill any green ambient gradient on body/html */
body::before,
body::after,
html::before,
html::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

/* Force pure black on everything */
body,
html,
.app-shell,
#app-shell,
.feed-center,
#feed-center,
.feed-container,
#feed-container,
.main-content,
.main-wrapper,
.page-wrapper,
.app-container,
.app-wrapper {
  background: var(--bg) !important;
  background-image: none !important;
  background-color: var(--bg) !important;
}

/* Kill any remaining teal/green gradients anywhere */
*[style*="radial-gradient"],
*[style*="linear-gradient"] {
  background-image: none !important;
}

/* Kill color-mix backgrounds (subnet cards, etc) */
*[style*="color-mix"] {
  background: #0a0a0c !important;
  background-image: none !important;
}

/* Force black on any element with green-ish colors */
*[style*="#0b0f0e"],
*[style*="#0d1210"],
*[style*="#04342c"],
*[style*="#0f6e56"],
*[style*="20, 224, 200"],
*[style*="rgba(20, 224, 200"] {
  background: #000000 !important;
  background-image: none !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — RIGHT SIDEBAR COMPLETE REDESIGN (8/18/26)
   X/Bluesky-style: clean widgets, no glows, minimal, premium
   ═══════════════════════════════════════════════════════════════════════════ */

/* Kill ALL green/teal glows and gradients on right sidebar */
.right-sidebar,
.right-sidebar *,
.right-sidebar *::before,
.right-sidebar *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

.right-sidebar .sidebar-card,
.right-sidebar .trending-widget,
.right-sidebar .who-to-follow,
.right-sidebar .mesh-scanner,
.right-sidebar .node-ping,
.right-sidebar .sysops,
.right-sidebar .surge,
.right-sidebar .sidebar-search {
  background: #0a0a0c !important;
  background-image: none !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
}

/* Kill any ::before/::after glows on widgets */
.right-sidebar .sidebar-card::before,
.right-sidebar .sidebar-card::after,
.right-sidebar .trending-widget::before,
.right-sidebar .trending-widget::after,
.right-sidebar .who-to-follow::before,
.right-sidebar .who-to-follow::after {
  display: none !important;
  content: none !important;
}

/* Widget headers: clean, X-style */
.right-sidebar .sidebar-header,
.right-sidebar .mesh-scanner-header,
.right-sidebar .node-ping-header,
.right-sidebar .sysops-header,
.right-sidebar .surge-header,
.trending-widget .sidebar-header,
.who-to-follow .sidebar-header {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid #1c1c1e !important;
  color: rgba(235, 235, 245, 0.6) !important;
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 12px 16px !important;
  text-transform: none !important;
}

/* Trend items: clean rows like X/Bluesky */
.trend-item {
  background: transparent !important;
  border-bottom: 1px solid #1c1c1e !important;
  padding: 12px 16px !important;
  transition: background 0.15s !important;
  cursor: pointer !important;
}





/* Who to follow: clean rows */
.who-to-follow-item,
.suggested-follow-item {
  background: transparent !important;
  border-bottom: 1px solid #1c1c1e !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background 0.15s !important;
}



/* Follow buttons: outlined, white text, teal on hover */
.btn-follow,
.btn-follow-mini {
  background: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #2c2c2e !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: monospace !important;
  text-transform: uppercase !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
  text-shadow: none !important;
}



/* Search bar: clean, minimal */
.sidebar-search {
  padding: 12px 16px !important;
  border-bottom: 1px solid #1c1c1e !important;
}




/* Search icon: neutral, no teal */
.sidebar-search svg,
.sidebar-search .icon,
.sidebar-search .search-icon {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: none !important;
}

/* Tabs in right sidebar: clean, no teal underline */
.right-sidebar .sidebar-header-tabs,
.right-sidebar .feed-tabs {
  border-bottom: 1px solid #1c1c1e !important;
  padding: 0 !important;
  margin: 0 !important;
}





/* Badges: neutral, no teal */
.right-sidebar .badge,
.right-sidebar .trend-badge,
.right-sidebar [class*="badge"],
.right-sidebar [class*="tag"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

/* Remove any remaining teal backgrounds from widgets */
.right-sidebar [style*="30d5c8"],
.right-sidebar [style*="linear-gradient"],
.right-sidebar [style*="radial-gradient"] {
  background: #0a0a0c !important;
  background-image: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — RIGHT SIDEBAR PREMIUM REDESIGN (8/18/26)
   X/Bluesky/Threads-style: clean, minimal, no glows, premium widgets
   ═══════════════════════════════════════════════════════════════════════════ */

/* Right sidebar container: solid black, subtle border */
.right-sidebar {
  background: #000000 !important;
  background-image: none !important;
  border-left: 1px solid #1c1c1e !important;
  padding: 20px 16px !important;
  overflow-y: auto !important;
}

/* Kill ALL glows/shadows/gradients on right sidebar */
.right-sidebar,
.right-sidebar *,
.right-sidebar *::before,
.right-sidebar *::after {
  box-shadow: none !important;
  text-shadow: none !important;
  background-image: none !important;
}

/* Widget cards: clean, minimal, X/Bluesky-style */
.right-sidebar .sidebar-card,
.right-sidebar .trending-widget,
.right-sidebar .who-to-follow,
.right-sidebar .mesh-scanner,
.right-sidebar .node-ping,
.right-sidebar .sysops,
.right-sidebar .surge {
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
}

/* Kill pseudo-element glows */
.right-sidebar .sidebar-card::before,
.right-sidebar .sidebar-card::after,
.right-sidebar .trending-widget::before,
.right-sidebar .trending-widget::after,
.right-sidebar .who-to-follow::before,
.right-sidebar .who-to-follow::after {
  display: none !important;
  content: none !important;
}

/* Widget headers: clean, white text, no teal */
.right-sidebar .sidebar-header,
.right-sidebar .mesh-scanner-header,
.right-sidebar .node-ping-header,
.right-sidebar .sysops-header,
.right-sidebar .surge-header,
.trending-widget .sidebar-header,
.who-to-follow .sidebar-header {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 1px solid #1c1c1e !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  padding: 12px 16px !important;
  text-transform: none !important;
}

/* Trend items: clean rows like X/Bluesky */
.trend-item {
  background: transparent !important;
  border-bottom: 1px solid #1c1c1e !important;
  padding: 12px 16px !important;
  transition: background 0.15s !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.trend-item:last-child {
  border-bottom: none !important;
}

.trend-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.trend-tag {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.trend-count {
  color: rgba(235, 235, 245, 0.6) !important;
  font-size: 0.8rem !important;
}

/* Who to follow: clean rows */
.who-to-follow-item,
.suggested-follow-item {
  background: transparent !important;
  border-bottom: 1px solid #1c1c1e !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background 0.15s !important;
}

.who-to-follow-item:last-child,
.suggested-follow-item:last-child {
  border-bottom: none !important;
}

.who-to-follow-item:hover,
.suggested-follow-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Follow buttons: outlined, white text, teal on hover */
.btn-follow,
.btn-follow-mini {
  background: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #2c2c2e !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: monospace !important;
  text-transform: uppercase !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.btn-follow:hover,
.btn-follow-mini:hover {
  background: #30d5c8 !important;
  color: #000000 !important;
  border-color: #30d5c8 !important;
}

.btn-follow.following,
.btn-follow-mini.following {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #2c2c2e !important;
  color: rgba(235, 235, 245, 0.6) !important;
}

/* Search bar: clean, minimal */
.sidebar-search {
  padding: 0 !important;
  border-bottom: none !important;
  margin-bottom: 16px !important;
}

.sidebar-search input {
  background: var(--surface-2) !important;
  background-image: none !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  transition: border-color 0.15s !important;
  box-shadow: none !important;
  width: 100% !important;
}


.sidebar-search input::placeholder {
  color: rgba(235, 235, 245, 0.6) !important;
}

/* Search icon: neutral, no teal */
.sidebar-search svg,
.sidebar-search .icon,
.sidebar-search .search-icon {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: none !important;
}

/* Tabs in right sidebar: clean, white text, subtle underline */
.right-sidebar .sidebar-header-tabs,
.right-sidebar .feed-tabs {
  border-bottom: 1px solid #1c1c1e !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.right-sidebar .sidebar-header-tabs button,
.right-sidebar .feed-tabs button,
.right-sidebar .tab-btn {
  color: rgba(235, 235, 245, 0.6) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 12px 16px !important;
  border: none !important;
  background: transparent !important;
  transition: color 0.15s !important;
  position: relative !important;
  flex: 1 !important;
  text-align: center !important;
}

.right-sidebar .sidebar-header-tabs button:hover,
.right-sidebar .feed-tabs button:hover,
.right-sidebar .tab-btn:hover {
  color: #ffffff !important;
}

.right-sidebar .sidebar-header-tabs button.active,
.right-sidebar .feed-tabs button.active,
.right-sidebar .tab-btn.active {
  color: #ffffff !important;
}

.right-sidebar .sidebar-header-tabs button.active::after,
.right-sidebar .feed-tabs button.active::after,
.right-sidebar .tab-btn.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: #30d5c8 !important;
}

/* Badges: neutral, no teal */
.right-sidebar .badge,
.right-sidebar .trend-badge,
.right-sidebar [class*="badge"],
.right-sidebar [class*="tag"] {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

/* Remove any remaining teal backgrounds from widgets */
.right-sidebar [style*="30d5c8"],
.right-sidebar [style*="linear-gradient"],
.right-sidebar [style*="radial-gradient"],
.right-sidebar [style*="box-shadow"] {
  background: #0a0a0c !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Scrollbar: subtle */
.right-sidebar::-webkit-scrollbar {
  width: 6px !important;
}

.right-sidebar::-webkit-scrollbar-track {
  background: #000000 !important;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: #1c1c1e !important;
  border-radius: 3px !important;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
  background: #2c2c2e !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — RIGHT SIDEBAR: FULL FEED 2 (8/20/26)
   The 8/18/26 "SEARCH ONLY" lockdown is lifted — feed 2 (radar tabs +
   panels) is visible again and renders like the main feed: For you = THE
   RIOT stream, Charts = chart rail w/ Riot fallback, Network = fleet board.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Keep the search card visible */
.right-sidebar .discover-search {
  display: block !important;
}

/* Clean search bar: no glow, minimal */
.right-sidebar .discover-search {
  background: var(--surface-2) !important;
  background-image: none !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

.right-sidebar .discover-search-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
}

.right-sidebar .discover-search-row svg {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: none !important;
  flex-shrink: 0 !important;
}

.right-sidebar .discover-search-row input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  flex: 1 !important;
}

.right-sidebar .discover-search-row input::placeholder {
  color: rgba(235, 235, 245, 0.6) !important;
}

/* Kill any remaining glows on the search */
.right-sidebar .discover-search::before,
.right-sidebar .discover-search::after {
  display: none !important;
  content: none !important;
}

/* Right sidebar: clean, minimal */
.right-sidebar {
  background: #000000 !important;
  background-image: none !important;
  border-left: 1px solid #1c1c1e !important;
  padding: 20px 16px !important;
  overflow-y: auto !important;
}

/* Search dropdown: clean */
.right-sidebar .search-dropdown {
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-top: 8px !important;
}

.right-sidebar .search-result {
  padding: 10px 16px !important;
  border-bottom: 1px solid #1c1c1e !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}

.right-sidebar .search-result:last-child {
  border-bottom: none !important;
}

.right-sidebar .search-result:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — FULL MONOCHROME (8/18/26)
   X-style: black/white/gray ONLY. Teal survives on the logo mark only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Post buttons: X-style white pill, black text ── */
.composer .btn-post,
.post-btn-sidebar,
.post-btn,
.left-nav .post-btn,
.left-nav button[class*="post"]:not(.nav-post-btn),
#post-btn-sidebar,
.post-fab {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: none !important;
}



/* ── Composer Post (top-right of composer): white pill ── */
.composer .btn-post {
  padding: 8px 20px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}

/* ── Active tab underline: white, not teal ── */
.feed-tabs button.active::after,
.sidebar-header-tabs button.active::after,
.radar-tab.active::after,
.tab-btn.active::after,
.right-sidebar .tab-btn.active::after {
  background: #ffffff !important;
}

/* ── Left nav active indicator: white, not teal ── */
.left-nav-item.active::before,
.left-nav-item.active::after {
  background: #ffffff !important;
}

.left-nav-item.active {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* ── Right sidebar: kill every last teal/green ── */
.right-sidebar,
.right-sidebar *,
.right-sidebar *::before,
.right-sidebar *::after {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.right-sidebar .discover-card,
.right-sidebar .sidebar-card {
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 16px !important;
}

.right-sidebar a,
.right-sidebar a:hover {
  color: #ffffff !important;
}

/* discover-scope buttons (Global / Sub Nets): neutral pills */
.right-sidebar .discover-scope button,
#trending-scope-tabs button {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

.right-sidebar .discover-scope button.active,
#trending-scope-tabs button.active {
  background: #ffffff !important;
  color: #000000 !important;
}

/* Follow buttons: white pill, black text (X-style) */
.btn-follow,
.btn-follow-mini {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: monospace !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

.btn-follow:hover,
.btn-follow-mini:hover {
  background: #e7e9ea !important;
  color: #000000 !important;
}

.btn-follow.following,
.btn-follow-mini.following {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(235, 235, 245, 0.35) !important;
}

/* ── Your Story circle + plus icon: white, not teal ── */
.story-circle,
.story-add,
.your-story,
[class*="story-ring"] {
  border-color: #2c2c2e !important;
  background: transparent !important;
  color: #ffffff !important;
}


/* ── Composer toolbar icons: neutral gray ── */
.composer svg,
.composer .icon-btn,
.composer .icon-btn svg {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: none !important;
}

.composer .icon-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ── Post action icons (reply/repost/like/save): neutral gray, white on hover ── */
.post-actions svg,
.post-actions button,
.post-action svg {
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
  fill: none !important;
}

.post-actions button:hover svg,
.post-action:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Like (heart) active state: spec accent teal — likes are part of the accent set */
.post-actions button.liked svg,
.post-action.liked svg {
  color: #14E0C8 !important;
  fill: #14E0C8 !important;
  stroke: #14E0C8 !important;
}

/* Repost active: green is X's convention — keep subtle */
.post-actions button.reposted svg,
.post-action.reposted svg {
  color: #00ba7c !important;
  fill: none !important;
  stroke: #00ba7c !important;
}

/* ── Notification dots/badges: white ── */
.notif-badge,
.badge-dot {
  background: #ffffff !important;
  color: #000000 !important;
}

/* ── Pinned indicator: neutral ── */
.post-pinned-indicator {
  color: rgba(235, 235, 245, 0.6) !important;
}

/* ── Verified/role badges next to names: neutral white ── */
.verified-badge,
.role-badge,
.artist-badge {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* ── Any element still using teal accent vars: force neutral ── */
[style*="color: var(--teal)"],
[style*="color:var(--teal)"] {
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — QUIET POST BUTTON (8/18/26)
   Threads-style: outlined pill, transparent bg, subtle. No loud fills.
   ═══════════════════════════════════════════════════════════════════════════ */

.composer .btn-post,
.post-btn-sidebar,
.post-btn,
.left-nav .post-btn,
.left-nav button[class*="post"]:not(.nav-post-btn),
#post-btn-sidebar {
  background: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  transition: border-color 0.15s, color 0.15s !important;
}

.composer .btn-post:hover,
.post-btn-sidebar:hover,
.post-btn:hover,
.left-nav .post-btn:hover,
.left-nav button[class*="post"]:not(.nav-post-btn):hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Floating FAB: subtle dark circle, white pencil, no teal */
.post-fab {
  background: #0a0a0c !important;
  background-image: none !important;
  border: 1px solid #2c2c2e !important;
  box-shadow: none !important;
}



/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — KILL GREEN CARDS + COMPOSER UPGRADE (8/18/26)
   Post cards: solid neutral. Composer button: quiet. Story: white. Subnet: neutral.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Post cards: solid neutral, NO gradients/tints/pseudo bars */
.post-card,
.feed-center .post-card,
#feed .post-card,
.post-card.new-post,
.post-card .post-body {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.post-card::before,
.post-card::after,
.feed-center .post-card::before,
.feed-center .post-card::after {
  display: none !important;
  content: none !important;
}

.post-card:hover,
.feed-center .post-card:hover {
  background: rgba(255, 255, 255, 0.02) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

/* Main composer: kill the teal/violet underline gradient */
.main-composer::after,
.main-composer:focus-within::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.main-composer {
  background: linear-gradient(180deg, var(--surface-1), var(--bg)) !important;
  border: 1px solid #202126 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  padding: 18px 20px 14px !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

.main-composer:focus-within {
  border-color: rgba(48, 213, 200, 0.28) !important;
  background: linear-gradient(180deg, var(--surface-2), var(--bg)) !important;
}

.main-composer-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  background: #1c1c1e !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #ffffff !important;
}

/* MAIN composer Post button (the real one): quiet outlined pill */
.main-composer .btn-post,
#btn-post,
.main-composer #btn-post {
  background: linear-gradient(135deg, #5ce6d5, #3dc3d6) !important;
  background-image: none !important;
  color: #03100f !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 10px !important;
  padding: 8px 19px !important;
  font-weight: 720 !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.main-composer .btn-post:hover:not(:disabled),
#btn-post:hover:not(:disabled) {
  background: linear-gradient(135deg, #76eee0, #5bcfe0) !important;
  border-color: rgba(255,255,255,0.3) !important;
  transform: translateY(-1px) !important;
}

.main-composer .btn-post:disabled,
#btn-post:disabled {
  color: rgba(235, 235, 245, 0.35) !important;
  border-color: #2c2c2e !important;
  background: rgba(255,255,255,0.035) !important;
  opacity: 1 !important;
}

/* Composer tools row: tight, neutral, even spacing */
.main-composer .composer-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 2px 54px !important;
  border-top: none !important;
}

.main-composer .composer-tools {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.main-composer .tool-btn {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  color: rgba(235, 235, 245, 0.6) !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  position: relative !important;
}

.main-composer .tool-btn:hover {
  background: rgba(48, 213, 200, 0.08) !important;
  border-color: rgba(48, 213, 200, 0.24) !important;
  color: var(--teal) !important;
}

.main-composer .tool-btn svg {
  width: 19px !important;
  height: 19px !important;
  color: rgba(235, 235, 245, 0.66) !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.65 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.main-composer .tool-btn:hover svg {
  color: var(--teal) !important;
  stroke: currentColor !important;
}

.composer-tool-divider { width: 1px; height: 20px; margin: 9px 2px; background: var(--line-soft); }

/* Video 27s badge: subtle gray, not teal */
.video-duration-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(235, 235, 245, 0.6) !important;
  border: none !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
}

/* Char counter: quiet gray */
.char-counter {
  color: rgba(235, 235, 245, 0.35) !important;
  font-size: 0.78rem !important;
  font-family: var(--font-display) !important;
  margin-left: auto !important;
  margin-right: 12px !important;
}

.char-counter.warn { color: #ff9f0a !important; }
.char-counter.danger { color: var(--danger) !important; }

/* Story circle: white ring + white plus, not teal */
.story-circle,
.story-add,
.your-story .story-circle,
.stories-row .story-circle,
[class*="story"] [class*="circle"] {
  border-color: #2c2c2e !important;
  background: transparent !important;
  box-shadow: none !important;
}

.story-circle svg,
.story-add svg,
.story-circle .plus,
.story-add .plus {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none !important;
  background: transparent !important;
}

/* Subnet cards in left nav: neutral, kill color-mix green glows */
.subnet-card,
.subnet-card::before,
.subnet-card::after,
.subnet-card-glow,
.subnet-card-scanline,
.subnet-pulse {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: #2c2c2e !important;
  animation: none !important;
}

.subnet-card:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: #3a3a3a !important;
  transform: none !important;
}

.subnet-card .subnet-color-dot,
.subnet-pulse {
  background: rgba(235, 235, 245, 0.24) !important;
  box-shadow: none !important;
}

/* Draft chip: neutral */
.draft-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid #2c2c2e !important;
  color: rgba(235, 235, 245, 0.6) !important;
}

.draft-chip-dot {
  background: #ffffff !important;
}

/* FAB: subtle dark, white icon (reinforce) */
.post-fab,
.app-shell.active .post-fab {
  background: #0a0a0c !important;
  background-image: none !important;
  border: 1px solid #2c2c2e !important;
  box-shadow: none !important;
}


.post-fab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ═══ TEALRIOT — BLUESKY THREAD VIEW + QUIET COMPOSER (8/18/26) ═══ */

/* Composer toolbar always visible (8/18/26) — removed quiet-composer collapse */
.main-composer .composer-footer { display: flex !important; }
.main-composer.picker-open .composer-footer { display: flex !important; }
.video-duration-badge { display: none !important; }

/* Thread header: sticky, back arrow + "Post" */
.thread-header {
  display: flex; align-items: center; gap: 16px;
  padding: 9px 24px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1c1c1e;
}
.thread-back {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: transparent; border: none; color: #ffffff; cursor: pointer;
  transition: background 0.15s;
}
.thread-back:hover { background: rgba(255, 255, 255, 0.06); }
.thread-header-title { font-weight: 700; font-size: 1.1rem; color: #ffffff; font-family: var(--font-display); }

/* Thread detail card: Bluesky layout */
#thread-post .post-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 24px 0 !important;
}
.thread-detail-card { padding: 18px 24px 0 !important; }
.thread-detail-head { display: flex; align-items: center; gap: 12px; }
.thread-detail-head .avatar { width: 44px !important; height: 44px !important; border-radius: 50% !important; }
.thread-detail-head .post-header .meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.thread-detail-head .post-header .meta .name { font-size: 1rem; font-weight: 700; color: #ffffff; }
.thread-detail-head .post-header .meta .handle { color: rgba(235, 235, 245, 0.6); font-size: 0.9rem; }
.thread-detail-head .post-meta-sep,
.thread-detail-head .meta .time { display: none !important; }
.thread-detail-body { margin-top: 10px; }
.thread-detail-card .post-body { font-size: 1.15rem !important; line-height: 1.5 !important; color: #ffffff !important; margin: 4px 0 12px !important; }
.thread-detail-card .post-image img,
.thread-detail-card .post-video video { border-radius: 16px; border: 1px solid #1c1c1e; }

/* Timestamp + stats rows */
.thread-timestamp {
  color: rgba(235, 235, 245, 0.6); font-size: 0.9rem; padding: 12px 0;
  border-bottom: 1px solid #1c1c1e; font-family: var(--font-display);
}
.thread-stats-row {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid #1c1c1e; font-size: 0.9rem; color: rgba(235, 235, 245, 0.6);
  font-family: var(--font-display);
}
.thread-stats-row b { color: #ffffff; font-weight: 700; }

/* Action bar in detail: spread, quiet */
.thread-detail-card .post-actions {
  justify-content: space-around; padding: 6px 0;
  border-bottom: 1px solid #1c1c1e; margin-top: 0 !important;
}

/* Thread replies: compact empty-state when no replies (kills 400px void under clicked post) */
.thread-replies .empty-state { min-height: 0 !important; padding: 28px 20px !important; }
#thread-replies .empty-state,
#thread-container .empty-state { min-height: 0 !important; padding: 28px 20px !important; }
/* Thread replies: flat rows + Bluesky spine */
.thread-replies { position: relative; }
.thread-replies:has(.reply-card)::before {
  content: ''; position: absolute; left: 44px; top: 0; bottom: 0;
  width: 2px; background: #1d242e;
}
.reply-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #1c1c1e !important;
  border-radius: 0 !important;
  padding: 14px 24px !important;
  position: relative;
}
.reply-card .avatar { position: relative; z-index: 1; background: #1c1c1e; }
.reply-card .post-body { color: #eef1f5 !important; }
.reply-card.reply-nested::before {
  content: ''; position: absolute; left: 44px; top: 0; bottom: 0;
  width: 2px; background: #1d242e;
}

/* Reply composers sit inside the replies stack for nested responses. Keep
   the thread spine behind the composer instead of drawing through its field.
   Covers ALL composer wrappers incl. .nested-inline-reply (reply-to-a-reply),
   whose omission let the tree line draw straight through the input. */
.thread-replies > .inline-reply-composer,
.thread-replies > .inline-reply-box,
.thread-replies > .nested-inline-reply {
  position: relative !important;
  z-index: 3 !important;
  background: var(--bg, #000000) !important;
  background-image: none !important;
}
.thread-replies > .inline-reply-composer::before,
.thread-replies > .inline-reply-composer::after,
.thread-replies > .inline-reply-box::before,
.thread-replies > .inline-reply-box::after,
.thread-replies > .nested-inline-reply::before,
.thread-replies > .nested-inline-reply::after {
  display: none !important;
  content: none !important;
}

/* Reply composer: dark card, matches post-card + inline-reply style */
.reply-composer-wrap {
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 16px !important;
  margin: 10px 16px 4px;
  padding: 6px 14px;
}
.thread-reply-composer {
  background: transparent !important; border: none !important;
  border-radius: 0 !important; padding: 0 !important;
}
.thread-reply-composer textarea {
  background: transparent !important; border: none !important;
  color: #ffffff !important;
}
.thread-reply-composer textarea::placeholder { color: var(--text-very-muted); }
.thread-reply-composer .composer-footer {
  border-top: 1px solid #1c1c1e;
  margin-top: 6px;
  padding-top: 10px;
}
.thread-reply-composer .btn-post {
  background: transparent;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 7px 20px;
}
.thread-reply-composer .btn-post:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
}

.thread-reply-composer .composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.thread-reply-composer .tool-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px !important;
  color: rgba(235, 235, 245, 0.6) !important;
  background: transparent !important;
  cursor: pointer;
}
.thread-reply-composer .tool-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.thread-reply-composer .tool-btn svg {
  width: 18px;
  height: 18px;
  color: rgba(235, 235, 245, 0.6) !important;
  stroke: rgba(235, 235, 245, 0.6) !important;
}
.thread-reply-composer .tool-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
.thread-reply-preview {
  padding: 8px 0 2px;
}
.thread-reply-preview .preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 200px;
}
.thread-reply-preview img {
  display: block;
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
}
.reply-media {
  margin-top: 8px;
}
.reply-media img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid #1c1c1e;
}

/* Thread toggle: quiet */
.thread-toggle { border-bottom: 1px solid #1c1c1e; }
.thread-toggle-btn {
  color: rgba(235, 235, 245, 0.6); background: transparent; border: none;
  padding: 10px 16px; font-size: 0.85rem; cursor: pointer;
}

/* Feed post body: pointer cursor (click-to-thread via delegation) */
#feed .post-card .post-body { cursor: pointer; }

/* ═══ TEALRIOT — STORY ADD MOVED TO NAV AVATAR (8/18/26) ═══ */

/* Account avatar becomes the story ring (Instagram-style "+" trigger) */
.account-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 9px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), #0a0a0c);
  transition: background 0.2s;
  line-height: 0;
}
.account-avatar-wrap:hover {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(255, 255, 255, 0.1));
}
.account-avatar-wrap.has-story {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.12), rgba(48, 213, 200, 0.25));
}
.account-avatar-wrap .account-avatar {
  border-radius: 7px !important;
  box-shadow: none !important;
}
.account-story-add {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0a0a0c;
  border: 1px solid #2c2c2e;
  color: #ffffff;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
  z-index: 2;
  box-sizing: border-box;
  font-family: var(--font-display);
}
.account-avatar-wrap:hover .account-story-add {
  background: rgba(48, 213, 200, 0.09);
  border-color: transparent;
  color: #000000;
}

/* Kill grey body panels in the thread view — pure black (fixes neutral11
   `.post-card .post-body` #0a0a0c fill showing through in threads) */
#thread-post .post-card .post-body,
#thread-post .post-card .post-content-col,
#thread-post .post-card .post-image,
#thread-post .post-card .post-video,
#thread-post .post-card .post-audio {
  background: transparent !important;
  background-image: none !important;
}

/* Feed card bodies stay seamless with their card (same #0a0a0c) */
#feed .post-card .post-body {
  background: transparent !important;
  background-image: none !important;
}

/* ═══ TEALRIOT — FLICK VERTICAL RAIL + VERT UPLOAD (8/18/26) ═══ */

/* FLICK card in the right sidebar */
.flick-card {
  padding: 14px !important;
  background: #0a0a0c !important;
  border: 1px solid #1c1c1e !important;
  border-radius: 12px !important;
  margin-top: 12px !important;
}
.flick-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.flick-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: #ffffff;
}
.flick-sub {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.35);
}
.flick-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 420px);
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.flick-rail::-webkit-scrollbar { display: none; }
.flick-empty {
  color: rgba(235, 235, 245, 0.35);
  font-size: 0.8rem;
  padding: 8px 2px;
}

/* FLICK item — vertical card */
.flick-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #05070b;
  border: 1px solid #1c1c1e;
  transition: border-color 0.15s;
}
.flick-item:hover { border-color: #2c2c2e; }
.flick-thumb {
  position: relative;
  width: 100%;
  height: 340px;
  max-height: 68vh;
  overflow: hidden;
  background: #000000;
}
.flick-thumb::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.68) 100%);
  pointer-events: none;
  z-index: 1;
}
.dock-pane .flick-thumb {
  height: 520px;
  max-height: 74vh;
}
.dock-pane .flick-thumb::after { height: 48%; }
.flick-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flick-thumb video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s;
}
.flick-thumb.eyevly-previewing video { opacity: 1; }
.flick-thumb .eyevly-preview-video-auto {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
/* TikTok-style: when auto-play starts, video fades in over the thumbnail */
.flick-thumb.eyevly-previewing .eyevly-preview-video-auto {
  opacity: 1;
}
.flick-thumb.eyevly-previewing .flick-thumb-img {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.flick-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}
.flick-info {
  padding: 8px 10px 10px;
}
.dock-pane .flick-item { position: relative; border-radius: 16px; }
.dock-pane .flick-info {
  position: absolute;
  left: 0; right: 56px; bottom: 0;
  padding: 14px 14px 12px;
  background: transparent;
  z-index: 2;
}
.dock-pane .flick-title { color: #ffffff; font-size: 0.9rem; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.dock-pane .flick-creator { color: rgba(255,255,255,0.75); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.flick-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #eef1f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flick-creator {
  font-size: 0.72rem;
  color: rgba(235, 235, 245, 0.35);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flick-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.22);
  z-index: 3;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.flick-progress-fill {
  height: 100%;
  width: 0%;
  background: #fe2c55;
  transition: width 0.1s linear;
}
body.theme-lifted .flick-progress { background: rgba(0,0,0,0.12); }

/* FLICK dashboard upload card */
.flick-dash-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(235, 235, 245, 0.35);
  letter-spacing: 0.04em;
}
.flick-dash-hint {
  font-size: 0.74rem;
  color: rgba(235, 235, 245, 0.35);
  margin: -6px 0 12px;
  line-height: 1.45;
}
.flick-file-check {
  margin-top: 6px;
  font-size: 0.76rem;
  color: rgba(235, 235, 245, 0.35);
  font-family: 'JetBrains Mono', monospace;
}
.flick-file-check.flick-file-ok { color: #00ba7c; }
.flick-file-check.flick-file-bad { color: #ff453a; }

/* ═══ FEED CARDS — PURE BLACK, NO FILL (8/18/26) ═══
   Kill the #0a0a0c grey card fill on the main feed —
   cards blend seamlessly into the pure-black page.
   ═══════════════════════════════════════════════════════════════════════════ */

#feed .post-card,
#feed .post-card.new-post,
.feed-center .post-card,
.feed-center .post-card.new-post,
#feed .post-card .post-content-col,
#feed .post-card .post-body,
#feed .post-card .post-image,
#feed .post-card .post-video,
#feed .post-card .post-audio {
  background: transparent !important;
  background-image: none !important;
}

#feed .post-card:hover,
.feed-center .post-card:hover {
  background: rgba(255, 255, 255, 0.018) !important;
  background-image: none !important;
  border-color: #222 !important;
}

/* ═══ LANDING PAGE — MINIMAL (8/18/26) ═══
   Strip sales copy, center the card clean.
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-screen.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-side { display: none !important; }

.auth-card.foyer-minimal {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background: #050505;
  border: 1px solid #1c1c1e;
  border-radius: 16px;
  padding: 40px 32px 32px;
  text-align: center;
}

.foyer-minimal .foyer-mark {
  margin-bottom: 22px;
}

.foyer-minimal .foyer-mark-img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.foyer-minimal .foyer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  margin: 0;
}

.foyer-thesis {
  max-width: 320px;
  margin: 12px auto 0 !important;
  color: rgba(235, 235, 245, 0.72) !important;
  font-family: var(--font-display);
  font-size: 0.92rem !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.foyer-worlds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.foyer-worlds span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(235, 235, 245, 0.48);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.foyer-minimal .foyer-nucleus,
.foyer-minimal .btn-nucleus {
  width: 100%;
  margin-bottom: 10px;
}

.foyer-minimal .foyer-secondary {
  width: 100%;
  margin-bottom: 20px;
}

.foyer-minimal .foyer-email {
  width: 100%;
}

.foyer-minimal .foyer-email-toggle {
  font-size: 0.78rem;
  color: rgba(235, 235, 245, 0.35);
  cursor: pointer;
}

.foyer-minimal .foyer-email[open] .foyer-email-toggle {
  margin-bottom: 12px;
}

/* ═══ TEALRIOT — CREATOR STUDIO UI UPGRADE (8/18/26) ═══════════ */
/* Glassy dashboard cards + refined fields + drag-drop upload zones */

.creator-dashboard-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px -18px rgba(0,0,0,0.8);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.creator-dashboard-card:hover {
  border-color: rgba(255,255,255,0.13) !important;
}
.creator-dashboard-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #eef1f5 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dash-field label {
  color: rgba(235, 235, 245, 0.6) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dash-field input,
.dash-field textarea,
.dash-field select {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  color: #eef1f5 !important;
  font-size: 0.88rem !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.dash-field input:focus,
.dash-field textarea:focus,
.dash-field select:focus {
  border-color: rgba(48, 213, 200, 0.05) !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  background: rgba(255,255,255,0.05) !important;
}
.dash-field input::placeholder,
.dash-field textarea::placeholder {
  color: rgba(235, 235, 245, 0.22);
}
.dash-field select option {
  background: #0a0a0c;
  color: #eef1f5;
}

/* Upload dropzones — sleek drag & drop */
.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 18px;
  border: 1.5px dashed rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
}
.upload-dropzone:hover {
  border-color: rgba(48, 213, 200, 0.30);
  background: rgba(48, 213, 200, 0.05);
}
.upload-dropzone.drag-over {
  border-color: #30d5c8;
  background: rgba(48, 213, 200, 0.01);
  transform: scale(1.01);
}
.upload-dropzone.has-file {
  border-color: rgba(48, 213, 200, 0.04);
  background: rgba(48, 213, 200, 0.06);
}
.upload-dropzone .udz-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(48, 213, 200, 0.12);
  color: #30d5c8;
}
.upload-dropzone .udz-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #eef1f5;
}
.upload-dropzone .udz-sub {
  font-size: 0.74rem;
  color: rgba(235, 235, 245, 0.35);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Trim timeline — sleek */
.flick-trim-wrap {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}
.flick-trim-preview {
  width: 100%;
  max-height: 300px;
  border-radius: 10px;
  background: #000;
  display: block;
  margin-bottom: 12px;
}
.flick-trim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.flick-trim-row label {
  font-size: 0.72rem;
  color: rgba(235, 235, 245, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-width: 34px;
}
.flick-trim-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  outline: none;
}
.flick-trim-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #30d5c8;
  border: 2px solid #0a0a0c;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  cursor: pointer;
}
.flick-trim-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #30d5c8;
  border: 2px solid #0a0a0c;
  cursor: pointer;
}
.flick-trim-val {
  font-size: 0.72rem;
  color: rgba(235, 235, 245, 0.6);
  font-family: 'JetBrains Mono', monospace;
  min-width: 40px;
  text-align: right;
}

/* Upload progress bar */
.upload-progress-wrap {
  display: none;
  margin-top: 10px;
}
.upload-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #30d5c8, #7be8de);
  border-radius: 999px;
  transition: width 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.upload-progress-text {
  font-size: 0.72rem;
  color: rgba(235, 235, 245, 0.6);
  margin-top: 5px;
  text-align: center;
}

/* CTA button — sleek gradient */
.btn-dash-upload {
  width: 100%;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #30d5c8, #1f9e92) !important;
  color: #04110d !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(48, 213, 200, 0.12) !important;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-dash-upload:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(48, 213, 200, 0.07) !important;
  filter: brightness(1.06);
}
.btn-dash-upload:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Dash mode tabs */
.dash-mode-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  color: rgba(235, 235, 245, 0.6);
  font-weight: 600;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.dash-mode-tab.active {
  background: linear-gradient(135deg, rgba(48, 213, 200, 0.08), rgba(48, 213, 200, 0.08)) !important;
  color: #30d5c8 !important;
  box-shadow: inset 0 -2px 0 #30d5c8;
}

/* ═══ IDENTITY MARKS — precision SVG badges ═════════════════════ */
/* Identity badges — 12-facet diamond seal. SVG carries ALL fill/stroke; the
   frame is transparent (no background, no shadow, no glow). */
.identity-badge {
  width: 17px !important;
  height: 17px !important;
  margin-left: 4px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  line-height: 0 !important;
  vertical-align: -3px !important;
}
.identity-badge svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* Profile header context — spec in-context sizing */
.display-name .identity-badge,
.profile-header .identity-badge,
.eyeply-player-creator .identity-badge {
  width: 22px !important;
  height: 22px !important;
  margin-left: 6px !important;
  vertical-align: -4px !important;
}
.identity-nucleus,
.identity-admin,
.identity-miku,
.identity-verified,
.identity-creator,
.verified-badge.identity-badge,
.verified-badge.identity-nucleus,
.verified-badge.identity-admin,
.verified-badge.identity-miku,
.verified-badge.identity-creator {
  background: transparent !important;
  box-shadow: none !important;
}
.identity-badge.nucleus-badge,
.identity-badge.creator-badge,
.identity-badge.miku-verify-badge,
.identity-badge.admin-badge,
.identity-badge.super-admin-badge {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.role-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px !important;
  margin-left: 5px !important;
  border: none !important;
  border-radius: 9px !important;
  background: rgba(48, 213, 200, 0.14) !important;
  color: #ffffff !important;
  font-family: var(--font-display) !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
.role-badge svg {
  width: 11px;
  height: 11px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.role-sysop {
  background: linear-gradient(135deg, #30d5c8, #0ea89a) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 rgba(0, 0, 0, 0) !important;
}
.role-dev {
  background: linear-gradient(135deg, #0A84FF, #0060DF) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 rgba(0, 0, 0, 0) !important;
}
.role-creator {
  background: linear-gradient(135deg, #ff6b8a, #e2335e) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 rgba(0, 0, 0, 0) !important;
}
.role-artist {
  background: linear-gradient(135deg, #b48bff, #8a4df5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 rgba(0, 0, 0, 0) !important;
}

/* Creator edit list — compact control-surface rows */
.dash-video-list {
  display: grid;
  gap: 8px;
}
.dash-video-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  transition: background 0.18s, border-color 0.18s;
}
.dash-video-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(48, 213, 200, 0.28);
}
.dash-video-info { min-width: 0; }
.dash-video-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eef1f5;
  font-weight: 650;
}
.dash-video-meta {
  margin-top: 5px;
  color: rgba(235, 235, 245, 0.35);
  font-size: 0.72rem;
}
.dash-video-item > div:last-child {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px !important;
}
.btn-dash-sm {
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #aeb4bc !important;
  padding: 6px 10px !important;
  font-size: 0.72rem !important;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-dash-sm:hover:not(:disabled) {
  color: #fff !important;
  border-color: #30d5c8 !important;
  background: rgba(48, 213, 200, 0.08) !important;
}
.btn-dash-sm.danger:hover:not(:disabled) {
  color: #ff8297 !important;
  border-color: rgba(255,71,87,0.55) !important;
  background: rgba(255,71,87,0.08) !important;
}
@media (max-width: 640px) {
  .dash-video-item { align-items: flex-start; flex-direction: column; }
  .dash-video-item > div:last-child { justify-content: flex-start; }
}

/* ═══ TEALRIOT — PURE BLACK UI PASS (8/18/26) ═══
   User directive: EVERYTHING black (#000) with grey outlines — only the
   message popup (toast) keeps its own surface. Replaces lingering #0a0a0c. */

/* Post cards + feed surfaces: pure black */
.post-card,
.feed-center .post-card,
#feed .post-card,
.post-card.new-post,
.post-card .post-body,
.eyevly-card,
.reply-card,
.thread-preview {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Sidebar cards + FLICK pane: pure black, grey outline */
.sidebar-card,
.flick-card,
.discover-card,
.comms-toggle-bar,
.charts-card,
.hot-regions-widget,
#trending-widget,
#suggested-widget,
#charts-widget,
#hot-regions-widget {
  background: #000000 !important;
  background-image: none !important;
  border: 1px solid #2c2c2e !important;
  box-shadow: none !important;
}

/* FLICK items: pure black thumbs/panels */
.flick-item,
.flick-thumb,
.flick-rail {
  background: #000000 !important;
  background-image: none !important;
}
.flick-item { border-color: #2c2c2e !important; }

/* Sidebar search: theme surface field, quiet outline */
.sidebar-search input {
  background: var(--surface-2) !important;
  background-image: none !important;
  border: 1px solid var(--line-soft) !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
.sidebar-search input:focus {
  border-color: var(--line-bright) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Reply composer + inline composers: pure black */
.reply-composer-wrap,
.inline-reply-composer,
.thread-replies > .inline-reply-composer,
.thread-replies > .inline-reply-box,
.thread-reply-composer {
  background: var(--bg-input) !important;
  background-image: none !important;
  border-color: #2c2c2e !important;
}
.thread-reply-composer .composer-footer,
.thread-reply-composer {
  border-top-color: #2c2c2e !important;
}

/* Main composer: pure black */
.composer,
.modal-overlay .compose-modal {
  background: #000000 !important;
  background-image: none !important;
  border-color: #2c2c2e !important;
}

/* ── Create Room modal ─────────────────────────────────────── */
.create-room-modal {
  background: #0a0a0c !important;
  border: 1px solid #2c2c2e !important;
  border-radius: 14px !important;
}
.create-room-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}
.create-room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.create-room-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.create-room-sub {
  font-size: 0.85rem;
  color: rgba(235, 235, 245, 0.45);
  margin: 4px 0 0;
}
.create-room-preview {
  position: relative;
}
.create-room-preview-card {
  cursor: default;
  min-height: 150px;
}
.create-room-preview-card:hover {
  transform: none;
}
.create-room-preview-label {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(48, 213, 200, 0.55);
  background: rgba(10, 10, 12, 0.7);
  padding: 3px 8px;
  border: 1px solid rgba(48, 213, 200, 0.25);
  border-radius: 4px;
}
.create-room-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.create-room-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.create-room-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.45);
}
.create-room-field input,
.create-room-field textarea {
  width: 100%;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.create-room-field input:focus,
.create-room-field textarea:focus {
  border-color: rgba(48, 213, 200, 0.55);
  box-shadow: 0 0 0 3px rgba(48, 213, 200, 0.12);
}
.create-room-slug-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.create-room-slug-prefix {
  padding: 0 0 0 14px;
  font-family: var(--font-mono);
  color: rgba(235, 235, 245, 0.35);
  font-size: 0.95rem;
}
.create-room-slug-wrap input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.create-room-counter {
  align-self: flex-end;
  font-size: 0.7rem;
  color: rgba(235, 235, 245, 0.35);
  font-family: var(--font-mono);
}
.create-room-emoji-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.create-room-emoji {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s, background 0.15s;
}
.create-room-emoji:hover {
  transform: scale(1.08);
  border-color: rgba(235, 235, 245, 0.3);
}
.create-room-emoji.active {
  background: rgba(48, 213, 200, 0.12);
  border-color: rgba(48, 213, 200, 0.65);
}
.create-room-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.create-room-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s;
}
.create-room-swatch:hover {
  transform: scale(1.15);
}
.create-room-swatch.active {
  box-shadow: 0 0 0 2px #0a0a0c, 0 0 0 4px var(--swatch);
}
.create-room-private {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  background: #0f0f11;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
}
.create-room-private input {
  display: none;
}
.create-room-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 26px;
  border-radius: 13px;
  background: #2c2c2e;
  position: relative;
  transition: background 0.2s;
  margin-top: 1px;
}
.create-room-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.create-room-private input:checked + .create-room-toggle {
  background: #30d5c8;
}
.create-room-private input:checked + .create-room-toggle::after {
  transform: translateX(16px);
}
.create-room-private-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}
.create-room-private-text strong {
  color: var(--text);
}
.create-room-private-text span {
  font-size: 0.75rem;
  color: rgba(235, 235, 245, 0.4);
}
.create-room-submit {
  margin-top: 4px;
  width: 100%;
}

/* Settings glass card: pure black, grey outline */
.settings-glass {
  background: #000000 !important;
  background-image: none !important;
  border-color: #2c2c2e !important;
  box-shadow: none !important;
}
.settings-glass .particle-bg { opacity: 0.25; }
.settings-panel .float-label input,
.settings-panel .float-label textarea,
.settings-panel .float-label select {
  background: #000000 !important;
  border: 1px solid #2c2c2e !important;
  box-shadow: none !important;
}

/* Date input: single clean dark field (no double-render boxes) */
.float-label input[type="date"],
.settings-panel input[type="date"] {
  color-scheme: dark !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #000000 !important;
  border: 1px solid #2c2c2e !important;
  color: #e0d0f0 !important;
  border-radius: 12px !important;
  padding: 14px !important;
}
.float-label input[type="date"]::-webkit-calendar-picker-indicator,
.settings-panel input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  opacity: 0.7;
  cursor: pointer;
}
.float-label input[type="date"]::-webkit-datetime-edit {
  color: #e0d0f0 !important;
}

/* FAB: teal circle with black icon (was purple-era #c48de8) */
.post-fab,
.app-shell.active .post-fab {
  background: rgba(28, 28, 30, 0.72) !important;
  background-image: none !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  width: auto !important;
  height: 52px !important;
  padding: 0 20px !important;
  gap: 8px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 300 !important;
}
.post-fab:hover {
  background: rgba(44, 44, 46, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
.post-fab .fab-icon,
.post-fab svg {
  color: #30d5c8 !important;
  stroke: #30d5c8 !important;
  fill: none !important;
}
.post-fab .fab-label {
  display: block !important;
  color: rgba(235, 235, 245, 0.9) !important;
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
}

/* Fab menu: black panel, teal hover (was purple text) */
.fab-menu {
  background: #000000 !important;
  border: 1px solid var(--line-soft) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
  border-radius: 14px !important;
  z-index: 310 !important;
}
.fab-menu-item { color: #eef1f5 !important; }
.fab-menu-item:hover { background: rgba(48, 213, 200, 0.01) !important; }

/* Toast (message popup) — the ONLY surface that keeps its own look */
.toast {
  background: #17191d !important;
  border: 1px solid #2f3339 !important;
  color: #eef1f5 !important;
}

/* ═══ TEALRIOT — SEARCH WIDGET THEME SURFACE (8/18/26) ═══
   Keep the right-sidebar search widget integrated with each theme's surface
   instead of forcing a separate black tile. */

.discover-search,
#sidebar-search,
.discover-card.discover-search,
.right-sidebar .discover-search,
.right-sidebar .discover-card.discover-search,
.right-sidebar #sidebar-search,
.right-sidebar .discover-search.sticky,
.discover-search.sticky {
  background: var(--surface-2) !important;
  background-image: none !important;
  background-color: var(--surface-2) !important;
  border: 1px solid var(--line-soft) !important;
  box-shadow: none !important;
}

.discover-search-row {
  background: transparent !important;
  background-image: none !important;
}
.discover-search-row input,
.discover-search .sidebar-search-input {
  color: var(--text) !important;
}
.discover-search-row input::placeholder,
.discover-search .sidebar-search-input::placeholder {
  color: var(--text-muted) !important;
}

/* Rail cards follow the theme surface tokens (was forced #000 — read as
   black boxes cutting through non-pure themes). */
.radar-card,
#radar-card,
.right-sidebar .discover-card {
  background: var(--bg-card) !important;
  background-image: none !important;
  background-color: var(--bg-card) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  border-color: var(--line-soft) !important;
}
/* Search dropdown: useful on focus, structured results on query. */
.search-dropdown,
.discover-search .search-dropdown {
  display: none;
  background: var(--surface-1) !important;
  background-image: none !important;
  border: 1px solid var(--line-soft) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32) !important;
  overflow: hidden;
}
.search-dropdown-intro {
  padding: 14px 16px 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.search-shortcuts { padding: 0 8px 8px; }
.search-shortcut,
.search-result,
.search-all-results {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-shortcut {
  padding: 10px 8px;
  border-top: 1px solid var(--line-soft);
}
.search-shortcut:first-child { border-top: 0; }
.search-shortcut > span:not(.search-result-icon) { min-width: 0; flex: 1; }
.search-shortcut strong { display: block; font-size: 0.82rem; font-weight: 650; }
.search-shortcut small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.7rem; }
.search-result { padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.search-result > :not(.search-result-icon) { min-width: 0; flex: 1; }
.search-result-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  color: var(--accent, var(--teal));
  background: color-mix(in srgb, var(--accent, var(--teal)) 10%, transparent);
}
.search-result-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search-result-icon:last-child { margin-left: auto; color: var(--text-muted); background: transparent; }
.search-subnet-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  color: var(--search-subnet-color);
  background: color-mix(in srgb, var(--search-subnet-color) 11%, transparent);
}
.search-dropdown .search-group {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 14px 5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.search-group .search-result-icon { width: 16px; height: 16px; flex-basis: 16px; background: transparent; }
.search-group .search-result-icon svg { width: 13px; height: 13px; }
.search-shortcut:hover,
.search-dropdown .search-result:hover { background: color-mix(in srgb, var(--accent, var(--teal)) 8%, transparent) !important; }
.search-all-results {
  justify-content: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--accent, var(--teal));
  font-size: 0.76rem;
  font-weight: 650;
}
.search-all-results .search-result-icon { width: 18px; height: 18px; flex-basis: 18px; background: transparent; color: inherit; }
.search-empty { padding: 20px 16px; color: var(--text-muted); font-size: 0.78rem; }
.search-empty strong { display: block; color: var(--text); font-size: 0.84rem; }
.search-empty span { display: block; margin-top: 5px; }

/* ═══ TEALRIOT — THREADS-STYLE REPLY COMPOSER (8/18/26) ═══
   Ultra-minimal single-line composer: avatar + input + 3 icons.
   Expand button opens the full modal composer. Pure black surfaces. */

.thread-reply-composer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}
.thread-reply-avatar,
.thread-reply-avatar img {
  display: grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  object-fit: cover;
}
.thread-reply-composer-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0;
  padding: 0;
}
.reply-input-wrap { flex: 1; min-width: 0; }
.reply-composer-highlight {
  padding: 7px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.reply-composer-highlight .hl-custom-emoji { background: #090a0c; box-shadow: 0 0 0 2px #090a0c; }
.thread-reply-input {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  resize: none;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  padding: 7px 0 !important;
}
.thread-reply-input::placeholder { color: rgba(235, 235, 245, 0.6) !important; }
.thread-reply-input:focus { border: none !important; box-shadow: none !important; outline: none !important; }
.thread-reply-composer-body:focus-within { box-shadow: none !important; }
.thread-reply-composer:focus-within { border-color: rgba(48, 213, 200, 0.28) !important; background: rgba(48, 213, 200, 0.025); box-shadow: none !important; }

.thread-reply-icons {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: 4px;
}
.thread-reply-send,
.thread-reply-cancel {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #2c2c2e;
  background: transparent;
  color: rgba(235, 235, 245, 0.6);
  font: 600 0.74rem var(--font-display);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s var(--ease-out);
}
.thread-reply-send:not(:disabled):active,
.thread-reply-cancel:active { transform: scale(0.95); }
.thread-reply-send:not(:disabled):hover {
  color: #000;
  background: var(--teal, #30d5c8);
  border-color: var(--teal, #30d5c8);
}
.thread-reply-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.thread-reply-cancel:hover {
  color: #fff;
  border-color: #555;
}

/* Nested replies use the same compact composer instead of the legacy
   full-width textarea/card treatment. */
.nested-inline-reply {
  margin: 4px 12px 10px 18px;
  padding: 2px 10px 6px 2px;
}
.nested-inline-reply .thread-reply-composer {
  padding: 8px 4px 8px 0;
}
.nested-inline-reply .thread-reply-composer-body {
  padding-right: 6px;
}
.nested-inline-reply .thread-reply-composer-body {
  align-items: center;
}
.nested-inline-reply .inline-reply-preview {
  margin-left: 0;
}

/* Feed inline reply box: hidden by default, shows minimal Threads-style composer */
.inline-reply-box {
  display: none;
  padding: 8px 6px 6px 2px;
}
.inline-reply-box .thread-reply-composer {
  padding: 8px 8px 8px 0;
}
.thread-replies > .inline-reply-box {
  padding-left: 10px;
  padding-right: 12px;
  margin-bottom: 8px;
}
.inline-reply-box .thread-reply-input {
  font-size: 0.9rem;
}

.thread-reply-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(235, 235, 245, 0.6);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.thread-reply-icon:hover {
  color: #7be8de;
  background: rgba(48, 213, 200, 0.12);
}
.thread-reply-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .thread-reply-composer { gap: 9px; padding: 11px 10px; }
  .thread-reply-avatar,
  .thread-reply-avatar img { width: 32px; height: 32px; min-width: 32px; }
  .thread-reply-composer-body { flex-wrap: wrap; }
  .reply-input-wrap { flex-basis: 100%; }
  .thread-reply-icons { width: 100%; margin-left: 0; }
  .thread-reply-send { margin-left: auto; }
  .thread-reply-close { order: 8; }
  .reply-expand-tools { margin-left: 0; }
}

/* ── Expand modal (Threads-style) ── */
.reply-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.reply-expand-modal {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: #090a0c;
  border: 1px solid #2b2c31;
  border-radius: 18px;
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reply-expand-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
}
.reply-expand-cancel {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
}
.reply-expand-cancel:hover { background: rgba(255,255,255,.06); }
.reply-expand-cancel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.reply-expand-more {
  background: none;
  border: none;
  color: rgba(235, 235, 245, 0.6);
  cursor: pointer;
  padding: 4px;
}
.reply-expand-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.reply-expand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #26262b;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}
.reply-expand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reply-expand-input-wrap { flex: 1; min-width: 0; min-height: 116px; }
.reply-expand-input-wrap .reply-composer-highlight { padding: 4px 0; font-size: 1.05rem; line-height: 1.5; }
.reply-expand-input-wrap .hl-custom-emoji { background: #090a0c; box-shadow: 0 0 0 2px #090a0c; }
.reply-expand-textarea {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 100px;
  resize: none;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  line-height: 1.5;
  padding: 4px 0 !important;
}
.reply-expand-textarea::placeholder { color: rgba(235, 235, 245, 0.6) !important; }
.reply-expand-tools {
  display: flex;
  gap: 4px;
  margin-left: 52px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}
.reply-expand-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 0;
  padding-top: 0;
}
.reply-expand-post {
  background: linear-gradient(135deg, #5ce6d5, #3dc3d6);
  color: #03100f;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.reply-expand-post:hover { background: linear-gradient(135deg, #76eee0, #5bcfe0); }
.reply-expand-post:disabled { opacity: 0.4; cursor: default; }

/* ═══ FLOATING QUICK-NAV (doom-scroll aid) ═══ */
.floating-quicknav {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: translateY(0);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.floating-quicknav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-quicknav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}
.fqn-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fqn-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.fqn-item.fqn-special {
  width: auto;
  padding: 0 12px;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fqn-item.fqn-special:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}
.fqn-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
}
.fqn-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

/* ═══ LIGHTBOX — in-app image viewer ═══ */
.tr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tr-lightbox.open { opacity: 1; }
.tr-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tr-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.tr-lightbox.open .tr-lightbox-content { transform: scale(1); }
.tr-lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.tr-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.tr-lightbox-close:hover { background: rgba(0, 0, 0, 0.85); }

.fqn-item.fqn-toggle {
  color: rgba(255, 255, 255, 0.5);
}
.fqn-item.fqn-toggle.on {
  color: var(--teal, #30d5c8);
  background: rgba(48, 213, 200, 0.12);
  animation: fqn-pulse 2.6s ease-in-out infinite;
}
@keyframes fqn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ═══ MULTI-COLUMN FEED LAYOUT ═══ */
.feed-columns {
  display: none;
}
.feed-columns.multi-column {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.feed-center.has-columns {
  flex: 1;
  min-width: 0;
}
.feed-column {
  flex: 1;
  min-width: 480px;
  max-width: 600px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feed-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.feed-column-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.feed-column-refresh {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.feed-column-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.feed-column.refresh-on .feed-column-refresh.on {
  color: var(--teal, #30d5c8);
  background: rgba(48, 213, 200, 0.12);
  animation: fqn-pulse 2.6s ease-in-out infinite;
}
.feed-column-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}
.feed-column-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.feed-column-close:hover {
  background: rgba(255, 60, 60, 0.18);
  color: #ff5c5c;
}
.feed-column-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.feed-column-body .post-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-column-body .post-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ═══ PROFILE PANEL — Threads-style right panel ═══ */
.profile-panel {
  display: none;
  width: 500px;
  min-width: 500px;
  max-width: 500px;
  height: 100vh;
  position: sticky;
  top: 0;
  border-left: 1px solid var(--line-soft, rgba(255,255,255,0.06));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.profile-panel.open {
  display: block;
}
.profile-panel-inner {
  padding: 20px 24px;
}
.profile-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-panel-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.profile-panel-back:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.profile-panel-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.profile-panel-handle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.profile-panel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
  margin-bottom: 12px;
}
.profile-panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-panel-bio {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 14px;
}
.profile-panel-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.profile-panel-stats strong {
  color: #fff;
  font-weight: 600;
}
.profile-panel-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.profile-panel-actions button {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.profile-panel-actions button:hover {
  background: rgba(255,255,255,0.06);
}
.profile-panel-actions button.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.profile-panel-actions button.primary:hover {
  background: rgba(255,255,255,0.9);
}
.profile-panel-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.profile-panel-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.profile-panel-tab:hover {
  color: rgba(255,255,255,0.7);
}
.profile-panel-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}
.profile-panel-posts {
  min-height: 200px;
}

/* ═══ HORIZONTAL FLICK RAIL — above feed ═══ */
.flick-rail-h {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-soft, rgba(255,255,255,0.06));
}
.flick-rail-h::-webkit-scrollbar { display: none; }
.flick-rail-item {
  flex: 0 0 100px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.15s;
}
.flick-rail-item:hover {
  border-color: rgba(255,255,255,0.15);
}
.flick-rail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flick-rail-item .flick-rail-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 0.7rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flick-rail-item .flick-rail-duration {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
}
.flick-rail-item .eyevly-preview-video-auto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flick-rail-item.flick-no-thumb img { display: none; }
.flick-rail-item.flick-no-thumb {
  background: linear-gradient(160deg, rgba(48, 213, 200, 0.12), rgba(5, 7, 10, 0.6));
}
.flick-rail-h .flick-rail-empty {
  flex: 0 0 100px;
  height: 140px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CENTER FEED DOCK — home feed + optional second row (split view, 8/19/26)
   Row 1 (primary) holds the normal home feed; a second row can be opened
   with the + button and independently switches between feed panes.
   ═══════════════════════════════════════════════════════════════════════════ */

.feed-dock {
  flex: 1;
  min-width: 0;
  max-width: 700px;
  display: flex;
  flex-direction: column;
}
.feed-dock:not(.split) {
  margin: 0 auto;
  background:
    radial-gradient(900px 500px at 50% -12%, rgba(48, 213, 200, 0.07), transparent 62%),
    radial-gradient(700px 520px at 92% 88%, rgba(94, 92, 230, 0.045), transparent 62%);
}
.dock-row {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin: 12px 12px 0;
}
/* Non-split single column: no card chrome, no header, feed fills naturally */
.feed-dock:not(.split) .dock-row {
  border: none;
  border-radius: 0;
  background: transparent;
  margin: 0;
}
.feed-dock:not(.split) .dock-row-header {
  display: flex;
  justify-content: flex-end;
  border-bottom: none;
  padding: 6px 12px 0;
}
.feed-dock:not(.split) .dock-row-title { display: none; }
.feed-dock:not(.split) .dock-row-actions { margin-left: auto; }
.dock-row + .dock-row { margin-bottom: 12px; }

.dock-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.dock-row-header.collapsed { padding: 2px 10px; border-bottom-color: transparent; }
.dock-row-header.collapsed .dock-pills { opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; margin: 0; padding: 0; border: none; }

.dock-row-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* Segmented-control style tab rail so the pills read as one control,
   not loose chips floating on the header. */
.dock-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.25);
  transition: opacity 0.22s ease, max-height 0.22s ease, padding 0.22s ease, border-color 0.22s ease;
}
.dock-pills::-webkit-scrollbar { display: none; }

.dock-pill {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.58);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.dock-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.dock-pill.active {
  color: #00100d;
  background: linear-gradient(180deg, #7be8de 0%, var(--teal) 100%);
  border-color: rgba(48, 213, 200, 0.30);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 4px 16px rgba(48, 213, 200, 0.12), inset 0 1px 0 rgba(255,255,255,0.35);
  text-shadow: none;
}

.dock-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Glass circular action chips — close/add read as part of the rail */
.dock-row-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(48, 213, 200, 0.30);
  background: linear-gradient(180deg, #7be8de 0%, var(--teal) 100%);
  color: #00100d;
  box-shadow: 0 2px 10px rgba(48, 213, 200, 0.12);
}
.dock-row-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(48, 213, 200, 0.12);
}
.dock-row-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.dock-row-add-btn:hover,
.dock-row-close-btn:hover {
  color: var(--teal);
  border-color: var(--teal-dim);
  background: var(--teal-dark);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.dock-row-body {
  min-width: 0;
}

/* The primary row body wraps the existing feed-center — let it breathe. */
.dock-row-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 213, 200, 0.14) transparent;
}
.dock-row-body::-webkit-scrollbar { width: 6px; }
.dock-row-body::-webkit-scrollbar-thumb { background: rgba(48, 213, 200, 0.12); border-radius: 3px; }
.dock-row-body .feed-center,
.dock-row-body #feed-center {
  max-width: none !important;
  width: 100% !important;
  border-right: none !important;
  border-left: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Inner editorial wrappers must span the whole column too — profiles,
   feed layouts, and settings pages all render inside .feed-layout. */
.dock-row-body .feed-layout,
.dock-row-body .feed-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Kill background hacks that use class+id selectors — column must match the
   theme base (var(--bg)), never a card surface, or short views show a band
   at the bottom where content ends above the viewport. */
.dock-row-body .feed-center,
.dock-row-body #feed-center {
  background: var(--bg) !important;
  background-image: none !important;
}
/* Post images fill their column — snug to the square wrapper */
.dock-row-body .post-image,
.dock-row-body .post-media {
  width: 100% !important;
}
.dock-row-body .post-image img,
.dock-row-body .post-media img,
.dock-row-body .post-media video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
}

.dock-pane { display: none; width: 100%; }
.dock-pane.active { display: block; width: 100%; }

.dock-feed-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 2px;
}
.dock-feed-tabs button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.dock-feed-tabs button:hover { color: var(--text); }
.dock-feed-tabs button.active {
  color: var(--teal);
  background: rgba(48, 213, 200, 0.01);
}

.dock-feed {
  padding: 8px 12px;
}

.dock-video-rail {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-video-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.dock-video-row:hover { background: rgba(255, 255, 255, 0.04); }
.dock-video-thumb {
  width: 88px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1e;
  position: relative;
  flex-shrink: 0;
}
.dock-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dock-video-duration {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 4px;
}
.dock-video-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.dock-video-creator {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dock-profile-search { padding: 12px; }
.dock-profile-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dock-profile-search input:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}
.dock-profile-view { padding: 0 12px 12px; }
.dock-profile-empty {
  padding: 20px 8px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.dock-profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.dock-profile-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dock-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--teal);
  color: var(--bg-darkest);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dock-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dock-profile-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.dock-profile-handle {
  color: var(--text-dim);
  font-size: 0.78rem;
}
.dock-profile-bio {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.dock-profile-stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.dock-profile-stats strong { color: var(--text); }
.dock-profile-actions { margin-top: 12px; }
.dock-profile-actions button {
  background: var(--teal);
  color: var(--bg-darkest);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  cursor: pointer;
}
.dock-profile-actions button.primary { background: var(--teal); }

/* Mobile: split view is desktop-only — hide dock chrome below the breakpoint. */
@media (max-width: 768px) {
  .dock-row-add-btn { display: none; }
  .dock-row-header { display: none; }
  .dock-row {
    border: none;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }
  .dock-row-body .feed-center {
    padding: 24px 16px 88px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FLICKS — TikTok-style vertical feed (main view + dock pane)
   ═══════════════════════════════════════════════════════════════ */
.tt-view {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h, 53px) - 44px);
  min-height: 420px;
  max-height: calc(100dvh - 90px);
}

.tt-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}

.tt-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.tt-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tt-stage {
  flex: 1;
  min-height: 0;
  position: relative;
}

.tt-feed {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.tt-feed::-webkit-scrollbar { display: none; }

.tt-item {
  position: relative;
  height: 100%;
  min-height: 420px;
  scroll-snap-align: start;
  flex-shrink: 0;
  overflow: hidden;
  background: #000;
}

.tt-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tt-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tt-pause {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.tt-rail {
  position: absolute;
  right: 12px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 5;
}

.tt-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.tt-action:hover { transform: scale(1.08); }
.tt-action.tt-liked { color: var(--teal); }
.tt-action-icon { filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
.tt-action-count {
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.tt-info {
  position: absolute;
  left: 14px;
  right: 60px;
  bottom: 18px;
  z-index: 5;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.tt-creator {
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 4px;
}

.tt-title {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.tt-meta {
  font-size: 0.72rem;
  opacity: 0.75;
}

.tt-progress {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tt-progress span {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s;
}
.tt-progress span.on { background: var(--teal); }

.tt-comments {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 48%;
  background: rgba(10,12,16,0.96);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  z-index: 8;
  animation: ttSlideUp 0.2s ease-out;
}
@keyframes ttSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.tt-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.85rem;
}
.tt-comments-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
}
.tt-comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tt-comments-input {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.tt-comments-input input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
}
.tt-comments-input input:focus { border-color: var(--teal); }
.tt-comments-input button {
  background: var(--teal);
  color: var(--bg-darkest);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
}
.tt-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   EYEPLVY — YouTube-style browse + watch page
   ═══════════════════════════════════════════════════════════════ */
.eyevly-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.eyevly-chips::-webkit-scrollbar { display: none; }

.eyevly-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #272727;
  border: 1px solid transparent;
  color: #f1f1f1;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-transform: none;
  line-height: 1;
}
.eyevly-chip:hover {
  background: #3f3f3f;
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}
.eyevly-chip.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f0f0f;
  font-weight: 600;
}
body.theme-lifted .eyevly-chip { background: #e5e7eb; color: #000000; }
body.theme-lifted .eyevly-chip.active { background: #1c1c1e; color: #ffffff; border-color: #1c1c1e; }

/* YouTube-style grid cards — beat YouTube with cleaner thumb focus */
.yt-card {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 150ms var(--ease-out);
  border-radius: 12px;
  overflow: hidden;
}
.yt-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
}
.eyevly-duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 3;
}
.eyevly-card .eyevly-info {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}
.yt-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--teal);
  color: var(--bg-darkest);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.yt-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-card-meta {
  min-width: 0;
  flex: 1;
}
.eyevly-card .eyevly-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.eyevly-creator {
  font-size: 0.76rem;
  color: var(--text-dim);
}
.eyevly-meta-line {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Hero row: first card bigger */
.yt-hero-row {
  grid-template-columns: 1fr !important;
}
.yt-hero-row .yt-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.yt-hero-row .eyevly-thumb {
  aspect-ratio: 16/9;
  height: 100%;
}
.yt-hero-row .eyevly-info {
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}
.yt-hero-row .eyevly-title {
  font-size: 1.05rem;
  -webkit-line-clamp: 3;
}
.yt-hero-row .yt-card-avatar {
  width: 44px;
  height: 44px;
}

/* EYEPLVY pane grid (dock) */
.eyevly-pane-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 12px;
}
.yt-pane-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.yt-pane-row:hover { background: rgba(255, 255, 255, 0.04); }
.yt-pane-row .eyevly-thumb {
  width: 160px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #1c1c1e;
}
.yt-pane-row .eyevly-thumb img,
.yt-pane-row .eyevly-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-pane-row .dock-video-meta {
  min-width: 0;
}

/* YouTube-style watch page */
.yt-watch {
  padding: 12px 4px 40px;
}
.yt-watch-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.yt-watch-back:hover { color: var(--teal); }
.yt-watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.yt-watch-main { min-width: 0; }
.yt-watch-player {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.yt-watch-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.yt-watch-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 10px;
}
.yt-watch-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.yt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.yt-action-btn:hover { border-color: var(--teal); color: var(--teal); }
.yt-action-btn.yt-liked { color: var(--teal); border-color: var(--teal); }
.yt-action-icon {
  display: inline-flex;
  align-items: center;
}
.yt-action-icon svg { width: 16px; height: 16px; }
.yt-watch-creator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.yt-watch-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--teal);
  color: var(--bg-darkest);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yt-watch-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-watch-creator-meta { flex: 1; min-width: 0; }
.yt-watch-creator-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}
.yt-watch-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
}
.yt-follow-btn {
  background: var(--teal);
  color: var(--bg-darkest);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.yt-follow-btn:hover { filter: brightness(1.1); }
.yt-follow-btn.following { background: rgba(48, 213, 200, 0.12); color: var(--teal); }
.yt-watch-desc {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: pre-line;
}
.yt-watch-comments-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
}
.yt-watch-comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
  max-height: 420px;
  overflow-y: auto;
}
.yt-watch-comment-box {
  display: flex;
  gap: 8px;
}
.yt-watch-comment-box input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 9px 16px;
  font-size: 0.84rem;
  outline: none;
}
.yt-watch-comment-box input:focus { border-color: var(--teal); }
.yt-comment-send {
  background: var(--teal);
  color: var(--bg-darkest);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 18px;
  cursor: pointer;
}
.yt-watch-side {
  min-width: 0;
}
.yt-side-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.yt-related {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
}
.yt-related:hover { background: rgba(255,255,255,0.04); }
.yt-related-thumb {
  width: 140px;
  aspect-ratio: 16/9;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1e;
  position: relative;
}
.yt-related-thumb img,
.yt-related-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-related-meta { min-width: 0; }
.yt-related-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-related-creator {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* TikTok stage inside dock pane */
.dock-pane.active > .tt-stage {
  height: 100%;
}

/* Full EYEPLVY / FLICKS / Sub Nets experiences inside dock panes —
   keep the real views, just scale them to the half-width column. */
.dock-pane .eyevly-cinema {
  min-height: 100%;
  margin: 0;
}
.dock-pane .eyevly-cinema-hero {
  padding: 18px 16px 14px;
}
.dock-pane .eyevly-cinema-brand {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.dock-pane .eyevly-cinema-tagline {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.dock-pane .eyevly-cinema-credit {
  font-size: 0.68rem;
}
.dock-pane .eyevly-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  padding: 12px 0;
}
.dock-pane .subnets-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
}
.dock-pane .subnet-card {
  padding: 14px 12px 12px;
}
.dock-pane .subnet-card-desc {
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .yt-watch-grid {
    grid-template-columns: 1fr;
  }
  .yt-hero-row .yt-card {
    grid-template-columns: 1fr;
  }
  .yt-pane-row .eyevly-thumb {
    width: 120px;
  }
}

/* Dock: stack EYEPLVY watch layout — video full-width, Up Next below */
.dock-row-body .yt-watch-grid,
.dock-pane .yt-watch-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.dock-row-body .yt-watch-side,
.dock-pane .yt-watch-side {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.dock-row-body .yt-hero-row .yt-card,
.dock-pane .yt-hero-row .yt-card {
  grid-template-columns: 1fr;
}

/* ============================================================
   CYBERPUNK THEME — "Neon Grid Night" (body.theme-cyber)
   Toggle via the Theme button (pure → lifted → cyber).
   Obsidian base + neon cyan/magenta/violet, glow shadows,
   CRT grid overlay. Token flips + scoped literal remaps.
   ============================================================ */

body.theme-cyber {
  --bg-darkest: #02030a;
  --bg-dark: #070b14;
  --bg-card: #0b1120;
  --bg-input: #0a0f1d;
  --bg: #05070d;
  --nav-bg: rgba(5, 7, 13, 0.82);
  --bg-darker: #02030a;
  --teal: #14E0C8;
  --teal-dim: #0eb8a6;
  --teal-dark: #0a3b36;
  --teal-soft: #4ff3dd;
  --teal-glow: 0 0 14px rgba(20, 224, 200, 0.35);
  --purple: #9A6BFF;
  --purple-dim: #7d4df0;
  --purple-soft: #c39dff;
  --purple-glow: 0 0 14px rgba(154, 107, 255, 0.35);
  --riot: #ff2e88;
  --riot-dim: #d6246f;
  --blue: #22d3ee;
  --blue-dim: #0ea5c4;
  --blue-soft: #7deafc;
  --text: #e8f6ff;
  --text-dim: rgba(200, 235, 255, 0.72);
  --text-muted: rgba(180, 210, 235, 0.45);
  --text-very-muted: rgba(160, 190, 220, 0.28);
  --border: rgba(20, 224, 200, 0.22);
  --border-hover: rgba(20, 224, 200, 0.5);
  --hover-bg: rgba(20, 224, 200, 0.07);
  --danger: #ff453a;
  --accent: #14E0C8;
  --accent-glow: 0 0 14px rgba(20, 224, 200, 0.35);
  --accent-text: #14E0C8;
  --line-soft: rgba(20, 224, 200, 0.16);
  --line-bright: rgba(154, 107, 255, 0.45);
  --surface-0: #05070d;
  --surface-1: rgba(11, 17, 32, 0.86);
  --surface-2: rgba(16, 24, 42, 0.92);
}

/* CRT grid + scanline overlay — sits above surfaces, never eats clicks */
body.theme-cyber::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 224, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 107, 255, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
  background-size: 44px 44px, 44px 44px, 100% 3px;
}

/* Base surface */
body.theme-cyber { background: var(--bg); color: var(--text); }
body.theme-cyber .left-nav,
body.theme-cyber .feed-main,
body.theme-cyber .right-sidebar,
body.theme-cyber .feed-dock,
body.theme-cyber .profile-panel,
body.theme-cyber .creator-dashboard,
body.theme-cyber .dock-row-body,
body.theme-cyber .feed-center { background: var(--bg); }
body.theme-cyber .left-nav { background: var(--nav-bg); border-right-color: var(--line-soft); box-shadow: none; }

/* Cards */
body.theme-cyber .post-card,
body.theme-cyber .quote-card,
body.theme-cyber .eyevly-card,
body.theme-cyber .flick-card,
body.theme-cyber .creator-dashboard-card,
body.theme-cyber .dock-row,
body.theme-cyber .sidebar-card,
body.theme-cyber .discover-card,
body.theme-cyber .right-sidebar,
body.theme-cyber .right-sidebar .discover-card,
body.theme-cyber .eyevly-thumb,
body.theme-cyber .story-ring,
body.theme-cyber .thread-preview { background: var(--bg-card); border-color: var(--line-soft); }
body.theme-cyber .right-sidebar { background: var(--bg-darker); }
body.theme-cyber .post-card:hover { background: #0d1526; border-color: rgba(20, 224, 200, 0.35); box-shadow: 0 0 14px rgba(20, 224, 200, 0.12); }
body.theme-cyber .post-card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* Inputs */
body.theme-cyber input,
body.theme-cyber textarea,
body.theme-cyber select,
body.theme-cyber .sidebar-search input,
body.theme-cyber .dash-field input,
body.theme-cyber .dash-field textarea,
body.theme-cyber .dash-field select,
body.theme-cyber .inline-reply-composer,
body.theme-cyber .composer textarea { background: var(--bg-input) !important; border-color: var(--line-soft) !important; color: var(--text) !important; }
body.theme-cyber input::placeholder,
body.theme-cyber textarea::placeholder { color: var(--text-muted); }

/* Compose modal */
body.theme-cyber .compose-modal { background: #0a0f1d !important; border-color: rgba(20, 224, 200, 0.3) !important; box-shadow: 0 0 32px rgba(20, 224, 200, 0.18), 0 24px 64px rgba(0, 0, 0, 0.6); }
body.theme-cyber .compose-modal textarea { background: #070b14 !important; border-color: var(--line-soft) !important; }
body.theme-cyber .compose-modal textarea:focus { border-color: var(--teal); box-shadow: 0 0 10px rgba(20, 224, 200, 0.25); }

/* FAB + nav post button */
body.theme-cyber .post-fab { background: #0a0f1d !important; border-color: rgba(20, 224, 200, 0.45) !important; box-shadow: 0 0 18px rgba(20, 224, 200, 0.35), 0 8px 28px rgba(0, 0, 0, 0.5) !important; }
body.theme-cyber .post-fab .fab-label { color: var(--teal) !important; }
body.theme-cyber .post-fab .fab-icon,
body.theme-cyber .post-fab svg { stroke: var(--teal) !important; }
body.theme-cyber .nav-post-btn { color: var(--text-dim); }
body.theme-cyber .nav-post-btn:hover { background: var(--hover-bg); color: var(--teal); }
body.theme-cyber .nav-post-btn svg { stroke: var(--teal) !important; }

/* Left nav items */
body.theme-cyber .left-nav-item { color: var(--text-dim); }
body.theme-cyber .left-nav-item:hover { background: var(--hover-bg); color: var(--text); }
body.theme-cyber .left-nav-item.active { background: rgba(20, 224, 200, 0.1) !important; border-left-color: var(--teal) !important; color: var(--teal) !important; text-shadow: 0 0 8px rgba(20, 224, 200, 0.55); }
body.theme-cyber .left-nav-section-header,
body.theme-cyber .left-nav-label { color: var(--text-muted); }

/* Account row / avatars */
body.theme-cyber .left-nav-account-row:hover { background: var(--hover-bg); }
body.theme-cyber .account-avatar,
body.theme-cyber .avatar { background: #0d1526 !important; color: var(--teal) !important; border-color: rgba(20, 224, 200, 0.28) !important; }

/* Tabs */
body.theme-cyber .feed-tabs button,
body.theme-cyber .radar-tab,
body.theme-cyber .tab-btn,
body.theme-cyber .sidebar-header-tabs button { color: var(--text-dim); }
body.theme-cyber .feed-tabs button:hover,
body.theme-cyber .radar-tab:hover,
body.theme-cyber .tab-btn:hover { color: var(--text); }
body.theme-cyber .feed-tabs button.active,
body.theme-cyber .radar-tab.active,
body.theme-cyber .tab-btn.active { color: var(--teal); text-shadow: 0 0 8px rgba(20, 224, 200, 0.55); }

/* Dock pills */
body.theme-cyber .dock-pill { color: var(--text-dim); background: transparent; }
body.theme-cyber .dock-pill.active { color: var(--teal); background: rgba(20, 224, 200, 0.1); text-shadow: 0 0 8px rgba(20, 224, 200, 0.55); }
body.theme-cyber .dock-profile-search input { background: var(--bg-input); border-color: var(--line-soft); }
body.theme-cyber .dock-profile-search input:focus { border-color: var(--teal); box-shadow: 0 0 8px rgba(20, 224, 200, 0.2); }

/* Post meta text */
body.theme-cyber .post-body { color: var(--text); }
body.theme-cyber .handle,
body.theme-cyber .post-timestamp,
body.theme-cyber .post-stats,
body.theme-cyber .name { color: var(--text-dim); }

/* Links in posts */
body.theme-cyber a { color: var(--teal); }
body.theme-cyber .post-body a { color: var(--teal-soft); }

/* Dividers */
body.theme-cyber .left-nav-divider,
body.theme-cyber .feed-divider,
body.theme-cyber .composer-divider { border-color: var(--line-soft); }

/* Subnet tags */
body.theme-cyber .post-subnet-tag { color: rgba(20, 224, 200, 0.8); background: rgba(20, 224, 200, 0.07); border-color: rgba(20, 224, 200, 0.22); }
body.theme-cyber .post-subnet-tag:hover { color: var(--teal-soft); border-color: rgba(20, 224, 200, 0.5); }

/* Action rows */
body.theme-cyber .post-actions button,
body.theme-cyber .action-pill { color: var(--text-dim); }
body.theme-cyber .post-actions button:hover { color: var(--teal); }

/* Scrollbar */
body.theme-cyber ::-webkit-scrollbar-thumb { background: rgba(20, 224, 200, 0.35); }
body.theme-cyber ::-webkit-scrollbar-track { background: transparent; }

/* Carousel */
body.theme-cyber .post-card .post-image,
body.theme-cyber .post-card .post-image.carousel { border-color: rgba(20, 224, 200, 0.25); }
body.theme-cyber .carousel-dot { background: rgba(20, 224, 200, 0.3); }
body.theme-cyber .carousel-dot.active { background: var(--teal); box-shadow: 0 0 8px rgba(20, 224, 200, 0.6); }
body.theme-cyber .carousel-arrow { background: #0a0f1d; border-color: rgba(20, 224, 200, 0.35); color: var(--teal); }
body.theme-cyber .carousel-dots { background: rgba(5, 7, 13, 0.85); border-color: rgba(20, 224, 200, 0.25); }

/* Empty states */
body.theme-cyber .empty-title { color: var(--text); }
body.theme-cyber .empty-subtitle { color: var(--text-muted); }

/* Profile display name glow */
body.theme-cyber .display-name { text-shadow: 0 0 14px rgba(20, 224, 200, 0.4); }

/* ============================================================
   USER-OWNED SUBNETS — create/membership/moderation (8/20/26)
   ============================================================ */
.subnets-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.subnet-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--teal, #30d5c8);
  background: rgba(48, 213, 200, 0.08);
  color: var(--teal, #30d5c8);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.subnet-create-btn:hover {
  background: rgba(48, 213, 200, 0.18);
}
.subnet-sidebar-section {
  margin: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.subnet-sidebar-divider {
  border-top: 1px solid var(--line-soft, rgba(255, 255, 255, 0.08));
  margin: 8px 10px;
}
.subnet-owner-star {
  font-size: 0.7rem;
  margin-left: auto;
  opacity: 0.9;
  flex-shrink: 0;
}
.subnet-nav-lock {
  font-size: 0.62rem;
  opacity: 0.7;
  flex-shrink: 0;
}
.subnet-private-badge {
  font-size: 0.72rem;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.85;
}
.subnet-feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}
.subnet-feed-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft, rgba(255, 255, 255, 0.08));
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.subnet-feed-owner {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.subnet-feed-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.subnet-join-btn:hover {
  background: rgba(48, 213, 200, 0.12);
  border-color: var(--teal, #30d5c8) !important;
  color: var(--teal, #30d5c8) !important;
}
.subnet-leave-btn:hover {
  border-color: rgba(255, 69, 58, 0.5) !important;
  color: #ff453a !important;
}
.subnet-manage-btn:hover {
  background: rgba(48, 213, 200, 0.12);
}
.subnet-delete-btn:hover {
  background: rgba(255, 69, 58, 0.1);
}
.btn-remove-subnet {
  background: none;
  border: none;
  color: var(--text-very-muted, rgba(255, 255, 255, 0.22));
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.btn-remove-subnet:hover {
  color: #ff453a;
}
.btn-remove-subnet .icon {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE SPOTLIGHT MODULE — one per user, below the header
   (blog|links|about|track|video|gallery) — NEW selectors, 8/20/26
   ═══════════════════════════════════════════════════════════════ */
.profile-module {
  margin: 0 0 16px;
  border: 1px solid rgba(48, 213, 200, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(48, 213, 200, 0.05), rgba(255, 255, 255, 0.02) 55%);
  padding: 12px 14px;
}

.profile-module-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-module-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  border: 1px solid rgba(48, 213, 200, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.profile-module-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-module-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.profile-module-btn:hover {
  border-color: rgba(48, 213, 200, 0.5);
  color: var(--teal);
}

.profile-module-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  padding: 10px 2px;
}

.profile-module .voice-player {
  margin-top: 8px;
}

/* ── Blog ── */
.module-blog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-blog-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.module-blog-card:hover {
  border-color: rgba(48, 213, 200, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.module-blog-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.module-blog-card-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.module-blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* ── Links ── */
.module-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.module-link-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.module-link-card:hover {
  border-color: rgba(48, 213, 200, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.module-link-label {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-link-card svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── About ── */
.module-about-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.module-about-body a {
  color: var(--teal);
}

/* ── Track / Video ── */
.module-track-card,
.module-video-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
}

.module-track-title,
.module-video-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-video-card video {
  width: 100%;
  border-radius: 6px;
  max-height: 320px;
  background: #000;
}

/* ── Gallery ── */
.module-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}

.module-gallery-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s;
}

.module-gallery-tile:hover {
  border-color: rgba(48, 213, 200, 0.45);
}

.module-gallery-tile img,
.module-gallery-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-gallery-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.4rem;
}

/* ── Blog modal ── */
.blog-modal {
  max-height: 78vh;
  display: flex;
  flex-direction: column;
}

.blog-modal-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  flex: 1;
}

.blog-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-modal-post {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.blog-modal-post:hover {
  border-color: rgba(48, 213, 200, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.blog-modal-detail {
  margin-top: 10px;
}

.blog-modal-detail-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.blog-modal-detail-body {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.blog-modal-detail-body a {
  color: var(--teal);
}

/* ── Module editor modal ── */
.module-editor-modal {
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.module-editor-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  flex: 1;
}

.module-editor-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.module-type-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.module-type-card:hover {
  border-color: rgba(48, 213, 200, 0.4);
}

.module-type-card.active {
  border-color: var(--teal);
  background: rgba(48, 213, 200, 0.08);
}

.module-type-icon {
  font-size: 1rem;
}

.module-type-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.module-type-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.module-editor-field {
  margin-bottom: 12px;
}

.module-editor-field input,
.module-editor-textarea,
.module-editor-select {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
}

.module-editor-textarea {
  resize: vertical;
  line-height: 1.5;
}

.module-editor-field input:focus,
.module-editor-textarea:focus,
.module-editor-select:focus {
  outline: none;
  border-color: rgba(48, 213, 200, 0.55);
}

.module-editor-hint {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.module-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.module-editor-remove {
  border-color: rgba(255, 69, 58, 0.4);
  color: var(--danger);
}

.module-editor-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.module-editor-danger {
  border-color: rgba(255, 69, 58, 0.35);
  color: var(--danger);
}

.module-editor-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.module-editor-link-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.module-editor-link-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  padding: 7px 9px;
  font-size: 0.82rem;
  font-family: inherit;
}

.module-editor-link-input:focus {
  outline: none;
  border-color: rgba(48, 213, 200, 0.55);
}

.module-editor-blog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.module-editor-blog-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.module-editor-blog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
}

.module-editor-blog-row-title {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-editor-blog-row-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
}

.module-editor-blog-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(48, 213, 200, 0.25);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.module-editor-blog-form input,
.module-editor-blog-form textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  box-sizing: border-box;
}

.module-editor-blog-form-actions {
  display: flex;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — RIOT FEED (8/20/26)
   Unified algorithmic feed: posts · flicks · eyeplays · trending
   ═══════════════════════════════════════════════════════════════════════════ */

.riot-feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 2px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.riot-feed-logo {
  width: 26px;
  height: 26px;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(48, 213, 200, 0.55));
  animation: riot-bolt-pulse 2.2s ease-in-out infinite;
}

.riot-tab-logo {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
}

@keyframes riot-bolt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.riot-feed-title {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.riot-feed-sub {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.riot-post-wrap {
  position: relative;
}

.riot-hot-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px 5px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.riot-hot-flame {
  width: 11px;
  height: 11px;
  flex: none;
  color: rgba(125, 232, 220, 0.9);
  filter: drop-shadow(0 0 4px rgba(48, 213, 200, 0.45));
}

.riot-video-card {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.riot-video-card:hover {
  border-color: rgba(48, 213, 200, 0.4);
  transform: translateY(-1px);
}

.riot-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0c;
  overflow: hidden;
}

.riot-thumb-tall {
  aspect-ratio: 9 / 16;
  max-height: 430px;
  width: auto;
  margin: 0 auto;
  border-radius: 0;
}

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

.riot-flick-card .riot-video-thumb {
  background: #0a0a0c;
}

.riot-video-info {
  padding: 12px 14px 14px;
}

.riot-video-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.riot-video-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.riot-video-avatar-initial {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 213, 200, 0.16);
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
}

.riot-video-creator-name {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.riot-video-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.riot-video-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Creator profile tabs — Apple-lux pills (8/20/26, beats .feed-tabs !important premium block) */
.feed-tabs.creator-tabs { border-bottom: 1px solid var(--line-soft); }
.feed-tabs.creator-tabs button {
  color: var(--text-dim) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  padding: 9px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}
.feed-tabs.creator-tabs button:hover {
  color: var(--teal) !important;
  background: rgba(48, 213, 200, 0.07) !important;
  border-color: rgba(48, 213, 200, 0.18) !important;
}
.feed-tabs.creator-tabs button.active {
  color: var(--teal) !important;
  background: rgba(48, 213, 200, 0.12) !important;
  border-color: rgba(48, 213, 200, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}
.feed-tabs.creator-tabs button.active::after { display: none !important; }

/* ── Riot feed — spider article cards (8/20/26) ── */
.riot-article-card {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.riot-article-card:hover {
  border-color: rgba(48, 213, 200, 0.4);
  transform: translateY(-1px);
}

.riot-article-link {
  display: block;
  padding: 18px 20px 16px;
  text-decoration: none;
  color: inherit;
}

.riot-article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.riot-article-source {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  padding: 3px 9px;
  border: 1px solid rgba(48, 213, 200, 0.28);
  border-radius: 999px;
  background: rgba(48, 213, 200, 0.08);
}

.riot-article-time {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-very-muted);
}

.riot-article-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.riot-article-card:hover .riot-article-title {
  color: var(--teal);
  transition: color 0.18s ease;
}

.riot-article-summary {
  margin-top: 8px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.riot-article-read {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--teal);
  opacity: 0.85;
}

.riot-article-read svg {
  width: 13px;
  height: 13px;
}

.riot-article-card:hover .riot-article-read {
  opacity: 1;
  gap: 8px;
  transition: opacity 0.18s ease, gap 0.18s ease;
}

.radar-node-summary {
  padding: 8px 16px 10px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--text-very-muted);
  border-top: 1px solid var(--line-soft);
}

/* Feed 2 rail compact — same renderPostCard markup, tuned for 289px inner width.
   Keeps full fidelity but prevents 900px-tall cards in the narrow rail. */
.right-sidebar #trending-list .post-card {
  padding: 12px 12px 10px;
}
.right-sidebar #trending-list .post-card .post-body {
  font-size: 0.90rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.right-sidebar #trending-list .post-card .post-body a {
  word-break: break-all;
}
.right-sidebar #trending-list .post-card .thread-preview {
  display: none !important;
}
.right-sidebar #trending-list .post-card .post-actions {
  margin-top: 10px;
  gap: 14px;
}
.right-sidebar #trending-list .post-card + .post-card {
  margin-top: 10px;
}

/* ── Custom subnet icons — tech edge AAA ── */
.subnet-card-icon { width: 32px; height: 32px; display:flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); }
.subnet-card-icon svg { width:18px; height:18px; }
.subnet-card:hover .subnet-card-icon { background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.08); transform:scale(1.05); }

/* Left-nav information architecture — grouped destinations with a dedicated
   scroll region and a stable compose/account dock. */
.left-nav-sections {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 3px 16px 0;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.left-nav-sections:hover {
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.left-nav-sections::-webkit-scrollbar { width: 4px; }
.left-nav-sections::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 99px;
}
.left-nav-sections:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
}
.left-nav-group {
  padding: 0 0 8px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line-soft);
}
.left-nav-group-label {
  padding: 10px 16px 5px;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}
.left-nav-community:has(#scene-genres:empty) { display: none; }
.left-nav-library {
  margin-bottom: 0;
  border-bottom: 0;
  padding-top: 2px;
}
.left-nav-library > .left-nav-item {
  padding-left: 16px !important;
}

.left-nav > .nav-post-btn,
.left-nav > .left-nav-account-row {
  flex-shrink: 0;
  margin-top: 0;
}
.left-nav-account-row {
  background: var(--bg-darkest);
  z-index: 2;
  margin-top: 8px;
}
.left-nav {
  gap: 0;
  overflow: hidden;
}
.left-nav > .nav-post-btn {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  background: var(--bg-darkest);
  z-index: 2;
  margin-top: 8px;
}
.left-nav > .left-nav-account-row {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  background: var(--bg-darkest);
  z-index: 3;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 12px;
}
/* N27 DSP — sovereign minimal v0 */
/* ── N27 DSP ULTRA PLAYER (v1) ───────────────────────────── */
.n27-dsp {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
  background: linear-gradient(160deg, rgba(18,26,38,0.88), rgba(8,12,20,0.92));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 48px rgba(0,0,0,0.55), 0 0 40px rgba(48,213,200,0.07);
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.n27-dsp.live { border-color: rgba(48,213,200,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 48px rgba(0,0,0,0.6), 0 0 56px rgba(48,213,200,0.13); }
.n27-dsp .dsp-art { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.05);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.n27-dsp .dsp-art.dsp-art-live { transform: scale(1.04); box-shadow: 0 0 0 2px rgba(48,213,200,0.4), 0 4px 18px rgba(48,213,200,0.25); animation: dspArtBreath 3.2s ease-in-out infinite; }
@keyframes dspArtBreath { 0%,100% { box-shadow: 0 0 0 2px rgba(48,213,200,0.35), 0 4px 16px rgba(48,213,200,0.2); } 50% { box-shadow: 0 0 0 2px rgba(48,213,200,0.5), 0 4px 22px rgba(48,213,200,0.32); } }
.n27-dsp .dsp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.n27-dsp .dsp-meta { min-width: 0; }
.n27-dsp .dsp-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.n27-dsp .dsp-artist { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.n27-dsp .dsp-seek-row { display: flex; align-items: center; gap: 8px; }
.n27-dsp .dsp-time { font-size: 9.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-dim); min-width: 26px; letter-spacing: 0.02em; }
.n27-dsp .dsp-time-dim { text-align: right; opacity: 0.65; }
.n27-dsp .dsp-seek { position: relative; flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.n27-dsp .dsp-seek::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 99px; background: rgba(255,255,255,0.09); }
.n27-dsp .dsp-seek-fill { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 3px; border-radius: 99px; width: 0%;
  background: linear-gradient(90deg, #30d5c8, #5eead4); transition: width 0.1s linear; }
.n27-dsp .dsp-seek.dragging .dsp-seek-fill { transition: none; }
.n27-dsp .dsp-seek-knob { position: absolute; right: -5px; top: 50%; transform: translateY(-50%) scale(0); width: 11px; height: 11px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.45), 0 0 0 3px rgba(48,213,200,0.25); transition: transform 0.15s var(--ease-out); }
.n27-dsp .dsp-seek:hover .dsp-seek-fill, .n27-dsp .dsp-seek.dragging .dsp-seek-fill { height: 5px; }
.n27-dsp .dsp-seek:hover .dsp-seek-knob, .n27-dsp .dsp-seek.dragging .dsp-seek-knob { transform: translateY(-50%) scale(1); }
.n27-dsp .dsp-transport { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.n27-dsp .dsp-tbtn { background: none; border: none; color: rgba(235,235,245,0.72); cursor: pointer; padding: 6px; border-radius: 8px; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease; }
.n27-dsp .dsp-tbtn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.n27-dsp .dsp-tbtn:active { transform: scale(0.9); }
.n27-dsp .dsp-play { width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; color: #000; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  box-shadow: 0 2px 12px rgba(255,255,255,0.18), inset 0 -1px 2px rgba(0,0,0,0.08);
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s ease; }
.n27-dsp .dsp-play:hover { transform: scale(1.06); box-shadow: 0 4px 20px rgba(255,255,255,0.28), inset 0 -1px 2px rgba(0,0,0,0.08); }
.n27-dsp .dsp-play:active { transform: scale(0.95); }
.n27-dsp .dsp-vol-btn { position: relative; }
.n27-dsp .dsp-vol-pop { position: fixed; bottom: 64px; right: calc(50% - min(340px, 50vw) + 44px); transform-origin: bottom right;
  display: flex; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: rgba(16,20,30,0.94); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 10000; animation: dspVolIn 0.18s var(--ease-out); }
@keyframes dspVolIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.n27-dsp .dsp-vol-pop input[type="range"] { -webkit-appearance: none; appearance: none; width: 110px; height: 4px; border-radius: 99px;
  background: linear-gradient(to right, #30d5c8 var(--fill, 100%), rgba(255,255,255,0.12) var(--fill, 100%)); outline: none; cursor: pointer; }
.n27-dsp .dsp-vol-pop input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4); cursor: grab; }
.n27-dsp .dsp-close { background: none; border: none; color: rgba(235,235,245,0.45); cursor: pointer; padding: 6px; border-radius: 8px; font-size: 12px; line-height: 1;
  transition: color 0.15s ease, background 0.15s ease; }
.n27-dsp .dsp-close:hover { color: #ff453a; background: rgba(255,69,58,0.08); }
@media (max-width: 720px) {
  .n27-dsp { gap: 8px; padding: 8px 10px; }
  .n27-dsp .dsp-vol-btn, .n27-dsp .dsp-vol-pop, .n27-dsp #dsp-prev, .n27-dsp #dsp-next { display: none; }
}
/* Hard-rule fix — left menu border removed (was 1px #1c1c1e / rgba(255,255,255,0.1) at 6555) */
.left-nav { border-right: none !important; }
body.theme-lifted .left-nav, body.theme-cyber .left-nav { border-right: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUG 2026 — AAA PASS
   1. Sandwich layout: left nav | feed | right rail, back-to-back hairlines.
      Feed owns every pixel between the bars (+20%+ vs the old 700px column).
   2. Riot Pulse — Trending + DSP merged into one premium rail module.
   3. Public-ready polish: editorial measure, motion, focus rings, glass rail.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. SANDWICH LAYOUT — Bluesky-style floating panes ──────────────────── */
/* Feed = 700px legacy column × 1.2 = 840px. All three panes are lifted off
   the browser walls as floating frames with air between them; the
   cluster centers itself. Below ~1450px the feed fills the middle. */
:root { --feed-w: 875px; --frame-gap: 10px; --pane-gap: 8px; }
@media (min-width: 1025px) {
  /* Pane footprints — flat calcs the parser can't choke on */
  :root {
    --rail-total-l: calc(var(--left-nav-w) + var(--frame-gap) * 2 + var(--pane-gap));
    --rail-total-r: calc(var(--right-sidebar-w) + var(--frame-gap) * 2 + var(--pane-gap));
    --mid-free: calc(100vw - var(--rail-total-l) - var(--rail-total-r));
  }
  /* Menu walls — full-height, square-edged boundaries */
  .left-nav {
    top: 0;
    left: var(--frame-gap);
    bottom: 0;
    height: auto;
    height: 100dvh;
    border-radius: 0;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: rgba(10, 12, 15, 0.92) !important;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  .right-sidebar {
    top: 0;
    right: var(--frame-gap);
    bottom: 0;
    height: auto;
    height: 100dvh;
    border-radius: 0;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: rgba(10, 12, 15, 0.92) !important;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  /* Centered feed card between the floating panes — flat calc, no nesting */
  .main-content {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    margin-left: calc(var(--rail-total-l) + max(0px, (var(--mid-free) - var(--feed-w)) / 2));
    margin-right: calc(var(--rail-total-r) + max(0px, (var(--mid-free) - var(--feed-w)) / 2));
  }
  .feed-dock {
    flex: 1 1 auto;
    min-width: 0;
    max-width: var(--feed-w);
    margin: var(--frame-gap) 0 !important;
    border: 1px solid var(--line-soft);
    border-top: 0;
    border-radius: 24px;
    background: var(--bg);
  }
  .feed-dock:not(.split) {
    margin: var(--frame-gap) 0 !important;
    background:
      radial-gradient(900px 500px at 50% -12%, rgba(48, 213, 200, 0.055), transparent 62%),
      radial-gradient(700px 520px at 92% 88%, rgba(94, 92, 230, 0.04), transparent 62%),
      var(--bg);
  }
  .feed-dock > .dock-row:first-child .dock-row-header,
  .feed-dock:not(.split) .dock-row-header {
    border-radius: 23px 23px 0 0;
  }
  .feed-center {
    max-width: none !important;
    margin: 0 !important;
    width: 100%;
    border-right: none;
    padding: 18px clamp(24px, 3.2vw, 48px) 96px !important;
  }
  .feed-layout {
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Editorial reading measure inside the wide feed — text breathes,
   media stays full-bleed. Apple News rhythm. */
.post-card .post-body { max-width: 74ch; }
.post-card .post-body:has(img),
.post-card .post-body:has(video) { max-width: none; }
.linkedin-compose-box textarea,
.composer textarea { max-width: 74ch; }

/* ── 2. RIOT PULSE — Trending × DSP, one sovereign module ───────────────── */
.right-sidebar .discover-card {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.016));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.right-sidebar .discover-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.riot-pulse {
  overflow: hidden;
}
.pulse-head { padding: 18px 18px 14px; align-items: center; }
.pulse-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
}
.trending-window {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.trending-window svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Keep the post-feed rail open and editorial; NullTune keeps its own console chrome. */
.right-sidebar .riot-pulse:not(.nulltune-console) {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}
.right-sidebar .riot-pulse:not(.nulltune-console) .pulse-head {
  padding: 14px 8px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.right-sidebar .riot-pulse:not(.nulltune-console) .pulse-head .discover-card-title {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

/* Now playing — glass slab with teal signal */
.pulse-now {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(48, 213, 200, 0.075), rgba(48, 213, 200, 0.015) 55%),
    linear-gradient(145deg, rgba(17, 23, 38, 0.78), rgba(10, 14, 23, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
.pulse-now img#dsp-now-art,
#dsp-now-art {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.pulse-now-main { flex: 1; min-width: 0; }
.nulltune-art-stage { display: contents; }
.nulltune-art-ambient,
.nulltune-now-label,
.nulltune-time,
.nulltune-signal,
.nulltune-queue-head,
.dq-index { display: none; }
#dsp-now-title {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
#dsp-now-artist {
  margin-top: 1px;
  font-size: 0.73rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse-progress {
  margin-top: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
#dsp-card-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), #7be8de);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(48, 213, 200, 0.45);
  transition: width 0.25s linear;
}

/* Transport — pill cluster, play pops teal */
.pulse-transport {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pulse-transport button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding-bottom: 2px;
  transition: background 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}
.pulse-transport button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.pulse-transport button:active { transform: scale(0.94); }
.pulse-transport button.pulse-play,
.pulse-transport #dsp-card-play {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--teal);
  color: #00110e;
  font-weight: 800;
  font-size: 13px;
  padding-bottom: 1px;
  box-shadow: 0 3px 14px rgba(48, 213, 200, 0.35);
}
.pulse-transport button.pulse-play:hover,
.pulse-transport #dsp-card-play:hover {
  background: #46e6da;
  box-shadow: 0 5px 18px rgba(48, 213, 200, 0.45);
}

/* Queue — ultra scroll + EQ */
.pulse-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 196px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 16px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.pulse-queue::-webkit-scrollbar { width: 4px; }
.pulse-queue::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
.pulse-empty { font-size: .78rem; color: rgba(235,235,245,.45); padding: 10px 2px; }
/* ultra queue rows */
.dq-row { display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:7px 8px;border-radius:11px;
  border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03);cursor:pointer;
  transition: border-color .16s var(--ease-out), background .16s var(--ease-out), transform .16s var(--ease-out); }
.dq-row:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.dq-row.dq-active { border-color: rgba(48,213,200,.22); background: linear-gradient(145deg, rgba(18,30,44,.84), rgba(10,18,28,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 16px rgba(0,0,0,.2); }
.dq-row img { width:28px;height:28px;border-radius:7px;object-fit:cover;flex-shrink:0;background:rgba(255,255,255,.04); }
.dq-main { flex:1;min-width:0; display:flex;flex-direction:column; }
.dq-title { display:block;font-size:.78rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.dq-artist { display:block;font-size:.68rem;color:rgba(235,235,245,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.dq-eq { display:none; align-items:end; gap:2px; width:14px; height:12px; flex-shrink:0; }
.dq-eq i { width:2px; background: var(--teal); border-radius: 99px; opacity:.9; }
.dq-active .dq-eq { display:flex; }
.dq-active-playing .dq-eq i { animation: dqBar .6s ease-in-out infinite; }
.dq-active-playing .dq-eq i:nth-child(2){ animation-delay:.12s }
.dq-active-playing .dq-eq i:nth-child(3){ animation-delay:.24s }
.dq-active-playing .dq-eq i:nth-child(4){ animation-delay:.08s }
@keyframes dqBar { 0%,100%{ height:3px } 50%{ height:12px } }
.dq-play { color: rgba(235,235,245,.45); flex-shrink:0; }
.dq-active .dq-play { display:none; }

/* NullTune feed — expanded sovereign listening console */
.riot-pulse.nulltune-console {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 18%, rgba(48, 213, 200, 0.11), transparent 34%),
    linear-gradient(168deg, rgba(16, 21, 29, 0.98), rgba(8, 10, 15, 0.99));
  border-color: rgba(48, 213, 200, 0.18);
}
.riot-pulse.nulltune-console .pulse-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.riot-pulse.nulltune-console #riot-pulse-title {
  font-family: var(--font-display, var(--font));
  font-size: 1.05rem;
  letter-spacing: -.025em;
}
.riot-pulse.nulltune-console .riot-widget-live { display: none; }
.riot-pulse.nulltune-console .pulse-head-meta {
  font-family: var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal);
}
.riot-pulse.nulltune-console .pulse-now {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 16px 16px 0;
  padding: 0 0 18px;
  overflow: hidden;
  background: rgba(4, 7, 11, .68);
  border-color: rgba(255,255,255,.09);
}
.riot-pulse.nulltune-console .nulltune-art-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  overflow: hidden;
  isolation: isolate;
}
.riot-pulse.nulltune-console .nulltune-art-ambient {
  position: absolute;
  inset: -30px;
  display: block;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  filter: blur(28px) saturate(.72) brightness(.38);
  opacity: .85;
  transform: scale(1.12);
  z-index: -2;
}
.riot-pulse.nulltune-console .nulltune-art-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3,5,8,.08), rgba(3,5,8,.7));
}
.riot-pulse.nulltune-console #dsp-now-art {
  width: 58%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 45px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.2);
}
.riot-pulse.nulltune-console .nulltune-signal {
  position: absolute;
  right: 15px;
  bottom: 14px;
  display: flex;
  align-items: end;
  gap: 3px;
  height: 18px;
}
.riot-pulse.nulltune-console .nulltune-signal i {
  width: 2px;
  height: 5px;
  border-radius: 4px;
  background: var(--teal);
}
.riot-pulse.nulltune-console .dsp-art-live + .nulltune-signal i { animation: dqBar .7s ease-in-out infinite; }
.riot-pulse.nulltune-console .dsp-art-live + .nulltune-signal i:nth-child(2) { animation-delay: .12s; }
.riot-pulse.nulltune-console .dsp-art-live + .nulltune-signal i:nth-child(3) { animation-delay: .26s; }
.riot-pulse.nulltune-console .dsp-art-live + .nulltune-signal i:nth-child(4) { animation-delay: .08s; }
.riot-pulse.nulltune-console .pulse-now-main { padding: 18px 18px 0; }
.riot-pulse.nulltune-console .nulltune-now-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: .5rem;
  font-weight: 650;
  letter-spacing: .21em;
  color: var(--teal);
}
.riot-pulse.nulltune-console #dsp-now-title { font-size: 1.16rem; letter-spacing: -.025em; }
.riot-pulse.nulltune-console #dsp-now-artist { margin-top: 4px; font-size: .78rem; }
.riot-pulse.nulltune-console .pulse-progress { margin-top: 16px; height: 4px; }
.riot-pulse.nulltune-console .nulltune-time {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .06em;
  color: rgba(235,235,245,.42);
}
.riot-pulse.nulltune-console .pulse-transport {
  justify-content: center;
  gap: 16px;
  padding-top: 17px;
}
.riot-pulse.nulltune-console .pulse-transport button { width: 38px; height: 38px; }
.riot-pulse.nulltune-console .pulse-transport button svg { width: 17px; height: 17px; fill: currentColor; }
.riot-pulse.nulltune-console .pulse-transport #dsp-card-play { width: 50px; height: 50px; }
.nulltune-queue-head {
  align-items: center;
  justify-content: space-between;
  margin: 17px 18px 2px;
  font-family: var(--font-mono);
  font-size: .52rem;
  font-weight: 650;
  letter-spacing: .17em;
  color: rgba(235,235,245,.38);
}
.nulltune-queue-head span:first-child { color: var(--text); }
.riot-pulse.nulltune-console .nulltune-queue-head { display: flex; }
.riot-pulse.nulltune-console .pulse-queue {
  max-height: none;
  flex: 1;
  padding-top: 8px;
}
.riot-pulse.nulltune-console .dq-row { padding: 8px; gap: 9px; }
.riot-pulse.nulltune-console .dq-index {
  display: block;
  width: 18px;
  font-family: var(--font-mono);
  font-size: .55rem;
  color: rgba(235,235,245,.35);
}
.riot-pulse.nulltune-console .dq-row img { width: 34px; height: 34px; border-radius: 8px; }
.riot-pulse.nulltune-console .pulse-footer { margin-top: auto; }

/* Trending rows — compact, avatar-led, and snippet-first. */
.pulse-trending {
  display: flex;
  flex-direction: column;
  padding: 8px 2px 12px;
  gap: 1px;
}
.pulse-trending .trending-row {
  padding: 10px 8px !important;
  border-radius: 10px !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}
@media (min-width: 1025px) {
  .right-sidebar { overflow: hidden !important; }
  .pulse-queue button { padding: 5px 7px !important; }
  .pulse-queue button img { width: 24px !important; height: 24px !important; }
}
.pulse-trending .trending-row:hover {
  background: rgba(255, 255, 255, 0.045) !important;
  transform: translateX(2px);
}

/* Footer strip */
.pulse-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 12px 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.66rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pulse-footer:hover {
  border-color: rgba(48, 213, 200, 0.25);
  background: rgba(48, 213, 200, 0.045);
  text-decoration: none;
}
.pulse-browse {
  font-weight: 650;
  color: var(--teal);
  white-space: nowrap;
  transition: gap 0.18s ease, letter-spacing 0.18s ease;
}
.pulse-footer:hover .pulse-browse { letter-spacing: 0.01em; }

/* ── DSP CATALOG ULTRA ── */
.nulltune-tabs { display:flex;align-items:center;gap:2px;margin:0 0 14px;padding:4px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:var(--surface-1); }
.nulltune-tabs button { flex:1;min-height:36px;padding:0 15px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text-muted);font:700 .72rem/1 var(--font-display);cursor:pointer; }
.nulltune-tabs button:hover { color:var(--text);background:rgba(255,255,255,.035); }
.nulltune-tabs button.active { border-color:rgba(48,213,200,.28);background:rgba(48,213,200,.09);color:var(--teal); }
.dsp-hero { display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:16px;
  background: linear-gradient(145deg, rgba(48,213,200,0.08), rgba(94,92,230,0.06) 55%, rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(12px); margin-bottom:16px; }
.dsp-hero img { width:46px;height:46px;border-radius:10px;object-fit:cover;flex-shrink:0; }
.dsp-hero h2 { font-size:1.15rem;font-weight:800;letter-spacing:-0.02em;margin:0 0 4px; }
.dsp-hero p { font-size:.82rem;color:rgba(235,235,245,.62);margin:0 0 8px;line-height:1.4; }
.dsp-hero-chip { display:inline-flex;align-items:center;gap:6px;font-size:.68rem;font-weight:600;letter-spacing:.06em;
  padding:4px 9px;border-radius:999px;background:rgba(48,213,200,0.12);border:1px solid rgba(48,213,200,0.22);color:var(--teal); }
.dsp-hero-dot { width:6px;height:6px;border-radius:50%;background:var(--teal);box-shadow:0 0 8px rgba(48,213,200,.6);animation: dspPulse 1.8s ease-in-out infinite; }
@keyframes dspPulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.dsp-catalog-grid { display:grid;gap:10px; }
/* Grid view — album covers as cards */
.dsp-catalog-grid.dsp-view-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
/* List view — one row per track */
.dsp-catalog-grid.dsp-view-list { display:flex; flex-direction:column; gap:8px; }
.dsp-cat-empty { padding:22px;text-align:center;color:rgba(235,235,245,.55);border:1px dashed rgba(255,255,255,.08);border-radius:12px; }

/* Toolbar — search + view toggle */
.dsp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dsp-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 380px;
}
.dsp-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(235,235,245,.4);
  pointer-events: none;
}
.dsp-search-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 34px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: .82rem;
  outline: none;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.dsp-search-wrap input:focus {
  border-color: rgba(48,213,200,.5);
  background: rgba(255,255,255,.07);
}
.dsp-search-wrap input::placeholder { color: rgba(235,235,245,.35); }
.dsp-view-seg {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 3px;
}
.dsp-view-seg button {
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(235,235,245,.55);
  font-size: 14px;
  cursor: pointer;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.dsp-view-seg button:hover { color: var(--text); }
.dsp-view-seg button.active {
  background: #fff;
  color: #000;
}
.dsp-count {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(235,235,245,.4);
  min-width: 34px;
  text-align: right;
}

/* Album cards (grid view) */
.dsp-album-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid transparent;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.dsp-album-card:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  transform: translateY(-2px);
}
.dsp-album-card.sov { border-color: rgba(48,213,200,.14); }
.dsp-album-card.sov:hover { border-color: rgba(48,213,200,.3); }
.dsp-album-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.dsp-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dsp-album-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,.6);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: .04em;
  pointer-events: none;
}
/* Corner play button on album art */
.dsp-play-fab-corner {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(6px) scale(.92);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), background .15s;
}
.dsp-album-card:hover .dsp-play-fab-corner,
.dsp-album-card:focus-visible .dsp-play-fab-corner,
.dsp-album-card:active .dsp-play-fab-corner {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dsp-play-fab-corner:hover { background: var(--teal); }
.dsp-album-meta {
  padding: 0 2px;
}
.dsp-album-title {
  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.dsp-album-artist {
  font-size: .72rem;
  color: rgba(235,235,245,.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.dsp-album-title .dsp-sov-tag, .dsp-album-title .dsp-spot-tag { display: none; }

/* List view rows */
.dsp-track-card { display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);cursor:pointer;
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out); }
.dsp-track-card:hover { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.045); transform: translateY(-1px); }
.dsp-track-card.sov { border-color: rgba(48,213,200,.16); background: linear-gradient(145deg, rgba(48,213,200,.06), rgba(255,255,255,.02)); }
.dsp-track-num { font-family: var(--font-mono); font-size:.66rem; color: rgba(235,235,245,.32); min-width:18px; text-align:right; }
.dsp-art-wrap { position:relative; width:46px;height:46px;flex-shrink:0;border-radius:9px;overflow:hidden;background:rgba(255,255,255,.04); }
.dsp-art-wrap img { width:100%;height:100%;object-fit:cover; }
.dsp-play-fab { position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.42);color:#fff;border:none;cursor:pointer;opacity:0;transition:opacity .16s ease; }
.dsp-art-wrap:hover .dsp-play-fab, .dsp-track-card:hover .dsp-play-fab { opacity:1; }
.dsp-tmeta { flex:1;min-width:0; }
.dsp-ttitle { font-size:.86rem;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.dsp-tartist { font-size:.74rem;color:rgba(235,235,245,.55);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px; }
.dsp-sov-tag { margin-left:6px;font-size:9px;font-weight:700;letter-spacing:.07em;padding:2px 6px;border-radius:999px;background:var(--teal);color:#00110e;vertical-align:middle; }
.dsp-spot-tag { margin-left:6px;font-size:9px;color:rgba(235,235,245,.45); }
.dsp-plays, .dsp-dur { font-family: var(--font-mono); font-size:.68rem;color:rgba(235,235,245,.42);white-space:nowrap; }
.dsp-ext-link, .dsp-none-chip { width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;
  border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#fff;text-decoration:none;font-size:13px; }
.dsp-none-chip { border-style:dashed; opacity:.35; }

/* ── 3. PUBLIC-READY POLISH ─────────────────────────────────────────────── */

/* Focus rings that feel engineered, not defaulted */
.app-shell.active :focus-visible {
  outline: 2px solid rgba(48, 213, 200, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Post cards — quiet lift on hover */
.feed-center .post-card {
  will-change: transform;
}
.feed-center .post-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

/* Feed post rhythm — give identity, copy, media, and actions a clear cadence. */
#feed .post-card {
  padding: 20px 24px 18px !important;
}
#feed .post-card .post-row { gap: 14px; }
#feed .post-card .post-avatar-col { width: 44px; padding-top: 2px; }
#feed .post-card .post-header { margin-bottom: 6px; }
#feed .post-card .post-header .meta { row-gap: 2px; }
#feed .post-card .post-body {
  max-width: 66ch;
  margin: 6px 0 14px;
  font-size: 1rem !important;
  line-height: 1.56 !important;
}
#feed .post-card .post-image,
#feed .post-card .post-video {
  width: 92%;
  margin: 14px 0 8px;
}
#feed .post-card .post-image.carousel { width: 92%; }
#feed .post-card .post-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
#feed .post-card .post-actions button { padding: 6px 11px !important; }

@media (max-width: 720px) {
  #feed .post-card { padding: 16px 16px 15px !important; }
  #feed .post-card .post-row { gap: 10px; }
  #feed .post-card .post-avatar-col { width: 40px; }
  #feed .post-card .post-image,
  #feed .post-card .post-video,
  #feed .post-card .post-image.carousel { width: 100%; }
}

/* Left nav active state — soft teal pill */
.left-nav-item.active {
  background: linear-gradient(90deg, rgba(48, 213, 200, 0.12), rgba(48, 213, 200, 0.04));
  color: var(--teal-soft);
}

/* Rail scroll — thin, invisible until hover */
.right-sidebar {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.right-sidebar:hover {
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

/* Sticky search card keeps its blur above new card gradients */
.right-sidebar .discover-search.sticky {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: var(--surface-2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.right-sidebar .discover-search.sticky:focus-within {
  border-color: rgba(48, 213, 200, 0.35);
}

/* Smooth feed scrolling */
.dock-row-body,
.feed-center { scroll-behavior: smooth; }

/* Composer focus — teal whisper */
.feed-center .composer:focus-within {
  border-color: rgba(48, 213, 200, 0.3);
  box-shadow: 0 0 0 3px rgba(48, 213, 200, 0.08), 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* === FEED GAP FIX — ensure feed surfaces match page bg in all themes === */
html body .feed-center,
html body .feed-center.feed-center,
.feed-center.feed-center {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  background-image: none !important;
}
.feed-dock, .feed-dock:not(.split) {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
}


/* ============================================================
   Post-web identity — DID row + VC credential chips (Phase 1)
   ============================================================ */
.profile-did-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}
.profile-did-row .did-value {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-vc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.vc-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: rgba(48, 213, 200, 0.1);
  border: 1px solid rgba(48, 213, 200, 0.28);
}
.vc-chip-artistverified {
  color: #bf5af2;
  background: rgba(191, 90, 242, 0.1);
  border-color: rgba(191, 90, 242, 0.3);
}



/* ============================================================
   LIVE STREAMING MODE — player center, right rail = viewers + chat
   ============================================================ */
.live-view {
  max-width: 1000px;
  margin: 0 auto;
  /* viewport-locked: player + info + grid fill the screen, no page scroll */
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100vh - 150px);
  min-height: 460px;
  overflow: hidden;
}
.live-player-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.live-info-bar { flex-shrink: 0; padding: 12px 4px 0; }
.live-grid { flex-shrink: 0; }
.live-player-wrap video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.live-offline {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: radial-gradient(ellipse at 50% 40%, rgba(48,213,200,0.05), transparent 60%), #05070a;
  z-index: 3;
}
.live-offline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.live-offline-title {
  font-size: 1.3rem; font-weight: 800; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.live-offline-sub { font-size: 0.85rem; color: var(--text-muted); max-width: 340px; text-align: center; }
.live-player-topbar {
  position: absolute; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px;
  z-index: 4;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12,12,14,0.75);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,69,58,0.45);
  color: #ff453a;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em;
  padding: 5px 12px; border-radius: 999px;
}
.live-badge.offline { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.4); }
.live-viewers-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12,12,14,0.75);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.live-unmute {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 5;
  align-items: center; justify-content: center; gap: 7px;
  background: rgba(12,12,14,0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 8px 18px; border-radius: 999px;
  cursor: pointer;
}
.live-obs-btn {
  position: absolute; top: 14px; right: 14px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12,12,14,0.75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 0.7rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  cursor: pointer;
}
.live-obs-btn:hover { color: var(--teal); border-color: rgba(48,213,200,0.4); }
.live-info-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px 6px;
}
.live-info-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.live-info-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.live-obs-info {
  margin-top: 10px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.85rem;
}
.live-obs-title { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em; color: var(--text-muted); margin-bottom: 12px; }
.live-obs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.live-obs-row span { color: var(--text-muted); width: 90px; font-size: 0.75rem; }
.live-obs-row code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); word-break: break-all; background: rgba(255,255,255,0.04); padding: 4px 8px; border-radius: 6px; flex: 1; }
.live-obs-row button { background: transparent; border: 1px solid var(--line-soft); color: var(--text-dim); border-radius: 6px; font-size: 0.7rem; padding: 3px 10px; cursor: pointer; }
.live-obs-row button:hover { color: var(--teal); }
.live-obs-note { color: var(--text-very-muted); font-size: 0.72rem; margin-top: 8px; }
.live-obs-loading { color: var(--text-muted); font-size: 0.8rem; }

/* ── Right rail: viewers bar replaces Articles / Riot Pulse / Top Tipped ── */
.right-sidebar.live-mode #tr-articles-card,
.right-sidebar.live-mode #riot-pulse-card,
.right-sidebar.live-mode #top-tipped-card,
.right-sidebar.live-mode #eyeplay-rail { display: none !important; }
.right-sidebar.live-mode #live-sidebar { display: flex !important; }
.live-side { position: sticky; top: 16px; }
.live-side-head .live-pill-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #ff453a; margin-right: 6px;
  animation: liveDotPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,69,58,0.7);
}
.live-side-head { border-bottom: 1px solid var(--line-soft); }
@keyframes liveDotPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-side-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-very-muted);
  padding: 8px 2px;
  letter-spacing: 0.04em;
}
.live-obs-stats { display: flex; gap: 16px; margin: 8px 0 10px; font-size: 0.82rem; color: var(--text-dim); flex-wrap: wrap; }
.live-chat-mods { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.live-chat-kick, .live-chat-mod, .live-chat-del {
  font-size: 0.62rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.04); color: var(--text-dim); cursor: pointer; line-height: 1;
}
.live-chat-kick:hover { color: #ff453a; border-color: rgba(255,69,58,0.5); background: rgba(255,69,58,0.08); }
.live-chat-mod:hover { color: var(--teal); border-color: rgba(48,213,200,0.4); background: rgba(48,213,200,0.08); }
.live-chat-del:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.live-mod-badge { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; color: #30d158; background: rgba(48,209,88,0.12); border: 0.5px solid rgba(48,209,88,0.3); padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.live-chat {
  height: 420px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.live-chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.live-chat-ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 1px; }
.live-chat-body { min-width: 0; font-size: 0.82rem; line-height: 1.4; }
.live-chat-name {
  font-weight: 800; color: var(--teal); margin-right: 6px; font-size: 0.78rem;
}
.live-chat-name .identity-badge svg { width: 12px; height: 12px; vertical-align: -2px; }
.live-chat-text { color: var(--text); word-break: break-word; }
.live-chat-msg.mine .live-chat-text { color: var(--text); }
.live-chat-empty { color: var(--text-very-muted); font-size: 0.78rem; text-align: center; padding: 24px 8px; }
.live-chat-input-row {
  display: flex; gap: 6px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.live-chat-input-row input {
  flex: 1; padding: 8px 12px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--text); font-size: 0.8rem; outline: none;
}
.live-chat-input-row input:focus { border-color: rgba(48,213,200,0.4); }
.live-chat-input-row button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(48,213,200,0.4);
  background: rgba(48,213,200,0.08);
  color: var(--teal);
  font-size: 0.9rem; cursor: pointer; flex-shrink: 0;
}
.live-chat-input-row button:hover { background: rgba(48,213,200,0.16); }
.live-chat-signin { padding-top: 10px; text-align: center; }
.live-chat-signin .btn-primary { width: 100%; }

/* lock page scroll while in LIVE — chat/grid handle their own scroll */
body.no-scroll { overflow: hidden; }

/* nav LIVE dot — inline at right edge of the LIVE item, not the card */
#nav-live { position: relative; }
.live-nav-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff453a;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255,69,58,0.8);
  animation: liveDotPulse 1.4s ease-in-out infinite;
}

@media (max-width: 1100px) {
  .live-view { padding: 0 2px; }
}
@media (max-width: 1024px) {
  .live-chat { height: 300px; }
}

.live-fs-btn {
  position: absolute; bottom: 14px; right: 14px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(12,12,14,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.live-fs-btn:hover { color: var(--teal); border-color: rgba(48,213,200,0.4); }
.live-player-wrap:fullscreen { border-radius: 0; border: none; aspect-ratio: auto; }
.live-player-wrap:fullscreen video { width: 100vw; height: 100vh; object-fit: contain; }

/* ── live stream grid (thumbnails) ── */
.live-grid { height: 168px; overflow: hidden; }
.live-grid-scroll {
  height: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.live-grid-scroll::-webkit-scrollbar { display: none; }
.live-grid-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  border: 1px dashed var(--line-soft);
  border-radius: 14px;
  color: var(--text-very-muted);
  font-size: 0.78rem;
  padding: 0 20px;
  text-align: center;
}
.live-grid-item {
  flex: 0 0 240px;
  cursor: pointer;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-1);
  transition: border-color 0.15s, transform 0.15s;
}
.live-grid-item:hover { border-color: rgba(48,213,200,0.4); transform: translateY(-2px); }
.live-grid-item.active { border-color: var(--teal); }
.live-grid-thumb {
  position: relative;
  height: 120px;
  background: #05070a;
  display: flex; align-items: center; justify-content: center;
}
.live-grid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-grid-thumb.no-sig::after { content: '📡'; font-size: 1.4rem; opacity: 0.4; }
.live-grid-live, .live-grid-watching {
  position: absolute; top: 8px; left: 8px;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(12,12,14,0.8);
  color: #ff453a;
  border: 1px solid rgba(255,69,58,0.4);
}
.live-grid-watching { color: var(--teal); border-color: rgba(48,213,200,0.4); }
.live-grid-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.live-grid-title { font-size: 0.78rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-grid-viewers { font-size: 0.68rem; color: var(--text-muted); }

/* ── chat gate (accept rules before chatting) ── */
.live-chat-gate {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
}
.live-chat-gate-title { font-size: 0.85rem; font-weight: 800; color: var(--text); }
.live-chat-gate-rules {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted);
}
.live-chat-gate-rules li::before { content: '· '; color: var(--teal); font-weight: 800; }
.live-chat-gate .btn-primary { width: 100%; }

/* chat never chains scroll to the page */
.live-chat { overscroll-behavior: contain; }

/* ── go-live request / admin rows ── */
.live-obs-auto { color: var(--teal); font-size: 0.6rem; letter-spacing: 0.08em; }
.live-obs-request, .live-obs-rotate {
  margin-top: 10px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(48,213,200,0.45);
  background: rgba(48,213,200,0.1);
  color: var(--teal);
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
}
.live-obs-request:hover, .live-obs-rotate:hover { background: rgba(48,213,200,0.18); }
.live-req-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.78rem;
}
.live-req-row:last-child { border-bottom: none; }
.live-req-user { font-weight: 800; color: var(--text); min-width: 90px; }
.live-req-stats { color: var(--text-muted); flex: 1; font-size: 0.7rem; }
.live-req-row button {
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(48,213,200,0.45);
  background: rgba(48,213,200,0.1);
  color: var(--teal); font-size: 0.7rem; font-weight: 700; cursor: pointer;
}
.live-req-row button.deny { border-color: rgba(255,69,58,0.4); background: rgba(255,69,58,0.08); color: #ff453a; }
.live-obs-grant-row { display: flex; gap: 6px; margin-top: 6px; }
.live-obs-grant-row input {
  flex: 1; padding: 8px 12px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--line-soft); border-radius: 18px;
  color: var(--text); font-size: 0.8rem; outline: none;
}
.live-obs-grant-row button {
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(48,213,200,0.45);
  background: rgba(48,213,200,0.1);
  color: var(--teal); font-size: 0.75rem; font-weight: 700; cursor: pointer;
}

/* mobile — allow normal flow scroll again */
@media (max-width: 1024px) {
  .live-view { height: auto; min-height: 0; overflow: visible; }
  .live-player-wrap { aspect-ratio: 16 / 9; flex: none; }
  .live-grid { height: 150px; }
}
