/* ================================================================
   BLONEY BEARS — 3-Tier Access Gate CSS
   Controls progressive UI reveal based on wallet + NFT state.

   body.access-public  → Level 1 — no wallet
   body.access-wallet  → Level 2 — wallet connected
   body.access-nft     → Level 3 — NFT holder

   HTML attributes used:
     data-access-min="wallet"  show at wallet OR nft tier
     data-access-min="nft"     show at nft tier only
     data-access-max="public"  show at public tier only
     data-access-max="wallet"  show at public OR wallet tier (hide at nft)
   ================================================================ */

/* ── 1. Pre-JS defaults — hide gated content before JS loads ────── */
[data-access-min="wallet"],
[data-access-min="nft"] {
  display: none !important;
}

/* ── 2. Wallet tier ──────────────────────────────────────────────── */
body.access-wallet [data-access-min="wallet"] {
  display: revert !important;
  animation: tierReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.access-wallet [data-access-max="public"]  { display: none !important; }

/* ── 3. NFT tier — show rules first, then override with hide ──────── */
body.access-nft [data-access-min="wallet"],
body.access-nft [data-access-min="nft"]     {
  display: revert !important;
  animation: tierReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* max rules come AFTER — !important + later position wins */
body.access-nft [data-access-max="public"],
body.access-nft [data-access-max="wallet"]  { display: none !important; }

/* ── Tier reveal entrance animation ─────────────────────────────── */
@keyframes tierReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Respect reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-access-min],
  [data-access-max] {
    animation: none !important;
  }
}


/* ================================================================
   LEVEL 1 — PUBLIC SECTIONS
   Stats bar + blurred feed teaser
   ================================================================ */

.public-stats-teaser {
  padding: 3rem 0 2rem;
}

.public-stats-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.pub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pub-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}

.pub-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Blurred feed teaser wrapper */
.blurred-feed-teaser {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-card);
}

.blurred-feed-header {
  padding: 1.25rem 1.5rem 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.blurred-feed-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.feed-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.blurred-feed-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.blurred-post {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-sm);
}

.blur-post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blur-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--purple) 100%);
  flex-shrink: 0;
}

.blur-avatar-b { background: linear-gradient(135deg, var(--teal) 0%, var(--amber) 100%); }
.blur-avatar-c { background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%); }

.blur-meta-name {
  height: 10px;
  background: var(--border-md);
  border-radius: 4px;
  margin-bottom: 4px;
}

.blur-meta-time {
  height: 8px;
  width: 60%;
  background: var(--border-sm);
  border-radius: 4px;
}

.blur-line {
  height: 10px;
  background: var(--border-sm);
  border-radius: 4px;
  margin-bottom: 6px;
}

.blur-line-75 { width: 75%; }
.blur-line-50 { width: 50%; }

.blur-reactions {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-sm);
}

.blur-reaction-btn {
  height: 10px;
  width: 60px;
  background: var(--border-sm);
  border-radius: 4px;
}

/* Overlay on top of blurred feed */
.blurred-feed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(10, 8, 8, 0.55);
  backdrop-filter: blur(2px);
  padding: 2rem;
  text-align: center;
}

.blurred-feed-overlay p {
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0;
}


/* ================================================================
   LEVEL 2 — WALLET SECTIONS
   Card grid + read-only world activity feed
   ================================================================ */

.wallet-dashboard {
  padding: 3rem 0 2rem;
}

.wallet-dash-header {
  text-align: center;
  margin-bottom: 2rem;
}

.wallet-dash-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 0.4rem;
}

.wallet-dash-header p {
  color: var(--text-3);
  font-size: 0.9rem;
  margin: 0;
}

/* 2×2 card grid */
.wallet-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .wallet-card-grid { grid-template-columns: repeat(4, 1fr); }
}

.dash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-1);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.dash-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--text-1);
  text-decoration: none;
}

.dash-card:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.06s;
}

.dash-card-mint {
  background: rgba(255,80,53,0.06);
  border-color: rgba(255,80,53,0.3);
}

.dash-card-mint:hover { border-color: var(--coral); }

.dash-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.dash-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
}

.dash-card-sub {
  font-size: 0.72rem;
  color: var(--text-3);
}

/* World activity feed */
.world-activity-feed {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  overflow: hidden;
}

.activity-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-sm);
}

.activity-feed-header h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.feed-live-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
}

.activity-list { padding: 0.25rem 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-sm);
  transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255,255,255,0.03); }

