:root {
  --bg-a: #f3f8ff;
  --bg-b: #eef5ff;
  --ink: #0f1f3f;
  --muted: #5d6f96;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(26, 56, 120, 0.16);
  --brand: #1e5eff;
  --brand-2: #2ca8d8;
  --danger: #d83446;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(18, 42, 86, 0.14);
  --glass-panel-fill:
    radial-gradient(140% 220% at 0% 0%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.24) 32%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(120% 180% at 100% 100%, rgba(77, 148, 255, 0.16) 0%, rgba(77, 148, 255, 0) 54%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58) 0%, rgba(240, 246, 255, 0.28) 100%);
  --glass-control-fill:
    radial-gradient(120% 200% at 10% 0%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.24) 34%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.64) 0%, rgba(237, 244, 255, 0.3) 100%);
  --glass-border-strong: rgba(255, 255, 255, 0.58);
  --glass-shadow-strong:
    0 24px 46px rgba(18, 42, 86, 0.16),
    0 8px 18px rgba(18, 42, 86, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  --glass-focus-ring: rgba(30, 94, 255, 0.18);
  --glass-panel-backdrop: blur(16px) saturate(170%);
  --glass-control-backdrop: blur(12px) saturate(160%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-a), var(--bg-b));
  min-height: 100vh;
}

.explore-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 5%, rgba(30, 94, 255, 0.2), transparent 32%),
    radial-gradient(circle at 93% 0%, rgba(44, 168, 216, 0.2), transparent 36%);
  z-index: -1;
}

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 4px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.99), rgba(235, 243, 255, 0.96));
  border: 1px solid rgba(26, 56, 120, 0.12);
  box-shadow: 0 8px 18px rgba(18, 42, 86, 0.1);
}

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

.link-btn,
button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover,
.link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(19, 40, 89, 0.15);
}

.link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explore-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 24px 40px;
}

.explore-toolbar,
.card-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.explore-toolbar {
  padding: 16px;
  margin-bottom: 18px;
}

.quantura-rn-explore-shell {
  margin-bottom: 16px;
}

.quantura-rn-root {
  width: 100%;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.search-wrap input,
.inline-controls input,
.ticker-filter input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 11px 14px;
  outline: none;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  background: #fff;
  border: 1px solid var(--line);
}

.tab.is-active {
  background: linear-gradient(135deg, var(--brand), #4f8bff);
  border-color: transparent;
  color: #fff;
}

.ticker-filter {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.ticker-filter label {
  font-size: 13px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.explore-grid {
  columns: 1;
  column-gap: 16px;
}

@media (min-width: 720px) {
  .explore-grid {
    columns: 2;
  }
}

@media (min-width: 1040px) {
  .explore-grid {
    columns: 3;
  }
}

@media (min-width: 1320px) {
  .explore-grid {
    columns: 4;
  }
}

.post-card {
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin: 0 0 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(14, 37, 77, 0.08);
  cursor: pointer;
}

.post-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.post-preview {
  min-height: 150px;
  background: linear-gradient(135deg, rgba(43, 113, 242, 0.18), rgba(44, 168, 216, 0.24));
  position: relative;
}

.post-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-summary {
  padding: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-pill {
  border: 1px solid rgba(15, 31, 63, 0.14);
  border-radius: 12px;
  padding: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.metric-pill b {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.post-body {
  padding: 12px;
}

.post-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.post-caption {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.post-expand-row {
  margin-top: 12px;
}

.see-more-btn {
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(30, 94, 255, 0.12), rgba(44, 168, 216, 0.12));
  border-color: rgba(30, 94, 255, 0.22);
  color: #1745b7;
}

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

.chip {
  background: rgba(30, 94, 255, 0.12);
  border: 1px solid rgba(30, 94, 255, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1946b9;
}

.post-meta {
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}

.engagement-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engagement-row button {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 10px;
}

.engagement-row button.active {
  background: rgba(30, 94, 255, 0.16);
  border-color: rgba(30, 94, 255, 0.4);
}

.feed-loading,
.empty-state {
  text-align: center;
  color: var(--muted);
  margin: 16px 0;
}

.sentinel {
  height: 1px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 27, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 55px rgba(6, 13, 30, 0.32);
  padding: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.post-modal-preview {
  margin-right: 56px;
  border-radius: 16px;
  overflow: hidden;
}

.post-modal-head {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.post-detail-section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(26, 56, 120, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(242, 248, 255, 0.88));
}

.post-detail-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3559a6;
}

.post-rich-text {
  color: var(--ink);
  line-height: 1.68;
}

.post-rich-text > :first-child {
  margin-top: 0;
}

.post-rich-text > :last-child {
  margin-bottom: 0;
}

.post-rich-text p,
.post-rich-text ul,
.post-rich-text ol,
.post-rich-text blockquote,
.post-rich-text pre {
  margin: 0 0 12px;
}

.post-rich-text ul,
.post-rich-text ol {
  padding-left: 20px;
}

.post-rich-text blockquote {
  border-left: 3px solid rgba(30, 94, 255, 0.28);
  margin-left: 0;
  padding-left: 12px;
  color: #365186;
}

.post-rich-text code,
.post-rich-text pre {
  font-family: "SFMono-Regular", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.post-rich-text pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 31, 63, 0.06);
}

.post-rich-text a {
  color: #1b54dc;
  text-decoration: none;
}

.post-rich-text a:hover {
  text-decoration: underline;
}

.comment-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(241, 247, 255, 0.88));
}

.comment-meta {
  font-size: 12px;
  color: var(--muted);
}

.comment-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.comment-delete-btn {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #a7283a;
  border-color: rgba(216, 52, 70, 0.2);
  background: rgba(255, 255, 255, 0.85);
}

.comments-panel {
  margin-top: 22px;
  padding-top: 4px;
}

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

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

.comments-panel--giscus .comments-header {
  align-items: flex-start;
}

.comments-panel--giscus .comments-header > div {
  display: grid;
  gap: 6px;
}

.comments-header h3 {
  margin: 0;
}

.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 94, 255, 0.18);
  background: rgba(30, 94, 255, 0.08);
  font-weight: 700;
  color: #1946b9;
}

.comment-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(26, 56, 120, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.comment-form textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.comment-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}

.comment-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-empty {
  padding: 16px;
  border: 1px dashed rgba(26, 56, 120, 0.16);
  border-radius: 14px;
  background: rgba(250, 252, 255, 0.8);
}

.comments-panel--giscus p {
  margin: 0;
}

.quantura-comments-host {
  width: 100%;
  min-width: 0;
  min-height: 260px;
}

.quantura-comments-shell {
  min-height: 260px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(26, 56, 120, 0.18);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.92), rgba(241, 247, 255, 0.86));
}

