:root {
  color-scheme: light;
  --bg: #f0f2f5;
  --panel: #ffffff;
  --ink: #1c1e21;
  --muted: #65676b;
  --line: #d8dadf;
  --soft-blue: #e7f3ff;
  --fb-blue: #1877f2;
  --fb-blue-dark: #0f5fc4;
  --sol-purple: #7b3ff2;
  --sol-green: #14f195;
  --sol-teal: #00d1b2;
  --red: #d64545;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(20, 241, 149, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(123, 63, 242, 0.12), transparent 30rem),
    var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--fb-blue);
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0 16px;
}

.link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  padding: 0 16px;
}

button:hover {
  background: var(--fb-blue-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 24px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(112px, 28vw);
  min-width: 78px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.nav a {
  border-radius: 8px;
  padding: 12px 18px;
}

.nav a:hover {
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.wallet-button {
  justify-self: end;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.22);
}

.wallet-button:hover {
  background: linear-gradient(135deg, #6931dd, var(--fb-blue-dark) 52%, #00b99d);
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 680px) 290px;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.sidebar,
.rightbar {
  display: grid;
  align-content: start;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.feed-column {
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.08);
}

.profile-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 48%, var(--sol-green));
  color: white;
  font-weight: 900;
}

.avatar.has-photo {
  background-color: var(--line);
  background-position: center;
  background-size: cover;
}

.avatar.small {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 13px;
}

.avatar.mini {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 11px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-panel h1 {
  margin: 0;
  font-size: 24px;
}

.wallet-address {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.profile-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

input,
textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
}

input:focus,
textarea:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
  outline: 0;
}

textarea {
  resize: vertical;
}

.rules-panel,
.news-panel {
  padding: 18px;
}

.rules-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.news-panel {
  display: grid;
  gap: 12px;
}

.news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-panel-header .eyebrow {
  margin: 0;
}

.news-refresh {
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
  font-size: 12px;
  padding: 0 10px;
}

.news-refresh:hover {
  background: #dcebff;
  color: var(--fb-blue-dark);
}

.news-list {
  display: grid;
  gap: 4px;
}

.news-item {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 8px;
}

.news-item:hover {
  background: var(--soft-blue);
}

.news-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.news-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.composer {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.composer-row {
  display: flex;
  gap: 12px;
}

.composer textarea {
  min-height: 82px;
}

.composer-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.image-picker {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--fb-blue);
  cursor: pointer;
  padding: 0 14px;
}

.image-picker input {
  display: none;
}

.image-preview {
  display: grid;
  gap: 10px;
}

.image-preview img {
  width: 100%;
  max-height: 320px;
  border-radius: 10px;
  object-fit: cover;
}

.image-preview button {
  justify-self: start;
  border: 1px solid var(--line);
  background: white;
  color: var(--red);
}

.composer-confirmation {
  border: 1px solid rgba(20, 241, 149, 0.34);
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.12);
  color: #0a7f52;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.status-line {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.mobile-wallet-note {
  display: none;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-wallet-note strong,
.mobile-wallet-note span {
  color: var(--fb-blue);
}

.feed-list {
  display: grid;
  gap: 16px;
}

.feed-loader {
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--fb-blue);
}

.feed-loader:hover {
  background: var(--soft-blue);
  color: var(--fb-blue-dark);
}

.post-card {
  overflow: hidden;
}

.post-card.new-post-highlight {
  box-shadow: 0 0 0 3px rgba(20, 241, 149, 0.36), 0 10px 28px rgba(24, 119, 242, 0.16);
}

.post-header {
  display: flex;
  gap: 12px;
  padding: 16px 16px 0;
}

.post-card--link-only .post-header {
  padding-bottom: 14px;
}

.post-avatar,
.post-name,
.comment-avatar,
.comment strong,
.member {
  cursor: pointer;
}

.post-header h2 {
  margin: 0;
  font-size: 16px;
}

.post-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.post-body {
  margin: 14px 16px;
  white-space: pre-wrap;
}

