:root {
  --bg: #111111;
  --surface: rgba(255,255,255,.08);
  --surface-strong: rgba(255,255,255,.13);
  --surface-soft: rgba(255,255,255,.055);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.58);
  --muted-2: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.13);
  --accent: #e8e3da;
  --accent-soft: #bdb4a8;
  --danger: #e6b5a8;
  --success: #c8d4bd;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  color-scheme: dark;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, #10100f 0%, #181715 52%, #0d0d0c 100%);
  overflow-x: hidden;
}

body::before, body::after {
  content: "";
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: .22;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
body::before { left: -150px; bottom: 8%; background: conic-gradient(from 180deg, rgba(255,255,255,.16), rgba(176,168,154,.24), rgba(105,105,100,.16), rgba(255,255,255,.16)); }
body::after { right: -160px; top: 5%; background: conic-gradient(from 90deg, rgba(232,227,218,.18), rgba(142,136,126,.20), rgba(80,80,76,.12), rgba(232,227,218,.18)); animation-delay: -4s; }
@keyframes drift { to { transform: translate3d(34px, -28px, 0) scale(1.06); } }

@media (prefers-reduced-motion: no-preference) {
  body { opacity: 0; animation: pageIn .38s cubic-bezier(.2,.8,.2,1) forwards; }
  body.page-leave { animation: pageOut .22s cubic-bezier(.4,0,1,1) forwards; }
  .app { animation: contentLift .46s cubic-bezier(.2,.8,.2,1) both; }
  .post, .panel, .card, .composer, .notification, .message, .settings-card, .profile-hero, .tabs, .filters, .empty-state {
    animation: cardIn .52s cubic-bezier(.2,.8,.2,1) both;
  }
  main > *:nth-child(2) { animation-delay: .04s; }
  main > *:nth-child(3) { animation-delay: .08s; }
  main > *:nth-child(4) { animation-delay: .12s; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pageOut { to { opacity: 0; transform: translateY(6px) scale(.995); } }
  @keyframes contentLift { from { transform: translateY(12px); filter: blur(6px); } to { transform: translateY(0); filter: blur(0); } }
  @keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }


.app {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 680px) 340px;
  gap: 20px;
}

.glass {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.125), rgba(255,255,255,.055));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(26px) saturate(128%);
  -webkit-backdrop-filter: blur(26px) saturate(128%);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 30%, transparent 66%, rgba(255,255,255,.055)), radial-gradient(circle at 18% 8%, rgba(255,255,255,.13), transparent 28%);
  opacity: .38;
  mix-blend-mode: screen;
}
.glass > * { position: relative; z-index: 1; }

.sidebar, .rightbar { position: sticky; top: 28px; height: calc(100vh - 56px); display: flex; flex-direction: column; gap: 14px; }
.sidebar { padding: 18px; border-radius: var(--radius-xl); }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; }
.logo { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #f1ece3, #aaa297); color: #151515; font-weight: 800; letter-spacing: -.05em; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 16px 34px rgba(0,0,0,.25); }
.brand strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.brand small { color: var(--muted); }
.nav { display: grid; gap: 6px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 18px; color: var(--muted); transition: .2s ease; border: 1px solid transparent; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.12); }
.nav a.active { box-shadow: inset 0 1px 0 rgba(255,255,255,.10); }
.nav b { font-weight: 700; }
.nav i { font-style: normal; color: var(--muted-2); }
.primary-btn { width: 100%; margin-top: 10px; border: 0; border-radius: 20px; padding: 15px 18px; cursor: pointer; color: #161616; font-weight: 800; background: linear-gradient(145deg, #f0ece4, #b9b0a4); box-shadow: 0 18px 34px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.7); transition: .2s ease; }
.primary-btn:hover { transform: translateY(-2px); filter: brightness(1.02); }
.profile-mini, .account-switch { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); }
.avatar { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(177,168,156,.78)); color: #151515; font-weight: 800; font-size: 13px; }
.avatar.big { width: 82px; height: 82px; border-radius: 26px; font-size: 22px; }
.profile-mini p, .who p, .post p, .message p { margin: 0; }
.profile-mini small, .who small, .meta, .trend small, .muted { color: var(--muted); }

main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
[data-feed] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
[data-feed] > .post {
  width: 100%;
  flex: 0 0 auto;
}

.topbar { position: sticky; top: 28px; z-index: 5; border-radius: var(--radius-xl); padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.06em; }
.topbar p { margin: 4px 0 0; color: var(--muted); }
.status-pill { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--success); box-shadow: 0 0 0 4px rgba(200,212,189,.12); }