.quantura-comments-loading {
  min-height: 226px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.quantura-comments-host iframe.giscus-frame {
  width: 100%;
}

.quantura-comments-fallback {
  display: grid;
  gap: 14px;
}

.quantura-comments-fallback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quantura-comments-fallback-head h4 {
  margin: 4px 0 0;
}

.quantura-comments-fallback-head p,
.quantura-comments-fallback-body p {
  margin: 0;
}

.quantura-comments-fallback-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quantura-comments-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 56, 120, 0.18);
  background: rgba(11, 15, 26, 0.94);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 42, 86, 0.18);
}

.quantura-comments-fallback-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quantura-comments-fallback-summary span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(26, 56, 120, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.quantura-comments-fallback-body,
.quantura-comments-fallback-empty,
.quantura-comments-fallback-meta {
  color: var(--muted);
  line-height: 1.6;
}

.quantura-comments-fallback-list {
  display: grid;
  gap: 12px;
}

.quantura-comments-fallback-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(26, 56, 120, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.quantura-comments-fallback-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantura-comments-fallback-author a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.quantura-comments-fallback-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(26, 56, 120, 0.12);
}

.quantura-comments-fallback-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 26, 0.08);
  color: var(--ink);
  font-weight: 800;
}

html[data-liquid-glass-mode="refraction"] {
  --glass-panel-backdrop: url("#quantura-liquid-glass-panel-filter") blur(18px) saturate(174%);
  --glass-control-backdrop: url("#quantura-liquid-glass-control-filter") blur(12px) saturate(164%);
}

.topbar,
.explore-toolbar,
.card-surface,
.post-card,
.modal-panel,
.comments-panel--giscus,
.quantura-comments-shell {
  background: var(--glass-panel-fill);
  border-color: var(--glass-border-strong);
  box-shadow: var(--glass-shadow-strong);
  backdrop-filter: var(--glass-panel-backdrop);
  -webkit-backdrop-filter: var(--glass-panel-backdrop);
}

.link-btn,
button,
.tab,
.engagement-row button,
.search-wrap input,
.inline-controls input,
.ticker-filter input,
.comment-form textarea,
.comment-form select {
  background: var(--glass-control-fill);
  border-color: var(--glass-border-strong);
  box-shadow:
    0 16px 30px rgba(18, 42, 86, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: var(--glass-control-backdrop);
  -webkit-backdrop-filter: var(--glass-control-backdrop);
}

.link-btn,
button,
.tab,
.engagement-row button,
.post-card,
.modal-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.link-btn::before,
button::before,
.tab::before,
.post-card::before,
.modal-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.18) 30%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(110% 90% at 84% 100%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
}