.post-body a {
  color: var(--fb-blue);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.post-body a:hover {
  color: var(--fb-blue-dark);
  text-decoration: underline;
}

.post-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.link-preview {
  display: grid;
  margin: 0 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.link-preview:hover {
  border-color: var(--fb-blue);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.1);
}

.link-preview > img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  max-height: 230px;
  object-fit: cover;
  background: #f0f2f5;
}

.link-preview > div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.link-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-preview strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.link-preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 16px;
  padding: 8px 0;
  color: var(--muted);
}

.like-count,
.tip-count {
  margin-left: auto;
}

.tip-count {
  margin-left: 0;
  border-radius: 999px;
  background: rgba(20, 241, 149, 0.14);
  color: #0d6b4c;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.like-button,
.tip-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.message-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: white;
  color: var(--fb-blue);
}

.admin-delete-button {
  min-height: 36px;
  border: 1px solid #ffd0d7;
  background: #fff5f6;
  color: var(--red);
}

.like-button:hover,
.message-button:hover,
.tip-button:hover {
  background: #dcebff;
  color: var(--fb-blue-dark);
}

.admin-delete-button:hover {
  background: #ffe5e9;
}

.tip-panel {
  display: grid;
  gap: 10px;
  margin: 12px 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.tip-panel[hidden] {
  display: none;
}

.tip-panel-header,
.tip-options,
.tip-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-panel-header {
  justify-content: space-between;
}

.tip-close {
  min-height: 32px;
  width: 32px;
  background: white;
  color: var(--ink);
  padding: 0;
}

.tip-options,
.tip-custom {
  flex-wrap: wrap;
}

.tip-choice {
  min-height: 34px;
  border: 1px solid var(--line);
  background: white;
  color: var(--fb-blue);
}

.tip-custom input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
}

.tip-custom input {
  width: 140px;
}

.tip-token-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
  padding: 0 10px;
}

.tip-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tip-status-success {
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.14);
  color: #0d6b4c;
  font-weight: 800;
  padding: 10px;
}

.tip-status-error {
  border-radius: 8px;
  background: #fff5f6;
  color: var(--red);
  font-weight: 800;
  padding: 10px;
}

.tip-status a {
  color: var(--fb-blue);
  text-decoration: underline;
}

.comment-form {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
}

.comment-form input {
  border-radius: 999px;
}

.comment-tools {
  display: grid;
  gap: 8px;
}

.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-row button {
  min-height: 32px;
  min-width: 36px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 8px;
}

.comment-actions {
  display: flex;
  gap: 8px;
}

.comment-actions button {
  min-height: 38px;
}

.comment-media-input {
  display: none;
}

.comment-media-picker {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--fb-blue);
  cursor: pointer;
  padding: 0 12px;
}

.comment-media-preview {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.comment-media-preview img {
  max-width: min(260px, 100%);
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.comment-media-preview button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: white;
  color: var(--red);
}

.comments {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.comment {
  display: flex;
  gap: 8px;
  border-radius: 10px;
  background: #f0f2f5;
  padding: 10px 12px;
  font-size: 14px;
}

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

.comment strong {
  display: block;
  margin-bottom: 2px;
}

.comment-like-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.comment-like-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comment-delete-button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comment-like-button:hover,
.comment-delete-button:hover {
  background: transparent;
  text-decoration: underline;
}

.comment-like-button:hover {
  color: var(--fb-blue-dark);
}

.comment-image {
  display: block;
  max-width: min(320px, 100%);
  max-height: 260px;
  margin-top: 8px;
  border-radius: 10px;
  object-fit: cover;
}

.member-list {
  display: grid;
  gap: 10px;
}

.member {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
  padding: 6px;
}

.member > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.member-name-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-live-badge,
.live-pill {
  display: inline-grid;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.member-live-badge {
  flex: 0 0 auto;
  padding: 0 6px;
}

.member-message-button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
  font-size: 12px;
  padding: 0 10px;
}

.member:hover {
  background: var(--soft-blue);
}

.rightbar .panel {
  padding: 18px;
}

.metric {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--muted);
}

.metric strong {
  color: var(--ink);
}

.profile-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

.members-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.members-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.members-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.members-hero p {
  margin: 8px 0 0;
  color: var(--muted);
}

.members-hero > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--fb-blue);
  font-size: 14px;
  padding: 10px 14px;
}

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

