/* ============================================================
   TealRiot — Premium Outlier Network
   Acid cyan + riot magenta on black. Not another social clone.
   ============================================================ */

:root {
  --bg-darkest: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #0a0a0a;
  --bg-input: #0a0a0a;
  --bg: #000000;
  --nav-bg: #000000;
  --bg-darker: #000000;
  --teal: #17e0b0;
  --teal-dim: #0f9e7a;
  --teal-dark: #052e24;
  --teal-soft: #5ce8d4;
  --teal-glow: 0 0 14px rgba(23, 224, 176, 0.15);
  --purple: #ff3d8f;
  --purple-dim: #b3256a;
  --purple-soft: #ff7cbc;
  --purple-glow: 0 0 14px rgba(255, 61, 143, 0.15);
  --riot: #ff3d8f;
  --riot-dim: #b3256a;
  --blue: #17e0b0;
  --blue-dim: #0f9e7a;
  --blue-soft: #5ce8d4;
  --text: #ffffff;
  --text-dim: #71767b;
  --text-muted: #536471;
  --text-very-muted: #3e4144;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;
  --hover-bg: rgba(255, 255, 255, 0.03);
  --danger: #ff4757;
  --radius: 12px;
  --radius-sm: 8px;
  --accent: #17e0b0;
  --accent-glow: rgba(23, 224, 176, 0.08);
  --accent-text: #5ce8d4;
  --line-soft: #1a1a1a;
  --line-bright: #2a2a2a;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: '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: 350px;
}

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

body {
  background: #000000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

h1, h2 {
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.post-body {
  font-size: 14px;
  font-weight: 300;
}

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(23, 224, 176, 0.14), 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;
}

/* 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: #17e0b0;
  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: #0a0a0a;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(23, 224, 176, 0.4);
}

.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: #666666;
  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: #171c24;
}

.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: #666666;
  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: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 9px;
  background: linear-gradient(90deg, #fff, #0a0a0a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.auth-card {
  background: rgba(6, 6, 12, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.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, var(--blue), var(--blue-dim));
  -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 2px rgba(176, 38, 255, 0.3);
}

.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: #17e0b0;
  border: 1.5px solid #17e0b0;
}

.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 #171c24;
  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: #171c24;
  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: #17e0b0;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-field input:focus {
  border-bottom-color: #17e0b0;
}

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

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #17e0b0;
  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:hover { background: #0a0e14; color: #17e0b0; border: 1px solid #17e0b0; }
.btn-primary:active { transform: scale(0.98); }
.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 #171c24;
  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-result:hover {
  background: rgba(255,255,255,0.04);
}

.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: var(--left-nav-w);
  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: 1px solid var(--border);
  padding: 8px 16px 16px;
  position: fixed;
  top: 0;
  width: var(--left-nav-w);
  min-width: var(--left-nav-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.left-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 0px;
  color: #8b8d96;
  font-family: 'Inter', system-ui, sans-serif, 'Courier New', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 0;
  text-decoration: none;
  background: transparent;
  border-left: 3px solid transparent;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.left-nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #f2f2f5;
  border-left-color: transparent;
}

.left-nav-item.active {
  background: rgba(255, 255, 255, 0.03);
  color: #f2f2f5;
  border-left-color: var(--teal);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02);
}

.left-nav-item.active#nav-eyeplay,
#nav-eyeplay:hover {
  border-left-color: var(--riot);
}

#nav-eyeplay.active {
  background: rgba(37, 44, 54, 0.07);
  box-shadow: inset 0 0 24px rgba(37, 44, 54, 0.05);
}

.left-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.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: #666666;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 12px;
  margin-bottom: 8px;
  margin-top: 4px;
  font-weight: 700;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.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: #0a0e14;
  border: 1px solid #171c24;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.composer textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #171c24;
  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:focus {
  outline: none;
  border-color: #2a2a2a;
}

.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;
}

.char-counter {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #17e0b0;
  letter-spacing: 0;
}

.char-counter.warn { color: #17e0b0; }
.char-counter.danger { color: #FF0033; }

.composer .btn-post {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 100%);
  color: #000000;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.composer .btn-post:hover {
  background: transparent;
  color: #17e0b0;
}

.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: 2px;
  font-size: 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-btn:hover {
  color: var(--teal);
  border-color: rgba(23, 224, 176, 0.35);
  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: #0a0a0a;
  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: 'Share Tech Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.post-video {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.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: 'Share Tech Mono', monospace;
  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: #0f1419;
  border: 1px solid #1f262c;
  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: #17e0b0;
  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;
}

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

/* ============================================================
   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: #0a0a0a;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

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

.notif-item.notif-unread {
  background: rgba(154, 162, 173, 0.06);
  border-left-color: var(--text);
}

.notif-item.notif-unread .notif-text strong {
  color: #17e0b0;
}

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

.notif-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.notif-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(154, 162, 173, 0.08);
  border: 1px solid rgba(154, 162, 173, 0.12);
  backdrop-filter: blur(4px);
}

.notif-icon svg {
  filter: drop-shadow(0 0 3px currentColor);
}

.notif-section-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 12px 16px 6px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* Mention dropdown */
.mention-dropdown {
  display: none;
  background: var(--bg-card);
  border: 1px solid #171c24;
  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-picker-header input:focus {
  border-color: var(--text);
}

.gif-close {
  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;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-input);
  transition: transform 0.1s;
}

.gif-item:hover {
  transform: scale(0.96);
}

.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: #171c24;
  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 {
  color: var(--text);
}

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

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

.post-card {
  background: #0a0e14;
  border: 1px solid #171c24;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}

.post-card:hover {
  background: rgba(255,255,255,0.02);
}

.post-pinned-indicator {
  font-size: 0.72rem;
  color: #17e0b0;
  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;
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-header .avatar:hover {
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.35);
  border-color: rgba(23, 224, 176, 0.5);
  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;
}

/* 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 {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.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(23, 224, 176, 0.7);
}

.post-header .meta .handle {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.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:hover {
  border-color: #171c24 !important;
}
.link-preview-card img {
  background: var(--bg);
}
.post-link:hover {
  color: #1ae0ff !important;
}

.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 {
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
}

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

.post-actions button.liked {
  color: #17e0b0;
}

.post-actions button.liked svg {
  filter: drop-shadow(0 0 6px rgba(23, 224, 176, 0.5));
}

.post-actions button.btn-repost.reposted {
  color: #17e0b0;
}

.post-actions button.btn-repost.reposted svg {
  filter: drop-shadow(0 0 6px rgba(23, 224, 176, 0.5));
}

.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: #17e0b0;
}

.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;
}

.btn-view-thread:hover {
  background: rgba(255,255,255,0.04);
}

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

.profile-header {
  background: #0A0A0A;
  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 #171c24;
  position: relative;
  z-index: 1;
}

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

.profile-header .avatar-lg.avatar-offline {
  border-color: #171c24;
}

.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: #17e0b0;
  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;
  gap: 16px;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid #171c24;
  border-bottom: 1px solid #171c24;
  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 .stats .stat .stat-bracket {
  color: #555;
}

.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: #17e0b0;
  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 #171c24;
  color: #888;
}

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

/* 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 #171c24;
  background: transparent;
  color: #8b8d96;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.corner-action-btn:hover {
  background: rgba(23, 224, 176, 0.08);
  color: var(--text);
  border-color: #2a2a2a;
}

.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: #171c24;
}

.corner-action-btn.corner-action-report:hover {
  background: rgba(23, 224, 176, 0.1);
  border-color: #2a2a2a;
  color: #17e0b0;
}

.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: rgba(23, 224, 176, 0.12);
  color: #17e0b0;
  border: 1px solid #171c24;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 4px;
}

/* 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: #17e0b0;
  border: 1px solid #171c24;
  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-link-chip:hover {
  color: #17e0b0;
  background: rgba(23, 224, 176, 0.08);
  border-color: #2a2a2a;
}

/* 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: #666;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 150ms;
  white-space: nowrap;
}

.profile-content-tabs button:hover {
  color: #aaa;
}

.profile-content-tabs button.active {
  color: #17e0b0;
  border-bottom-color: #17e0b0;
}

.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: #0a0a0a;
  color: #fff;
  border: 1px solid #17e0b0;
  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 */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.verified-badge.admin-badge {
  background: var(--purple);
  color: var(--bg-darkest);
}

/* Super admin badge — stryfe gets special violet glow treatment */
.verified-badge.super-admin-badge {
  background: linear-gradient(135deg, #626a75, #9aa2ad);
  color: #ffffff;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  box-shadow: 0 0 8px rgba(98, 106, 117, 0.5), 0 0 16px rgba(98, 106, 117, 0.3);
  animation: super-admin-glow 2s ease-in-out infinite;
}

@keyframes super-admin-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(98, 106, 117, 0.5), 0 0 16px rgba(98, 106, 117, 0.3); }
  50% { box-shadow: 0 0 12px rgba(98, 106, 117, 0.7), 0 0 24px rgba(98, 106, 117, 0.4); }
}

/* Super admin username styling */
.super-admin-name {
  background: linear-gradient(135deg, #c084fc, #9aa2ad, #626a75);
  -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;
  font-size: 0.5rem;
  margin-left: 4px;
}

/* Role badges — SysOp-controlled via role_type column */
.role-badge {
  font-family: 'Inter', system-ui, sans-serif, 'Share Tech Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 4px;
  background: #0a0e14;
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
}

.role-sysop {
  color: var(--riot);
  border: 1px solid var(--riot);
  box-shadow: 0 0 8px rgba(37, 44, 54, 0.2);
}

.role-dev {
  color: #17e0b0;
  border: 1px solid #17e0b0;
}

.role-creator {
  color: #8b8d96;
  border: 1px solid #B026FF;
}

.role-artist {
  color: var(--purple);
  border: 1px solid var(--purple);
}

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

.post-header .meta .name:not(:hover):not(:focus-visible) {
  color: #ffffff;
}

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

.loading {
  text-align: center;
  padding: 40px;
  color: #17e0b0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  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: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.settings-tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.settings-tab:hover {
  color: var(--text);
}

.settings-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.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: #171c24;
  color: var(--text);
  background: rgba(154, 162, 173, 0.05);
}

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

.settings-glass {
  background: rgba(5, 5, 15, 0.85);
  border: 1px solid rgba(154, 162, 173, 0.15);
  border-radius: 20px;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 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: linear-gradient(135deg, rgba(23, 224, 176, 0.15), rgba(37, 44, 54, 0.2), rgba(4, 52, 44, 0.15));
  padding: 40px 24px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(154, 162, 173, 0.1);
}

.settings-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0a0a0a, #0a0a0a, #171c24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.settings-hero-admin {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #0a0a0a;
  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.4);
}

.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: #2a2a2a;
  box-shadow: 0 0 30px rgba(23, 224, 176, 0.3);
}

.avatar-dropzone.drag-over {
  border-color: #2a2a2a;
  border-style: solid;
  box-shadow: 0 0 40px rgba(23, 224, 176, 0.5), 0 0 80px rgba(23, 224, 176, 0.2);
  transform: scale(1.05);
}

.avatar-dropzone.drag-over .avatar-dropzone-overlay {
  opacity: 1;
  background: rgba(23, 224, 176, 0.2);
}

.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: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #17e0b0;
  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: 0;
  border-bottom: 1px solid rgba(154, 162, 173, 0.1);
  margin: 0 24px;
  overflow-x: auto;
  position: relative;
}

.settings-tab {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.settings-tab:hover {
  color: var(--text);
}

.settings-tab.active {
  color: var(--text);
}

.tab-slider {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #0a0a0a, #171c24);
  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: #17e0b0;
  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 */
.input-glow:focus {
  border-color: #171c24;
  box-shadow: 0 0 0 3px rgba(154, 162, 173, 0.1), 0 0 20px rgba(154, 162, 173, 0.1);
}

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

/* Shimmer Button */
.btn-shimmer {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0a0a0a, #171c24);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.06);
}

.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: #171c24;
}

.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;
}

.back-btn:hover {
  background: rgba(255,255,255,0.04);
}

.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;
}

.thread-toggle-btn:hover {
  border-color: #171c24;
  color: #17e0b0;
}

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

.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);
}

.reply-card .post-actions button {
  padding: 2px 6px;
  font-size: 0.8rem;
}