.activity-icon {
  /* Legacy emoji icon — kept for any existing usage */
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* SVG icon variant used by activity feed (replaces em-dash) */
.activity-icon-clean {
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-body {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.4;
}

.activity-body strong { color: var(--text-1); font-weight: 600; }

.activity-time {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
}

.activity-gate-note {
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-3);
  margin: 0;
  background: rgba(245,166,35,0.05);
  border-top: 1px solid var(--border-sm);
}


/* ================================================================
   LEVEL 3 — NFT EXPERIENCE
   DeFi tabs: Feed | Bank | Earnings | Payments
   ================================================================ */

.nft-experience {
  padding: 2rem 0 0;
}

/* ── DeFi Tab Bar ──────────────────────────────────────────────── */
.defi-tab-bar {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-md);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  overflow-x: auto;
}

.defi-tab {
  padding: 0.6rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

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

.defi-tab.is-active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ── Tab Panels ─────────────────────────────────────────────────────
   Panels use visibility + opacity so entrance can animate.
   The JS in access-gate.js or the defi tab switcher should toggle
   .is-hidden which uses both display:none (for layout) and the class
   that triggers the animation on re-entry via @starting-style.
   ──────────────────────────────────────────────────────────────── */
.defi-panel {
  display: block;
  animation: panelEnter 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.defi-panel.is-hidden { display: none; }

@keyframes panelEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .defi-panel { animation: none; }
}

/* ── Feed: Stories Row ──────────────────────────────────────────── */
.stories-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.stories-row::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  cursor: pointer;
}

.story-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-card);
  transition: border-color 0.15s;
  overflow: hidden;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.story-item:hover .story-avatar { border-color: var(--amber); }

.story-item.story-has-new .story-avatar {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(255,80,53,0.25);
}

.story-item.story-add .story-avatar {
  background: rgba(245,166,35,0.1);
  border-color: rgba(245,166,35,0.3);
  color: var(--amber);
  font-size: 1.2rem;
  font-weight: 700;
}

.story-label {
  font-size: 0.65rem;
  color: var(--text-3);
  max-width: 52px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Feed bear avatar initials variant ──────────────────────────── */
.feed-bear-avatar--initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Feed: Composer ─────────────────────────────────────────────── */
.feed-composer {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.composer-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.composer-bear-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* font-size removed — now contains SVG, not text */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  color: var(--text-2);
  flex-shrink: 0;
}

.composer-input-btn {
  flex: 1;
  text-align: left;
  padding: 0.55rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-sm);
  border-radius: var(--r-pill);
  color: var(--text-3);
  font-size: 0.87rem;
  cursor: text;
  transition: border-color 0.15s;
}

.composer-input-btn:hover { border-color: var(--border-md); color: var(--text-2); }

.composer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-sm);
}

.composer-action-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: none;
  border: 1px solid var(--border-sm);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.composer-action-btn:hover {
  border-color: var(--border-md);
  color: var(--text-1);
  background: rgba(255,255,255,0.04);
}

.composer-action-btn.ai-btn {
  border-color: rgba(167,139,250,0.35);
  color: var(--purple);
  background: rgba(167,139,250,0.07);
}

.composer-action-btn.ai-btn:hover { background: rgba(167,139,250,0.14); }

/* ── Feed: Filter Bar ───────────────────────────────────────────── */
.feed-filter-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-filter-bar::-webkit-scrollbar { display: none; }

.feed-filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-sm);
  background: none;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.feed-filter-btn:hover { border-color: var(--border-md); color: var(--text-1); }
.feed-filter-btn.is-active {
  background: rgba(245,166,35,0.12);
  border-color: rgba(245,166,35,0.35);
  color: var(--amber);
}

/* ── Feed: Post Cards ───────────────────────────────────────────── */
.feed-posts { display: flex; flex-direction: column; gap: 1px; }

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.18s;
}

.feed-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.25); }

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem 0.5rem;
}

.feed-bear-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-bear-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.feed-post-meta { flex: 1; }

.feed-post-name {
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-1);
}

.feed-post-time {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 1px;
}

.feed-more-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1rem; /* fallback if text — SVG overrides via width/height */
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.feed-more-btn:hover { background: var(--bg-elevated); color: var(--text-1); }

.feed-card-body { padding: 0.4rem 1.1rem 0.75rem; }

.feed-card-body p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.feed-context-label {
  font-size: 0.7rem;
  color: var(--text-3);
  font-style: italic;
}

.feed-engagement-bar {
  border-top: 1px solid var(--border-sm);
  padding: 0.5rem 1.1rem 0.75rem;
}

.feed-reactions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.feed-reactions-preview {
  font-size: 0.75rem;
  color: var(--text-3);
}

.feed-comment-count {
  font-size: 0.72rem;
  color: var(--text-3);
  cursor: pointer;
}

.feed-comment-count:hover { color: var(--text-2); text-decoration: underline; }