.member-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.member-tile:hover {
  border-color: var(--fb-blue);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.12);
  transform: translateY(-1px);
}

.member-tile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  font-size: 20px;
}

.member-tile-body {
  display: grid;
  align-content: center;
  min-width: 0;
}

.member-tile-body strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tile-body span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tile-body p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.members-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
}

.token-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.token-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.token-hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.token-hero p,
.token-card p {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--soft-blue);
  color: var(--fb-blue);
}

.secondary-button:hover {
  background: #dbeeff;
  color: var(--fb-blue-dark);
}

.token-mark {
  display: grid;
  width: 260px;
  height: 148px;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 50%, var(--sol-green));
  box-shadow: 0 18px 40px rgba(24, 119, 242, 0.22);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

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

.token-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.token-card h2 {
  margin: 0;
  font-size: 24px;
}

.token-card code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #f0f2f5;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px;
}

.pump-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.pump-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pump-panel-header h2 {
  margin: 0;
  font-size: 24px;
}

.pump-panel-header a {
  flex: 0 0 auto;
  color: var(--fb-blue);
  font-weight: 800;
}

.pump-frame-wrap {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0f1a;
}

.pump-frame-wrap iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 640px;
  border: 0;
  background: white;
}

.pump-fallback {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 0;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 14px;
}

.pump-fallback span {
  color: var(--muted);
}

.profile-page-inner {
  display: grid;
  gap: 16px;
}

.back-button {
  justify-self: start;
}

.profile-cover {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.bio-form-panel {
  padding: 18px;
}

.how-page {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.how-hero {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.how-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.05;
}

.how-hero p,
.how-card p,
.how-admin p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.how-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.how-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sol-purple), var(--fb-blue) 52%, var(--sol-teal));
  color: white;
  font-weight: 900;
}

.how-card h2,
.how-admin h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.how-admin {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.profile-page-avatar {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  font-size: 30px;
}

.profile-cover h2 {
  margin: 0;
  font-size: 32px;
}

.profile-bio {
  margin: 12px 0 0;
  color: var(--muted);
}

.profile-live-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
}

.profile-posts {
  display: grid;
  gap: 14px;
}

.profile-post-card {
  padding-top: 2px;
}

.empty-profile {
  padding: 18px;
  color: var(--muted);
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.live-stage {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.live-stage-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.live-stage h1 {
  margin: 0;
  font-size: 28px;
}

.live-stage p {
  margin: 8px 0 0;
  color: var(--muted);
}

.live-controls {
  display: flex;
  gap: 8px;
}

.live-controls input {
  width: min(320px, 34vw);
}

.live-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #0d1117;
}

.live-tip-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.96), rgba(24, 119, 242, 0.95) 48%, rgba(20, 241, 149, 0.93));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: 14px 16px;
}

.live-tip-overlay[hidden] {
  display: none;
}

.live-tip-overlay strong {
  font-size: 14px;
}

.live-tip-overlay span {
  font-size: 22px;
  font-weight: 900;
}

#liveVideo,
#liveFallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#liveFallback {
  display: block;
}

.permission-help {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 10px;
  background: #fff5f5;
  padding: 12px;
}

.permission-help p {
  margin: 0;
  color: #9f1d1d;
  font-weight: 700;
}

.permission-help div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-help button {
  min-height: 36px;
}

.live-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.live-list-panel,
.live-chat-panel {
  padding: 16px;
}

.live-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.live-session {
  display: grid;
  gap: 10px;
  justify-items: start;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.live-session:hover,
.live-session.active {
  border-color: var(--fb-blue);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.14);
  transform: translateY(-1px);
}