/* ============================================================
   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(23, 224, 176, 0.1);
  border-left: 3px solid #17e0b0;
}

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

.dm-conv-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #17e0b0;
  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: #17e0b0;
}

.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: #0a0a0a;
  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: #17e0b0;
  color: #000;
  border: none;
  transition: all 150ms;
}

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

.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 #1f262c !important;
  background: #0f1419 !important;
  border-radius: 16px !important;
  box-shadow: none;
}

.inline-reply-composer textarea {
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif, monospace;
  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 #1f262c;
}

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

.inline-reply-composer .char-counter {
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  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: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}

.inline-reply-composer .btn-inline-reply,
.inline-reply-composer .btn-inline-reply-submit {
  background: var(--teal);
  color: #000;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.25);
  font-weight: 700;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.inline-reply-composer .btn-inline-reply:hover:not(:disabled),
.inline-reply-composer .btn-inline-reply-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.inline-reply-composer .btn-inline-reply:disabled,
.inline-reply-composer .btn-inline-reply-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.inline-reply-composer .btn-inline-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.inline-reply-composer .btn-inline-cancel:hover {
  color: var(--riot);
  border-color: rgba(37, 44, 54, 0.45);
}

.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 .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

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

.empty-state .empty-title {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 14px;
  text-transform: uppercase;
  color: #8b8d96;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.empty-state .empty-subtitle {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.empty-state .empty-action {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #17e0b0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

.empty-state .empty-action:hover {
  color: #17e0b0;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0a0e14;
  border: 1px solid #171c24;
  color: #39d98a;
  padding: 12px 24px;
  border-radius: 0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  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: rgba(8, 13, 11, 0.95);
  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;
}

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

.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) {
  .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: #0a0e14;
  border: 1px solid #171c24;
  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;
}

.post-fab:hover {
  box-shadow: 0 0 14px rgba(154, 162, 173,0.25);
}

.post-fab:active {
  transform: scale(0.95);
}

.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: #666666;
  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: #17e0b0;
}

.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: #666666;
  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 #171c24;
  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 input {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}

.sidebar-search input:focus {
  border-color: #2a2a2a;
  outline: none;
}

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

.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;
}

.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: #0a0e14;
  border: 1px solid #171c24;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.sidebar-body {
  padding: 8px 0;
}

.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-item:hover {
  background: rgba(255,255,255,0.04);
}

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

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

@keyframes bullet-pulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 4px #17e0b0; }
  50% { opacity: 1; box-shadow: 0 0 10px #17e0b0, 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-genre {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.trend-tag {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.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-card:hover {
  background: rgba(154, 162, 173, 0.04);
  border-color: #171c24;
}

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

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

.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.15), 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.28), 0 0 44px rgba(154, 162, 173, 0.14), 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.2), 0 0 16px rgba(154, 162, 173, 0.1); }
  50% { box-shadow: 0 0 14px rgba(154, 162, 173, 0.35), 0 0 28px rgba(154, 162, 173, 0.15); }
}

.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: #0a0e14;
  border: 1px solid #171c24;
  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 1px rgba(23, 224, 176, 0.08);
}

.nav-compose {
  width: 100%;
  border: 1px solid rgba(23, 224, 176, 0.24);
  background: rgba(23, 224, 176, 0.07);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.nav-compose:hover { background: rgba(23, 224, 176, 0.14); 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 textarea { min-height: 128px; }
.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, #0a0a0a);
  -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 #171c24;
  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:focus {
  outline: none;
  border-color: #171c24;
}

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

.compose-modal textarea:focus {
  outline: none;
  border-color: #2a2a2a;
  box-shadow: 0 0 0 2px rgba(23, 224, 176, 0.08), inset 0 0 20px rgba(23, 224, 176, 0.03);
}

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

.compose-modal .composer-footer .char-counter {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #17e0b0;
}

.compose-modal .btn-post {
  background: #17e0b0;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 9px 28px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  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.3));
}

/* 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: 'Share Tech Mono', monospace;
}

.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: 'Share Tech Mono', monospace;
  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: #171c24;
}

.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: #17e0b0;
}

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

.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: #17e0b0;
}

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

/* 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: #17e0b0;
  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: #ff4757;
  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;
}

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

.admin-header h2 {
  color: var(--text);
  font-size: 1.3rem;
}

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

.admin-report-card {
  margin-bottom: 12px;
}

.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;
}

.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: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.admin-report-actions .btn-admin-action:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
}

.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.1);
  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(154, 162, 173, 0.15);
  color: var(--text);
}

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

/* 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: var(--text);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.audit-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--bg-darkest);
  border-radius: 8px;
  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.14), 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.3);
}

.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(23, 224, 176, 0.18), rgba(0, 212, 255, 0.1));
  color: #17e0b0;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(23, 224, 176, 0.25), inset 0 0 6px rgba(23, 224, 176, 0.15);
}

.mp-play:hover {
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.3), rgba(0, 212, 255, 0.18));
  box-shadow: 0 0 22px rgba(23, 224, 176, 0.5), inset 0 0 8px rgba(23, 224, 176, 0.25);
  transform: scale(1.06);
}

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

.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: 'Share Tech Mono', 'Courier New', monospace;
  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.55);
}

.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 10px rgba(23, 224, 176, 0.8), 0 0 22px rgba(20, 224, 200, 0.45);
  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: #0a0a0a;
  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.22);
  transform: translateY(-2px);
}

.mp-pill-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.22), rgba(0, 212, 255, 0.12));
  border: none;
  color: #17e0b0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.3);
}

.mp-pill-play:hover {
  background: rgba(23, 224, 176, 0.3);
  box-shadow: 0 0 16px rgba(23, 224, 176, 0.5);
}

.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: #666666;
  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: #666666;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

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

.chart-peak-note {
  color: #666666;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #17e0b0;
  text-shadow: 0 0 8px rgba(154, 162, 173, 0.5), 0 0 16px rgba(100, 140, 255, 0.3);
  animation: signal-pulse 2s ease-in-out infinite;
}

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

#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: 'Share Tech Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  padding: 4px 0;
  color: #17e0b0;
  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.3);
}

.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.7), 0 0 20px rgba(100, 140, 255, 0.4);
}

.terminal-prefix {
  color: #9a7cb8;
  font-size: 0.75rem;
  text-shadow: 0 0 4px rgba(100,140,255,0.3);
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-shadow: 0 0 6px rgba(154, 162, 173,0.3);
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px;
  text-shadow: 0 0 4px rgba(154, 162, 173,0.15);
}

@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;
}

.btn-follow-mini.following {
  background: rgba(98, 106, 117, 0.12);
  border: 1px solid rgba(98, 106, 117, 0.4);
  color: #9aa2ad;
}

/* 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: #666666;
  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: #17e0b0;
  text-decoration: none;
}

.admin-user-name:hover {
  color: #171c24;
}

.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 #171c24;
  border-radius: var(--radius-sm);
  color: #666666;
  font-size: 0.9rem;
}

.genre-filter-banner strong {
  color: var(--text);
}

.genre-filter-clear {
  background: transparent;
  color: var(--text);
  border: 1px solid #171c24;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #666666;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 28px;
  text-align: center;
  color: #666666;
  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: #666666;
  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.5); animation: surge-arrow-pulse 2s ease-in-out infinite; }
.trend-down { color: #ff4757; text-shadow: 0 0 8px rgba(255, 71, 87, 0.4); }
.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.15);
}

.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.3);
}

/* ============================================================
   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.2);
  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-header:hover {
  background: rgba(255,255,255,0.04);
}

.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;
}

.dm-float-close:hover {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
}

/* 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:focus {
  border-color: var(--text);
}

.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-item:hover {
  background: rgba(154, 162, 173, 0.06);
}

.dm-float-conv-item.active {
  background: rgba(154, 162, 173, 0.1);
}

.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-back:hover {
  background: rgba(154, 162, 173, 0.1);
  color: var(--text);
}

.dm-float-chat-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #666666;
  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-me .dm-float-msg-bubble {
  background: #0a0a0a;
  color: var(--text);
  border-bottom-right-radius: 4px;
}

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

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

/* 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:focus {
  border-color: var(--text);
}

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

.dm-float-send {
  padding: 6px 16px;
  background: var(--bg-darkest);
  color: #17e0b0;
  border: 1.5px solid #17e0b0;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.dm-float-send:hover {
  box-shadow: 0 0 10px rgba(154, 162, 173, 0.25);
}

.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 #171c24;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.left-nav-divider {
  border-top: 1px solid #171c24;
  margin: 12px 8px;
}

/* ── FAB Premium ────────────────────────────────────────────────── */
.post-fab {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #0a0e14;
  border: 1px solid #171c24;
  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:hover {
  border-color: #17e0b0;
  box-shadow: 0 0 16px rgba(23, 224, 176, 0.15);
  transform: translateY(-2px);
}

.post-fab:active {
  transform: scale(0.95) translateY(0);
}

.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;
}

.post-fab:hover .fab-icon {
  color: #f2f2f5;
}

