:root {
  color-scheme: dark;
  --bg: #0b0e11;
  --sidebar-bg: #0b0e11;
  --panel: #181a20;
  --panel-soft: #1e2329;
  --line: #1e2329;
  --line-soft: #2b3139;
  --text: #eaecef;
  --muted: #5e6673;
  --muted-2: #848e9c;
  --yellow: #fcd535;
  --yellow-hover: #f0c90d;
  --green: #0ecb81;
  --red: #f6465d;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: 358px minmax(0, 588px) 394px;
  column-gap: 0;
  width: 100%;
  max-width: 1708px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px 0 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 19px 0;
  background: transparent;
  border-right: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 78px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 137px;
  height: auto;
}

.nav-list {
  display: grid;
  gap: 14px;
  margin-top: 45px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 0 36px 0 108px;
  border-radius: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: transparent;
  color: var(--text);
}

.icon {
  display: grid;
  place-items: center;
  width: 24px;
  color: currentColor;
}

.icon svg,
.search-wrap svg,
.metrics svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.is-active .icon svg {
  color: var(--muted-2);
}

.post-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 44px;
  margin: 30px 0 0 108px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #181a20;
  font-weight: 700;
}

.main {
  min-width: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 16px;
  background: rgba(11, 14, 17, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-width: 0;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
}

.search-wrap svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.ghost-button,
.yellow-button,
.follow-button,
.mini-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 17px;
  border-radius: 6px;
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  color: var(--text);
}

.yellow-button,
.follow-button,
.mini-follow {
  background: var(--yellow);
  color: #181a20;
}

.yellow-button:hover,
.follow-button:hover,
.post-button:hover,
.mini-follow:hover {
  background: var(--yellow-hover);
}

.profile-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.cover {
  height: 156px;
  background: #4a4108;
}

.profile-body {
  padding: 0 24px 24px;
}

.avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -56px;
}

.avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg);
  padding: 5px;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--panel-soft);
}

.verified {
  position: absolute;
  right: 6px;
  bottom: 11px;
  width: 24px;
  height: 24px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--bg);
}

.follow-button {
  min-width: 88px;
}

.profile-name {
  margin: 0;
  padding-top: 24px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.creator-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.creator-line img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(252, 213, 53, 0.12);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
}

.bio {
  margin: 18px 0 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.badges svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 15px;
}

.badges .bnb-badge svg {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: var(--yellow);
  fill: #ffffff;
  stroke: #ffffff;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.2;
}

.stats strong {
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
}

.mutual-token {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.2;
}

.mutual-token-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  color: #ffffff;
}

.mutual-token-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.feed-panel {
  background: var(--bg);
}

.tabs,
.filters {
  display: flex;
  align-items: center;
  height: 52px;
  border-bottom: 1px solid var(--line);
}

.tabs button,
.filters button {
  position: relative;
  height: 100%;
  padding: 0 24px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tabs button.is-active,
.filters button.is-active {
  color: var(--text);
}

.tabs button.is-active::after,
.filters button.is-active::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
}

.filters {
  height: 44px;
}

.filters button {
  font-size: 14px;
}

.post-card {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.post-card:hover {
  background: rgba(32, 38, 48, 0.42);
}

.pin {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-soft);
}

.post-head strong {
  display: block;
  font-size: 15px;
}

.post-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.article-chip {
  margin-left: auto;
}