.live-thumb {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(20, 241, 149, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(153, 69, 255, 0.95), rgba(24, 119, 242, 0.92) 52%, rgba(20, 241, 149, 0.78));
}

.live-card-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  font-size: 16px;
}

.live-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0 7px;
}

.live-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 12px 12px;
}

.live-session strong {
  display: block;
  overflow: hidden;
  color: var(--fb-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-session span {
  color: var(--muted);
  font-size: 12px;
}

.live-empty {
  color: var(--muted);
  font-size: 14px;
}

.live-chat-panel {
  display: grid;
  gap: 10px;
}

.live-tip-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 241, 149, 0.36);
  border-radius: 10px;
  background: #f7fffb;
  padding: 12px;
}

.live-tip-box[hidden] {
  display: none;
}

.live-tip-box > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-tip-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.live-tip-options,
.live-tip-form {
  display: flex;
  gap: 8px;
}

.live-tip-options button,
.live-tip-form button {
  min-height: 36px;
}

.live-tip-options button {
  flex: 1;
  background: #e8f3ff;
  color: var(--fb-blue);
}

.live-tip-form input {
  min-width: 0;
  flex: 1;
}

.live-tip-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.live-tip-status a {
  color: inherit;
  font-weight: 900;
}

.live-chat {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.live-chat-message {
  border-radius: 10px;
  background: #f0f2f5;
  padding: 9px 10px;
  font-size: 14px;
}

.live-chat-message strong {
  display: block;
  margin-bottom: 2px;
}

.live-chat-tip {
  border: 1px solid rgba(153, 69, 255, 0.28);
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.14), rgba(20, 241, 149, 0.16));
}

.live-chat-tip em {
  display: block;
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.live-chat-tip a {
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 900;
}

.live-chat-form {
  display: flex;
  gap: 8px;
}

.live-chat-form button {
  min-height: 38px;
}

.chat-dock {
  position: fixed;
  right: 22px;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(360px, calc(100vw - 24px));
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  background: white;
  box-shadow: 0 16px 48px rgba(28, 30, 33, 0.18);
}

.chat-dock[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.chat-header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.chat-header button {
  min-height: 32px;
  width: 32px;
  background: #f0f2f5;
  color: var(--ink);
  padding: 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: 14px;
}

.chat-message {
  max-width: 78%;
  border-radius: 16px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.mine {
  align-self: flex-end;
  background: var(--fb-blue);
  color: white;
}

.chat-message.theirs {
  align-self: flex-start;
  background: #f0f2f5;
  color: var(--ink);
}

.chat-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.chat-form input {
  border-radius: 999px;
}

.chat-form button {
  min-height: 38px;
}

@media (max-width: 1040px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .rightbar {
    position: static;
  }

  .live-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .token-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .nav {
    justify-content: start;
    overflow-x: auto;
    font-size: 16px;
  }

  .wallet-button {
    justify-self: stretch;
  }

  .layout {
    padding: 12px;
  }

  .how-page {
    padding: 18px 12px 32px;
  }

  .how-hero {
    padding: 22px;
  }

  .how-hero h1 {
    font-size: 28px;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .members-page {
    padding: 12px;
  }

  .members-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .members-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .token-page {
    padding: 12px;
  }

  .token-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .token-hero h1 {
    font-size: 38px;
  }

  .token-mark {
    width: 210px;
    height: 112px;
    border-radius: 26px;
    font-size: 24px;
  }

  .pump-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pump-frame-wrap {
    min-height: 560px;
  }

  .pump-frame-wrap iframe {
    height: 560px;
  }

  .mobile-wallet-note {
    display: block;
  }

  .comment-form,
  .composer-tools {
    flex-direction: column;
  }

  .chat-dock {
    right: 8px;
    width: calc(100vw - 16px);
    height: 52vh;
  }

  .profile-page {
    padding: 12px;
  }

  .profile-cover {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-layout {
    padding: 12px;
  }

  .live-stage-header,
  .live-controls,
  .live-chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .live-controls input {
    width: 100%;
  }
}