/* ── Composer Premium ───────────────────────────────────────────── */
.composer-bar {
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.98), rgba(8, 8, 14, 0.95));
  border-top: 1px solid #171c24;
  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 #171c24;
  border-radius: 12px;
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  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 {
  background: linear-gradient(180deg, #0c0c14, #08080e);
  border: 1px solid rgba(98, 106, 117, 0.15);
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 1px rgba(98, 106, 117, 0.3);
}

.compose-modal textarea {
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid #171c24;
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.compose-modal textarea:focus {
  border-color: #2a2a2a;
  box-shadow: 0 0 0 3px rgba(23, 224, 176, 0.06);
  outline: none;
}

/* ── Post Cards Premium ─────────────────────────────────────────── */
.post-card {
  background: #0a0e14;
  border: 1px solid #171c24;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.post-card:hover {
  background: rgba(16, 20, 31, 0.95);
}

/* ── Sidebar Cards Premium ──────────────────────────────────────── */
.sidebar-card {
  background: #0a0e14;
  border: 1px solid #171c24;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666666;
  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-item:last-child {
  border-bottom: none;
}

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


.trend-tag {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.trend-genre {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Buttons Premium ────────────────────────────────────────────── */
.btn-primary {
  background: #17e0b0;
  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: #0a0e14;
  color: #17e0b0;
  border: 1px solid #17e0b0;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-follow {
  background: #17e0b0;
  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;
}

.btn-follow.following {
  background: rgba(98, 106, 117, 0.12);
  border: 1px solid rgba(98, 106, 117, 0.4);
  color: #9aa2ad;
}

/* Message button — AAA style */
.btn-message {
  background: transparent;
  border: 1px solid #171c24;
  color: #ccc;
  border-radius: 0;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 150ms;
}

.btn-message:hover {
  border-color: rgba(255,255,255,0.4);
  color: #FFFFFF;
}

/* ── 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.3),
    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;
}

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

/* ── 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));
}

/* ── Notification Items Premium ─────────────────────────────────── */
.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(98, 106, 117, 0.04);
  transition: background 0.15s;
}

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

.notif-item.notif-unread {
  background: rgba(98, 106, 117, 0.04);
  border-left: 3px solid #626a75;
}

/* ── 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: 'Space Grotesk', -apple-system, sans-serif;
  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;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(98, 106, 117, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(98, 106, 117, 0.35);
}

/* ── 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);
}

/* ── Verified Badges Premium ────────────────────────────────────── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #626a75, #9aa2ad);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(98, 106, 117, 0.3);
  flex-shrink: 0;
}

/* Holographic creator badge */
.verified-badge.creator-badge {
  background: linear-gradient(135deg,
    rgba(255, 107, 157, 0.6),
    rgba(154, 162, 173, 0.7),
    rgba(109, 213, 250, 0.6),
    rgba(168, 224, 99, 0.5));
  background-size: 300% 300%;
  animation: holoShift 4s ease infinite;
  box-shadow:
    0 0 8px rgba(154, 162, 173, 0.4),
    0 0 16px rgba(109, 213, 250, 0.2);
}

@keyframes holoShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.verified-badge.admin-badge {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}

.verified-badge.nucleus-badge {
  background: radial-gradient(circle, rgba(98, 106, 117,0.3) 0%, transparent 70%);
  animation: nucleusPulse 2s ease-in-out infinite;
}

.verified-badge.nucleus-badge svg {
  width: 14px;
  height: 14px;
}

.verified-badge.creator-badge {
  background: conic-gradient(from 0deg, #0a0a0a, #818cf8, #0a0e14, #34d399, #fbbf24, #f472b6, #0a0a0a);
  animation: holoSpin 3s linear infinite;
  overflow: hidden;
}

.verified-badge.creator-badge svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.5));
}

/* ── Loading States Premium ─────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 32px;
  color: #17e0b0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  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: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #17e0b0;
  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: #0a0e14;
  border: 1px solid #171c24;
  color: #39d98a;
  padding: 12px 24px;
  border-radius: 0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  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.2), 0 0 24px rgba(98, 106, 117, 0.08);
}

.glow-violet-strong {
  box-shadow: 0 0 16px rgba(98, 106, 117, 0.35), 0 0 32px rgba(98, 106, 117, 0.15);
}

/* ── 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 {
  background: #0A0A0A;
  border: 2px solid #171c24;
  border-radius: 2px;
  box-shadow: none;
}

.creator-avatar.avatar-online {
  border-color: #39d98a;
  box-shadow: none;
}

.creator-avatar.avatar-offline {
  border-color: #171c24;
  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: #171c24;
  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: rgba(154, 162, 173, 0.12);
  color: var(--purple);
  border: 1px solid rgba(154, 162, 173, 0.3);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* 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;
  gap: 16px;
  margin-top: 12px;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  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: #17e0b0;
  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 #171c24;
  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: 0;
  font-size: 13px;
  font-family: monospace;
  text-transform: uppercase;
  font-weight: 600;
  background: transparent;
  color: #888;
  border: 1px solid #171c24;
  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.15);
  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: 'Share Tech Mono', monospace;
}

.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: #17e0b0;
  border: 1px solid #171c24;
  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: 'Inter', system-ui, sans-serif, monospace;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s;
}

.creator-tabs button.active {
  color: var(--text);
  border-bottom-color: #17e0b0;
}

.creator-tabs button:hover:not(.active) {
  color: #aaa;
}

.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: 'Share Tech Mono', monospace;
}

.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 #171c24;
  border-radius: 8px;
  color: var(--text);
  font-family: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  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: #2a2a2a;
  box-shadow: 0 0 0 2px rgba(23, 224, 176, 0.06), 0 0 16px rgba(23, 224, 176, 0.08);
}

.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.2);
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  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, #0a0a0a, transparent);
  margin: 0;
  opacity: 0.3;
}

.surge-header {
  padding: 12px 16px 8px;
  font-family: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #666666;
  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, #0a0a0a, 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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  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.3);
  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.4); 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: #666666;
  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: #666666;
  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: #666666;
  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: #666666;
  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.5);
  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.4);
}

.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: 'Share Tech Mono', 'SF Mono', monospace;
  font-size: 0.72rem;
  color: #666666;
  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, #0a0a0a, #0a0e14, #0a0a0a);
  box-shadow: 0 0 8px rgba(154, 162, 173, 0.2);
}

@keyframes ring-rotate {
  0% { background: linear-gradient(0deg, #0a0a0a, #0a0e14, #0a0a0a); }
  25% { background: linear-gradient(90deg, #0a0a0a, #0a0e14, #0a0a0a); }
  50% { background: linear-gradient(180deg, #0a0a0a, #0a0e14, #0a0a0a); }
  75% { background: linear-gradient(270deg, #0a0a0a, #0a0e14, #0a0a0a); }
  100% { background: linear-gradient(360deg, #0a0a0a, #0a0e14, #0a0a0a); }
}

.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(23, 224, 176, 0.55), 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 8px rgba(23, 224, 176, 0.35);
}

.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-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 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-close:hover {
  color: var(--text);
}

.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-caption-input:focus {
  border-color: #2a2a2a;
  box-shadow: 0 0 0 3px rgba(23, 224, 176,.10);
}

.story-caption-input::placeholder {
  color: var(--text-muted);
}

.story-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.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-preview .preview-remove:hover {
  background: rgba(255, 71, 87, 0.8);
}

.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-modal-footer {
  display: flex;
  gap: 10px;
  padding: 0 24px 22px;
  justify-content: flex-end;
}

.story-cancel-btn {
  background: var(--bg-darkest);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.story-cancel-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.story-submit-btn {
  background: #0a0a0a;
  border: none;
  border-radius: 10px;
  color: var(--bg-darkest);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.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 #17e0b0;
  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(23, 224, 176, 0.2), 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 10px rgba(23, 224, 176, 0.3);
}

.voice-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(23, 224, 176, 0.55);
}

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

.voice-play-btn svg {
  fill: #17e0b0;
}

.voice-player.playing .voice-play-btn {
  background: linear-gradient(135deg, #14E0C8, #00d4ff);
  box-shadow: 0 0 20px rgba(23, 224, 176, 0.7);
}
.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(23, 224, 176, 0.14);
  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.5);
}

.voice-player.playing .voice-waveform-bar.behind {
  background: rgba(23, 224, 176, 0.4);
}

.voice-player.playing .voice-waveform-bar.ahead {
  background: rgba(255, 255, 255, 0.08);
}

.voice-time {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  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: #0a0a0a;
  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: #0a0a0a;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 0 6px rgba(23, 224, 176, 0.4);
}

.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, #0a0e14 0%, #1a0a2e 40%, #0d1f3c 70%, #0a0e14 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.15);
}

.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: #0a0a0a;
  border-color: #2a2a2a;
  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.3), 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, #0a0e14 0%, #1a0a2e 40%, #0d1f3c 70%, #0a0e14 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(23, 224, 176, 0.4);
  border-radius: 8px;
  background: transparent;
  color: var(--accent, #17e0b0);
  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;
}
  font-size: 0.78rem;
}

/* 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, #171c24);
  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, #17e0b0);
}

.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, #2a2a2a);
}

.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, #171c24);
  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, #0a0a0a);
  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, rgba(20, 20, 30, 0.8));
  border: 1px solid rgba(98, 106, 117, 0.15);
  border-radius: 12px;
  padding: 16px;
}

.creator-dashboard-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--purple, #9aa2ad);
}

.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-video-meta {
  font-size: 0.72rem;
  color: var(--text-muted, #888);
}

.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 {
  padding: 4px 10px;
  border: 1px solid rgba(98, 106, 117, 0.3);
  background: transparent;
  color: var(--purple, #9aa2ad);
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s;
}

.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 #17e0b0;
  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.4);
}

.verify-badge.verify-fail {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.verify-badge.verify-unknown {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #ffffff;
  box-shadow: 0 0 6px rgba(107, 114, 128, 0.3);
}

/* 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: #17e0b0;
  font-size: 0.85rem;
  animation: mikuPulse 1.5s ease-in-out infinite;
}

.verify-loading .miku-spinner {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #17e0b0;
  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: #17e0b0 !important;
}

/* Miku verified badge — special teal glow */
.verified-badge.miku-verify-badge {
  background: linear-gradient(135deg, #0a0a0a, #171c24);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  animation: mikuGlow 2s ease-in-out infinite;
}

@keyframes mikuGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.7); }
}

/* 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.15);
  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.4);
}
@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: #171c24;
  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, #0a0a0a, #171c24);
  color: #fff;
}
.edit-save-btn:hover {
  box-shadow: 0 0 12px rgba(23, 224, 176, 0.3);
  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: #666666;
  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(23, 224, 176, 0.12);
}
.subnets-grid-kicker {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--riot);
  margin-bottom: 6px;
}
.subnets-grid-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  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(23, 224, 176, 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 12px rgba(23, 224, 176, 0.4);
}
.subnets-empty-title {
  font-family: 'Share Tech Mono', monospace;
  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%),
    #0a0e14;
  border: 1px solid rgba(23, 224, 176, 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(23, 224, 176, 0.4);
  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 20px rgba(23, 224, 176, 0.12),
    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: 'Share Tech Mono', monospace;
  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: 'Space Grotesk', sans-serif;
  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: 'Share Tech Mono', monospace;
  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: 'Share Tech Mono', monospace;
  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: 'Share Tech Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.subnets-filter-pill:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(23, 224, 176, 0.25);
}
.subnets-filter-pill.active {
  background: rgba(23, 224, 176, 0.12);
  color: var(--teal);
  border-color: rgba(23, 224, 176, 0.45);
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.12);
}
.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: 'Share Tech Mono', monospace;
  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(23, 224, 176, 0.12);
  color: var(--teal);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}
.subnet-join-btn:hover {
  background: var(--teal);
  color: #000;
  box-shadow: 0 0 14px rgba(23, 224, 176, 0.35);
}
.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: 'Share Tech Mono', monospace;
}

/* 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: 4px;
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
  margin: 6px 0;
  cursor: pointer;
  transition: all 0.2s;
}
.post-subnet-tag:hover {
  background: rgba(154, 162, 173, 0.1);
  border-color: rgba(154, 162, 173, 0.3);
  color: var(--text);
}

/* 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 #171c24;
  border-radius: 8px;
  transition: border-color 0.2s;
}
.sidebar-search-inline:focus-within {
  border-color: #2a2a2a;
}

/* 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;
}
.left-nav-section-header:hover {
  color: var(--text-dim, #a8a8a5);
}
.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;
}
.left-nav-account-row:hover {
  background: rgba(22, 28, 44, 0.9);
  border-color: rgba(98, 106, 117, 0.2);
}
.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-handle {
  font-size: 11px;
  color: var(--text-muted, #5f5e5a);
}

/* 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:hover {
  background: rgba(98, 106, 117, 0.1);
  color: var(--text, #e6f7fb);
}
.account-flyout-item.danger {
  color: var(--danger, #ff4757);
}
.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;
}
.fab-menu-item:hover {
  background: rgba(98, 106, 117, 0.1);
  color: var(--text, #e6f7fb);
}

/* 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.5);
}
.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: 'Share Tech Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #666666;
  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: #ff4757;
  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 #171c24;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 1px rgba(176, 38, 255, 0.3);
}

.tr-cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #171c24;
}

.tr-cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: 'Inter', system-ui, sans-serif, 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.tr-cmd-input::placeholder {
  color: #444;
}

.tr-cmd-results {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #171c24 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:hover,
.tr-cmd-result.selected {
  background: rgba(176, 38, 255, 0.08);
}

.tr-cmd-result.selected {
  border-left: 2px solid #17e0b0;
}

.tr-cmd-result-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
}

.tr-cmd-result.selected .tr-cmd-result-icon {
  color: #8b8d96;
}

.tr-cmd-result-label {
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 13px;
  color: #ccc;
}

.tr-cmd-result.selected .tr-cmd-result-label {
  color: #fff;
}

.tr-cmd-result-shortcut {
  margin-left: auto;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.05em;
}

.tr-cmd-footer {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid #171c24;
  background: #060609;
}

.tr-cmd-hint {
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 11px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-cmd-hint kbd {
  background: #0a0e14;
  border: 1px solid #171c24;
  padding: 2px 6px;
  font-size: 10px;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  color: #888;
}

.tr-cmd-empty {
  padding: 24px 20px;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  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: #0a0e14;
}

/* 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: #17e0b0 !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: #0a0e14;
  border: 1px solid #171c24;
  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: #2a2a2a;
}

/* ============================================================
   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 #171c24;
  display: flex;
}

.css-editor-textarea {
  flex: 1;
  background: #0a0e14;
  color: #666666;
  border: none;
  padding: 16px;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 13px;
  resize: none;
  outline: none;
  line-height: 1.6;
}

.css-editor-preview {
  flex: 1;
  background: #fff;
  border-left: 1px solid #171c24;
}

.css-editor-buttons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.css-editor-btn {
  background: transparent;
  border: 1px solid #171c24;
  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: #2a2a2a;
  color: #8b8d96;
}

.css-editor-btn.css-editor-save {
  background: #0a0a0a;
  color: #000;
  border: none;
}

.css-editor-btn.css-editor-save:hover {
  background: #0a0e14;
  border: 1px solid #17e0b0;
  color: #17e0b0;
}

/* Public Key Fingerprint */
.profile-key-fingerprint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #171c24;
  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: #0a0e14;
  border: 1px solid #171c24;
  padding: 16px;
  margin-bottom: 12px;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #666666;
  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, #0A0A0A);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   Verified Artist Badge
   ============================================================ */
.verified-artist-badge {
  font-family: 'Inter', system-ui, sans-serif, monospace;
  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;
  border: 1px solid #171c24;
  background: #0a0a0f;
  cursor: pointer;
  transition: all 150ms;
}

.eyevly-card:hover {
  border-color: #555;
  transform: translateY(-2px);
}

.eyevly-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0e14;
  border-bottom: 1px solid #171c24;
  position: relative;
  overflow: hidden;
}

.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.5);
  opacity: 0;
  transition: opacity 150ms;
}

.eyevly-card:hover .eyevly-play-overlay {
  opacity: 1;
}

.eyevly-play-label {
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #666666;
  letter-spacing: 0.1em;
  border: 1px solid #171c24;
  padding: 6px 16px;
}

.eyevly-info {
  padding: 10px 12px;
}

.eyevly-title {
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.eyevly-creator {
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 12px;
  color: #666666;
}

.eyevly-featured-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'Inter', system-ui, sans-serif, monospace;
  font-size: 10px;
  font-weight: 700;
  color: #8b8d96;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #171c24;
  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: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 16px;
}

/* ── MESH SCANNER (Trending) ─────────────────────────────── */
.mesh-scanner-header {
  font-family: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #17e0b0;
  padding: 10px 16px;
  border-bottom: 1px dashed #171c24;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px dashed #171c24;
}

.mesh-scanner-item:last-child {
  border-bottom: none;
}

.mesh-scanner-item:hover {
  background: #0A0A0A;
}

.mesh-scanner-item .hex-prefix {
  color: #888;
  min-width: 42px;
  flex-shrink: 0;
}

