:root {
  --of-blue: #00AFF0;
  --of-blue-hover: #009dd8;
  --of-blue-light: rgba(0, 175, 240, 0.08);
  --bg: #f3f5f7;
  --bg-white: #ffffff;
  --bg-elevated: #f0f2f5;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --border: #e8e8ec;
  --border-light: #f0f0f4;
  --tip-gold: #d97706;
  --heart-red: #ef4444;
  --lock-bg: #1e1e2a;
  --sidebar-width: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Lucide icon sizing */
.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: middle;
}

.nav-icon-btn .lucide {
  width: 20px;
  height: 20px;
}

.sidebar-item .lucide {
  width: 20px;
  height: 20px;
}

.action-btn .lucide {
  width: 16px;
  height: 16px;
}

.post-menu .lucide {
  width: 20px;
  height: 20px;
}

.lock-icon .lucide {
  width: 28px;
  height: 28px;
}

/* === TOP NAV === */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  z-index: 100;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--of-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--of-blue);
}

/* Hidden on mobile, shown on tablet+ */
.topnav-search {
  display: none;
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
}

.topnav-search input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

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

.topnav-search input:focus {
  border-color: var(--of-blue);
}

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: background 0.2s;
  position: relative;
}

.nav-icon-btn:hover { background: var(--bg-elevated); }

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--of-blue);
  border-radius: 50%;
  border: 2px solid white;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: linear-gradient(135deg, var(--of-blue), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

/* === LAYOUT === */
.layout {
  display: flex;
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

/* === SIDEBAR — hidden on mobile === */
.sidebar {
  display: none;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  padding: 1rem 0;
  position: fixed;
  top: 56px;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.sidebar-item:hover {
  background: var(--of-blue-light);
  color: var(--of-blue);
}

.sidebar-item.active {
  color: var(--of-blue);
  background: var(--of-blue-light);
  border-right: 2px solid var(--of-blue);
}

.sidebar-item .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 1.25rem;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
}

.sidebar-creator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-creator:hover { background: var(--of-blue-light); }

.sidebar-creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-creator-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-creator-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-creator-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

/* === MAIN WRAPPER === */
.content-wrapper {
  display: flex;
  width: 100%;
}

/* === MAIN CONTENT — full width on mobile === */
.main {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: var(--bg-white);
}

/* === CREATOR PROFILE HEADER === */
.profile-header {
  background: var(--bg-white);
  border-radius: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.profile-banner {
  height: 120px;
  background: linear-gradient(135deg, #00AFF0 0%, #7c3aed 50%, #ec4899 100%);
  position: relative;
}

.profile-banner-text {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.profile-info {
  padding: 0 1rem 1rem;
  position: relative;
}

.profile-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--bg-white);
  background: var(--of-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -36px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.profile-avatar-wrap .avatar-letter {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: var(--of-blue);
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: white;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.profile-bio {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subscribe-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--of-blue);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.subscribe-btn:hover {
  background: var(--of-blue-hover);
  box-shadow: 0 2px 12px rgba(0, 175, 240, 0.3);
}

.subscribe-btn .price {
  font-weight: 400;
  opacity: 0.85;
}

/* === TAB NAV === */
.tab-nav {
  display: flex;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.tab-item {
  flex: 1;
  padding: 0.65rem 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-item:hover { color: var(--text-secondary); }

.tab-item.active {
  color: var(--of-blue);
  border-bottom-color: var(--of-blue);
}

/* === POST CARD === */
.post-card {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
}

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

.post-author {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-author .mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--of-blue);
  border-radius: 50%;
  font-size: 0.45rem;
  color: white;
}

.post-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.post-menu {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.post-body {
  padding: 0 0.75rem 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #6366f1;
}

.post-code-block {
  margin: 0.5rem 0.75rem;
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #cdd6f4;
  overflow-x: auto;
}

.post-code-block .keyword { color: #cba6f7; }
.post-code-block .string { color: #a6e3a1; }
.post-code-block .comment { color: #6c7086; font-style: italic; }
.post-code-block .fn { color: #89b4fa; }
.post-code-block .prop { color: #f9e2af; }

/* Locked content */
.post-locked {
  position: relative;
  margin: 0 0.75rem 0.6rem;
  border-radius: 8px;
  overflow: hidden;
}

.post-locked-blur {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #e8eaf0, #dde0ea, #e4dde8);
  filter: blur(5px);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  user-select: none;
}

.post-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
}

.lock-icon {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.lock-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lock-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.lock-btn {
  margin-top: 0.75rem;
  padding: 0.5rem 1.5rem;
  background: var(--of-blue);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* Post actions */
.post-actions {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem 0.6rem;
  gap: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.15s;
  font-family: inherit;
}

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

.action-btn.liked { color: var(--heart-red); }
.action-btn .icon {
  display: flex;
  align-items: center;
}

.tip-btn {
  margin-left: auto;
  color: var(--tip-gold);
  font-weight: 600;
}

.tip-btn:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* === RIGHT SIDEBAR — hidden on mobile === */
.right-sidebar {
  display: none;
  width: 30%;
  max-width: 350px;
  flex-shrink: 0;
  padding: 1rem;
  position: sticky;
  top: 72px;
  height: fit-content;
}

.suggestions-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.suggestions-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.6rem;
  flex-shrink: 0;
}

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

.suggestion-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.suggestion-follow {
  padding: 0.3rem 0.75rem;
  background: var(--of-blue);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.promo-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.promo-box h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.promo-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.promo-btn {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.promo-btn:hover { border-color: var(--of-blue); color: var(--of-blue); }

.footer-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.footer-links a {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--of-blue); }

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Free badge */
.free-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Post image placeholder */
.post-image {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.post-image.gradient-1 {
  background: linear-gradient(135deg, #0f0e26 0%, #1e1b4b 50%, #312e81 100%);
}

.post-image.gradient-2 {
  background: linear-gradient(135deg, #032b20 0%, #064e3b 50%, #065f46 100%);
}

/* ==========================================
   TABLET+ (768px)
   Show sidebar, search bar, widen spacing
   ========================================== */
@media (min-width: 768px) {
  .topnav {
    padding: 0 1.25rem;
  }

  .topnav-search {
    display: block;
  }

  .topnav-actions {
    gap: 0.75rem;
  }

  .sidebar {
    display: block;
    width: 15%;
    min-width: 180px;
    max-width: 240px;
  }

  .main {
    margin-left: 15%;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .profile-banner {
    height: 160px;
  }

  .profile-banner-text {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.6rem;
  }

  .profile-info {
    padding: 0 1.25rem 1.25rem;
  }

  .profile-avatar-wrap {
    width: 80px;
    height: 80px;
    margin-top: -40px;
  }

  .profile-avatar-wrap .avatar-letter {
    font-size: 2rem;
  }

  .verified-badge {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }

  .profile-name {
    font-size: 1.2rem;
  }

  .profile-handle {
    font-size: 0.85rem;
  }

  .profile-bio {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .profile-stats {
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .profile-stat-value {
    font-size: 0.95rem;
  }

  .profile-stat-label {
    font-size: 0.7rem;
  }

  .tab-item {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .post-header {
    padding: 0.85rem 1rem;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
  }

  .post-author {
    font-size: 0.85rem;
  }

  .post-time {
    font-size: 0.75rem;
  }

  .post-body {
    padding: 0 1rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .post-body code {
    font-size: 0.8rem;
  }

  .post-code-block {
    margin: 0.75rem 1rem;
    padding: 1rem;
    font-size: 0.78rem;
    line-height: 1.7;
  }

  .post-locked {
    margin: 0 1rem 0.75rem;
  }

  .post-locked-blur {
    font-size: 0.9rem;
  }

  .post-actions {
    padding: 0.5rem 1rem 0.75rem;
    gap: 0.25rem;
  }

  .action-btn {
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .action-btn .lucide {
    width: 18px;
    height: 18px;
  }

  .post-image {
    font-size: 0.75rem;
  }
}

/* ==========================================
   DESKTOP (1100px)
   Show right sidebar
   ========================================== */
@media (min-width: 1100px) {
  .sidebar {
    width: 15%;
  }

  .main {
    margin-left: 15%;
  }

  .right-sidebar {
    display: block;
  }
}

/* ==========================================
   MODAL OVERLAY
   ========================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-white);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.25s ease;
}

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

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 1;
  transition: background 0.15s;
}

.modal-close:hover { background: var(--border); }

.modal-close .lucide {
  width: 16px;
  height: 16px;
}

.modal-header {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
}

.modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.modal-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tier cards */
.modal-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  transition: border-color 0.2s;
  cursor: pointer;
}

.tier:hover { border-color: var(--of-blue); }

.tier-featured {
  border-color: var(--of-blue);
  background: var(--of-blue-light);
}

.tier-badge {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: var(--of-blue);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tier-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--of-blue);
  margin-bottom: 0.5rem;
}

.tier-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-perks {
  list-style: none;
  margin-bottom: 0.75rem;
}

.tier-perks li {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.tier-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--of-blue);
  font-weight: 700;
  font-size: 0.7rem;
}

.tier-btn {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.tier-btn:hover { border-color: var(--of-blue); color: var(--of-blue); }

.tier-btn-primary {
  background: var(--of-blue);
  color: white;
  border-color: var(--of-blue);
}

.tier-btn-primary:hover {
  background: var(--of-blue-hover);
  border-color: var(--of-blue-hover);
  color: white;
}

.modal-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.25rem 1.5rem;
  line-height: 1.5;
}

/* ==========================================
   DM MODAL
   ========================================== */
.dm-modal {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  height: 70vh;
  max-height: 600px;
}

.dm-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.dm-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
}

.dm-header-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.dm-header-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dm-chat {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dm-bubble {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: bubbleIn 0.2s ease;
}

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

.dm-claude {
  background: var(--bg-elevated);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.dm-user {
  background: var(--of-blue);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.dm-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.dm-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}

.dm-typing span:nth-child(2) { animation-delay: 0.15s; }
.dm-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.dm-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.dm-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.dm-input:focus { border-color: var(--of-blue); }

.dm-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--of-blue);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.dm-send:hover { background: var(--of-blue-hover); }

.dm-send .lucide {
  width: 16px;
  height: 16px;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--text-primary);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   HEART BURST PARTICLES
   ========================================== */
.heart-particle {
  position: absolute;
  top: 0;
  font-size: 0.7rem;
  color: var(--heart-red);
  pointer-events: none;
  animation: heartFloat 0.7s ease-out forwards;
  z-index: 10;
}

@keyframes heartFloat {
  0% { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) translateX(var(--drift)) scale(0.5); }
}

/* ==========================================
   TIP ANIMATION
   ========================================== */
.tip-btn.tipping {
  animation: tipBounce 0.5s ease;
}

@keyframes tipBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.05); }
}

/* ==========================================
   NOTIFICATION BADGE — expanded for counts
   ========================================== */
.nav-badge:not(:empty) {
  width: auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  right: -2px;
}

.badge-pulse {
  animation: badgePulse 0.3s ease;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ==========================================
   POST HIGHLIGHT (anchor link)
   ========================================== */
.post-highlight {
  animation: postGlow 2s ease;
}

@keyframes postGlow {
  0% { background: var(--of-blue-light); }
  100% { background: var(--bg-white); }
}

/* ==========================================
   MODAL RESPONSIVE — full screen on mobile
   ========================================== */
@media (max-width: 480px) {
  .modal {
    border-radius: 12px 12px 0 0;
    max-height: 95vh;
    margin-top: auto;
  }

  .modal-tiers {
    padding: 0 1rem;
  }

  .modal-header {
    padding: 1.5rem 1rem 0.75rem;
  }

  .dm-modal {
    height: 85vh;
  }

  .toast {
    max-width: 90vw;
    font-size: 0.75rem;
  }
}

@media (min-width: 560px) {
  .modal-tiers {
    flex-direction: row;
  }

  .tier {
    flex: 1;
  }
}