.tab.is-active,
.engagement-row button.active {
  background:
    radial-gradient(130% 200% at 0% 0%, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.18) 30%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, rgba(30, 94, 255, 0.32) 0%, rgba(44, 168, 216, 0.18) 100%);
  color: var(--ink);
  border-color: rgba(30, 94, 255, 0.34);
}

.search-wrap input:focus,
.inline-controls input:focus,
.ticker-filter input:focus,
.comment-form textarea:focus,
.comment-form select:focus,
.link-btn:focus-visible,
button:focus-visible,
.tab:focus-visible {
  outline: none;
  border-color: rgba(30, 94, 255, 0.42);
  box-shadow:
    0 0 0 4px var(--glass-focus-ring),
    0 16px 30px rgba(18, 42, 86, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(220, 232, 252, 0.9), rgba(241, 248, 255, 1), rgba(220, 232, 252, 0.9));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-preview {
  height: 160px;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
}

.w80 { width: 80%; }
.w60 { width: 60%; }
.w40 { width: 40%; }
.w85 { width: 85%; }
.w70 { width: 70%; }
.w50 { width: 50%; }

.native-ad-slot {
  cursor: default;
}

.native-ad-inner {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.native-ad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.native-ad-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #6e4300;
  background: #ffebc9;
  border: 1px solid #f9d08f;
}

.native-ad-choices {
  font-size: 11px;
  color: var(--muted);
}

.native-ad-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.native-ad-copy {
  min-width: 0;
}

.native-ad-headline {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.native-ad-body {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.native-ad-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.native-ad-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.native-ad-icon-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1d4bb9;
  background: rgba(30, 94, 255, 0.15);
}

.native-ad-media {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.native-ad-media-fallback {
  background: linear-gradient(135deg, rgba(31, 89, 214, 0.16), rgba(44, 168, 216, 0.2));
}

.native-ad-cta {
  justify-self: start;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
}

.native-ad-skeleton {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.native-ad-line {
  height: 12px;
  margin-bottom: 0;
}

.native-ad-skeleton .native-ad-media {
  min-height: 110px;
}

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

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

.profile-header {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-header-main {
  min-width: 0;
}

.profile-meta-grid {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0a6f2f;
  background: rgba(47, 178, 92, 0.16);
  border: 1px solid rgba(47, 178, 92, 0.34);
}

.avatar-wrap img {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.avatar-wrap img.brand-avatar {
  object-fit: contain;
  padding: 5px;
  border-color: rgba(26, 56, 120, 0.18);
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.99), rgba(232, 241, 255, 0.96));
  box-shadow: 0 12px 26px rgba(18, 42, 86, 0.14);
}

.card-surface {
  padding: 16px;
}

.card-surface h2 {
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
}

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

.profile-post-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.profile-post-row h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.saved-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.saved-item-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.saved-item-title {
  font-weight: 700;
  margin: 0 0 5px;
}

.saved-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.inline-controls {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-controls button {
  border-radius: 10px;
}

.settings-grid {
  display: grid;
  gap: 8px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.token-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.token-chip {
  background: rgba(30, 94, 255, 0.1);
  border: 1px solid rgba(30, 94, 255, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.token-chip button {
  border-radius: 999px;
  padding: 2px 7px;
  border-color: rgba(216, 52, 70, 0.25);
  color: var(--danger);
}

@media (max-width: 720px) {
  .topbar,
  .explore-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-wrap {
    grid-template-columns: 1fr;
  }

  .ticker-filter {
    grid-template-columns: 1fr;
  }

  .profile-post-row {
    grid-template-columns: 1fr;
  }

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

body.mobile-bottom-nav-enabled {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  border-radius: 18px;
  border: 1px solid rgba(29, 94, 216, 0.24);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 246, 255, 0.9) 100%);
  box-shadow: 0 16px 30px rgba(15, 42, 97, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.mobile-bottom-nav.hidden {
  display: none;
}

.mobile-bottom-nav-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-link {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
}

.mobile-bottom-link i {
  font-size: 1.08rem;
}

.mobile-bottom-link.active {
  background: linear-gradient(135deg, #1f5dff 0%, #0f3fb8 100%);
  border-color: rgba(31, 93, 255, 0.55);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 93, 255, 0.32);
}

@media (min-width: 981px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}
