/* ============================================
   Jade — Component Library
   Hyperliquid-aligned content subscription platform
   ============================================ */

/* ──────────────────────────────────────────────
   1. BUTTONS
   ────────────────────────────────────────────── */

/* Primary Pill (Green CTA) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--green-bright);
  color: var(--text-on-green);
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  line-height: 1.25;
  min-height: 38px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  background: var(--green-primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-green-strong);
}

.btn-primary:active {
  background: var(--green-dim);
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--green-border);
  outline-offset: 2px;
}

.btn-primary:disabled {
  background: rgba(0, 255, 135, 0.15);
  color: var(--green-bright);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:disabled:hover {
  background: rgba(0, 255, 135, 0.15);
}

/* Secondary Button (Dark Outline) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-visible);
  padding: 9px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 1.25;
  min-height: 38px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-prominent);
}

.btn-secondary:active {
  background: var(--bg-card-hover);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--green-border);
  outline-offset: 2px;
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: var(--weight-regular);
  line-height: 1.25;
  min-height: 38px;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-ghost:active {
  background: var(--bg-card-hover);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--green-border);
  outline-offset: 2px;
}

/* Create FAB (Green + icon) */
.btn-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--green-bright);
  color: var(--text-on-green);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-glow-green);
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-fab:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-glow-green-strong);
}

.btn-fab:active {
  transform: scale(0.97);
}

.btn-fab svg {
  width: 18px;
  height: 18px;
}

/* Icon Button (Circular) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-icon:active {
  background: var(--bg-card-hover);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* Subscribe Button variant */
.btn-subscribe {
  composes: btn-primary;
  position: relative;
  overflow: hidden;
}

.btn-subscribe--subscribed {
  background: var(--green-muted);
  color: var(--green-bright);
  box-shadow: none;
}

.btn-subscribe--subscribed:hover {
  background: rgba(0, 255, 135, 0.2);
}

/* ──────────────────────────────────────────────
   2. CARDS
   ────────────────────────────────────────────── */

/* Content Card (Post/Article) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--duration-fast) var(--ease-out);
}

.card:hover {
  border-color: var(--border-visible);
  background: var(--bg-card-hover);
}

.card--clickable {
  cursor: pointer;
}

.card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Pricing Card (Subscription Tier) */
.card-pricing {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-fast) var(--ease-out);
}

.card-pricing--featured {
  border-color: var(--green-border);
  box-shadow: var(--shadow-glow-green);
  position: relative;
}

.card-pricing--featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-bright);
  color: var(--text-on-green);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-pricing--premium {
  border-color: rgba(255, 215, 0, 0.3);
}