.post-card h2 {
  margin: 16px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.post-content-link {
  display: block;
}

.post-card p {
  margin: 10px 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.75;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.token-row a {
  display: inline-flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.token-row b,
.market-card em {
  color: var(--red);
  font-style: normal;
}

.metrics {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: none;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metrics svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.metric-icon {
  justify-content: center;
}

.right-rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 16px;
  height: max-content;
  margin-left: 40px;
  padding-top: 78px;
}

.rail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.rail-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: 0;
}

.rail-card a {
  display: block;
  padding: 10px 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.rail-card a:first-of-type {
  border-top: 0;
}

.market-card a,
.creator-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.market-card a:first-of-type,
.creator-mini:first-of-type {
  border-top: 0;
}

.market-card span,
.creator-mini > a:first-child {
  color: var(--muted-2);
  font-size: 14px;
}

.creator-mini a {
  padding: 0;
  border-top: 0;
}

.market-card b {
  margin-left: auto;
  font-size: 14px;
}

.market-card em {
  width: 62px;
  text-align: right;
  font-size: 13px;
}

.mini-follow {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.ghost-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 17px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.stocks-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(252, 213, 53, 0.18), rgba(24, 26, 32, 0.12) 44%, rgba(11, 14, 17, 0) 100%),
    var(--bg);
}

.stocks-hero::after {
  content: "";
  position: absolute;
  right: -44px;
  top: 24px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(252, 213, 53, 0.22);
  transform: rotate(45deg);
}

.stocks-hero-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: #181a20;
}

.stocks-hero-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stocks-hero h1 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.stocks-hero p {
  max-width: 470px;
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.65;
}

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

.stocks-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stocks-strip div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.stocks-strip div:last-child {
  border-right: 0;
}

.stocks-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.stocks-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.stocks-section {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.section-title-row > a {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}

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

.product-tile {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.product-tile span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.product-tile h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.product-tile p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}

.market-tabs {
  display: inline-flex;
  min-width: 0;
  padding: 3px;
  border-radius: 7px;
  background: var(--panel);
}

.market-tabs button {
  height: 28px;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.market-tabs .is-active {
  background: var(--line-soft);
  color: var(--text);
}

.stock-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stock-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.6fr) 1fr 0.8fr 0.6fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}

.stock-row:first-child {
  border-top: 0;
}

.stock-head {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stock-row b,
.stock-row em {
  display: block;
}

.stock-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.up {
  color: var(--green) !important;
}

.down {
  color: var(--red) !important;
}

.stock-update {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.stock-update:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.update-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.stock-update h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.35;
}

.stock-update p {
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

.watch-card a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-open {
  overflow: hidden;
}

.access-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
}

.access-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(420px, 100%);
  padding: 34px 28px 30px;
  border-radius: 18px;
  background: #171d26;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color: var(--text);
  text-align: center;
}

.access-modal-icon {
  position: relative;
  width: 98px;
  height: 86px;
  margin-bottom: 22px;
}

.access-modal-icon .pin {
  position: absolute;
  left: 14px;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50% 50% 50% 0;
  background: #444d5b;
  transform: rotate(-45deg);
}

.access-modal-icon .pin::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 8px solid #767f8c;
  background: #171d26;
}

.access-modal-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 10px;
  bottom: 6px;
  height: 5px;
  background: #747c87;
}

.access-modal-icon .warn {
  position: absolute;
  right: 3px;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0b90b;
  color: #1e2329;
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
}

.access-modal p {
  max-width: 340px;
  margin: 0;
  color: #d6d9de;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.access-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 28px;
  border-radius: 8px;
  background: var(--yellow);
  color: #181a20;
  font-size: 18px;
  font-weight: 800;
}

.access-login:hover {
  background: var(--yellow-hover);
}

@media (max-width: 1400px) {
  .app-shell {
    grid-template-columns: 318px minmax(0, 588px) 324px;
    column-gap: 0;
  }

  .brand {
    padding: 0 70px;
  }

  .nav-item {
    padding: 0 28px 0 94px;
  }

  .post-button {
    margin-left: 94px;
  }

  .right-rail {
    margin-left: 24px;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 82px minmax(0, 680px);
    justify-content: center;
  }

  .brand-logo,
  .nav-item {
    font-size: 0;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
    object-fit: cover;
    object-position: left center;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .icon {
    font-size: 18px;
  }

  .icon svg {
    width: 22px;
    height: 22px;
  }

  .post-button {
    width: 48px;
    margin: 26px auto 0;
    padding: 0;
    font-size: 0;
  }

  .post-button::before {
    content: "+";
    font-size: 24px;
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
    padding: 0;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 20;
    display: block;
    height: 60px;
    padding: 0;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgba(24, 26, 32, 0.96);
    backdrop-filter: blur(12px);
  }

  .brand,
  .post-button,
  .nav-item:nth-child(n + 6) {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
  }

  .nav-item {
    height: 60px;
    border-radius: 0;
  }

  .main {
    border-inline: 0;
    padding-bottom: 60px;
  }

  .topbar {
    height: 58px;
    padding: 0 12px;
  }

  .auth-actions {
    gap: 6px;
  }

  .ghost-button,
  .yellow-button {
    height: 32px;
    padding: 0 11px;
  }

  .cover {
    height: 126px;
  }

  .profile-body,
  .post-card,
  .stocks-hero,
  .stocks-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stocks-hero h1 {
    font-size: 26px;
  }

  .stocks-strip {
    grid-template-columns: 1fr;
  }

  .stocks-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stocks-strip div:last-child {
    border-bottom: 0;
  }

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

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-row {
    grid-template-columns: minmax(90px, 1.2fr) 0.9fr 0.7fr;
    padding: 0 12px;
  }

  .stock-row span:nth-child(4) {
    display: none;
  }

  .access-modal {
    padding: 30px 22px 24px;
    border-radius: 16px;
  }

  .access-modal-icon {
    transform: scale(0.82);
    margin-bottom: 14px;
  }

  .access-modal p {
    font-size: 15px;
  }

  .access-login {
    height: 48px;
    margin-top: 24px;
    font-size: 17px;
  }

  .profile-body {
    padding-bottom: 84px;
  }

  .stats {
    gap: 18px 28px;
  }

  .metrics {
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  .metrics span {
    gap: 4px;
  }

  .metrics svg {
    width: 15px;
    height: 15px;
  }
}