.tabs, .filters { display: flex; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.tab, .chip { border: 0; background: transparent; color: var(--muted); padding: 10px 13px; border-radius: 16px; cursor: pointer; transition: .2s ease; }
.tab.active, .chip.active, .tab:hover, .chip:hover { color: var(--text); background: rgba(255,255,255,.10); }

.composer, .post, .panel, .card, .profile-hero, .notification, .message, .settings-card, .empty-state { border-radius: var(--radius-xl); padding: 18px; }
.composer-row { display: flex; gap: 13px; }
textarea, input, select { width: 100%; color: var(--text); background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.10); outline: none; border-radius: 20px; }
textarea { min-height: 96px; resize: vertical; padding: 16px; }
input, select { height: 48px; padding: 0 15px; }
textarea::placeholder, input::placeholder { color: rgba(255,255,255,.38); }
.composer-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-width: 0; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tool, .more, .icon-btn { border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.07); color: var(--muted); border-radius: 15px; min-width: 40px; height: 40px; cursor: pointer; }
.send, .small-btn { border: 0; border-radius: 15px; padding: 11px 16px; background: var(--accent); color: #151515; font-weight: 800; cursor: pointer; }
.small-btn.secondary { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.post { transition: .2s ease; }
.post:hover, .card:hover, .notification:hover, .message:hover { transform: translateY(-2px); background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); }
.post-head, .who, .message-head, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.who { justify-content: flex-start; }
.post-text { margin-top: 15px !important; font-size: 16px; line-height: 1.68; color: rgba(255,255,255,.84); }
.post-media { margin-top: 16px; min-height: 230px; border-radius: 26px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06)), radial-gradient(circle at 20% 15%, rgba(238,232,222,.22), transparent 34%), linear-gradient(135deg, rgba(50,49,47,.86), rgba(24,24,23,.9)); position: relative; overflow: hidden; }
.post-media.soft-grid { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); background-size: 38px 38px, 38px 38px, auto; }
.poll { margin-top: 15px; display: grid; gap: 10px; }
.poll-option { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.10); overflow: hidden; }
.poll-bar { display: block; height: 6px; margin-top: 9px; border-radius: 99px; background: rgba(232,227,218,.58); }
.metrics { margin-top: 15px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.metric { padding: 10px; border-radius: 15px; background: rgba(255,255,255,.055); color: var(--muted); text-align: center; font-size: 13px; }
.metric:hover { color: var(--text); background: rgba(255,255,255,.09); }

.rightbar { min-width: 0; }
.search {
  position: relative;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.search::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.14) 45%, transparent 72%);
  opacity: 0;
  transform: translateX(-38%);
}
.search input { height: 38px; border: 0; background: transparent; padding: 0; }
.search:focus-within {
  transform: translateY(-1px);
  border-color: rgba(142, 185, 255, .40);
  background: rgba(255,255,255,.105);
  box-shadow: 0 18px 40px rgba(0,0,0,.22), 0 0 0 5px rgba(113, 156, 230, .10), inset 0 1px 0 rgba(255,255,255,.18);
}
.search:focus-within::after {
  opacity: 1;
  animation: searchShimmer 1.15s ease both;
}
.search.search-has-value { border-color: rgba(142, 185, 255, .30); }
.search.search-typing { animation: searchNudge .28s ease; }
.search:focus-within [data-lucide] { color: #7fb1ff; animation: iconBreathe .9s ease infinite alternate; }
@keyframes searchShimmer { to { transform: translateX(42%); opacity: 0; } }
@keyframes searchNudge { 50% { transform: translateY(-1px) scale(1.008); } }
@keyframes iconBreathe { to { transform: scale(1.08); } }
.panel h3, .settings-card h3 { margin: 0 0 14px; letter-spacing: -.03em; }
.trend, .suggestion, .stat-row, .notif-row { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.09); }
.trend:first-of-type, .suggestion:first-of-type, .stat-row:first-of-type { border-top: 0; padding-top: 0; }
.trend b { display: block; margin: 5px 0; }
.suggestion { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.follow { border: 0; width: 38px; height: 38px; border-radius: 14px; background: var(--accent); color: #151515; font-weight: 900; cursor: pointer; }
.stat-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.stat-row b { color: var(--text); }

.profile-hero { padding: 0; }
.cover { height: 180px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)), radial-gradient(circle at 25% 30%, rgba(232,227,218,.28), transparent 32%), #191817; border-bottom: 1px solid rgba(255,255,255,.11); }
.profile-body { padding: 18px; margin-top: -52px; }
.profile-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.profile-title h2 { margin: 12px 0 3px; font-size: 28px; letter-spacing: -.05em; }
.profile-stats { display: flex; gap: 18px; margin-top: 14px; color: var(--muted); }
.profile-stats b { color: var(--text); }

.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.card h3 { margin: 0 0 8px; }
.card p, .settings-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.explore-card { min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; }
.notification, .message { display: flex; gap: 13px; }
.notification .icon { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.08); flex: 0 0 auto; }
.message { align-items: flex-start; }
.message-body { flex: 1; min-width: 0; }
.message p { color: var(--muted); line-height: 1.55; margin-top: 6px; }
.message time { color: var(--muted-2); font-size: 13px; white-space: nowrap; }
.form-grid { display: grid; gap: 12px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.09); }
.toggle-row:first-child { border-top: 0; }
.switch { width: 52px; height: 30px; border-radius: 999px; padding: 3px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.switch span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transform: translateX(20px); }
.empty-state { padding: 38px 18px; text-align: center; color: var(--muted); }
.empty-state h2 { margin: 0 0 8px; color: var(--text); letter-spacing: -.04em; }