.mesh-scanner-item .tag-name {
  color: #17e0b0;
  font-weight: 700;
}

.mesh-scanner-item:hover .tag-name {
  color: #666666;
}

.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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #17e0b0;
  padding: 10px 16px;
  border-bottom: 1px dashed #171c24;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  border-bottom: 1px dashed #171c24;
}

.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: #17e0b0;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #17e0b0;
  padding: 10px 16px;
  border-bottom: 1px dashed #171c24;
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  border-bottom: 1px dashed #171c24;
}

.sysops-user:last-child {
  border-bottom: none;
}

.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: #0a0a0a;
  box-shadow: 0 0 4px rgba(23, 224, 176, 0.5);
  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: 'Share Tech Mono', 'SF Mono', 'Fira Code', monospace;
  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;
}

.right-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 0;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ============================================================
   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 {
  margin-bottom: 36px;
}

.foyer-mark-img {
  display: block;
  margin: 0 auto 18px;
  filter: brightness(1.12) drop-shadow(0 0 28px rgba(23, 224, 176, 0.25));
}

.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 {
  padding: 16px;
}

.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-powered { margin-top: 8px; }
.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-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.eyevly-cinema-credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.eyevly-cinema-edit-btn {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--riot);
  color: var(--riot);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.eyevly-cinema-edit-btn:hover {
  background: var(--riot);
  color: #05070b;
}

.eyevly-cinema-body { padding: 8px 16px 0; }

.eyevly-cinema-section { margin-top: 20px; }

.eyevly-cinema-section-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 8px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.eyevly-cinema-empty {
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-display);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.eyevly-grid-bleed {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}

.eyevly-card-featured {
  border-color: rgba(37, 44, 54, 0.35);
}

.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(23, 224, 176, 0.4);
}

.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;
}

body {
  background: #000000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid rgba(23, 224, 176, 0.72);
  outline-offset: 3px;
}

.app-shell.active {
  position: relative;
  isolation: isolate;
}

.main-content {
  border-top: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), transparent 24%, transparent 76%, rgba(37, 44, 54, 0.012));
}

/* Navigation: calm glass frame with one precise active rail. */
.left-nav {
  left: 0;
  background: rgba(5, 7, 10, 0.86);
  border-right-color: var(--line-soft);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.2);
  padding: 18px 12px 16px;
}

.left-nav .brand {
  padding: 2px 10px 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.left-nav .brand img {
  border-radius: 10px !important;
  box-shadow: 0 0 18px rgba(23, 224, 176, 0.16);
}

.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(23, 224, 176, 0.42) !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 {
  background: linear-gradient(90deg, rgba(23, 224, 176, 0.12), rgba(255, 255, 255, 0.013)) !important;
  border-left-color: var(--teal) !important;
  color: var(--teal) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 22px rgba(0, 0, 0, 0.12);
}

.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;
}

.left-nav-account-row {
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.left-nav-account-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-soft);
}

/* Feed rhythm: a readable editorial column rather than a terminal dump. */
.feed-center {
  max-width: 700px;
  padding: 24px 20px 88px;
  border-left: 1px solid #1f262c;
  border-right: 1px solid #1f262c;
}

.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 {
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  transition: color 0.18s ease, background 0.18s ease;
}

.feed-tabs button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.feed-tabs button.active {
  color: var(--text);
}

.feed-tabs button.active::after {
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--riot));
  box-shadow: 0 0 12px rgba(23, 224, 176, 0.28);
}

.post-card {
  position: relative;
  background: #0f1419;
  border: 1px solid #1f262c;
  border-radius: 16px;
  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-card::before {
  display: none;
}

.post-card:hover {
  background: #131920;
  border-color: #2a3238;
}

.post-header .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border-color: rgba(23, 224, 176, 0.24);
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.16), rgba(37, 44, 54, 0.14));
}

.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 #1f262c;
}

.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:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  transform: translateY(-1px);
}

.post-actions button.liked,
.post-actions button.btn-repost.reposted,
.post-actions button.btn-save.saved {
  color: var(--teal);
}

.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: clean, premium widgets */
.right-sidebar {
  right: 0;
  background: #000000;
  border-left: 1px solid #1a1a1a;
  padding: 20px 16px;
}

.right-sidebar .sidebar-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 16px;
}

.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;
}

.linkedin-compose-input:hover,
.composer textarea:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-bright);
}

.composer textarea:focus,
.linkedin-compose-input:focus {
  border-color: rgba(23, 224, 176, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.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(23, 224, 176, 0.14), 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, #5ce8d4, var(--teal));
  color: #04100d;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 224, 176, 0.22), 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(23, 224, 176, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 255, 255, 0.05);
}

.post-fab:hover {
  border-color: var(--teal);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), 0 0 26px rgba(23, 224, 176, 0.2);
  transform: translateY(-3px) rotate(3deg);
}

/* Creator profiles: identity-led hero with clear stats and tabs. */
.profile-header,
.creator-profile-header {
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 224, 176, 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(23, 224, 176, 0.46);
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.2), 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);
}

.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(23, 224, 176, 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(23, 224, 176, 0.5);
  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);
}

.profile-content-tabs button.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* 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: #17e0b0;
  --teal-soft: #5ce8d4;
  --teal-dim: #171c24;
  --riot: #171c24;
  --riot-dim: #171c24;
  --text: #eef1f5;
  --text-dim: #a6b4cc;
  --text-muted: #5e6c85;
  --text-very-muted: #3d4a61;
  --font-editorial: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: #000000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  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(23, 224, 176, 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 22px rgba(23, 224, 176, 0.4);
}

.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 30px rgba(23, 224, 176, 0.28));
}

.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(23, 224, 176, 0.3); }
.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);
}

.post-card:hover {
  border-color: var(--line-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 42px rgba(0, 0, 0, 0.24);
}

.feed-center { max-width: 720px; }

@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(23, 224, 176, 0.2);
  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 .nullxre-search-input-wrap:focus-within {
  border-color: rgba(23, 224, 176, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.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 .scope-tabs button.active {
  background: rgba(154, 162, 173, 0.16);
  color: var(--text);
}

.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 .tag-name,
.right-sidebar #trending-widget .status-online,
.right-sidebar #trending-widget .surge-city {
  color: var(--teal);
}

.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 5px rgba(23, 224, 176, 0.45));
  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-tab.active {
  color: #03110e;
  background: linear-gradient(135deg, #3ce8b0, var(--teal));
  box-shadow: 0 4px 14px rgba(23, 224, 176, 0.22);
}

.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(23, 224, 176, 0.14);
  border-color: rgba(23, 224, 176, 0.32);
  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 6px rgba(23, 224, 176, 0.5);
  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 8px rgba(23, 224, 176, 0.7);
  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 8px rgba(23, 224, 176, 0.7);
}

.radar-sysop-dot.admin {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(176, 38, 255, 0.7);
}

.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(23, 224, 176, 0.5), rgba(176, 38, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-composer:focus-within::after {
  opacity: 1;
}

.main-composer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.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;
}

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

.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.05rem;
  font-weight: 400;
  line-height: 1.6;
  padding: 10px 0 4px;
  color: rgba(244, 240, 248, 0.92);
  z-index: 1;
}

.composer-highlight .hl-tag {
  color: #5ce8d4;
  font-weight: 600;
}

.composer-highlight .hl-mention {
  color: #b06fff;
  font-weight: 600;
}

.main-composer #composer-text {
  position: relative;
  z-index: 2;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  color: transparent;
  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 .composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.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: #5ce8d4;
  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, #5ce8d4, #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(23, 224, 176, 0.22);
}

.main-composer .btn-post:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 26px rgba(23, 224, 176, 0.32);
}

.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.8);
}

.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: #ff4757;
}

.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 16px rgba(23, 224, 176, 0.16);
  --ice-glow-strong: 0 0 22px rgba(23, 224, 176, 0.28);
}

/* ── Global quiet polish ─────────────────────────────────── */
.app-shell {
  scrollbar-color: rgba(23, 224, 176, 0.22) transparent;
}
.app-shell ::selection {
  background: rgba(23, 224, 176, 0.22);
  color: var(--text);
}
.app-shell button:focus-visible,
.app-shell input:focus-visible,
.app-shell textarea:focus-visible,
.app-shell a:focus-visible,
.app-shell [tabindex]:focus-visible {
  outline: 2px solid rgba(23, 224, 176, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}
.feed-center { scrollbar-gutter: stable; }
.feed-center::-webkit-scrollbar { width: 8px; }
.feed-center::-webkit-scrollbar-thumb { background: rgba(23, 224, 176, 0.14); border-radius: 4px; }

/* ── Left nav ────────────────────────────────────────────── */
.left-nav { padding: 18px 14px 16px; }

.left-nav .brand {
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.left-nav .brand img { border-radius: 6px; }

.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: var(--teal);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(23, 224, 176, 0.35);
}

.left-nav-item {
  color: var(--text-dim);
  border-left: 3px solid transparent;
  padding: 10px 12px 10px 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.left-nav-item .nav-index {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-very-muted);
  min-width: 22px;
  text-align: right;
  transition: color 0.15s ease;
}
.left-nav-item:hover {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border-left-color: rgba(23, 224, 176, 0.35);
}
.left-nav-item:hover .nav-index { color: var(--teal-dim); }
.left-nav-item.active {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-left-color: var(--teal);
  box-shadow: inset 2px 0 0 rgba(23, 224, 176, 0.4);
}
.left-nav-item.active .nav-index { color: var(--teal); }
.left-nav-item.active#nav-eyeplay,
#nav-eyeplay:hover {
  border-left-color: var(--riot);
  background: rgba(37, 44, 54, 0.06);
}
#nav-eyeplay.active {
  box-shadow: inset 2px 0 0 rgba(37, 44, 54, 0.4);
}

.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-section-header:hover { color: var(--text-dim); }

.sidebar-search-inline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 14px;
}
.sidebar-search-inline:focus-within {
  border-color: rgba(23, 224, 176, 0.5);
  box-shadow: var(--ice-glow);
}

.left-nav-account-row {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}
.left-nav-account-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-bright);
}
.account-avatar {
  border-radius: 6px;
  background: linear-gradient(135deg, #0a0a0a, #171c24);
  color: #0a0e14;
  box-shadow: 0 0 0 1px rgba(23, 224, 176, 0.25);
}
.account-name { color: var(--text); }
.account-handle { color: var(--text-muted); }

.account-flyout {
  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);
}
.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:hover { color: var(--text-dim); }
.feed-tabs button.active { color: var(--text); }
.feed-tabs button.active .tab-index { color: var(--teal); }
.feed-tabs button.active::after {
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(23, 224, 176, 0.15));
  border-radius: 2px;
}

.post-card { border-radius: 8px; }
.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(23, 224, 176, 0.14), 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(23, 224, 176, 0.45);
}
.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: var(--text-muted);
  border-radius: 999px;
  padding: 5px 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.post-actions button:hover {
  color: var(--teal);
  background: rgba(255, 255, 255, 0.03);
}
.post-actions button.liked,
.post-actions button.liked:hover { color: var(--riot); }
.post-actions button.btn-repost.reposted,
.post-actions button.btn-repost.reposted:hover { color: var(--teal); }

.quote-card {
  border-left: 3px solid rgba(37, 44, 54, 0.55);
  border-color: var(--line-soft);
  border-radius: 8px;
  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); }

.post-subnet-tag {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Composer (in-flow + modal) ──────────────────────────── */
.main-composer { padding: 20px 4px 0; }
.main-composer::after {
  background: linear-gradient(90deg, rgba(23, 224, 176, 0.55), rgba(37, 44, 54, 0.3), transparent);
}
.main-composer-avatar {
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.12), rgba(37, 44, 54, 0.1));
  border: 1px solid var(--line-soft);
}
.composer-highlight .hl-tag { color: var(--teal); }
.composer-highlight .hl-mention { color: var(--riot); }

.compose-modal {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.compose-modal-header {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.composer, .inline-reply-composer {
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
}
.composer textarea:focus, .inline-reply-composer textarea:focus { border-color: rgba(23, 224, 176, 0.45); }

.btn-post {
  background: var(--teal);
  color: #0a0e14;
  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(23, 224, 176, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn-post:hover:not(:disabled) {
  background: var(--teal-soft);
  color: #0a0e14;
  box-shadow: 0 6px 20px rgba(23, 224, 176, 0.3);
}
.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: var(--teal); }
.char-counter.danger { color: var(--danger); }

.draft-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(23, 224, 176, 0.2);
  color: var(--text-dim);
}
.draft-chip-dot {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(23, 224, 176, 0.7);
}
.draft-chip-discard { color: var(--text-muted); }

/* ── RADAR sidebar ───────────────────────────────────────── */
.radar-card { border-radius: 12px; }
.radar-glyph { filter: drop-shadow(0 0 5px rgba(23, 224, 176, 0.4)); }
.radar-tab.active {
  color: #0a0e14;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  box-shadow: 0 4px 14px rgba(23, 224, 176, 0.22);
}
.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(23, 224, 176, 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(23, 224, 176, 0.48);
  box-shadow: var(--ice-glow);
}
.right-sidebar #trending-widget .scope-tabs button.active {
  background: rgba(23, 224, 176, 0.14);
  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(23, 224, 176, 0.35);
  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 24px rgba(23, 224, 176, 0.12);
}
.post-fab:hover {
  border-color: var(--teal);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4), 0 0 26px rgba(23, 224, 176, 0.22);
}
.post-fab .fab-icon { color: var(--teal); filter: none; }
.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 8px rgba(23, 224, 176, 0.5);
}