.feed-action-row {
  display: flex;
  gap: 0.25rem;
}

.feed-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.feed-action-btn:hover { background: var(--bg-elevated); color: var(--text-1); }
.feed-action-btn.liked { color: var(--coral); }


/* ── Bank Panel ─────────────────────────────────────────────────── */
.bank-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bank-dashboard { grid-template-columns: 1fr 1fr; }
}

.bank-balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  grid-column: 1 / -1;
}

.bank-balance-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.bank-sol-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.bank-bln-amount {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--teal);
}

.bank-action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.bank-action-btn {
  flex: 1;
  min-width: 80px;
  padding: 0.65rem 1rem;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--r-md);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  text-align: center;
}

.bank-action-btn:hover {
  background: rgba(245,166,35,0.18);
  transform: translateY(-1px);
}

.bank-action-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.06s;
}

.dna-identity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 1.25rem;
}

.dna-id-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.dna-id-hash {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal);
  word-break: break-all;
  line-height: 1.6;
}

.bank-wallet-addr {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 1.25rem;
}

/* ── Earnings Panel ─────────────────────────────────────────────── */
.earnings-grid,
.payments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .earnings-grid,
  .payments-grid { grid-template-columns: repeat(3, 1fr); }
}

.earnings-card,
.payments-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 1.25rem;
}

.earnings-label,
.payments-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.earnings-val,
.payments-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 0.3rem;
}

.payments-val { color: var(--coral); }

.earnings-change {
  font-size: 0.75rem;
  font-weight: 500;
}

.earnings-change.up { color: var(--green); }
.earnings-change.down { color: var(--coral); }

.payments-sub {
  font-size: 0.75rem;
  color: var(--text-3);
}


/* ================================================================
   NAV ADDITIONS — notification + message icons (Level 3)
   ================================================================ */

.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  border-color: var(--border-md);
  background: var(--bg-card);
}

/* ================================================================
   CONTRAST & ACCESSIBILITY FIXES (DESIGN REVIEW 2026-03-27)
   ================================================================ */

/* ── text-3 contrast fix: 32% → 55% opacity (WCAG AA) ─────────── */
/* Covers all uses: timestamps, metadata, card sub-labels          */
.pub-stat-label,
.feed-post-time,
.activity-time,
.dash-card-sub,
.nft-card-sub,
.bear-card-key,
.techoem-id,
.testi-author-role,
.blonsk-cal-note,
.t-dim,
.t-small {
  /* Min 55% opacity ensures ≥ 3.5:1 on #0A0808 background */
  opacity: 1;
  color: rgba(255,255,255,0.55);
}

/* Explicit overrides for elements that used var(--text-3) directly */
[style*="color: var(--text-3)"],
[style*="color:var(--text-3)"] {
  color: rgba(255,255,255,0.55) !important;
}

/* ── Focus-visible ring: all interactive surfaces ─────────────── */
:focus-visible {
  outline: 2px solid var(--coral, #FF5035);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Suppress outline for mouse clicks (only show for keyboard nav) */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Feed more-button menu ─────────────────────────────────────── */
.feed-more-menu {
  position: absolute;
  top: 2.2rem;
  right: 0;
  z-index: 100;
  background: var(--bg-elevated, #1C1717);
  border: 1px solid var(--border-md);
  border-radius: var(--r-md, 12px);
  padding: 0.4rem;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  animation: menuFadeIn 0.12s ease;
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.feed-card-header {
  position: relative;
}

.feed-more-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--r-sm, 8px);
  color: var(--text-2);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.feed-more-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
}

.feed-more-item:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ── Comment display (optimistic posted comment) ───────────────── */
.comment-display {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  animation: commentIn 0.15s ease;
}

.comment-display-avatar {
  font-size: 1rem;
  flex-shrink: 0;
}

.comment-display-text {
  font-size: 0.85rem;
  color: var(--text-1);
  line-height: 1.5;
}

/* ── Feed card new-post entrance animation ─────────────────────── */
.feed-card--new {
  animation: cardSlideIn 0.25s ease;
  border-color: rgba(255,80,53,0.25);
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Read-only browse mode: intercept label strip ─────────────── */
body.browse-readonly .btn-mint-sm::after,
body.browse-readonly .btn-mint::after {
  content: ' (connect wallet)';
  font-size: 0.7em;
  opacity: 0.6;
}

/* ── Like button liked state ───────────────────────────────────── */
.feed-action-btn.liked {
  color: var(--coral);
}

.feed-action-btn.liked:hover {
  background: rgba(255,80,53,0.1);
}

/* ── nav-icon-btn focus ─────────────────────────────────────────── */
.nav-icon-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