/* Profile Card */
.card-profile {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Creator Card (Sidebar suggestions) */
.card-creator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.card-creator__info {
  flex: 1;
  min-width: 0;
}

.card-creator__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-creator__meta {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.card-creator__subscribe {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--green-bright);
  background: transparent;
  border: 1px solid var(--green-border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  align-self: center;
}

.card-creator__subscribe:hover {
  background: var(--green-muted);
}

/* Subscription List Card */
.card-subscription {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.card-subscription:hover {
  border-color: var(--border-visible);
  background: var(--bg-card-hover);
}

.card-subscription__content {
  flex: 1;
  min-width: 0;
}

.card-subscription__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.card-subscription__author {
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-subscription__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-subscription__snippet {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-subscription__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.card-subscription__thumbnail {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   3. AVATARS
   ────────────────────────────────────────────── */

.avatar {
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 2px solid var(--border-default);
  background: var(--bg-card);
  flex-shrink: 0;
}

.avatar--xs {
  width: 24px;
  height: 24px;
}

.avatar--sm {
  width: 32px;
  height: 32px;
}

.avatar--md {
  width: 40px;
  height: 40px;
}

.avatar--lg {
  width: 56px;
  height: 56px;
}

.avatar--xl {
  width: 80px;
  height: 80px;
}

/* Avatar container for verified badge overlay */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.avatar-wrapper__verified {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--green-bright);
  border: 2.5px solid var(--bg-card);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(3px, 3px);
}

.avatar-wrapper__verified svg {
  width: 10px;
  height: 10px;
  color: var(--text-on-green);
}

/* ──────────────────────────────────────────────
   4. TABS
   ────────────────────────────────────────────── */

/* Pill Tabs (Navigation Filters) */
.tabs-pill {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: fit-content;
}

.tabs-pill__item {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1.25;
}

.tabs-pill__item:hover {
  color: var(--text-secondary);
}

.tabs-pill__item--active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

/* Underline Tabs (Content Sections) */
.tabs-underline {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-underline::-webkit-scrollbar {
  display: none;
}

.tabs-underline__item {
  padding: 12px 0;
  margin-right: 24px;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  line-height: 1.25;
}

.tabs-underline__item:hover {
  color: var(--text-secondary);
}

.tabs-underline__item--active {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  border-bottom-color: var(--green-bright);
}

/* ──────────────────────────────────────────────
   5. INPUTS
   ────────────────────────────────────────────── */

/* Text Input */
.input {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  width: 100%;
  transition: all var(--duration-fast) var(--ease-out);
}

.input::placeholder {
  color: var(--text-faint);
}

.input:focus {
  outline: none;
  border-color: var(--green-border);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.input:hover:not(:focus) {
  border-color: var(--border-visible);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Search Input (Pill Shape) */
.input-search {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 10px 14px 10px 40px;
  color: var(--text-primary);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-regular);
  width: 100%;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.input-search::placeholder {
  color: var(--text-faint);
}

.input-search:focus {
  outline: none;
  border-color: var(--green-border);
  box-shadow: 0 0 0 3px var(--green-glow);
}

/* Search icon positioning needs a wrapper */
.input-search-wrapper {
  position: relative;
}

.input-search-wrapper__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

/* Composer Box ("Share your alpha...") */
.composer {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-height: 96px;
  width: 100%;
  color: var(--text-primary);
  font-size: var(--text-body-sm);
  resize: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.composer::placeholder {
  color: var(--text-muted);
}

.composer:focus {
  outline: none;
  border-color: var(--green-border);
  box-shadow: 0 0 0 3px var(--green-glow);
}

/* Composer with avatar */
.composer-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

/* Composer toolbar (icons + post button) */
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

/* Textarea */
.textarea {
  composes: input;
  min-height: 100px;
  resize: vertical;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────
   6. BADGES
   ────────────────────────────────────────────── */

/* Verified Badge */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-muted);
  color: var(--green-bright);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  white-space: nowrap;
}

.badge-verified svg {
  width: 12px;
  height: 12px;
}

/* Tier Badges */
.badge-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-tier--free {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.badge-tier--paid {
  background: var(--green-muted);
  border: 1px solid var(--green-border);
  color: var(--green-bright);
}

.badge-tier--premium {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold-premium);
}

.badge-tier--founding {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold-premium);
}

/* Token Badge ($HYPE / $USDH) */
.badge-token {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-token--hype {
  border-color: var(--green-border);
  color: var(--green-bright);
}

.badge-token--usdh {
  color: var(--text-secondary);
}

.badge-token--perp {
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.badge-token--premium {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #1a1a1a;
  font-weight: var(--weight-bold);
}

/* Unread Badge */
.badge-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--green-bright);
  color: var(--text-on-green);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  line-height: 1;
}

/* Dot unread indicator */
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  border-radius: var(--radius-circle);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   7. MODALS
   ────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn var(--duration-fast) var(--ease-out);
}

.modal-backdrop--hidden {
  display: none;
}

.modal {
  background: var(--bg-raised);
  border: 1px solid var(--border-visible);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  animation: modalEnter var(--duration-slow) var(--ease-out);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal__title {
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.modal__close {
  composes: btn-icon;
}

.modal__body {
  margin-bottom: var(--space-6);
}

.modal__footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalEnter {
  from { 
    opacity: 0; 
    transform: scale(0.95) translateY(8px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

/* ──────────────────────────────────────────────
   8. TOASTS
   ────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--bg-raised);
  border: 1px solid var(--border-visible);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  pointer-events: auto;
  animation: toastEnter var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 360px;
}

.toast--success {
  border-left: 3px solid var(--green-bright);
}

.toast--error {
  border-left: 3px solid var(--red-error);
}

.toast--info {
  border-left: 3px solid var(--blue-info);
}

.toast--exit {
  animation: toastExit 300ms var(--ease-out) forwards;
}

.toast__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.toast--success .toast__icon { color: var(--green-bright); }
.toast--error .toast__icon { color: var(--red-error); }
.toast--info .toast__icon { color: var(--blue-info); }

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastExit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ──────────────────────────────────────────────
   9. POST CARDS (Feed Items)
   ────────────────────────────────────────────── */

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--duration-fast) var(--ease-out);
}

.post-card:hover {
  border-color: rgba(0, 255, 135, 0.25);
  background: var(--bg-card-hover);
}

.post-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.post-card__header-info {
  flex: 1;
  min-width: 0;
}

.post-card__name-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.post-card__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.post-card__handle {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.post-card__timestamp {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.post-card__menu {
  flex-shrink: 0;
}

.post-card__body {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.post-card__body p + p {
  margin-top: var(--space-3);
}

/* Post body truncation with gradient fade */
.post-card__body {
  position: relative;
  max-height: 200px;
  overflow: hidden;
}

.post-card__body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.post-card--expanded .post-card__body {
  max-height: none;
  overflow: visible;
}

.post-card--expanded .post-card__body::after {
  display: none;
}

/* Embed block (images, link previews, quotes) */
.post-card__embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-default);
}

.post-card__embed img {
  width: 100%;
  display: block;
}

.post-card__embed-link {
  display: block;
  padding: var(--space-3);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) var(--ease-out);
}

.post-card__embed-link:hover {
  background: var(--bg-card);
}

.post-card__embed-link-title {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__embed-link-domain {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* Post interaction footer */
.post-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.post-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: var(--text-caption);
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--duration-fast) var(--ease-out);
  min-width: 44px;
  min-height: 36px;
}

.post-card__action:hover {
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

/* Like hover → red */
.post-card__action[aria-label="Like"]:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Comment hover → blue */
.post-card__action[aria-label="Comment"]:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.post-card__action--liked {
  color: var(--red-error);
}

.post-card__action--liked:hover {
  color: var(--red-error);
  background: rgba(243, 114, 127, 0.1);
}

.post-card__action svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.post-card__action:active svg {
  transform: scale(1.15);
}

.post-card__action--repost {
  color: var(--green-bright);
}

.post-card__action--repost:hover {
  background: var(--green-muted);
}

/* Token-gated content overlay */
.post-card__gated {
  position: relative;
}

.post-card__gated-blur {
  filter: blur(4px);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.post-card__gated-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-4) var(--space-4);
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.post-card__gated-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.post-card__gated-label svg {
  width: 14px;
  height: 14px;
}

/* ──────────────────────────────────────────────
   10. CHAT COMPONENTS
   ────────────────────────────────────────────── */

.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 0px);
  background: var(--bg-void);
}

.chat-list {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.chat-list__search {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.chat-list__items {
  flex: 1;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.chat-item:hover {
  background: var(--bg-card);
}

.chat-item--active {
  background: var(--bg-card);
  border-left: 2px solid var(--green-bright);
}

.chat-item__info {
  flex: 1;
  min-width: 0;
}

.chat-item__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.chat-item__snippet {
  font-size: var(--text-caption);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.chat-item__time {
  font-size: 11px;
  color: var(--text-faint);
}

/* Chat viewport */
.chat-viewport {
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
}

.chat-viewport__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.chat-viewport__title {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.chat-viewport__subtitle {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Chat bubbles */
.chat-bubble {
  max-width: 70%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}

.chat-bubble--own {
  background: var(--green-muted);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble--other {
  background: var(--bg-card);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble__time {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

.chat-bubble--own .chat-bubble__time {
  text-align: right;
}

/* Chat input bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.chat-input-bar__input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: var(--text-body-sm);
}

.chat-input-bar__input:focus {
  outline: none;
  border-color: var(--green-border);
}

.chat-input-bar__send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: var(--green-bright);
  color: var(--text-on-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.chat-input-bar__send:hover {
  background: var(--green-primary);
  transform: scale(1.05);
}

.chat-input-bar__tip {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--weight-semibold);
}

.chat-input-bar__tip:hover {
  background: var(--green-muted);
  border-color: var(--green-border);
}

/* Chat empty state */
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-8);
}

.chat-empty__icon {
  width: 48px;
  height: 48px;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.chat-empty__text {
  font-size: var(--text-body-sm);
}

/* ──────────────────────────────────────────────
   11. ACTIVITY CARDS
   ────────────────────────────────────────────── */

.activity-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: background var(--duration-fast) var(--ease-out);
}

.activity-card:hover {
  background: var(--bg-card);
}

.activity-card__avatar {
  flex-shrink: 0;
}

.activity-card__content {
  flex: 1;
  min-width: 0;
}

.activity-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}

.activity-card__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.activity-card__action {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

.activity-card__action--subscribe {
  color: var(--green-bright);
}

.activity-card__time {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.activity-card__preview {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
}

/* ──────────────────────────────────────────────
   12. WALLET CONNECT
   ────────────────────────────────────────────── */

/* ── Wallet Button (icon in sidebar, dropdown panel) ── */

.wallet-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: transparent;
  color: var(--text-muted);
  padding: 0;
}

.wallet-btn svg {
  width: 22px;
  height: 22px;
}

/* Disconnected — green CTA */
.wallet-btn--disconnected {
  background: var(--green-bright);
  color: var(--text-on-green);
  box-shadow: var(--shadow-glow-green);
}

.wallet-btn--disconnected:hover {
  background: var(--green-primary);
  transform: scale(1.05);
}

/* Connecting — spinning feel */
.wallet-btn--connecting {
  background: var(--green-bright);
  color: var(--text-on-green);
  opacity: 0.8;
  pointer-events: none;
}

/* Connected — subtle icon */
.wallet-btn--connected {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.wallet-btn--connected:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: var(--bg-card-hover);
}

/* Green dot indicator (replaces the old inline dot) */
.wallet-btn__dot {
  display: none;  /* hidden by default; shown on connected via JS popup */
}

.wallet-btn--connected .wallet-btn__dot {
  display: none;
}

/* Address in sidebar — hidden, only shown in popup */
.wallet-btn__address {
  display: none;
}

/* ── Wallet Dropdown Panel ── */

.wallet-dropdown {
  position: fixed;
  left: 80px;
  bottom: 16px;
  width: 280px;
  background: var(--bg-elevated, var(--bg-card));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: all 0.2s var(--ease-out);
  pointer-events: none;
}

.wallet-dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wallet-dropdown__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.wallet-dropdown__header h3 {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.wallet-dropdown__status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-dropdown__status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--green-bright);
  box-shadow: 0 0 6px var(--green-bright);
}

.wallet-dropdown__status-text {
  font-size: var(--text-caption);
  color: var(--green-bright);
  font-weight: var(--weight-medium);
}

.wallet-dropdown__address {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--text-secondary);
  background: var(--bg-card-hover);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.wallet-dropdown__address:hover {
  background: var(--border-default);
}

.wallet-dropdown__copy-hint {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.wallet-dropdown__balances {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.wallet-dropdown__balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.wallet-dropdown__balance-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-dropdown__balance-value {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  font-family: var(--font-mono);
}

.wallet-dropdown__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.wallet-dropdown__action {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--duration-fast) var(--ease-out);
}

.wallet-dropdown__action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.wallet-dropdown__action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.wallet-dropdown__action:hover svg {
  color: var(--text-secondary);
}

.wallet-dropdown__action--danger {
  color: var(--text-muted);
}

.wallet-dropdown__action--danger:hover {
  background: rgba(255, 80, 80, 0.1);
  color: #ff5050;
}

.wallet-dropdown__action--danger:hover svg {
  color: #ff5050;
}

/* Wrong network */
.wallet-btn--wrong-network {
  background: rgba(255, 164, 43, 0.15);
  border: 1px solid rgba(255, 164, 43, 0.3);
  color: var(--yellow-warning);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ──────────────────────────────────────────────
   13. PRICING / SUBSCRIPTION TIERS
   ────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.card-pricing {
  display: flex;
  flex-direction: column;
}

.card-pricing .pricing-card__features {
  flex: 1;
}

.pricing-card__name {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-4);
  min-height: 72px;
}

.pricing-card__amount {
  font-family: var(--font-mono);
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  color: var(--green-bright);
}

.pricing-card__usd-equiv {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.pricing-card__period {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

.pricing-card__feature svg {
  width: 16px;
  height: 16px;
  color: var(--green-bright);
  flex-shrink: 0;
}

.pricing-card__feature--disabled {
  color: var(--text-faint);
}

.pricing-card__feature--disabled svg {
  color: var(--text-faint);
}

/* Gap between wallet and actions */
.profile-header__actions {
  margin-top: var(--space-1);
}

/* ──────────────────────────────────────────────
   14. PROFILE HEADER + COVER
   ────────────────────────────────────────────── */

.profile-header {
  margin-bottom: var(--space-8);
}

.profile-header__cover {
  height: 160px;
  background: linear-gradient(135deg, #0a2e1a 0%, #0d3320 40%, var(--green-glow) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-bottom: -36px;
  position: relative;
  overflow: hidden;
}

.profile-header__cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, var(--bg-base) 0%, transparent 100%);
  pointer-events: none;
}

.profile-header__avatar-row {
  display: flex;
  align-items: flex-end;
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.profile-header__avatar-row .avatar-wrapper {
  margin-left: 0;
}

.profile-header__name {
  font-size: var(--text-display-hero);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-1);
}

.profile-header__handle {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-2);
}

.profile-header__bio {
  font-size: var(--text-body);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
  max-width: 560px;
}

.profile-header__stats {
  display: flex;
  gap: var(--space-8);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.profile-header__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  text-align: center;
}

.profile-header__stat-value {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1.2;
}

.profile-header__stat-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.profile-header__wallet {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
}

.profile-header__wallet-address {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--text-muted);
}

.profile-header__wallet-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
}

.profile-header__actions {
  display: flex;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  align-items: center;
}

/* Align ghost/icon buttons vertically with primary/secondary buttons */
.profile-header__actions .btn-ghost,
.profile-header__actions .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

/* ──────────────────────────────────────────────
   15. RIGHT SIDEBAR WIDGETS
   ────────────────────────────────────────────── */

.trending-section {
  margin-bottom: var(--space-8);
}

.trending-section__title {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.trending-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.trending-item__rank {
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--text-faint);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.6;
}

.trending-item__info {
  flex: 1;
  min-width: 0;
}

.trending-item__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-item__count {
  font-size: var(--text-caption);
  color: var(--green-bright);
}

/* Markets Panel — compact table layout */
.markets {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.markets__table {
  width: 100%;
  border-collapse: collapse;
}

.markets__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  gap: 6px;
  transition: background 0.15s ease;
}

.markets__row:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.markets__row:hover {
  background: var(--bg-card-hover);
}

/* Native token rows ($HYPE, $USDH) get a subtle green left accent */
.markets__row--native {
  background: rgba(0, 255, 135, 0.03);
  border-left: 2px solid var(--green-bright);
  padding-left: 10px;
}

.markets__row--native:hover {
  background: rgba(0, 255, 135, 0.06);
}

.markets__symbol {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
}

.markets__symbol-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  white-space: nowrap;
}

.markets__symbol-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.3;
  white-space: nowrap;
}

.markets__symbol-badge--native {
  border-color: var(--green-border);
  color: var(--green-bright);
  opacity: 0.8;
}

.markets__values {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.markets__price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
}

.markets__change {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.markets__change--up {
  color: var(--green-bright);
}

.markets__change--flat {
  color: var(--text-muted);
}

.markets__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.markets__link {
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--green-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.markets__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.markets__link-arrow {
  font-size: 10px;
}
/* ──────────────────────────────────────────────
   16. SKELETONS (Loading States)
   ────────────────────────────────────────────── */

.skeleton {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  animation: shimmer 1.5s infinite;
}

.skeleton--text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
}

.skeleton--text:last-child {
  width: 60%;
}

.skeleton--title {
  height: 20px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
}

.skeleton--avatar {
  border-radius: var(--radius-circle);
}

.skeleton--thumbnail {
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ──────────────────────────────────────────────
   17. EXPLORE PAGE COMPONENTS
   ────────────────────────────────────────────── */

.explore-search {
  margin-bottom: var(--space-6);
}

.explore-search__input {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 14px 18px 14px 48px;
  color: var(--text-primary);
  font-size: var(--text-body);
  width: 100%;
  transition: all var(--duration-fast) var(--ease-out);
}

.explore-search__input:focus {
  outline: none;
  border-color: var(--green-border);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.category-pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.category-pills__item {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.category-pills__item:hover {
  border-color: var(--border-visible);
  color: var(--text-primary);
}

.category-pills__item--active {
  background: var(--green-muted);
  border-color: var(--green-border);
  color: var(--green-bright);
}

/* Featured creator card (large) */
.featured-creator {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-6);
  transition: all var(--duration-fast) var(--ease-out);
}

.featured-creator:hover {
  border-color: var(--border-visible);
}

.featured-creator__info {
  flex: 1;
}

.featured-creator__name {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.featured-creator__bio {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-creator__stats {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.featured-creator__stat-value {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

/* Creator discovery grid */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.creator-grid__card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.creator-grid__card:hover {
  border-color: var(--border-visible);
  background: var(--bg-card-hover);
}

.creator-grid__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.creator-grid__bio {
  font-size: var(--text-caption);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.creator-grid__subscribers {
  font-size: var(--text-caption);
  color: var(--green-bright);
}

/* ──────────────────────────────────────────────
   18. UTILITIES
   ────────────────────────────────────────────── */

/* Flex utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Spacing utilities */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: var(--space-2); }

/* Padding */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-bright); }
.text-mono { font-family: var(--font-mono); }
.text-sm { font-size: var(--text-body-sm); }
.text-caption { font-size: var(--text-caption); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hidden / Visible */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-4) 0;
}

/* Green glow effect */
.glow-green {
  box-shadow: var(--shadow-glow-green);
}

.glow-green-strong {
  box-shadow: var(--shadow-glow-green-strong);
}

/* Width constraints */
.max-w-main { max-width: var(--main-max-width); }
.w-full { width: 100%; }

/* Scroll */
.overflow-y-auto { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-visible) transparent; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ──────────────────────────────────────────────
   19. RESPONSIVE OVERRIDES
   ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .creator-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-creator {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 640px) {
  /* ── Profile Header Mobile ── */
  .profile-header__cover {
    height: 100px;
    border-radius: 0;
    margin-left: calc(-1 * var(--space-3));
    margin-right: calc(-1 * var(--space-3));
    width: calc(100% + 2 * var(--space-3));
  }

  .profile-header__name {
    font-size: 28px;
    padding: 0;
  }

  .profile-header__handle {
    padding: 0;
  }

  .profile-header__bio {
    padding: 0;
    max-width: 100%;
  }

  .profile-header__stats {
    gap: var(--space-4);
    padding: 0;
    flex-wrap: wrap;
  }

  .profile-header__wallet {
    padding: 0;
  }

  .profile-header__actions {
    padding: 0;
    flex-wrap: wrap;
  }

  .profile-header__actions .btn-primary,
  .profile-header__actions .btn-secondary {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* ── Pricing Tiers Mobile ── */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card__amount {
    font-size: var(--text-h2);
  }

  .card-pricing {
    padding: var(--space-4) !important;
  }

  /* ── Tabs Mobile ── */
  .tabs-underline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-underline::-webkit-scrollbar { display: none; }

  /* ── Post Cards Mobile ── */
  .post-card__footer {
    gap: 0;
    justify-content: space-between;
  }

  .post-card__embed {
    margin-left: 0;
    margin-right: 0;
  }

  /* ── Chat Mobile ── */
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-viewport--mobile-hidden {
    display: none;
  }

  .chat-list--mobile-hidden {
    display: none;
  }

  /* ── Toast Mobile ── */
  .toast-container {
    bottom: calc(var(--bottom-bar-height) + 16px);
    left: 16px;
    right: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

/* ──────────────────────────────────────────────
   20. ANIMATIONS
   ────────────────────────────────────────────── */

/* Like heart pop */
@keyframes likePopIn {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.post-card__action--anim-like svg {
  animation: likePopIn 300ms var(--ease-out);
}

/* Subscribe success glow pulse */
@keyframes subscribeGlow {
  0% { box-shadow: var(--shadow-glow-green); }
  50% { box-shadow: var(--shadow-glow-green-strong); }
  100% { box-shadow: none; }
}

.btn-subscribe--success-glow {
  animation: subscribeGlow 800ms var(--ease-out);
}

/* Feed card stagger entrance */
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card--enter {
  animation: cardEnter 300ms var(--ease-out) both;
}

/* Infinite scroll spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-default);
  border-top-color: var(--green-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page transition */
.page-enter {
  animation: pageEnter 200ms var(--ease-out);
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ──────────────────────────────────────────────
   14. PAYMENT MODULE — Token choice modal
   ────────────────────────────────────────────── */

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-align: left;
  color: var(--text-primary);
}

.payment-option:hover {
  border-color: var(--green-bright);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 135, 0.08);
}

.payment-option__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.payment-option--hype .payment-option__icon {
  background: rgba(0, 255, 135, 0.12);
  color: var(--green-bright);
}

.payment-option--usdh .payment-option__icon {
  background: rgba(100, 150, 255, 0.12);
  color: #6496ff;
}

.payment-option__details {
  flex: 1;
}

.payment-option__token {
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
}

.payment-option__amount {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.payment-option__note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.payment-option__arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: color var(--duration-fast);
}

.payment-option:hover .payment-option__arrow {
  color: var(--green-bright);
}

/* Payment option active/selected state */
.payment-option--selected {
  border-color: var(--green-bright);
  background: rgba(0, 255, 135, 0.05);
}

/* Subscribe success glow animation */
@keyframes subscribeSuccess {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(0, 255, 135, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.btn-subscribe--active {
  animation: subscribeSuccess 1s ease-out;
}