/* ── 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(23, 224, 176, 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(23, 224, 176, 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;
}
.search-result:hover { background: rgba(255, 255, 255, 0.025); }

.reply-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.stories-track::-webkit-scrollbar { height: 4px; }
.stories-track::-webkit-scrollbar-thumb { background: rgba(23, 224, 176, 0.15); 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(23, 224, 176, 0.5), 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, #5ce8d4, #0a0a0a, #171c24);
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.16);
}
.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, #5ce8d4, #0a0a0a, #171c24); }
  25%  { background: linear-gradient(90deg, #5ce8d4, #0a0a0a, #171c24); }
  50%  { background: linear-gradient(180deg, #5ce8d4, #0a0a0a, #171c24); }
  75%  { background: linear-gradient(270deg, #5ce8d4, #0a0a0a, #171c24); }
  100% { background: linear-gradient(360deg, #5ce8d4, #0a0a0a, #171c24); }
}
.story-ring--add {
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.55), rgba(37, 44, 54, 0.4));
}
.story-add-icon { color: var(--teal); text-shadow: 0 0 8px rgba(23, 224, 176, 0.4); }
.story-ring--demo { background: rgba(23, 224, 176, 0.25); }
.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 {
  border: 1px solid var(--line-soft) !important;
  border-radius: 8px !important;
  background: var(--surface-1) !important;
}
.link-preview-card:hover { border-color: var(--line-bright) !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-body { font-size: 0.84rem; line-height: 1.45; }
.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(23, 224, 176, 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: 48px; }
.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(23, 224, 176, 0.4);
  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(23, 224, 176, 0.28), 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(23, 224, 176, 0.16), 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: var(--riot); }
.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-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.14), rgba(37, 44, 54, 0.1));
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
}
.thread-reply-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thread-reply-composer-body { flex: 1; min-width: 0; }
.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;
  transition: border-color 0.2s;
}
.thread-reply-composer textarea:focus {
  outline: none;
  border-bottom-color: rgba(23, 224, 176, 0.5);
}
.thread-reply-composer textarea::placeholder { color: var(--text-very-muted); }
.thread-reply-composer .composer-footer {
  border-top: none;
  margin-top: 4px;
  padding-top: 4px;
}

/* ── 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: 8px;
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.35), 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: #0a0e14;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 9px 22px;
  box-shadow: 0 4px 16px rgba(23, 224, 176, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.profile-header .btn-follow:hover {
  background: var(--teal-soft);
  color: #0a0e14;
  box-shadow: 0 6px 20px rgba(23, 224, 176, 0.3);
}
.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(23, 224, 176, 0.5);
  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(23, 224, 176, 0.5);
  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(23, 224, 176, 0.4);
  color: var(--teal);
}

.profile-content-tabs {
  background: transparent;
  border: 1px solid var(--line-soft);
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.profile-content-tabs button {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 10px 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid transparent;
}
.profile-content-tabs button .tab-index {
  font-size: 0.54rem;
  color: var(--text-very-muted);
}
.profile-content-tabs button:hover { color: var(--text-dim); }
.profile-content-tabs button.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.profile-content-tabs button.active .tab-index { color: var(--teal); }

.profile-link-chip {
  border-color: var(--line-soft);
  color: var(--text-dim);
}
.profile-link-chip:hover {
  border-color: rgba(23, 224, 176, 0.4);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.02);
}

.wallet-display {
  border-color: rgba(23, 224, 176, 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 1px rgba(23, 224, 176, 0.12);
}
.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(23, 224, 176, 0.45);
  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(23, 224, 176, 0.16), rgba(37, 44, 54, 0.12));
  border: 1px solid var(--line-soft);
}
.dm-float-msg-me .dm-float-msg-bubble {
  background: var(--teal);
  color: #0a0e14;
  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(23, 224, 176, 0.45);
  box-shadow: var(--ice-glow);
}
.dm-float-send {
  background: var(--teal);
  color: #0a0e14;
  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(23, 224, 176, 0.22);
  transition: background 0.15s, box-shadow 0.15s;
}
.dm-float-send:hover { background: var(--teal-soft); box-shadow: 0 6px 18px rgba(23, 224, 176, 0.3); }
.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(23, 224, 176, 0.18);
  border-radius: 4px;
}
.app-shell ::-webkit-scrollbar-thumb:hover,
.app-shell *::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 224, 176, 0.32);
}

.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: rgba(23, 224, 176, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
  outline: none;
}
.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 {
  padding: 20px 4px 18px;
  margin-bottom: 8px;
}
.tr-masthead-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 9px;
}
.tr-masthead-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  text-transform: none;
}
.tr-masthead-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--teal);
}
.tr-masthead::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(23, 224, 176, 0.5), var(--line-soft), transparent);
}

/* 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);
}

/* ── 2. Notifications — the signal log ────────────────────── */
#notif-list { margin-top: 2px; }

.app-shell .notif-section-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 4px 8px;
  margin-top: 10px;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--surface-0) 62%, transparent);
  border: none;
}
.app-shell .notif-section-header::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 8px;
  background: var(--line-soft);
}

.app-shell .notif-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 12px 15px 14px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  transition: background 0.16s ease, transform 0.16s var(--ease-out);
}
.app-shell .notif-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
/* Unread reads as a live rail, not a purple wash. */
.app-shell .notif-item.notif-unread {
  background: rgba(255, 255, 255, 0.018);
  border-left: none;
}
.app-shell .notif-item.notif-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--ice-rail);
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.4);
}
.app-shell .notif-item.notif-unread .notif-text strong { color: var(--text); }

.app-shell .notif-item .avatar { border-radius: 6px; }
.app-shell .notif-content { flex: 1; min-width: 0; }
.app-shell .notif-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.app-shell .notif-text strong {
  color: var(--text);
  font-weight: 600;
  transition: color 0.15s;
}
.app-shell .notif-item:hover .notif-text strong { color: var(--teal); }
.app-shell .notif-time {
  margin-top: 4px;
  color: var(--text-very-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}
.app-shell .notif-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.16s, background 0.16s;
}
.app-shell .notif-icon svg { width: 15px; height: 15px; }
.app-shell .notif-item:hover .notif-icon {
  border-color: rgba(23, 224, 176, 0.34);
  background: rgba(255, 255, 255, 0.045);
}
/* Type-coded: affection is riot, structure is ice. */
.app-shell .notif-item[data-type="like"] .notif-icon {
  background: rgba(37, 44, 54, 0.07);
  border-color: rgba(37, 44, 54, 0.2);
}
.app-shell .notif-item[data-type="like"]:hover .notif-icon {
  border-color: rgba(37, 44, 54, 0.42);
  background: rgba(37, 44, 54, 0.12);
}

/* ── 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(23, 224, 176, 0.36);
  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: #0a0e14;
  box-shadow: 0 4px 16px rgba(23, 224, 176, 0.28);
}
.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(23, 224, 176, 0.18), 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(23, 224, 176, 0.4);
  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.22);
}
.eyevly-cinema-tagline {
  margin: 16px 0 0;
  color: var(--riot);
  font-family: var(--font-editorial);
  font-style: italic;
  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.18);
}

.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(23, 224, 176, 0.36);
  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.14);
}
.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-play-label {
  border: 1px solid rgba(23, 224, 176, 0.5);
  border-radius: 999px;
  padding: 8px 20px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  background: rgba(6, 10, 18, 0.6);
}
.eyevly-info { padding: 14px 15px 16px; }
.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 {
  border-bottom: 1px solid var(--line-soft);
  gap: 2px;
}
.settings-tab {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.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(23, 224, 176, 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(23, 224, 176, 0.45);
  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(23, 224, 176, 0.5);
  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 {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.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: #0a0e14;
  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(23, 224, 176, 0.22);
  border-bottom: 2px solid rgba(23, 224, 176, 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(23, 224, 176, 0.15));
}
.thread-replies .reply-card:hover::after {
  border-color: rgba(23, 224, 176, 0.5);
}
.thread-replies .reply-card:last-child::before {
  bottom: auto;
  height: 26px;
}

/* Reading progress for long threads — pure scroll-driven CSS,
   silently absent on engines that don't support it. */
@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 10px rgba(23, 224, 176, 0.4);
    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(23, 224, 176, 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.025) 30%,
    rgba(23, 224, 176, 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.42rem; }

  .app-shell .page-card { padding: 0 2px 90px; }
  .app-shell .page-title { font-size: 1.35rem; }

  .app-shell .notif-item { padding: 13px 6px 13px 12px; gap: 11px; }
  .app-shell .notif-icon { width: 26px; height: 26px; }
  .app-shell .notif-text { font-size: 0.86rem; }

  .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 1px rgba(23, 224, 176, 0.28), 0 0 12px rgba(23, 224, 176, 0.12);
}
.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;
}

.left-nav .brand {
  padding: 2px 6px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(238, 241, 245, 0.10);
}

.tr-brand {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}
.tr-brand-riot {
  text-shadow: 0 0 22px rgba(23, 224, 176, 0.4);
}

.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(23, 224, 176, 0.42);
  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-item:hover {
  background: rgba(255, 255, 255, 0.028);
  border-left-color: rgba(23, 224, 176, 0.45);
}
.left-nav-item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border-left-color: var(--teal);
  box-shadow: inset 2px 0 0 rgba(23, 224, 176, 0.55);
  font-weight: 600;
}
.left-nav-item.active#nav-eyeplay,
#nav-eyeplay:hover {
  background: linear-gradient(90deg, rgba(37, 44, 54, 0.10), rgba(37, 44, 54, 0.02));
}