.mobile-compose { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 10; width: 58px; height: 58px; border: 0; border-radius: 20px; color: #151515; font-size: 28px; font-weight: 800; background: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,.35); }

@media (max-width: 1180px) {
  .app { grid-template-columns: 92px minmax(0, 1fr) 320px; }
  .brand div, .nav b, .nav i, .profile-mini div, .primary-btn span { display: none; }
  .brand { justify-content: center; padding-bottom: 12px; }
  .nav a { justify-content: center; font-size: 22px; }
  .profile-mini { justify-content: center; }
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; width: min(740px, calc(100% - 24px)); padding: 14px 0 86px; }
  .sidebar { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; height: auto; z-index: 20; padding: 8px; border-radius: 24px; }
  .brand, .profile-mini, .primary-btn { display: none; }
  .nav { display: grid; grid-template-columns: repeat(6,1fr); }
  .nav a { padding: 12px 4px; }
  .rightbar { position: static; height: auto; }
  .topbar { top: 12px; }
  .mobile-compose { display: block; }
}
@media (max-width: 640px) {
  .app { width: calc(100% - 16px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .composer-row { flex-direction: column; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .post-media { min-height: 190px; }
  .profile-title { align-items: flex-start; flex-direction: column; }
}


/* Product polish */
:root[data-theme="warm"] {
  --bg: #f2eee6;
  --surface: rgba(255,255,255,.62);
  --surface-strong: rgba(255,255,255,.78);
  --surface-soft: rgba(255,255,255,.52);
  --text: rgba(31,29,26,.92);
  --muted: rgba(31,29,26,.58);
  --muted-2: rgba(31,29,26,.42);
  --line: rgba(31,29,26,.12);
  --accent: #20201f;
  --accent-soft: #6f675d;
  --shadow: 0 24px 70px rgba(69,55,35,.16);
  color-scheme: light;
}
:root[data-theme="warm"] body {
  background: linear-gradient(135deg, #f4f0e8 0%, #e5ded1 54%, #f9f6f0 100%);
}
:root[data-theme="warm"] .send,
:root[data-theme="warm"] .small-btn,
:root[data-theme="warm"] .follow,
:root[data-theme="warm"] .mobile-compose,
:root[data-theme="warm"] .primary-btn { color: #f8f5ef; }
:root[data-theme="warm"] .avatar,
:root[data-theme="warm"] .logo { background: linear-gradient(145deg, rgba(28,27,25,.92), rgba(93,84,74,.82)); color: #faf7f0; }

.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 16px 16px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}
.palette-backdrop.open { display: flex; }
.command-palette {
  width: min(620px, 100%);
  border-radius: 28px;
  padding: 12px;
}
.command-palette input {
  height: 56px;
  border-radius: 20px;
  background: rgba(255,255,255,.09);
}
.command-list { display: grid; gap: 8px; margin-top: 10px; }
.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}
.command-item:hover, .command-item:focus { color: var(--text); background: rgba(255,255,255,.11); outline: none; }
.toast {
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translate(-50%, -12px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--text);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.quick-card { display: grid; gap: 10px; }
.quick-card .small-btn { width: 100%; }
.metric, .follow, .tab, .chip { user-select: none; }
.metric.active { color: var(--text); background: rgba(255,255,255,.14); }
.follow.following { width: auto; padding: 0 12px; font-weight: 800; background: rgba(255,255,255,.10); color: var(--text); border: 1px solid rgba(255,255,255,.12); }
.composer-count { color: var(--muted); font-size: 13px; }
.composer-count.warn { color: var(--danger); }
.save-indicator { color: var(--muted); font-size: 13px; }
.verified {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  vertical-align: -3px;
  color: #58a6ff;
}
.verified svg, .verified [data-lucide] {
  width: 17px;
  height: 17px;
  stroke-width: 2.7;
  fill: rgba(88,166,255,.16);
}
@media (max-width: 920px) {
}
@media (max-width: 640px) {
}

/* Icons */
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex: 0 0 auto;
}
.nav a {
  gap: 12px;
}
.nav a > [data-lucide] {
  width: 21px;
  height: 21px;
  color: var(--muted);
  transition: .2s ease;
}
.nav a.active > [data-lucide],
.nav a:hover > [data-lucide] { color: var(--text); }
.primary-btn,
.small-btn,
.send,
.follow,
.metric,
.tool,
.status-pill,
.search,
.command-item b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.primary-btn { justify-content: center; }
.more {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: pointer;
}
.more:hover { color: var(--text); background: rgba(255,255,255,.10); }
.tool {
  justify-content: center;
}
.metric {
  justify-content: center;
}
.metric [data-lucide] { width: 16px; height: 16px; }
.status-pill [data-lucide] { width: 16px; height: 16px; color: var(--accent); }
.search [data-lucide] { color: var(--muted); }
.notification .icon [data-lucide] { width: 19px; height: 19px; }
.follow { justify-content: center; }
.follow [data-lucide] { width: 17px; height: 17px; }
.mobile-compose {
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-compose [data-lucide] { width: 24px; height: 24px; }
.command-item b [data-lucide] { width: 17px; height: 17px; }
.quick-card .small-btn { justify-content: center; }

@media (max-width: 1180px) {
  .primary-btn [data-lucide] { display: block; }
}
@media (max-width: 920px) {
  .mobile-compose { display: flex; }
}


/* Form/layout fixes */
.empty-state.glass {
  border-radius: var(--radius-xl);
}
.composer .send,
.settings-card .send,
.row-between .small-btn {
  max-width: 100%;
  white-space: nowrap;
}
.composer-actions > * {
  min-width: 0;
}
.composer-count {
  flex: 1 1 120px;
}
.composer-actions .send {
  flex: 0 1 auto;
}
.row-between {
  flex-wrap: wrap;
}
.tabs, .filters {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab, .chip {
  white-space: nowrap;
}
@media (max-width: 520px) {
  .composer-actions {
    align-items: stretch;
  }
  .composer-actions .tools {
    flex: 1 1 100%;
  }
  .composer-actions .tool {
    flex: 1 1 0;
  }
  .composer-actions .send {
    width: 100%;
    justify-content: center;
  }
  .composer-count,
  .composer-actions .muted {
    flex: 1 1 100%;
  }
  .settings-card .send,
  .form-grid .send {
    width: 100%;
    justify-content: center;
  }
  .row-between .small-btn {
    width: 100%;
    justify-content: center;
  }
}


/* Reaction microinteractions */
.metric {
  position: relative;
  overflow: visible;
  cursor: pointer;
  transform-origin: center;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.metric.metric-pop {
  animation: metricPress .42s cubic-bezier(.2, .9, .2, 1.35);
}
.metric.metric-liked,
.metric.active {
  color: #ff6b8a;
  background: rgba(255, 107, 138, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 138, .18);
}
.metric.metric-liked [data-lucide="heart"],
.metric.active [data-lucide="heart"] {
  fill: currentColor;
  stroke-width: 2.5;
  animation: heartBeat .5s ease;
}
.metric.metric-reposted,
.metric.reposted {
  color: #64d58a;
  background: rgba(100, 213, 138, .12);
  box-shadow: inset 0 0 0 1px rgba(100, 213, 138, .18);
}
.metric.metric-reposted [data-lucide="repeat-2"],
.metric.reposted [data-lucide="repeat-2"] {
  animation: repostSpin .5s cubic-bezier(.2, .9, .2, 1.15);
}
.metric-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  animation: metricBurst .62s ease forwards;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.32));
}
@keyframes metricPress {
  0% { transform: scale(1); }
  38% { transform: scale(.94); }
  72% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes heartBeat {
  0% { transform: scale(.78); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
@keyframes repostSpin {
  0% { transform: rotate(0deg) scale(.88); }
  70% { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(180deg) scale(1); }
}
@keyframes metricBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -155%) scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .metric.metric-pop,
  .metric.metric-liked [data-lucide="heart"],
  .metric.metric-reposted [data-lucide="repeat-2"],
  .metric-burst {
    animation: none;
  }
}


/* Follow button interaction */
.profile-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.follow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.follow::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, transparent 32%, rgba(255,255,255,.36) 45%, transparent 58%, transparent 100%);
  transform: translateX(-115%);
  opacity: 0;
}
.follow:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  color: var(--text);
}
.follow.follow-pop {
  animation: followPress .62s cubic-bezier(.2, .9, .2, 1.2);
}
.follow.follow-pop::before {
  opacity: 1;
  animation: followShimmer .72s cubic-bezier(.2,.8,.2,1) forwards;
}
.follow.following {
  background: linear-gradient(145deg, rgba(88,166,255,.22), rgba(255,255,255,.08));
  border-color: rgba(88,166,255,.32);
  box-shadow: inset 0 0 0 1px rgba(88,166,255,.12), 0 12px 30px rgba(0,0,0,.18);
}
.follow.following [data-lucide="check"] {
  color: #58a6ff;
  animation: followCheck .46s cubic-bezier(.2,.9,.2,1.25);
}
@keyframes followPress {
  0% { transform: scale(1); }
  38% { transform: scale(.94); }
  72% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes followShimmer {
  from { transform: translateX(-115%); }
  to { transform: translateX(115%); }
}
@keyframes followCheck {
  from { transform: scale(.65) rotate(-14deg); opacity: .4; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .follow.follow-pop,
  .follow.follow-pop::before,
  .follow.following [data-lucide="check"] { animation: none; }
}


/* Follow button microinteraction */
.follow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center;
  transition: transform .2s ease, background .24s ease, color .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.follow::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.08) 26%, rgba(255,255,255,.42) 48%, rgba(255,255,255,.08) 68%, transparent 100%);
  transform: translateX(-120%);
}
.follow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 0 0 rgba(88,166,255,.0);
}
.follow:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
.follow.follow-pulse {
  animation: followButtonPress .58s cubic-bezier(.2, .9, .2, 1.25);
}
.follow.follow-pulse::before {
  opacity: 1;
  animation: followShimmer .72s ease forwards;
}
.follow.follow-pulse::after {
  animation: followHalo .72s ease forwards;
}
.follow.following {
  box-shadow: inset 0 0 0 1px rgba(88,166,255,.22), 0 14px 36px rgba(88,166,255,.10);
}
.follow.following [data-lucide="check"] {
  color: #58a6ff;
  animation: followCheck .48s cubic-bezier(.2, .9, .2, 1.2);
}
.follow-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #58a6ff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  box-shadow: 0 0 0 7px rgba(88,166,255,.16), 0 10px 24px rgba(88,166,255,.28);
  animation: followBurst .68s ease forwards;
}
@keyframes followButtonPress {
  0% { transform: scale(1); }
  36% { transform: scale(.95); }
  68% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes followShimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes followHalo {
  0% { opacity: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 0 0 rgba(88,166,255,.0); }
  35% { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 0 0 7px rgba(88,166,255,.12); }
  100% { opacity: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 0 18px rgba(88,166,255,0); }
}
@keyframes followCheck {
  0% { transform: scale(.64) rotate(-16deg); }
  62% { transform: scale(1.18) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes followBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -220%) scale(1.24); }
}
@media (prefers-reduced-motion: reduce) {
  .follow.follow-pulse,
  .follow.follow-pulse::before,
  .follow.follow-pulse::after,
  .follow.following [data-lucide="check"],
  .follow-burst { animation: none; }
}

.drop-zone {
  margin: 12px 0 0 57px;
  min-height: 74px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  position: relative;
  overflow: hidden;
}
.drop-zone::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.16) 48%, transparent 74%);
  opacity: 0;
  transform: translateX(-45%);
  pointer-events: none;
}
.drop-zone:hover,
.drop-zone.drag-over {
  transform: translateY(-1px);
  border-color: rgba(142,185,255,.38);
  background: rgba(255,255,255,.085);
  box-shadow: 0 18px 40px rgba(0,0,0,.18), 0 0 0 5px rgba(113,156,230,.08);
}
.drop-zone.drag-over::after,
.drop-zone:hover::after {
  opacity: 1;
  animation: searchShimmer 1.1s ease both;
}
.media-preview {
  margin: 12px 0 0 57px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.media-preview > div {
  height: 210px;
  background-size: cover;
  background-position: center;
}
.media-preview button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.uploaded-media {
  background-size: cover;
  background-position: center;
}
.post-enter {
  animation: postPublish .72s cubic-bezier(.18,.9,.2,1) both;
}
@keyframes postPublish {
  0% { opacity: 0; transform: translateY(-18px) scale(.985); filter: blur(10px); }
  62% { opacity: 1; transform: translateY(4px) scale(1.006); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.post-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}
.post-modal-backdrop.open {
  display: flex;
  animation: modalFade .18s ease both;
}
.post-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 30px;
  padding: 18px;
  position: relative;
  background: linear-gradient(145deg, rgba(29,29,27,.96), rgba(18,18,17,.94));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 34px 110px rgba(0,0,0,.66), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  animation: modalRise .28s cubic-bezier(.2,.85,.2,1) both;
}
.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.modal-post {
  box-shadow: none;
  background: rgba(255,255,255,.075);
  border-color: rgba(255,255,255,.14);
}
.modal-replies {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.modal-replies h3 {
  margin: 0;
  letter-spacing: -.03em;
}
.reply,
.inline-reply {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.reply p,
.inline-reply p { margin: 0; color: var(--muted); line-height: 1.5; }
.reply strong,
.inline-reply strong { color: var(--text); }
.reply-box {
  display: none;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  animation: replyOpen .26s ease both;
}
.reply-box.open { display: grid; }
.reply-box textarea {
  min-height: 74px;
  border-radius: 18px;
}
.reply-box > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-reply {
  margin-top: 12px;
  animation: replyOpen .26s ease both;
}
@keyframes replyOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

:root[data-theme="warm"] .post-modal-backdrop {
  background: rgba(27,25,22,.52);
}
:root[data-theme="warm"] .post-modal {
  background: linear-gradient(145deg, rgba(252,249,243,.97), rgba(235,229,218,.95));
  border-color: rgba(31,29,26,.14);
  box-shadow: 0 34px 110px rgba(69,55,35,.30), inset 0 1px 0 rgba(255,255,255,.82);
}
:root[data-theme="warm"] .modal-post {
  background: rgba(255,255,255,.58);
  border-color: rgba(31,29,26,.10);
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.skeleton-feed {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 120px max(18px, calc((100vw - 1180px) / 2 + 260px)) 18px;
  background: rgba(17,17,17,.18);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity .28s ease, filter .28s ease;
}
.skeleton-feed.hide { opacity: 0; filter: blur(8px); }
.skeleton-card {
  width: min(680px, 100%);
  height: 160px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(100deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
  background-size: 220% 100%;
  animation: skeletonMove 1.1s ease infinite;
}
.skeleton-card.short { height: 90px; }
@keyframes skeletonMove { to { background-position: -220% 0; } }
.nav a { position: relative; }
.nav-badge {
  position: absolute;
  right: 10px;
  top: 9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  background: #58a6ff;
  box-shadow: 0 0 0 4px rgba(88,166,255,.12);
  animation: badgePop .58s cubic-bezier(.2,.9,.2,1.25) both;
}
@keyframes badgePop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.profile-panels {
  animation: replyOpen .34s ease both;
}
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.mini-gallery span {
  min-height: 82px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(circle at 30% 20%, rgba(142,185,255,.20), transparent 36%), linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
}
.hidden { display: none !important; }
@media (max-width: 640px) {
  .drop-zone,
  .media-preview { margin-left: 0; }
  .post-modal-backdrop { padding: 8px; align-items: flex-end; }
  .post-modal { max-height: calc(100vh - 16px); border-radius: 28px 28px 0 0; }
  .skeleton-feed { padding: 90px 12px 12px; }
  .reply-box > div .small-btn { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .post-enter,
  .post-modal-backdrop.open,
  .post-modal,
  .reply-box,
  .inline-reply,
  .skeleton-card,
  .nav-badge { animation: none; }
}


/* Verified badge cleanup */
.profile-title h2 .verified {
  margin-left: 6px;
  vertical-align: 0;
}
.profile-title h2 > .verified + .verified,
.profile-title h2 + .verified {
  display: none !important;
}


/* Skeleton disabled */
.skeleton-feed { display: none !important; }


/* Additional product polish */
.post.pinned-post {
  position: relative;
  border-color: rgba(142,185,255,.24);
}
.post.pinned-post::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(142,185,255,.10), transparent 38%, rgba(255,255,255,.035));
  opacity: .86;
}
.post-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px 0;
}
.post-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(224,232,245,.92);
  background: rgba(142,185,255,.10);
  border: 1px solid rgba(142,185,255,.18);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.post-badge [data-lucide] { width: 14px; height: 14px; }
.post:hover .post-badge { box-shadow: 0 0 0 4px rgba(142,185,255,.055); }
.metric[data-action="share"], .metric[data-action="bookmark"] { position: relative; }
.metric.metric-copied {
  color: #9fc1ff;
  background: rgba(142,185,255,.13);
  border-color: rgba(142,185,255,.24);
}
.metric.metric-bookmarked {
  color: #f4d49a;
  background: rgba(244,212,154,.12);
  border-color: rgba(244,212,154,.22);
}
.copy-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(142,185,255,.65);
  pointer-events: none;
  animation: copyRipple .62s ease-out forwards;
}
@keyframes copyRipple {
  to { opacity: 0; width: 58px; height: 58px; }
}
.post-actions-menu {
  position: fixed;
  z-index: 110;
  min-width: 190px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(31,31,29,.96), rgba(18,18,17,.94));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  animation: menuPop .18s ease both;
}
.post-actions-menu.open { display: grid; }
.post-actions-menu button {
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--text);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.post-actions-menu button:hover { background: rgba(255,255,255,.08); }
.post-actions-menu [data-lucide] { width: 17px; height: 17px; }
@keyframes menuPop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.search-empty-note {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  animation: replyOpen .22s ease both;
}
.search-empty-note.show { display: block; }
.profile-achievements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.achievement {
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.achievement b { display: block; color: var(--text); font-size: 18px; letter-spacing: -.04em; }
.achievement small { color: var(--muted); }
:root[data-theme="warm"] .post-actions-menu {
  background: linear-gradient(145deg, rgba(252,249,243,.97), rgba(235,229,218,.95));
  border-color: rgba(31,29,26,.12);
  box-shadow: 0 22px 70px rgba(69,55,35,.22), inset 0 1px 0 rgba(255,255,255,.72);
}
:root[data-theme="warm"] .post-actions-menu button:hover,
:root[data-theme="warm"] .search-empty-note,
:root[data-theme="warm"] .achievement { background: rgba(255,255,255,.55); }
@media (max-width: 640px) {
  .profile-achievements { grid-template-columns: 1fr; }
  .post-actions-menu { left: 12px !important; right: 12px; width: auto; }
}


/* Extra social product layer */
.activity-panel { display: grid; gap: 12px; }
.activity-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.activity-row i { width: 18px; height: 18px; color: #9fc1ff; }
.activity-row b { display:block; font-size: 14px; letter-spacing: -.02em; }
.activity-row small { color: var(--muted); }

.onboarding-card { display: grid; gap: 14px; border-radius: var(--radius-xl); padding: 18px; }
.onboarding-card h2 { margin: 0; letter-spacing: -.045em; font-size: 24px; }
.onboarding-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.interest-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip { border: 1px solid rgba(255,255,255,.10); color: var(--muted); background: rgba(255,255,255,.065); border-radius: 999px; padding: 9px 12px; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.interest-chip:hover, .interest-chip.selected { transform: translateY(-1px); color: var(--text); background: rgba(142,185,255,.13); border-color: rgba(142,185,255,.24); }
.onboarding-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.onboarding-card.hide { animation: onboardingOut .22s ease forwards; }
@keyframes onboardingOut { to { opacity: 0; transform: translateY(-8px); } }

.new-posts-wrap { display: flex; }
.new-posts-btn { width: 100%; border: 1px solid rgba(142,185,255,.20); border-radius: 22px; padding: 12px 14px; color: #d9e8ff; background: linear-gradient(145deg, rgba(142,185,255,.16), rgba(255,255,255,.055)); cursor: pointer; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; gap: 9px; box-shadow: inset 0 1px 0 rgba(255,255,255,.11); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; position: relative; overflow: hidden; }
.new-posts-btn::after { content:""; position:absolute; inset:0; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 46%, transparent 70%); transform: translateX(-115%); opacity: 0; }
.new-posts-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(0,0,0,.18), 0 0 0 5px rgba(142,185,255,.055); }
.new-posts-btn:hover::after { opacity: 1; animation: searchShimmer 1s ease both; }
.new-posts-btn i { width: 17px; height: 17px; }

.profile-preview { position: fixed; z-index: 130; width: min(320px, calc(100vw - 24px)); padding: 14px; border-radius: 26px; opacity: 0; transform: translateY(8px) scale(.985); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.profile-preview.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.preview-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.preview-user { display:flex; align-items:center; gap: 11px; min-width: 0; }
.preview-user p { margin:0; }
.preview-user small { color: var(--muted); }
.preview-bio { margin: 12px 0; color: var(--muted); line-height: 1.5; }
.preview-stats { display:flex; gap: 12px; color: var(--muted); font-size: 13px; }
.preview-stats b { color: var(--text); }

.profile-tab-panel { display: none; gap: 14px; }
.profile-tab-panel.active { display: grid; animation: cardIn .28s ease both; }
.profile-media-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-media-tile { min-height: 120px; border-radius: 24px; border:1px solid rgba(255,255,255,.10); background: radial-gradient(circle at 25% 18%, rgba(142,185,255,.22), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); }
.profile-like-row { display:flex; gap: 12px; align-items:flex-start; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.profile-like-row p { margin: 0; color: var(--muted); line-height: 1.5; }
.profile-like-row strong { color: var(--text); }

.command-action { width:100%; border:0; cursor:pointer; font: inherit; text-align: left; }
.command-section-label { color: var(--muted-2); font-size: 12px; font-weight: 800; padding: 8px 10px 2px; text-transform: uppercase; letter-spacing: .08em; }
.command-item.is-hidden { display:none !important; }

:root[data-theme="warm"] .activity-row,
:root[data-theme="warm"] .interest-chip,
:root[data-theme="warm"] .profile-like-row { background: rgba(255,255,255,.48); border-color: rgba(31,29,26,.10); }
:root[data-theme="warm"] .new-posts-btn { color: #21324a; background: linear-gradient(145deg, rgba(142,185,255,.26), rgba(255,255,255,.60)); }
@media (max-width: 640px) {
  .profile-media-grid { grid-template-columns: 1fr 1fr; }
  .onboarding-actions .small-btn { flex: 1 1 100%; justify-content: center; }
}


/* Auth + live data */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-screen{width:min(560px,100%)}.auth-card{padding:26px;border-radius:34px;display:grid;gap:20px}.auth-brand{justify-content:flex-start}.auth-copy h1{font-size:34px;line-height:1.05;margin:0 0 10px}.auth-copy p,.auth-hint{color:var(--muted);margin:0;line-height:1.6}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px;border-radius:22px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}.auth-tabs .tab{justify-content:center}.auth-form{display:none;gap:14px}.auth-form.active{display:grid;animation:pageIn .28s ease both}.auth-form label{display:grid;gap:8px;color:var(--muted);font-weight:700;font-size:13px}.auth-form input,.real-data-input{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.07);color:var(--text);padding:14px 15px;font:inherit;outline:none;transition:.2s ease}.auth-form input:focus,.real-data-input:focus{border-color:rgba(116,167,255,.45);box-shadow:0 0 0 5px rgba(61,132,255,.12)}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-submit{width:100%;justify-content:center}.auth-submit.loading{opacity:.72;pointer-events:none}.profile-mini .logout-btn{margin-left:auto;border:0;background:rgba(255,255,255,.07);color:var(--muted);border-radius:14px;width:36px;height:36px;display:grid;place-items:center;cursor:pointer}.profile-mini .logout-btn:hover{color:var(--text);background:rgba(255,255,255,.12)}.feed-empty{padding:28px;border-radius:28px;text-align:center}.feed-empty h3{margin:0 0 8px}.feed-empty p{margin:0;color:var(--muted)}.messenger-auth-actions{display:grid;gap:10px}.user-search-results{display:grid;gap:8px}.user-result{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}.user-result .who{min-width:0}.user-result .small-btn{white-space:nowrap}.empty-conversations{padding:14px;border-radius:20px;color:var(--muted);border:1px dashed rgba(255,255,255,.14);line-height:1.5}@media(max-width:640px){.form-grid-2{grid-template-columns:1fr}.auth-copy h1{font-size:28px}.auth-card{padding:20px;border-radius:28px}}


/* Production cleanup */
.nav-badge,.post-badge-row,.profile-achievements,[data-activity-panel],.new-posts-wrap{display:none!important}
.empty-side{min-height:120px}
.messenger-list .profile-mini{display:flex;align-items:center;gap:12px;padding:12px;border-radius:20px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.user-search-results{display:grid;gap:8px;max-height:260px;overflow:auto}.user-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.empty-conversations{padding:14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);color:var(--muted);line-height:1.5}
.profile-tab-panels{display:grid;gap:14px}.profile-tab-panel{display:none}.profile-tab-panel.active{display:block}