.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;
}
.left-nav-account-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(23, 224, 176, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), var(--ice-glow);
}
.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(23, 224, 176, 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 em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  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(23, 224, 176, 0.5);
  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(23, 224, 176, 0.4);
  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: #0a0e14;
  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(23, 224, 176, 0.35);
  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: #0a0e14;
  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 18px rgba(23, 224, 176, 0.22);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.story-submit-btn:hover {
  background: var(--teal-soft);
  box-shadow: 0 0 24px rgba(23, 224, 176, 0.32);
  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 — closer to pure black, less glass fog */
.app-shell.active {
  background: #05070b !important;
}
.feed-center,
.feed-main,
.feed-layout {
  background: transparent;
}

/* ── Left nav: Threads air, X Post pill ─────────────────── */
.left-nav {
  background: #05070b !important;
  border-right: 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;
  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: 26px !important;
  height: 26px !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 */
.nav-post-btn {
  display: block;
  width: 100%;
  margin: 14px 0 10px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.nav-post-btn:hover {
  background: #e8eef8;
  transform: translateY(-1px);
}
.nav-post-btn:active { transform: translateY(0); }

/* 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: #0a0e14 !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  box-shadow: none !important;
}
.main-composer .btn-post:disabled {
  opacity: 0.35;
}

/* ── 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;
}
.post-card .post-image img,
.post-card .post-video video {
  border-radius: 16px;
  display: block;
  width: 100%;
}

.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: var(--riot) !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: #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 16px 24px !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: #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 14px 28px !important;
  overflow-y: auto;
}

.discover-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.discover-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.discover-card.sticky,
.discover-search.sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(8, 10, 16, 0.92);
  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-row input::placeholder {
  color: var(--text-muted);
}

.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:hover,
.discover-rail .radar-tab:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.discover-tab.active,
.discover-rail .radar-tab.active {
  color: #0a0a0a !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: 14px 16px 6px;
}

.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, #5ce8d4);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(23, 224, 176, 0.22);
}

.discover-card-body {
  padding: 4px 0 8px;
}

.discover-empty {
  padding: 14px 16px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Trending rows — Threads calm */
.discover-trend-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}
.discover-trend-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.discover-trend-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.discover-trend-meta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-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: #0a0a0a;
  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-follow-btn:hover { background: #e8eef8; }
.discover-follow-btn.following {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.discover-more-btn {
  display: block;
  width: 100%;
  padding: 10px 16px 14px;
  border: none;
  background: transparent;
  color: var(--teal, #17e0b0);
  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 .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: #17e0b0;
  text-shadow: 0 0 18px rgba(23, 224, 176, 0.35);
  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, filter 0.18s ease;
  box-shadow: 0 0 0 1px rgba(23, 224, 176, 0.12), 0 0 18px rgba(23, 224, 176, 0.12);
  filter: drop-shadow(0 0 6px rgba(20, 224, 200, 0.25));
}
.left-nav .brand:hover .brand-mark {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(23, 224, 176, 0.35), 0 0 22px rgba(37, 44, 54, 0.18);
  filter: drop-shadow(0 0 10px rgba(20, 224, 200, 0.45));
}

/* ═══════════════════════════════════════════════════════════
   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: rails flush to the feed (X-style centered trio) */
@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;
    gap: 0 !important;
    width: 100%;
  }

  .left-nav {
    position: sticky !important;
    left: auto !important;
    top: 0 !important;
    align-self: flex-start;
    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;
  }

  .feed-center {
    flex: 0 1 600px;
    width: 100%;
    max-width: 600px !important;
    min-width: 0;
    margin: 0 !important;
    border-left: 1px solid var(--line-soft, var(--border));
    border-right: 1px solid var(--line-soft, var(--border));
  }

  .app-shell.active .right-sidebar,
  .right-sidebar {
    position: sticky !important;
    right: auto !important;
    top: 0 !important;
    align-self: flex-start;
    flex: 0 0 var(--right-sidebar-w);
    width: var(--right-sidebar-w) !important;
    min-width: var(--right-sidebar-w) !important;
    height: 100vh;
    max-height: 100vh;
    display: flex !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: #17e0b0;
  text-shadow: 0 0 18px rgba(23, 224, 176, 0.35);
  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 1px rgba(23, 224, 176, 0.12), 0 0 18px rgba(23, 224, 176, 0.12);
}
.left-nav .brand:hover .brand-mark {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(23, 224, 176, 0.35), 0 0 22px rgba(37, 44, 54, 0.18);
}

/* ═══════════════════════════════════════════════════════════
   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;
}
.post-card:hover {
  background: rgba(17, 24, 21, 0.94);
  border-color: rgba(23, 224, 176, 0.18);
}

/* 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 2px rgba(23, 224, 176, 0.22), 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: #17e0b0;
  }
  .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;
}
.composer textarea:focus {
  border-color: rgba(23, 224, 176, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}
.composer .btn-post {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 100%);
  color: #000000;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
}

/* Right rail search — breathing room for the inset input */
#search-input { padding: 0 12px !important; }
.discover-search-row { gap: 12px; padding: 13px 16px; }
.discover-search-row svg { opacity: 0.9; }

/* 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 18px rgba(23, 224, 176, 0.35) !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 #171c24;
  border-left: 3px solid #17e0b0;
  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:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(23, 224, 176, 0.45);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04), 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 18px rgba(23, 224, 176, 0.12);
  transform: translateY(-2px);
}
.post-fab:active { transform: scale(0.96) translateY(0); }
.post-fab .fab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  filter: none;
  color: #17e0b0;
}
.post-fab .fab-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
@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: #17e0b0;
  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: #17e0b0;
}
.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: #17e0b0;
  background: rgba(255, 255, 255, 0.04);
}
.inline-thread-actions .btn-like-reply.liked {
  color: #17e0b0;
}
.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: #17e0b0;
  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(23, 224, 176, 0.12);
}
.inline-thread-branch {
  margin: 4px 0 6px 10px;
  padding-left: 12px;
  border-left: 2px solid rgba(23, 224, 176, 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-card:hover {
  border-color: rgba(23, 224, 176, 0.16);
}

.discover-search.sticky,
.discover-card.sticky {
  background: rgba(13, 18, 16, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.discover-search-row svg {
  opacity: 1;
  color: rgba(23, 224, 176, 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(23, 224, 176, 0.12) !important;
  box-shadow: inset 0 0 0 1px rgba(23, 224, 176, 0.25), 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;
}

.discover-trend-row:hover {
  background: rgba(255, 255, 255, 0.025);
}
.discover-trend-tag {
  color: #eef1f5;
}

.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 2px rgba(23, 224, 176, 0.18), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.discover-follow-name {
  color: #eef1f5;
}
.discover-follow-btn {
  background: #0a0a0a;
  color: #0a0e14;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 14px rgba(23, 224, 176, 0.14);
}
.discover-follow-btn:hover {
  background: #5ce8d4;
  color: #0a0e14;
}
.discover-follow-btn.following {
  background: transparent;
  color: #eef1f5;
  box-shadow: inset 0 0 0 1px rgba(23, 224, 176, 0.35);
}
.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 — brand teal pill (was X-white) */
.nav-post-btn {
  background: linear-gradient(135deg, #0a0a0a, #171c24);
  color: #0a0e14;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(23, 224, 176, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s var(--ease-out, ease), box-shadow 0.18s ease, background 0.18s ease;
}
.nav-post-btn:hover {
  background: linear-gradient(135deg, #5ce8d4, #0a0a0a);
  color: #0a0e14;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(23, 224, 176, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.nav-post-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Composer — purge leftover purple/blue accents */
.main-composer::after {
  background: linear-gradient(90deg, rgba(23, 224, 176, 0.55), rgba(37, 44, 54, 0.5), transparent);
}
.main-composer-avatar {
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.16), rgba(37, 44, 54, 0.1));
  border: 1px solid rgba(23, 224, 176, 0.25);
}
.composer-highlight .hl-mention {
  color: #17e0b0;
}
.main-composer .btn-post {
  background: linear-gradient(135deg, #5ce8d4, #17e0b0 60%, #171c24);
  color: #0a0e14;
}

/* 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 {
  background: linear-gradient(165deg, rgba(17, 26, 22, 0.9), rgba(9, 14, 12, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.015);
}
.discover-card:hover {
  border-color: rgba(23, 224, 176, 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(23, 224, 176, 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(23, 224, 176, 0.12);
  border-color: rgba(23, 224, 176, 0.4);
}
.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);
}

.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: #17e0b0; }
.app-shell ::selection {
  background: rgba(23, 224, 176, 0.28);
  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-card:hover {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 14px 40px -18px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.025);
}
.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(23, 224, 176, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.035),
    0 18px 44px -20px rgba(0, 0, 0, 0.65) !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 [tabindex]:focus-visible {
  outline: 2px solid rgba(23, 224, 176, 0.55) !important;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── 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, #0a0a0a, #171c24);
  box-shadow: 0 0 12px rgba(23, 224, 176, 0.45);
}

/* ── 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(23, 224, 176, 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(23, 224, 176, 0.18) !important;
}
.eyevly-card-featured:hover {
  border-color: rgba(23, 224, 176, 0.34) !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: #17e0b0 !important;
  background: rgba(4, 16, 13, 0.78) !important;
  border: 1px solid rgba(23, 224, 176, 0.35) !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 10px rgba(23, 224, 176, 0.12);
}

/* 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 + empty state */
.eyevly-cinema-hero {
  border-bottom: 1px solid rgba(238, 241, 245, 0.06) !important;
}
.eyevly-cinema-empty {
  border: 1px dashed rgba(23, 224, 176, 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 ──────────────────────────────────── */
@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
   ═══════════════════════════════════════════════════════════ */

/* Group cards — one per time bucket */
.notif-group {
  background: linear-gradient(170deg, rgba(17, 26, 22, 0.72), rgba(8, 13, 11, 0.88));
  border: 1px solid rgba(238, 241, 245, 0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 10px 30px -20px rgba(0, 0, 0, 0.55);
}
.notif-items { display: flex; flex-direction: column; }

/* Section header — card cap with teal rail accent */
.notif-section-header {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display) !important;
  font-size: 0.82rem !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none !important;
  color: #eef1f5 !important;
  padding: 14px 18px 10px !important;
  border-bottom: 1px solid rgba(238, 241, 245, 0.06) !important;
  background: transparent !important;
}
.notif-section-header::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0a0a0a, #171c24);
  box-shadow: 0 0 10px rgba(23, 224, 176, 0.4);
}

/* Items — sleek rows inside the card */
.notif-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 13px 18px !important;
  border-bottom: 1px solid rgba(238, 241, 245, 0.045) !important;
  border-left: 3px solid transparent !important;
  border-radius: 0;
  transition: background 0.18s ease, border-color 0.18s ease !important;
  background: transparent;
}
.notif-item:last-child { border-bottom: none !important; }
.notif-item:hover {
  background: rgba(255, 255, 255, 0.025) !important;
}

/* Avatar ring */
.notif-item .avatar {
  border: 1.5px solid rgba(238, 241, 245, 0.12);
  box-shadow: 0 0 0 0 rgba(23, 224, 176, 0);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.notif-item:hover .avatar {
  border-color: rgba(23, 224, 176, 0.32);
  box-shadow: 0 0 14px -4px rgba(23, 224, 176, 0.3);
}

/* Unread — teal rail + tint + dot */
.notif-item.notif-unread {
  border-left-color: #17e0b0 !important;
  background: rgba(255, 255, 255, 0.022) !important;
}
.notif-item.notif-unread:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}
.notif-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0a0a;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(23, 224, 176, 0.6);
  animation: notif-pulse 2.4s ease-in-out infinite;
}
@keyframes notif-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Text + time */
.notif-text { font-size: 0.9rem; line-height: 1.45; }
.notif-text strong { color: #eef1f5 !important; }
.notif-time {
  font-size: 0.74rem !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
}

/* Icon chip — teal glass (replaces leftover purple) */
.notif-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(23, 224, 176, 0.18) !important;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.notif-icon svg { filter: drop-shadow(0 0 4px rgba(23, 224, 176, 0.35)); }

/* Press feedback */
.notif-item:active { transform: scale(0.995); }

/* 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: #0a0e14;
  --bg-card: #0b1018;
  --bg-input: #0a0e14;
  --bg: #0a0e14;
  --nav-bg: #0a0e14;
  --bg-darker: #05070b;
  --teal: #17e0b0;
  --teal-soft: #5ce8d4;
  --teal-glow: 0 0 16px rgba(23, 224, 176, 0.4);
  /* real riot magenta accent (was muddy dark-green) */
  --purple: #ff3d8f;
  --purple-dim: #c02a6e;
  --purple-soft: #ff6fb0;
  --purple-glow: 0 0 16px rgba(255, 61, 143, 0.35);
  --riot: #ff3d8f;
  --riot-dim: #c02a6e;
  --blue: #17e0b0;
  --blue-soft: #5ce8d4;
  --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: 'Inter', system-ui, -apple-system, sans-serif;
  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: #0a0e14;
  --bg-input: #0a0e14;
  --bg: #05070b;
  --nav-bg: #05070b;
  --bg-darker: #000000;
  --teal: #17e0b0;
  --teal-dim: #0f9e7a;
  --teal-dark: #052e24;
  --teal-soft: #5ce8d4;
  --teal-glow: 0 0 14px rgba(23, 224, 176, 0.28);
  --purple: #ff3d8f;
  --purple-dim: #b3256a;
  --purple-soft: #ff7cbc;
  --purple-glow: 0 0 14px rgba(255, 61, 143, 0.25);
  --riot: #ff3d8f;
  --riot-dim: #b3256a;
  --blue: #17e0b0;
  --blue-dim: #0f9e7a;
  --blue-soft: #5ce8d4;
  --text: #eef1f5;
  --text-dim: #9aa2ad;
  --text-muted: #626a75;
  --text-very-muted: #3b424d;
  --border: #171c24;
  --border-hover: #252c36;
  --hover-bg: rgba(255, 255, 255, 0.035);
  --danger: #ff4757;
  --radius: 14px;
  --radius-sm: 10px;
  --accent: #17e0b0;
  --accent-glow: rgba(23, 224, 176, 0.14);
  --accent-text: #5ce8d4;
}

/* Base surface — clean black, restrained ambient light */
body {
  background: #000000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
}

/* Composer — clean, single card */
.composer {
  background: #0a0e14 !important;
  border: 1px solid #171c24 !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
}
.composer textarea {
  border-color: transparent !important;
  background: transparent !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.95rem !important;
}
.composer textarea:focus { border-color: transparent !important; }
.composer .btn-post {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 100%);
  color: #000000;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.composer .btn-post:hover { color: #02100c !important; background: var(--teal-soft) !important; }
.char-counter { color: #4a525c !important; font-family: 'Inter', system-ui, sans-serif, monospace !important; }

/* Feed tabs — clean underline */
.feed-tabs { border-bottom: 1px solid #171c24 !important; }
.feed-tabs button { font-family: 'Inter', system-ui, sans-serif !important; color: #626a75 !important; font-weight: 600 !important; font-size: 14px !important; padding: 14px 18px !important; }
.feed-tabs button:hover { color: #aab2bc !important; }
.feed-tabs button.active { color: #eef1f5 !important; }
.feed-tabs button.active::after { background: var(--teal) !important; height: 2px !important; }

/* Post cards — clean, no teal tint */
.post-card {
  background: #0a0e14 !important;
  border: 1px solid #171c24 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: none !important;
  transition: border-color 0.15s, background 0.15s !important;
}
.post-card:hover { background: #0d121a !important; border-color: #222a34 !important; }
.post-card .post-body, .post-card .post-content, .post-card p {
  font-family: 'Inter', system-ui, sans-serif !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: 999px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
}
.btn-follow:hover, .btn-follow-mini:hover { background: var(--teal-soft) !important; color: #02100c !important; }
.btn-follow.following, .btn-follow-mini.following {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid #252c36 !important;
  color: #aab2bc !important;
}

/* Trend items — clean rows */
.trend-item { padding: 12px 16px !important; }
.trend-item:hover { background: rgba(255,255,255,0.03) !important; }
.trend-tag, .trend-count { font-family: 'Inter', system-ui, sans-serif, monospace !important; color: #626a75 !important; }

/* Right sidebar — clean panel, not a second dashboard */
.right-sidebar {
  background: #05070b !important;
  border-left: 1px solid #171c24 !important;
  padding: 16px 14px !important;
}
.right-sidebar .sidebar-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 16px;
}
.sidebar-header {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 14px 18px !important;
}
.sidebar-search input {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.85rem;
  transition: border-color 0.15s;
}
.sidebar-search input:focus {
  border-color: #2a2a2a;
  outline: none;
}

/* 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: #eef1f5 !important;
  background: rgba(255,255,255,0.045) !important;
  border-radius: 10px !important;
}
.left-nav .nav-link, .nav-item {
  color: #8a929d !important;
  font-family: 'Inter', system-ui, sans-serif !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; }
a:hover { color: var(--teal) !important; }

/* Auth screen — clean, premium login to match */
.auth-screen {
  background: #000000 !important;
}
.auth-screen .auth-layout, .auth-screen .auth-card,
.auth-screen .auth-panel {
  background: #0a0e14 !important;
  border-color: #171c24 !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: 'Inter', system-ui, sans-serif !important;
  color: #eef1f5 !important;
}
.auth-screen .auth-logo, .auth-screen .brand-mark {
  color: var(--teal) !important;
}
.auth-screen input, .auth-screen .auth-input {
  background: #05070b !important;
  border-color: #171c24 !important;
  color: #eef1f5 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  border-radius: 10px !important;
}
.auth-screen input:focus { border-color: var(--teal-dim) !important; box-shadow: 0 0 0 2px rgba(23,224,176,0.08) !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: 'Inter', system-ui, sans-serif !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: 'Inter', system-ui, sans-serif !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: #0a0a0a !important;
  --bg-card: #0a0a0a !important;
  --bg-input: #0a0a0a !important;
  --bg: #000000 !important;
  --nav-bg: #000000 !important;
  --bg-darker: #000000 !important;
  --teal: #17e0b0 !important;
  --teal-dim: #0f9e7a !important;
  --teal-dark: #052e24 !important;
  --teal-soft: #5ce8d4 !important;
  --teal-glow: none !important;
  --purple: #ff3d8f !important;
  --purple-dim: #b3256a !important;
  --purple-soft: #ff7cbc !important;
  --purple-glow: none !important;
  --riot: #ff3d8f !important;
  --riot-dim: #b3256a !important;
  --blue: #17e0b0 !important;
  --blue-dim: #0f9e7a !important;
  --blue-soft: #5ce8d4 !important;
  --text: #ffffff !important;
  --text-dim: #71767b !important;
  --text-muted: #536471 !important;
  --text-very-muted: #3e4144 !important;
  --border: #1a1a1a !important;
  --border-hover: #2a2a2a !important;
  --hover-bg: rgba(255, 255, 255, 0.03) !important;
  --danger: #ff4757 !important;
  --radius: 12px !important;
  --radius-sm: 8px !important;
  --accent: #17e0b0 !important;
  --accent-glow: rgba(23, 224, 176, 0.08) !important;
  --accent-text: #5ce8d4 !important;
  --line-soft: #1a1a1a !important;
  --line-bright: #2a2a2a !important;
  --font-mono: 'JetBrains Mono', monospace !important;
  --font-display: 'Inter', system-ui, sans-serif !important;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Body: pure black, no gradients */
body {
  background: #000000 !important;
  background-image: none !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #ffffff !important;
}

/* App shell: pure black */
.app-shell {
  background: #000000 !important;
}

/* Left nav: pure black, white text, gray inactive */
.left-nav, .left-sidebar {
  background: #000000 !important;
  border-right: 1px solid #1a1a1a !important;
}

.left-nav-item {
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
}

.left-nav-item.active {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.left-nav-item.active::before {
  background: #17e0b0 !important;
}

/* Feed center: pure black */
.feed-center {
  background: #000000 !important;
  border-left: 1px solid #1a1a1a !important;
  border-right: 1px solid #1a1a1a !important;
}

/* Feed tabs: clean, teal only for active underline */
.feed-tabs {
  border-bottom: 1px solid #1a1a1a !important;
  background: #000000 !important;
}

.feed-tabs button {
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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: #17e0b0 !important;
  height: 2px !important;
}

/* Composer: clean card, no teal glow */
.composer {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: none !important;
}

.composer textarea {
  background: transparent !important;
  border-color: #1a1a1a !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1rem !important;
}

.composer textarea:focus {
  border-color: #2a2a2a !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Post button: teal gradient, clean, no blur */
.composer .btn-post {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 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;
}

.composer .btn-post:hover {
  background: linear-gradient(135deg, #5ce8d4 0%, #17e0b0 100%) !important;
  color: #000000 !important;
  transform: translateY(-1px) !important;
}

/* Follow buttons: outlined, teal on hover */
.btn-follow, .btn-follow-mini {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}

.btn-follow:hover, .btn-follow-mini:hover {
  background: #17e0b0 !important;
  color: #000000 !important;
  border-color: #17e0b0 !important;
}

.btn-follow.following, .btn-follow-mini.following {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #2a2a2a !important;
  color: #71767b !important;
}

/* Right sidebar: clean widgets, no teal */
.right-sidebar {
  background: #000000 !important;
  border-left: 1px solid #1a1a1a !important;
  padding: 20px 16px !important;
}

.right-sidebar .sidebar-card {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
}

.right-sidebar .sidebar-header {
  border-bottom: 1px solid #1a1a1a !important;
  background: transparent !important;
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.85rem !important;
  transition: border-color 0.15s !important;
}

.sidebar-search input:focus {
  border-color: #2a2a2a !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Trend items: clean rows */
.trend-item {
  padding: 12px 16px !important;
  transition: background 0.15s !important;
}

.trend-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.trend-tag, .trend-count {
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Post cards: clean, no teal borders */
.post-card {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: none !important;
}

.post-card:hover {
  background: #0f0f0f !important;
  border-color: #2a2a2a !important;
}

/* Links: white, teal only on hover */
a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

a:hover {
  color: #17e0b0 !important;
}

/* Floating Post button: clean, no blur */
.post-fab {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(23, 224, 176, 0.3) !important;
}

.post-fab:hover {
  box-shadow: 0 6px 16px rgba(23, 224, 176, 0.4) !important;
  transform: translateY(-2px) !important;
}

.fab-icon {
  color: #000000 !important;
}

/* Auth screen: clean, premium */
.auth-screen {
  background: #000000 !important;
}

.auth-screen .auth-card {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.auth-screen input {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

.auth-screen input:focus {
  border-color: #2a2a2a !important;
  box-shadow: none !important;
  outline: none !important;
}

.auth-screen button {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 100%) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Icons: white, not teal */
.icon-btn, .nav-icon, .search-icon {
  color: #71767b !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: #71767b !important;
  border: none !important;
}

/* Scrollbar: subtle */
::-webkit-scrollbar {
  width: 8px !important;
}

::-webkit-scrollbar-track {
  background: #000000 !important;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a !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: #71767b !important;
  stroke: #71767b !important;
  fill: #71767b !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: #ffffff !important;
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* 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: #71767b !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;
}

.right-sidebar .sidebar-header-tabs button.active::after,
.right-sidebar .tab-btn.active::after,
.right-sidebar .feed-tabs button.active::after {
  background: #ffffff !important;
  height: 1px !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: #71767b !important;
  border: none !important;
  font-weight: 500 !important;
}

/* Search icon: neutral */
.search-icon,
.sidebar-search svg,
.sidebar-search .icon {
  color: #71767b !important;
  stroke: #71767b !important;
  fill: #71767b !important;
}

/* "Your Story" circle: neutral border */
.story-circle,
.story-add,
[class*="story"] {
  border-color: #2a2a2a !important;
}

.story-circle:hover,
.story-add:hover {
  border-color: #ffffff !important;
}

/* All icons in composer, cards, etc: monochrome */
.composer svg,
.post-card svg,
.post-actions svg,
.sidebar-card svg,
.icon-btn svg {
  color: #71767b !important;
  stroke: #71767b !important;
  fill: #71767b !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(23, 224, 176, 0.15) !important;
}

/* Trending widget, suggested follows: neutral accents */
.trend-item,
.suggested-follow-item,
.who-to-follow-item {
  border-bottom: 1px solid #1a1a1a !important;
}

.trend-item:last-child,
.suggested-follow-item:last-child,
.who-to-follow-item:last-child {
  border-bottom: none !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: #1a1a1a !important;
  border-color: #1a1a1a !important;
}

/* Profile avatar rings: neutral */
.avatar-ring,
.story-ring,
[class*="ring"] {
  border-color: #2a2a2a !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*="17e0b0"]: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: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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: 22px !important;
  height: 22px !important;
  color: #71767b !important;
  stroke: #71767b !important;
  fill: none !important;
  stroke-width: 1.8 !important;
  flex-shrink: 0 !important;
}

.left-nav-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
}

.left-nav-item:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.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: #ffffff !important;
  stroke: #ffffff !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: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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) {
  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, #17e0b0 0%, #0f9e7a 100%) !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}

.post-btn-sidebar:hover,
.post-btn:hover {
  background: linear-gradient(135deg, #5ce8d4 0%, #17e0b0 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(23, 224, 176, 0.2) !important;
}

/* Logo: keep teal brand */
.logo, .brand-logo, [class*="logo"] {
  color: #17e0b0 !important;
}

.logo svg, .brand-logo svg {
  fill: #17e0b0 !important;
  stroke: #17e0b0 !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: #000000 !important;
  background-image: none !important;
  background-color: #000000 !important;
  border-right: 1px solid #1a1a1a !important;
}

/* Right sidebar: solid black, subtle left border */
.right-sidebar,
#right-sidebar {
  background: #000000 !important;
  background-image: none !important;
  background-color: #000000 !important;
  border-left: 1px solid #1a1a1a !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: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 12px !important;
  box-shadow: none !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 #1a1a1a !important;
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !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 #1a1a1a !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.03) !important;
}

/* Follow buttons: outlined, teal on hover */
.btn-follow,
.btn-follow-mini {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}

.btn-follow:hover,
.btn-follow-mini:hover {
  background: #17e0b0 !important;
  color: #000000 !important;
  border-color: #17e0b0 !important;
}

.btn-follow.following,
.btn-follow-mini.following {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #2a2a2a !important;
  color: #71767b !important;
}

/* Search bar: clean */
.sidebar-search input,
.right-sidebar input[type="text"],
.right-sidebar input[type="search"] {
  background: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !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: #2a2a2a !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Search icon: neutral */
.sidebar-search svg,
.sidebar-search .icon,
.sidebar-search .search-icon {
  color: #71767b !important;
  stroke: #71767b !important;
  fill: #71767b !important;
}

/* "Your Story" circle: neutral border */
.story-circle,
.story-add,
[class*="story-circle"],
[class*="story-add"] {
  border: 2px solid #2a2a2a !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"],
#post-btn-sidebar {
  background: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 100%) !important;
  background-image: linear-gradient(135deg, #17e0b0 0%, #0f9e7a 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: 'Inter', system-ui, sans-serif !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"]:hover {
  background: linear-gradient(135deg, #5ce8d4 0%, #17e0b0 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(23, 224, 176, 0.2) !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 #1a1a1a !important;
  padding: 12px 16px !important;
}

/* Remove any remaining teal gradients from non-CTA elements */
*[style*="linear-gradient"][style*="17e0b0"]:not(.btn-post):not(.post-fab):not(.logo) {
  background: #0a0a0a !important;
  background-image: none !important;
}

/* Composer area: clean */
.composer {
  background: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* Feed area: solid black */
.feed-center,
#feed-center,
.feed-container,
#feed-container {
  background: #000000 !important;
  background-image: none !important;
  background-color: #000000 !important;
}

/* App shell: solid black */
.app-shell,
#app-shell {
  background: #000000 !important;
  background-image: none !important;
  background-color: #000000 !important;
}

/* Body: solid black, no gradients */
body,
html {
  background: #000000 !important;
  background-image: none !important;
  background-color: #000000 !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: #000000 !important;
  background-image: none !important;
  background-color: #000000 !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: #0a0a0a !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: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !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 #1a1a1a !important;
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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 #1a1a1a !important;
  padding: 12px 16px !important;
  transition: background 0.15s !important;
  cursor: pointer !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: #71767b !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 #1a1a1a !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 #2a2a2a !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.btn-follow:hover,
.btn-follow-mini:hover {
  background: #17e0b0 !important;
  color: #000000 !important;
  border-color: #17e0b0 !important;
}

.btn-follow.following,
.btn-follow-mini.following {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #2a2a2a !important;
  color: #71767b !important;
}

/* Search bar: clean, minimal */
.sidebar-search {
  padding: 12px 16px !important;
  border-bottom: 1px solid #1a1a1a !important;
}

.sidebar-search input {
  background: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  transition: border-color 0.15s !important;
  box-shadow: none !important;
  width: 100% !important;
}

.sidebar-search input:focus {
  border-color: #2a2a2a !important;
  box-shadow: none !important;
  outline: none !important;
}

.sidebar-search input::placeholder {
  color: #71767b !important;
}

/* Search icon: neutral, no teal */
.sidebar-search svg,
.sidebar-search .icon,
.sidebar-search .search-icon {
  color: #71767b !important;
  stroke: #71767b !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 #1a1a1a !important;
  padding: 0 !important;
  margin: 0 !important;
}

.right-sidebar .sidebar-header-tabs button,
.right-sidebar .feed-tabs button,
.right-sidebar .tab-btn {
  color: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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;
}

.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: #17e0b0 !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: #71767b !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*="17e0b0"],
.right-sidebar [style*="linear-gradient"],
.right-sidebar [style*="radial-gradient"] {
  background: #0a0a0a !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 #1a1a1a !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: #0a0a0a !important;
  border: 1px solid #1a1a1a !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 #1a1a1a !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !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 #1a1a1a !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: #71767b !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 #1a1a1a !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 #2a2a2a !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.btn-follow:hover,
.btn-follow-mini:hover {
  background: #17e0b0 !important;
  color: #000000 !important;
  border-color: #17e0b0 !important;
}

.btn-follow.following,
.btn-follow-mini.following {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: #2a2a2a !important;
  color: #71767b !important;
}

/* Search bar: clean, minimal */
.sidebar-search {
  padding: 0 !important;
  border-bottom: none !important;
  margin-bottom: 16px !important;
}

.sidebar-search input {
  background: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  transition: border-color 0.15s !important;
  box-shadow: none !important;
  width: 100% !important;
}

.sidebar-search input:focus {
  border-color: #2a2a2a !important;
  box-shadow: none !important;
  outline: none !important;
}

.sidebar-search input::placeholder {
  color: #71767b !important;
}

/* Search icon: neutral, no teal */
.sidebar-search svg,
.sidebar-search .icon,
.sidebar-search .search-icon {
  color: #71767b !important;
  stroke: #71767b !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 #1a1a1a !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: #71767b !important;
  font-family: 'Inter', system-ui, sans-serif !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: #17e0b0 !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: #71767b !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*="17e0b0"],
.right-sidebar [style*="linear-gradient"],
.right-sidebar [style*="radial-gradient"],
.right-sidebar [style*="box-shadow"] {
  background: #0a0a0a !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: #1a1a1a !important;
  border-radius: 3px !important;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEALRIOT — RIGHT SIDEBAR: SEARCH ONLY (8/18/26)
   Hide all widgets, tabs, panels — keep ONLY the search bar
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide everything in the right sidebar except the search */
.right-sidebar .radar-tabs,
.right-sidebar .radar-panel,
.right-sidebar .discover-tabs,
.right-sidebar .discover-panel,
.right-sidebar .trending-widget,
.right-sidebar .who-to-follow,
.right-sidebar .mesh-scanner,
.right-sidebar .node-ping,
.right-sidebar .sysops,
.right-sidebar .surge {
  display: none !important;
}

/* Keep only the search card visible */
.right-sidebar .discover-search {
  display: block !important;
}

/* Clean search bar: no glow, minimal */
.right-sidebar .discover-search {
  background: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !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: #71767b !important;
  stroke: #71767b !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: 'Inter', system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  flex: 1 !important;
}

.right-sidebar .discover-search-row input::placeholder {
  color: #71767b !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 #1a1a1a !important;
  padding: 20px 16px !important;
  overflow-y: auto !important;
}

/* Search dropdown: clean */
.right-sidebar .search-dropdown {
  background: #0a0a0a !important;
  border: 1px solid #1a1a1a !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 #1a1a1a !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"],
#post-btn-sidebar,
.post-fab {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border: none !important;
  box-shadow: none !important;
}

.composer .btn-post:hover,
.post-btn-sidebar:hover,
.post-btn:hover,
.left-nav .post-btn:hover,
.post-fab:hover {
  background: #e7e9ea !important;
  transform: none !important;
  box-shadow: none !important;
}

.post-fab .fab-icon,
.post-fab svg {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: 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: #0a0a0a !important;
  border: 1px solid #1a1a1a !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: #71767b !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: 999px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !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 #536471 !important;
}

/* ── Your Story circle + plus icon: white, not teal ── */
.story-circle,
.story-add,
.your-story,
[class*="story-ring"] {
  border-color: #2a2a2a !important;
  background: transparent !important;
  color: #ffffff !important;
}

.story-circle svg,
.story-add svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ── Composer toolbar icons: neutral gray ── */
.composer svg,
.composer .icon-btn,
.composer .icon-btn svg {
  color: #71767b !important;
  stroke: #71767b !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: #71767b !important;
  stroke: #71767b !important;
  fill: none !important;
}

.post-actions button:hover svg,
.post-action:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Like (heart) active state: keep the ONLY allowed color as a signal — red, X-style */
.post-actions button.liked svg,
.post-action.liked svg {
  color: #f91880 !important;
  fill: #f91880 !important;
  stroke: #f91880 !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: #71767b !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"],
#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 {
  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: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: none !important;
}

.post-fab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #3a3a3a !important;
  box-shadow: none !important;
  transform: none !important;
}

.post-fab .fab-icon,
.post-fab svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: 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: #0a0a0a !important;
  background-image: none !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: #101010 !important;
  background-image: none !important;
  border-color: #2a2a2a !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: transparent !important;
  border-bottom: 1px solid #1a1a1a !important;
  padding: 16px 20px 12px !important;
}

.main-composer-avatar {
  background: #1a1a1a !important;
  background-image: none !important;
  border: none !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: transparent !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 999px !important;
  padding: 6px 18px !important;
  font-weight: 600 !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: rgba(255, 255, 255, 0.06) !important;
  border-color: #ffffff !important;
}

.main-composer .btn-post:disabled,
#btn-post:disabled {
  color: #536471 !important;
  border-color: #2a2a2a !important;
  opacity: 1 !important;
}

/* Composer tools row: tight, neutral, even spacing */
.main-composer .composer-footer {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 0 4px !important;
  border-top: none !important;
}

.main-composer .composer-tools {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
}

.main-composer .tool-btn {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: #71767b !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  position: relative !important;
}

.main-composer .tool-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.main-composer .tool-btn svg {
  color: #71767b !important;
  stroke: #71767b !important;
}

.main-composer .tool-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Video 27s badge: subtle gray, not teal */
.video-duration-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #71767b !important;
  border: none !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
}

/* Char counter: quiet gray */
.char-counter {
  color: #536471 !important;
  font-size: 0.78rem !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  margin-left: auto !important;
  margin-right: 12px !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: #2a2a2a !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: #2a2a2a !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: #71767b !important;
  box-shadow: none !important;
}

/* Draft chip: neutral */
.draft-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid #2a2a2a !important;
  color: #71767b !important;
}

.draft-chip-dot {
  background: #ffffff !important;
}

/* FAB: subtle dark, white icon (reinforce) */
.post-fab,
.app-shell.active .post-fab {
  background: #0a0a0a !important;
  background-image: none !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: none !important;
}

.post-fab .fab-icon,
.post-fab svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: 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) ═══ */

/* Quiet composer: hide toolbar/footer until focused (Bluesky/X collapsed state) */
.main-composer .composer-footer { display: none !important; }
.main-composer:focus-within .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: 8px 16px;
  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 #1a1a1a;
}
.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: 'Inter', system-ui, sans-serif; }

/* Thread detail card: Bluesky layout */
#thread-post .post-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.thread-detail-card { padding: 12px 16px 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: #71767b; 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 #1a1a1a; }

/* Timestamp + stats rows */
.thread-timestamp {
  color: #71767b; font-size: 0.9rem; padding: 12px 0;
  border-bottom: 1px solid #1a1a1a; font-family: 'Inter', system-ui, sans-serif;
}
.thread-stats-row {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid #1a1a1a; font-size: 0.9rem; color: #71767b;
  font-family: 'Inter', system-ui, sans-serif;
}
.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 #1a1a1a; margin-top: 0 !important;
}

/* Thread replies: flat rows + Bluesky spine */
.thread-replies { position: relative; }
.thread-replies:has(.reply-card)::before {
  content: ''; position: absolute; left: 32px; top: 0; bottom: 0;
  width: 2px; background: #1d242e;
}
.reply-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #1a1a1a !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  position: relative;
}
.reply-card .avatar { position: relative; z-index: 1; background: #1a1a1a; }
.reply-card .post-body { color: #eef1f5 !important; }
.reply-card.reply-nested::before {
  content: ''; position: absolute; left: 32px; top: 0; bottom: 0;
  width: 2px; background: #1d242e;
}

/* Reply composer: dark card, matches post-card + inline-reply style */
.reply-composer-wrap {
  background: #0f1419 !important;
  border: 1px solid #1f262c !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 #1f262c;
  margin-top: 6px;
  padding-top: 10px;
}
.thread-reply-composer .btn-post {
  background: var(--teal);
  color: #0a0e14;
  border-radius: 999px;
  padding: 7px 20px;
}

/* Thread toggle: quiet */
.thread-toggle { border-bottom: 1px solid #1a1a1a; }
.thread-toggle-btn {
  color: #71767b; 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, #171c24, #0a0a0a);
  transition: background 0.2s;
  line-height: 0;
}
.account-avatar-wrap:hover {
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.55), #171c24);
}
.account-avatar-wrap.has-story {
  background: linear-gradient(135deg, rgba(23, 224, 176, 0.75), rgba(23, 224, 176, 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: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
  z-index: 2;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}
.account-avatar-wrap:hover .account-story-add {
  background: rgba(23, 224, 176, 0.9);
  border-color: transparent;
  color: #000000;
}

/* Kill grey body panels in the thread view — pure black (fixes neutral11
   `.post-card .post-body` #0a0a0a 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 #0a0a0a) */
#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: #0a0a0a !important;
  border: 1px solid #1a1a1a !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: 'Inter', system-ui, sans-serif;
  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: #536471;
}
.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: #536471;
  font-size: 0.8rem;
  padding: 8px 2px;
}

/* FLICK item — 9:16 card */
.flick-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #05070b;
  border: 1px solid #1a1a1a;
  transition: border-color 0.15s;
}
.flick-item:hover { border-color: #2a2a2a; }
.flick-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 320px;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flick-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flick-thumb video {
  position: absolute;
  inset: 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: 1;
  position: static;
}
.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;
}
.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: #536471;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FLICK dashboard upload card */
.flick-dash-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #536471;
  letter-spacing: 0.04em;
}
.flick-dash-hint {
  font-size: 0.74rem;
  color: #536471;
  margin: -6px 0 12px;
  line-height: 1.45;
}
.flick-file-check {
  margin-top: 6px;
  font-size: 0.76rem;
  color: #536471;
  font-family: 'JetBrains Mono', monospace;
}
.flick-file-check.flick-file-ok { color: #00ba7c; }
.flick-file-check.flick-file-bad { color: #f91880; }

/* ═══ FEED CARDS — PURE BLACK, NO FILL (8/18/26) ═══
   Kill the #0a0a0a 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 #1a1a1a;
  border-radius: 16px;
  padding: 40px 32px 32px;
  text-align: center;
}

.foyer-minimal .foyer-mark {
  margin-bottom: 28px;
}

.foyer-minimal .foyer-mark-img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.foyer-minimal .foyer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  margin: 0;
}

.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: #536471;
  cursor: pointer;
}

.foyer-minimal .foyer-email[open] .foyer-email-toggle {
  margin-bottom: 12px;
}
