/*
  LanvarsBlog — Premium Editorial Design System
  Font: Geist (Google Font)
  Constraints:
    ✗  No text-transform: uppercase
    ✗  No letter-spacing / tracking classes
    ✗  No box-shadow
    ✓  Buttons: border-radius: 9999px (rounded-full)
    ✓  Cards:   border-radius: 1.5rem  (rounded-3xl)
*/

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

/* ─────────────────────────────────────────────
   DESIGN TOKENS — Light Mode (default)
───────────────────────────────────────────── */
:root {
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Surfaces */
  --bg: #fafaf9;
  --bg-alt: #f5f5f3;
  --bg-sunken: #eeeeec;
  --surface: #ffffff;
  --surface-alt: #f9f9f8;

  /* Borders — ultra-faint & delicate */
  --line: rgba(0, 0, 0, 0.055);
  --line-subtle: rgba(0, 0, 0, 0.028);
  --border-color: var(--line);

  /* Text */
  --ink: #18181b;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --ink-4: #a1a1aa;

  /* Brand — Lanvars Vibrant Red */
  --primary: #db3330;
  --primary-hover: #b92220;
  --primary-foreground: #ffffff;
  --accent: #db3330;
  --accent-2: #ef4444;
  --accent-light: #fee2e2;
  --accent-glow: rgba(219, 51, 48, 0.2);
  --primary-gradient: linear-gradient(135deg, #b91c1c 0%, #db3330 50%, #ef4444 100%);
  --primary-gradient-hover: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(219, 51, 48, 0.08) 0%, rgba(239, 68, 68, 0.12) 100%);
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;

  /* Category pill colors */
  --cat-tech: #2563eb;
  --cat-finance: #16a34a;
  --cat-life: #7c3aed;
  --cat-crypto: #d97706;
  --cat-biz: #db2777;
  --cat-general: #0891b2;

  /* Radius tokens */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.25rem;
  --r-2xl: 1.5rem;
  /* rounded-2xl */
  --r-card: 1.5rem;
  /* rounded-3xl */
  --r-full: 9999px;
  /* rounded-full */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 200ms;
  --dur-md: 320ms;

  /* Community Platform Light Tokens */
  --surface-thread: #ffffff;
  --surface-sidebar: #f9f9f8;
  --thread-border: rgba(0, 0, 0, 0.07);
  --badge-hot-bg: rgba(220, 38, 38, 0.08);
  --badge-new-bg: rgba(22, 163, 74, 0.08);
}

/* ─────────────────────────────────────────────
   DARK MODE TOKENS
───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #0c0c0e;
  --bg-alt: #111115;
  --bg-sunken: #18181d;
  --surface: #141418;
  --surface-alt: #1a1a1f;

  /* Borders — ultra-faint & delicate */
  --line: rgba(255, 255, 255, 0.065);
  --line-subtle: rgba(255, 255, 255, 0.03);
  --border-color: var(--line);

  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --ink-3: #71717a;
  --ink-4: #52525b;

  /* Brand — Lanvars Vibrant Red in dark mode */
  --primary: #db3330;
  --primary-hover: #ef4444;
  --primary-foreground: #ffffff;
  --accent: #ef4444;
  --accent-2: #f87171;
  --accent-light: rgba(239, 68, 68, 0.15);
  --accent-glow: rgba(219, 51, 48, 0.25);
  --primary-gradient: linear-gradient(135deg, #b91c1c 0%, #db3330 50%, #ef4444 100%);
  --primary-gradient-hover: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(219, 51, 48, 0.2) 0%, rgba(239, 68, 68, 0.15) 100%);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #f87171;

  --cat-tech: #60a5fa;
  --cat-finance: #4ade80;
  --cat-life: #a78bfa;
  --cat-crypto: #fbbf24;
  --cat-biz: #f472b6;
  --cat-general: #22d3ee;

  /* Community Platform Dark Tokens */
  --surface-thread: #16161a;
  --surface-sidebar: #111115;
  --thread-border: rgba(255, 255, 255, 0.07);
  --badge-hot-bg: rgba(220, 38, 38, 0.15);
  --badge-new-bg: rgba(22, 163, 74, 0.15);
}

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur) var(--ease-fast),
    color var(--dur) var(--ease-fast);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container--narrow {
    padding: 0 var(--space-4);
  }
}

/* ─────────────────────────────────────────────
   READING PROGRESS BAR
───────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary-gradient);
  width: 0%;
  z-index: 200;
  transition: width 80ms linear;
}


/* ─────────────────────────────────────────────
   NAVIGATION — Custom Header
───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Wordmark & Emblem */
.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease-fast);
  text-decoration: none;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
  transition: transform var(--dur) var(--ease-fast);
}

.brand-symbol .brand-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-logo:hover .brand-symbol {
  transform: scale(1.05);
}

.brand-text-wrap {
  display: flex;
  align-items: baseline;
}

.brand-logo .wordmark-main {
  color: var(--ink);
}

.brand-logo .wordmark-dot {
  color: var(--accent);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: var(--r-full);
  vertical-align: middle;
}

/* Quick Topic Links */
.nav-primary-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-topic-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-full);
  transition: all var(--dur) var(--ease-fast);
  text-decoration: none;
}

.nav-topic-link:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.desktop-nav-items {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mobile-menu-btn {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-primary-links {
    display: none !important;
  }

  .desktop-nav-items {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
  font-size: 1rem;
}

.btn-theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--ink-4);
  transform: scale(1.04);
}

.nav-user-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur) var(--ease-fast);
}

.nav-user-chip:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg-sunken);
}

.nav-username {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-admin-badge {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   SIDEBAR MENU (LEFT DOCKED ON DESKTOP, LEFT DRAWER ON MOBILE)
───────────────────────────────────────────── */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-start;
  /* Stationed at left side */
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--dur) var(--ease);
}

.mobile-drawer-overlay.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.mobile-drawer-overlay.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-left: none;
  padding: var(--space-6) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
  transform: translateX(-100%);
  /* Slides from left */
  transition: transform var(--dur) var(--ease);
  z-index: 10;
}

.mobile-drawer-overlay.open .mobile-drawer-panel {
  transform: translateX(0);
}

/* ── DESKTOP PERSISTENT LEFT SIDEBAR SPEC (>= 1024px, DASHBOARD ONLY) ── */
@media (min-width: 1024px) {
  .dashboard-page .mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 90;
    display: block;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent;
  }

  .dashboard-page .mobile-drawer-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .dashboard-page .mobile-drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 280px;
    height: 100vh;
    transform: translateX(0) !important;
    border-right: 1px solid var(--line);
    border-left: none;
    background: var(--surface);
    padding: var(--space-6) var(--space-5) var(--space-8);
    box-shadow: none;
    z-index: 95;
    overflow-y: auto;
  }

  .dashboard-page #mobile-drawer-close {
    display: none !important;
  }

  .dashboard-page .mobile-menu-btn {
    display: none !important;
  }

  /* Shift page header and body content to the right on dashboard */
  .dashboard-page .site-header {
    margin-left: 280px;
    width: calc(100% - 280px);
  }

  /* Hide duplicate logo in site-header on dashboard since the sidebar header already features it */
  .dashboard-page .site-header .nav-brand-group .brand-logo {
    display: none !important;
  }

  .dashboard-page #main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    box-sizing: border-box;
    min-height: calc(100vh - 72px);
  }

  .admin-page #main-content {
    min-height: 100vh;
  }

  .dashboard-page #main-content .container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.25rem 1.75rem 2.5rem !important;
  }

  .admin-page #main-content .container {
    padding: 1rem 1.5rem 2rem !important;
  }

  .dashboard-page .site-footer,
  .dashboard-page .dashboard-app-footer {
    margin-left: 280px;
  }

  .dashboard-page .dashboard-bottom-nav {
    display: none !important;
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-subtle);
}

.mobile-drawer-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
}

.mobile-drawer-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-sunken);
}

.mobile-drawer-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-drawer-fullname {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-drawer-username {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.mobile-drawer-section-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-4);
  margin-bottom: var(--space-3);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-card);
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur) var(--ease-fast);
}

.mobile-drawer-link:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

.mobile-drawer-link.active {
  color: var(--accent, #db3330);
  background: rgba(219, 51, 48, 0.08);
  font-weight: 600;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-subtle);
}

/* ─────────────────────────────────────────────
   BUTTONS — All rounded-full
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(219, 51, 48, 0.28);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
  background: var(--primary-gradient-hover);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(219, 51, 48, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--ink-4);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border-color: transparent;
  padding: 0.55rem 0.9rem;
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

/* Icon button */
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--dur) var(--ease-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-icon:hover {
  background: var(--bg-sunken);
  color: var(--ink);
}

/* ─────────────────────────────────────────────
   CARDS — All rounded-3xl
───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-6);
}

/* ─────────────────────────────────────────────
   CATEGORY CHIPS
───────────────────────────────────────────── */
.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
  line-height: 1.5;
}

.category-tag[data-cat="Technology"] {
  color: var(--cat-tech);
  background: color-mix(in srgb, var(--cat-tech) 12%, transparent);
}

.category-tag[data-cat="Finance"] {
  color: var(--cat-finance);
  background: color-mix(in srgb, var(--cat-finance) 12%, transparent);
}

.category-tag[data-cat="Lifestyle"] {
  color: var(--cat-life);
  background: color-mix(in srgb, var(--cat-life) 12%, transparent);
}

.category-tag[data-cat="Crypto"] {
  color: var(--cat-crypto);
  background: color-mix(in srgb, var(--cat-crypto) 12%, transparent);
}

.category-tag[data-cat="Business"] {
  color: var(--cat-biz);
  background: color-mix(in srgb, var(--cat-biz) 12%, transparent);
}

.category-tag[data-cat="General"] {
  color: var(--cat-general);
  background: color-mix(in srgb, var(--cat-general) 12%, transparent);
}

.category-tag:not([data-cat]) {
  color: var(--ink-2);
  background: var(--bg-alt);
}

/* ─────────────────────────────────────────────
   HERO CAROUSEL — 24h Trending Top 5
───────────────────────────────────────────── */
.hero-section {
  padding: var(--space-10) 0 var(--space-8);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.eyebrow-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 500ms var(--ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .carousel-slide {
    grid-template-columns: minmax(0, 1fr);
  }
}

.carousel-content {
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 860px) {
  .carousel-content {
    padding: var(--space-6) var(--space-5);
    order: 2;
  }
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.carousel-heat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--red);
}

.carousel-read-time {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 500;
}

.carousel-title {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

.carousel-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease-fast);
}

.carousel-title a:hover {
  color: var(--accent);
}

.carousel-summary {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-chip a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease-fast);
}

.author-chip a:hover {
  color: var(--accent);
}

.author-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-sunken);
}

.carousel-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

@media (max-width: 768px) {
  .carousel-image-panel {
    min-height: 220px;
    order: 1;
  }
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-viewport:hover .carousel-image {
  transform: scale(1.03);
}

.carousel-nav-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--line);
  cursor: pointer;
  transition: all var(--dur-md) var(--ease);
  flex-shrink: 0;
}

.dot.active {
  width: 24px;
  background: var(--primary-gradient);
}

/* ─────────────────────────────────────────────
   CATEGORY FILTER BAR
───────────────────────────────────────────── */
.filter-bar-wrap {
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-8);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease-fast);
  text-decoration: none;
}

.category-btn:hover {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--ink-4);
}

.category-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ─────────────────────────────────────────────
   FEED GRID
───────────────────────────────────────────── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--space-16);
}

@media (max-width: 1024px) {
  .feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feed-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.feed-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease-fast),
    transform var(--dur-md) var(--ease);
}

.feed-card:hover {
  border-color: var(--ink-4);
  transform: translateY(-3px);
}

.feed-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-sunken);
}

.feed-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease);
}

.feed-card:hover .feed-card-image {
  transform: scale(1.04);
}

.feed-card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-3);
}

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.feed-card-read-time {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 500;
}

.feed-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.feed-card-title a {
  transition: color var(--dur) var(--ease-fast);
}

.feed-card-title a:hover {
  color: var(--accent);
}

.feed-card-summary {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-subtle);
  margin-top: auto;
}

.feed-card-date {
  font-size: 0.78rem;
  color: var(--ink-4);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   ARTICLE POST — Reading View
───────────────────────────────────────────── */
.article-container,
.article-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-20);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .article-container,
  .article-page {
    padding: var(--space-6) var(--space-4) var(--space-16);
  }
}

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

.article-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.article-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-5);
}

.article-subhead {
  font-size: 1.1rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.article-author-row,
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.author-block,
.byline-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author-avatar-lg,
.author-avatar-md {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg-sunken);
  flex-shrink: 0;
}

.author-info h4,
.byline-author-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

.author-info h4 a,
.byline-author-name a {
  color: var(--ink);
}

.author-info h4 a:hover,
.byline-author-name a:hover {
  color: var(--accent);
}

.author-info p,
.byline-meta {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.byline-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.82rem;
  color: var(--ink-4);
  font-weight: 500;
}

.article-hero,
.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-card);
  margin-bottom: var(--space-10);
  background: var(--bg-sunken);
  display: block;
}

.article-body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.article-body>*+* {
  margin-top: 1.4em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-6);
  margin: 1.75em 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--accent-2);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  list-style: revert;
}

.article-body code {
  font-size: 0.9em;
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ─────────────────────────────────────────────
   INTERACTION BAR
───────────────────────────────────────────── */
.interaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  margin: var(--space-10) 0;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.clap-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
  font-family: var(--font-display);
}

.clap-btn:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-alt));
  border-color: var(--accent);
  color: var(--accent);
}

.clap-btn:active {
  transform: scale(0.96);
}

.clap-icon {
  font-size: 1.15rem;
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.clap-btn:hover .clap-icon {
  transform: scale(1.25) rotate(-10deg);
}

.interaction-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ─────────────────────────────────────────────
   AD SLOTS
───────────────────────────────────────────── */
.ad-slot {
  background: var(--bg-alt);
  border-radius: var(--r-card);
  border: 1px dashed var(--line);
  padding: var(--space-6);
  text-align: center;
  margin: var(--space-10) 0;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-4);
  margin-bottom: var(--space-3);
}

.ad-placeholder {
  font-size: 0.85rem;
  color: var(--ink-4);
  padding: var(--space-4) 0;
}

.ad-slot-container {
  background: var(--bg-alt);
  border-radius: var(--r-card);
  border: 1px dashed var(--line);
  padding: var(--space-5) var(--space-6);
  text-align: center;
  margin: var(--space-8) 0;
}

/* ─────────────────────────────────────────────
   AUTHOR BIO CARD
───────────────────────────────────────────── */
.author-bio-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-8);
  margin: var(--space-10) 0;
}

@media (max-width: 640px) {
  .author-bio-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg-sunken);
  flex-shrink: 0;
}

.author-bio-content {
  flex-grow: 1;
}

.author-bio-name {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-bio-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   COMMENTS
───────────────────────────────────────────── */
.comments-section {
  padding-top: var(--space-10);
  border-top: 1px solid var(--line);
}

.comments-heading {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.comment-form-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.comment-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}

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

.comment-author {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.comment-time {
  font-size: 0.78rem;
  color: var(--ink-4);
  font-weight: 500;
}

.comment-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   BIO LINK PAGE
───────────────────────────────────────────── */
.bio-page,
.bio-page-wrapper {
  max-width: 560px;
  margin: var(--space-12) auto var(--space-20);
  padding: 0 var(--space-6);
  text-align: center;
  box-sizing: border-box;
}

.bio-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-5);
  border-radius: var(--r-full);
  overflow: hidden;
  border: 3px solid var(--line);
  background: var(--bg-sunken);
}

.bio-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--r-full);
  object-fit: cover;
  margin: 0 auto var(--space-5);
  display: block;
  border: 3px solid var(--line);
  background: var(--bg-sunken);
}

.bio-name {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.bio-handle {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.bio-headline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--space-3);
}

.bio-desc {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

.bio-title {
  font-size: 25px;
}

.bio-description {
  font-size: 14px;
}

.bio-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.bio-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.bio-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--primary-gradient);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: opacity var(--dur) var(--ease-fast),
    transform var(--dur-md) var(--ease),
    box-shadow var(--dur) var(--ease);
  text-decoration: none;
}

.bio-link-btn:hover {
  background: var(--primary-gradient-hover);
  color: #ffffff;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 51, 48, 0.28);
}

.bio-articles-heading {
  font-size: 1.25rem;
  font-weight: 500;
  text-align: left;
  margin-bottom: var(--space-5);
  color: var(--ink);
}

.bio-article-card {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  background: var(--surface);
  border-radius: var(--r-2xl);
  /* rounded-2xl */
  border: 1px solid var(--line);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  text-align: left;
  transition: all var(--dur) var(--ease-fast);
  text-decoration: none;
}

.bio-article-card:hover {
  border-color: var(--ink-4);
  transform: translateY(-1px);
}

.bio-article-thumb-link {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
  display: block;
}

.bio-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.bio-article-card:hover .bio-article-thumb {
  transform: scale(1.05);
}

.bio-article-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.bio-article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: 2px;
}

.bio-article-title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.bio-article-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease-fast);
}

.bio-article-title a:hover {
  color: var(--accent);
}

.bio-article-summary {
  font-size: 0.84rem;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .bio-article-card {
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .bio-article-thumb-link {
    width: 84px;
    height: 84px;
  }

  .bio-article-title {
    font-size: 0.95rem;
  }

  .bio-article-summary {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   FORMS
───────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  outline: none;
  transition: border-color var(--dur) var(--ease-fast),
    background var(--dur) var(--ease-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-4);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   AUTHENTICATION EXPERIENCE
───────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--r-2xl);
  /* rounded-2xl */
  border: 1px solid var(--line);
  padding: var(--space-8);
  position: relative;
}

.auth-split-wrapper {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.auth-showcase-panel {
  background: var(--bg-sunken);
  border-radius: var(--r-2xl);
  /* rounded-2xl */
  border: 1px solid var(--line);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .auth-split-wrapper {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .auth-showcase-panel {
    display: none !important;
  }

  .auth-split-wrapper .auth-card {
    max-width: 100%;
  }

  .auth-split-wrapper .auth-card .auth-header {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: var(--space-6) var(--space-4);
  }

  .auth-card {
    padding: var(--space-6) var(--space-5);
  }
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: var(--space-3);
}

.auth-brand-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
}

.auth-header {
  margin-bottom: var(--space-6);
  text-align: center;
}

.auth-split-wrapper .auth-card .auth-header {
  text-align: left;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Google Auth Button */
.btn-google-auth {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
  margin-bottom: var(--space-4);
  box-sizing: border-box;
}

.btn-google-auth:hover {
  background: var(--bg-alt);
  border-color: var(--ink-4);
  color: var(--ink);
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-divider-text {
  font-size: 0.78rem;
  color: var(--ink-4);
  white-space: nowrap;
  font-weight: 500;
}

.auth-error-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.65rem 0.95rem;
  background: color-mix(in srgb, var(--red) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  border-radius: var(--r-md);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.auth-input-group {
  margin-bottom: var(--space-4);
}

.auth-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--ink-4);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur) var(--ease-fast);
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0.72rem 1rem 0.72rem 2.65rem;
  font-size: 0.92rem;
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--dur) var(--ease-fast),
    background var(--dur) var(--ease-fast);
  -webkit-appearance: none;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--ink);
}

.auth-input-prefix {
  position: absolute;
  left: 1rem;
  font-weight: 500;
  color: var(--ink-3);
  pointer-events: none;
}

.auth-input-prefixed {
  padding-left: 2.2rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--ink-4);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  transition: color var(--dur) var(--ease-fast);
}

.auth-password-toggle:hover {
  color: var(--ink);
}

.auth-submit-btn {
  width: 100%;
  height: 44px;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
}

.auth-footer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-subtle);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-terms-note {
  font-size: 0.78rem;
  color: var(--ink-4);
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.45;
}

/* Showcase Features List */
.showcase-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.showcase-title {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.showcase-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.showcase-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.showcase-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.showcase-feature-text p {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.showcase-quote-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin-top: auto;
}

.showcase-quote-text {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.showcase-quote-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.showcase-quote-author-img {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  object-fit: cover;
}

.showcase-quote-author-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.showcase-quote-author-role {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ─────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   MOBILE-FIRST DASHBOARD & SUITE (LANVARS SPEC)
───────────────────────────────────────────── */
.dashboard-mobile-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) calc(var(--space-16) + 3rem);
}

@media (min-width: 1024px) {
  .dashboard-mobile-wrap {
    max-width: 1240px;
    padding: var(--space-8) var(--space-8) var(--space-12);
  }
}

/* ── COMPACT RADIANT CREATOR STUDIO HERO CARD ── */
.creator-studio-card {
  position: relative;
  width: 100%;
  border-radius: var(--r-card);
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 1.25rem 1.4rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all var(--dur) var(--ease-fast);
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .creator-studio-card {
  background: linear-gradient(140deg, #450a0a 0%, #7f1d1d 35%, #991b1b 65%, #b91c1c 85%, #db3330 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle corner ambient glow */
.creator-card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Top author & status bar */
.creator-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: var(--space-3);
}

.creator-card-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.creator-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.2);
}

.creator-card-names {
  display: flex;
  flex-direction: column;
}

.creator-card-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
}

.creator-card-handle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.creator-badge-pill {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.creator-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* Balance & Metrics Hero — Faint elegant dividing line */
.creator-card-body {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.creator-balance-col {
  display: flex;
  flex-direction: column;
}

.creator-balance-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.creator-balance-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.creator-balance-num {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
}

.creator-balance-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
}

.creator-balance-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.creator-card-side-metric {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.creator-side-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 9999px;
  align-self: flex-end;
}

.creator-side-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ── TOP HERO ROW (HERO CARD + QUICK ACTIONS ON DESKTOP) ── */
.dash-top-hero-row {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .dash-top-hero-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-5);
    align-items: stretch;
    margin-bottom: var(--space-6);
  }

  .dash-top-hero-row .creator-studio-card {
    height: 100%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.65rem 1.4rem;
  }

  .dash-top-hero-row .dash-quick-actions {
    margin-bottom: 0;
    height: 100%;
  }

  .dash-top-hero-row .dash-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: 100%;
    gap: var(--space-3);
  }

  .dash-top-hero-row .dash-qa-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.85rem;
    text-align: left;
  }

  .dash-top-hero-row .dash-qa-label {
    font-size: 0.88rem;
    text-align: left;
  }
}

/* ── QUICK ACTIONS (BELOW HERO CARD ON MOBILE) ── */
.dash-quick-actions {
  margin-bottom: var(--space-5);
}

.dash-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .dash-quick-actions-grid {
    gap: 0.45rem;
  }
}

.dash-qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  text-decoration: none;
  transition: all var(--dur) var(--ease-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.dash-qa-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.dash-qa-icon {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  color: var(--accent);
  transition: all var(--dur) var(--ease-fast);
}

.dash-qa-item:hover .dash-qa-icon {
  transform: scale(1.08);
}

.dash-qa-primary .dash-qa-icon {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 3px 10px var(--accent-glow);
}

.dash-qa-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="dark"] .dash-qa-item {
  background: #141418;
  border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .dash-qa-item:hover {
  border-color: var(--accent);
  background: #191624;
}

/* ── QUICK PILL TABS ── */
.dash-pill-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 4px;
  background: var(--bg-sunken);
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
}

.dash-pill-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .dash-pill-tabs {
    width: max-content;
    margin-bottom: var(--space-5);
  }
}

.dash-pill-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--dur) var(--ease-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.dash-pill-tab:hover {
  color: var(--ink);
}

.dash-pill-tab.active {
  background: var(--surface);
  color: var(--ink);
}

/* ── 2x2 METRICS GRID ON MOBILE, 4-COLUMN ON DESKTOP ── */
.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .dash-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }

  .dash-metric-card {
    padding: var(--space-5) var(--space-5);
  }

  .dash-metric-val {
    font-size: 1.85rem;
  }
}

.dash-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform var(--dur) var(--ease-fast);
}

.dash-metric-card:hover {
  transform: translateY(-1px);
}

.dash-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-metric-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
}

.dash-metric-val {
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

.dash-metric-sub {
  font-size: 0.72rem;
  color: var(--ink-4);
}

/* ── RECENT ARTICLES LIST ── */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.dash-section-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

.dash-section-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.dash-section-link:hover {
  text-decoration: underline;
}

.dash-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-6);
}

.dash-post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--dur) var(--ease-fast);
}

.dash-post-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.dash-post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  gap: 0.5rem;
}

.dash-post-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}

.dash-post-title:hover {
  color: var(--accent);
}

/* ── SEO AUDIT BADGE & CHECKLIST ON POST CARDS ── */
.dash-seo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all var(--dur) var(--ease-fast);
}

.dash-seo-badge.seo-pass {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}

.dash-seo-badge.seo-warn {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
}

.dash-seo-badge.seo-fail {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
}

.dash-seo-checklist-drawer {
  background: var(--bg-sunken);
  border: 1px solid var(--line-subtle);
  border-radius: var(--r-lg);
  padding: 0.65rem 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.dash-seo-checklist-drawer.open {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.dash-seo-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.dash-seo-check-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  padding: 0.25rem 0.4rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-subtle);
}

.dash-seo-check-item.passed {
  color: var(--ink);
}

.dash-seo-check-item.failed {
  color: var(--ink-3);
  opacity: 0.75;
}

.dash-post-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.78rem;
  color: var(--ink-3);
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-subtle);
}

.dash-post-stat-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dash-post-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── STATUS PILLS ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--r-full);
}

.status-approved {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
}

.status-pending {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
}

.status-rejected {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}

.status-suspended {
  background: color-mix(in srgb, #dc2626 15%, transparent);
  color: #ef4444;
  border: 1px solid color-mix(in srgb, #dc2626 30%, transparent);
}

.status-draft {
  background: var(--bg-sunken);
  color: var(--ink-3);
}

/* ── MAIN CONTENT GRID (2 COLUMNS ON DESKTOP) ── */
.dash-main-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .dash-main-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: var(--space-6);
    align-items: start;
  }

  .dash-side-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: 90px;
  }
}

.dash-bio-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--space-5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all var(--dur) var(--ease-fast);
}

[data-theme="dark"] .dash-bio-widget {
  background: #141418;
  border-color: rgba(255, 255, 255, 0.07);
}

.dash-bio-widget:hover {
  border-color: var(--accent);
}

/* ── REVENUE & PARTNER INFO CARD ── */
.dash-revenue-card,
.dash-monetag-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.dash-revenue-badge,
.dash-monetag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-2);
}

/* ── FLOATING BOTTOM NAVIGATION BAR (LANVARS SPEC — STRICTLY MOBILE ONLY) ── */
.dashboard-bottom-nav {
  display: none !important;
}

@media (max-width: 1023px) {
  .dashboard-bottom-nav {
    display: block !important;
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: max-content;
    min-width: 320px;
    background: color-mix(in srgb, #ffffff 90%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: colors 0.3s ease;
  }
}

@media (min-width: 1024px) {
  .dashboard-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

[data-theme="dark"] .dashboard-bottom-nav {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  padding: 4px 2px;
}

.bottom-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  text-decoration: none;
  position: relative;
}

.bottom-nav-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 16px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  background: transparent;
}

.bottom-nav-link.active .bottom-nav-pill {
  background: var(--accent-glow);
}

[data-theme="dark"] .bottom-nav-link.active .bottom-nav-pill {
  background: rgba(219, 51, 48, 0.18);
}

.bottom-nav-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-4);
  transition: all 0.2s ease;
}

.bottom-nav-link:hover .bottom-nav-icon {
  color: var(--ink-3);
}

.bottom-nav-link.active .bottom-nav-icon {
  color: var(--accent);
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1;
  color: var(--ink-3);
  transition: all 0.2s ease;
}

[data-theme="dark"] .bottom-nav-label {
  color: var(--ink-4);
}

.bottom-nav-link.active .bottom-nav-label {
  color: var(--accent);
  font-weight: 500;
}

.bottom-nav-avatar-wrap {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-link.active .bottom-nav-avatar-wrap {
  border-color: var(--accent);
}

.bottom-nav-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Minimal logged-in / dashboard footer */
.dashboard-app-footer {
  padding: var(--space-8) var(--space-4) calc(var(--space-12) + 3.5rem);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-4);
  border-top: 1px solid var(--line-subtle);
  margin-top: var(--space-8);
}

/* ─────────────────────────────────────────────
   EDITOR PAGE
───────────────────────────────────────────── */
.editor-page {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-16);
}

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

.editor-heading {
  font-size: 1.75rem;
  font-weight: 500;
}

.editor-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-8);
}

.editor-title-input {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.editor-body-input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
}

.editor-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
}

/* ─────────────────────────────────────────────
   ADMIN
───────────────────────────────────────────── */
.admin-page {
  padding: 0 !important;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.admin-heading {
  font-size: 1.75rem;
  font-weight: 500;
}

.admin-subtitle {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 4px;
}

.moderation-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-8);
  margin-bottom: var(--space-5);
}

.moderation-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.moderation-title {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.moderation-excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-3);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}

.moderation-preview {
  background: var(--bg-alt);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: var(--space-5) var(--space-6);
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.moderation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.rejection-form {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rejection-input {
  width: 220px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-display);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

.rejection-input:focus {
  border-color: var(--red);
}

/* ─────────────────────────────────────────────
   ERROR PAGE
───────────────────────────────────────────── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--bg-sunken);
  margin-bottom: var(--space-4);
}

.error-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.error-message {
  font-size: 0.95rem;
  color: var(--ink-3);
  max-width: 400px;
  margin: 0 auto var(--space-8);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   FOOTER — Custom Editorial Design
───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: var(--space-16) 0 var(--space-12);
  margin-top: var(--space-16);
}

/* Dispatch Newsletter Box (rounded-3xl) */
.footer-dispatch-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 900px) {
  .footer-dispatch-card {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    gap: var(--space-5);
  }
}

.dispatch-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  margin-bottom: var(--space-3);
}

.dispatch-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--accent);
}

.dispatch-title {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.dispatch-desc {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.dispatch-form {
  display: flex;
  gap: var(--space-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 4px 4px 4px var(--space-4);
  transition: border-color var(--dur) var(--ease-fast);
}

.dispatch-form:focus-within {
  border-color: var(--accent);
}

.dispatch-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
}

.dispatch-input::placeholder {
  color: var(--ink-4);
}

.dispatch-submit-btn {
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.dispatch-guarantee {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-4);
  margin-top: var(--space-2);
  text-align: center;
}

/* 3-Column Editorial Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-12);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.footer-logo {
  margin-bottom: var(--space-4);
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  max-width: 380px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--dur) var(--ease-fast);
}

.footer-social-btn:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-col-heading {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--ink-3);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur) var(--ease-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(2px);
}


/* Footer Bottom Bar */
.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-4);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-bullet {
  color: var(--line);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
  font-family: var(--font-display);
}

.footer-back-to-top:hover {
  background: var(--bg-alt);
  border-color: var(--ink-4);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   FLASH MESSAGES
───────────────────────────────────────────── */
.flash-success {
  padding: var(--space-3) var(--space-5);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
  border-radius: var(--r-full);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.flash-error {
  padding: var(--space-3) var(--space-5);
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
  border-radius: var(--r-full);
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-5);
}

/* ─────────────────────────────────────────────
   GRID & UTILITIES
───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.hide-mobile {
  display: initial;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   DASHBOARD SETTINGS PAGE
───────────────────────────────────────────── */
.dash-settings-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 1024px) {
  .dash-settings-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-6);
    align-items: start;
  }
}

/* ─────────────────────────────────────────────
   NOTIFICATIONS & FOLLOW ENGINE
───────────────────────────────────────────── */
.notif-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red, #ef4444);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 500;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--surface, #ffffff);
  line-height: 1;
  pointer-events: none;
}

.notif-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--r-xl, 1.25rem);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.16);
  z-index: 1000;
  overflow: hidden;
  animation: notifFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.06));
  background: var(--bg-sunken, rgba(0, 0, 0, 0.02));
}

.notif-mark-read-btn {
  background: transparent;
  border: none;
  color: var(--primary, #db3330);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.notif-mark-read-btn:hover {
  text-decoration: underline;
}

.notif-dropdown-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.04));
  transition: background 0.15s ease;
}

.notif-item:hover {
  background: var(--bg-sunken, rgba(0, 0, 0, 0.03));
}

.notif-item.notif-unread {
  background: rgba(219, 51, 48, 0.05);
}

.notif-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--primary, #db3330);
  margin-top: 6px;
  flex-shrink: 0;
  opacity: 0;
}

.notif-item.notif-unread .notif-item-dot {
  opacity: 1;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.3;
}

.notif-item-msg {
  font-size: 0.8rem;
  color: var(--ink-2, #64748b);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-item-time {
  font-size: 0.7rem;
  color: var(--ink-4, #94a3b8);
}

.notif-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-3, #94a3b8);
  font-size: 0.85rem;
}

/* Follow Button */
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.15));
  background: var(--surface, #ffffff);
  color: var(--ink-1, #0f172a);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-follow:hover {
  background: var(--primary, #db3330);
  color: #ffffff;
  border-color: var(--primary, #db3330);
}

.btn-follow.following {
  background: rgba(219, 51, 48, 0.1);
  color: var(--primary, #db3330);
  border-color: rgba(219, 51, 48, 0.3);
}

.btn-follow.following:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red, #ef4444);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ─────────────────────────────────────────────
   TABLE HEADERS — Clean, medium font weight, no uppercase
───────────────────────────────────────────── */
table th,
thead th {
  text-transform: none !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

.btn-post-insert:hover {
  background: var(--bg-alt) !important;
  border-color: var(--primary) !important;
}

@media (max-width: 1100px) {
  .broadcast-layout-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1023px) {
  .admin-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .admin-desktop-theme-toggle {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────
   COMMUNITY PLATFORM REDESIGN — New Classes
   Constraint reminder:
     ✗  No text-transform: uppercase
     ✗  No letter-spacing
     ✗  No box-shadow
     ✓  Buttons: border-radius: 9999px
     ✓  Cards:   border-radius: 1.5rem
───────────────────────────────────────────── */

/* Community Layout — two-column grid (main + sidebar) */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 1024px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
}

/* Community Layout Content — inner wrapper for individual pages */
.community-layout-content {
  min-width: 0;
}

/* Community Sidebar — sticky right panel */
.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: 90px;
  background: var(--surface-sidebar);
  border-radius: var(--r-card);
  border: 1px solid var(--thread-border);
  padding: var(--space-5);
  min-width: 0;
}

@media (max-width: 1024px) {
  .community-sidebar {
    display: none;
  }
}

/* Sidebar Section — each titled block inside the sidebar */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-section-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--thread-border);
}

/* Community Badge — generic pill for counts/labels */
.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--r-full);
  background: var(--bg-sunken);
  color: var(--ink-3);
  border: 1px solid var(--thread-border);
}

/* Creator Chip Large — creator row in sidebar */
.creator-chip-lg {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--thread-border);
}

.creator-chip-lg:last-child {
  border-bottom: none;
}

.creator-chip-lg-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg-sunken);
  flex-shrink: 0;
}

.creator-chip-lg-info {
  flex: 1;
  min-width: 0;
}

.creator-chip-lg-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-chip-lg-meta {
  font-size: 0.75rem;
  color: var(--ink-4);
}

/* Giveaway Sidebar CTA — amber highlight block */
.giveaway-sidebar-cta {
  background: color-mix(in srgb, var(--amber) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: var(--r-card);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.giveaway-sidebar-cta-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.giveaway-sidebar-cta-desc {
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.45;
}

/* Topic Bar — sticky horizontal scrollable category nav */
.topic-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--thread-border);
  margin-bottom: var(--space-5);
}

.topic-bar::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.38rem 0.9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--thread-border);
  background: var(--surface-thread);
  color: var(--ink-3);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease-fast);
  flex-shrink: 0;
}

.topic-chip:hover {
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--ink-4);
}

.topic-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Hero Community — community-style hero spacing wrapper */
.hero-community {
  padding: var(--space-8) 0 var(--space-6);
}

.hero-community .hero-eyebrow {
  margin-bottom: var(--space-4);
}

/* Thread Card — forum-style post row: image LEFT, content RIGHT */
.thread-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--surface-thread);
  border-radius: var(--r-card);
  border: 1px solid var(--thread-border);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-fast),
              background var(--dur) var(--ease-fast);
  position: relative;
}

.thread-card:hover {
  border-color: var(--ink-4);
  background: var(--surface);
}

/* Thumbnail always comes first (left) — the <a> wrapper */
.thread-card-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
  display: block;
  align-self: flex-start;
}

.thread-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.thread-card:hover .thread-card-thumb img {
  transform: scale(1.04);
}

/* Body fills remaining space to the right of the image */
.thread-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (max-width: 520px) {
  .thread-card {
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
  .thread-card-thumb {
    width: 80px;
    height: 64px;
  }
}

/* Thread Meta — meta row below title */
.thread-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-4);
  font-weight: 500;
}

.thread-meta-sep {
  color: var(--thread-border);
}

.thread-card-title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.thread-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease-fast);
}

.thread-card-title a:hover {
  color: var(--accent);
}

.thread-card-summary {
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Hot and New badges */
.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--badge-hot-bg);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--badge-new-bg);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
}

/* Feed Grid override — single-column thread list inside community layout */
.community-layout .feed-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-bottom: var(--space-8);
}

/* Topic bar wrap utility */
.topic-bar-wrap {
  border-bottom: 1px solid var(--thread-border);
  margin-bottom: var(--space-5);
}

/* Community main content column — prevents grid blowout */
.community-main-col {
  min-width: 0;
}

/* ─────────────────────────────────────────────
   THREAD REACTIONS BAR
───────────────────────────────────────────── */
.thread-reactions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  margin: var(--space-8) 0;
}

.thread-reactions-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-3);
  font-family: var(--font-display);
  transition: border-color var(--dur) var(--ease-fast),
              background var(--dur) var(--ease-fast),
              color var(--dur) var(--ease-fast),
              transform 150ms var(--ease);
}

.reaction-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.reaction-btn.reacted {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.reaction-emoji {
  font-size: 1rem;
  line-height: 1;
}

.reaction-count {
  min-width: 12px;
  text-align: center;
}

.thread-reactions-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.thread-views-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--ink-4);
  font-weight: 500;
}

.reaction-share-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--r-full);
}

/* ─────────────────────────────────────────────
   FORUM THREAD — Discussion Section
───────────────────────────────────────────── */
.forum-thread-section {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}

.forum-thread-header {
  margin-bottom: var(--space-6);
}

.forum-thread-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.forum-thread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Reply composer */
.forum-reply-box {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}

.forum-reply-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.forum-reply-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sunken);
  color: var(--ink-4);
}

.forum-reply-form {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.forum-reply-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  resize: none;
  transition: border-color var(--dur) var(--ease-fast);
  box-sizing: border-box;
}

.forum-reply-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.forum-reply-textarea {
  min-height: 72px;
}

.forum-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.forum-reply-login-hint {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
}

.forum-reply-login-hint:hover {
  text-decoration: underline;
}

.forum-reply-submit {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
}

/* Thread replies list */
.forum-thread-replies {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.forum-reply-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-subtle);
}

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

.forum-reply-item-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-4);
  flex-shrink: 0;
}

.forum-reply-item-body {
  flex: 1;
  min-width: 0;
}

.forum-reply-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.forum-reply-item-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.forum-reply-item-time {
  font-size: 0.75rem;
  color: var(--ink-4);
}

.forum-reply-item-text {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.forum-thread-empty {
  padding: var(--space-8) 0;
  text-align: center;
  color: var(--ink-4);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   FEAT-002 — Forum-Style Homepage Sections
   ═══════════════════════════════════════════════════════════ */

/* ── Editors Pick Banner — light bg, image right ── */
.editors-pick-banner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 2rem 2.25rem;
  margin: var(--space-6) 0 var(--space-6);
  min-height: auto;
  overflow: hidden;
}

.epb-content {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: 0;
  color: var(--ink);
  min-width: 0;
}

.epb-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  width: fit-content;
}

.epb-title {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.epb-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease-fast);
}

.epb-title a:hover {
  color: var(--accent);
}

.epb-summary {
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epb-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.epb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid var(--line);
}

.epb-author {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.epb-author:hover { color: var(--accent); }

.epb-meta-sep { color: var(--ink-4); }

.epb-date, .epb-readtime { color: var(--ink-4); }

.epb-cta {
  width: fit-content;
  font-size: 0.86rem;
  padding: 0.5rem 1.25rem;
  margin-top: 0.25rem;
}

.epb-image {
  flex: 0 0 45%;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-sunken);
}

.epb-image a {
  display: block;
  height: 100%;
}

.epb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.epb-image:hover img { transform: scale(1.03); }

@media (max-width: 768px) {
  .editors-pick-banner {
    flex-direction: column-reverse;
    gap: 1.25rem;
    padding: 1.25rem;
    margin: var(--space-4) 0;
  }
  .epb-image {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ── Icon Category Bar ── */
.topic-bar-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
}

.topic-bar-icons {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: space-between;
}

.topic-bar-icons::-webkit-scrollbar { display: none; }

.tbi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-fast);
  flex-shrink: 0;
  min-width: 76px;
}

.tbi-item:hover { color: var(--ink); }
.tbi-item.active { color: var(--accent); }

.tbi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--ink-3);
  transition: background var(--dur) var(--ease-fast),
              color var(--dur) var(--ease-fast);
}

.tbi-item:hover .tbi-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.tbi-item.active .tbi-icon {
  background: var(--accent-light);
  color: var(--accent);
}

.tbi-label {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
}

/* ── Featured Strip ─────────────────────────────────────── */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.featured-strip-card {
  position: relative;
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  background: var(--surface-thread);
}

.featured-strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.featured-strip-card:hover img {
  transform: scale(1.04);
}

.fsc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.fsc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fsc-category {
  font-size: 0.7rem;
  font-weight: 600;
  align-self: flex-start;
}

.fsc-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 860px) {
  .featured-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-strip-card:last-child {
    display: none;
  }
}

@media (max-width: 560px) {
  .featured-strip {
    grid-template-columns: 1fr;
  }
  .featured-strip-card:last-child {
    display: block;
  }
}

/* ── Section Header ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-header-left {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.section-sublabel {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-weight: 400;
}

.section-see-all {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.section-see-all:hover {
  opacity: 0.8;
}

/* ── Trending Now ───────────────────────────────────────── */
.section-trending {
  margin-bottom: var(--space-10);
}

.trending-scroll {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.trending-scroll::-webkit-scrollbar {
  height: 4px;
}

.trending-scroll::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: var(--r-full);
}

.trending-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--r-full);
}

.trending-thread-card {
  flex: 0 0 280px;
  height: auto;
  align-self: stretch;
  scroll-snap-align: start;
  background: var(--surface-thread);
  border-radius: var(--r-card);
  border: 1px solid var(--thread-border);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color 0.2s ease;
}

.trending-thread-card:hover {
  border-color: var(--accent);
}

.ttc-top {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  flex: 1;
}

.ttc-thumb {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 60px;
  border-radius: 0.75rem;
  overflow: hidden;
}

.ttc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ttc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ttc-cat {
  font-size: 0.68rem;
  align-self: flex-start;
}

.ttc-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ttc-title a {
  color: var(--ink);
  text-decoration: none;
}

.ttc-title a:hover {
  color: var(--accent);
}

.ttc-meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-3);
}

.ttc-author {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.ttc-author:hover {
  color: var(--accent);
}

.ttc-meta-sep {
  color: var(--ink-4);
}

.ttc-reactions {
  margin-top: auto;
}

/* ── Latest Posts (2-col grid) ──────────────────────────── */
.section-latest {
  margin-bottom: var(--space-10);
}

.feed-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

/* Compact cards inside the latest 2-col grid — no desc, smaller everything */
.feed-grid-2col .thread-card {
  padding: var(--space-3);
  gap: var(--space-3);
}

.feed-grid-2col .thread-card-thumb {
  width: 72px;
  height: 56px;
}

.feed-grid-2col .thread-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}

.feed-grid-2col .thread-meta {
  font-size: 0.72rem;
  gap: var(--space-2);
}

@media (max-width: 680px) {
  .feed-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ── Community Picks (2×2 grid) ─────────────────────────── */
.section-popular {
  margin-bottom: var(--space-10);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

@media (max-width: 680px) {
  .popular-grid {
    grid-template-columns: 1fr;
  }
}

.popular-card {
  background: var(--surface-thread);
  border-radius: var(--r-card);
  border: 1px solid var(--thread-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.popular-card:hover {
  border-color: var(--accent);
}

.pc-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.pc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.popular-card:hover .pc-image img {
  transform: scale(1.04);
}

.pc-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.pc-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-title a {
  color: var(--ink);
  text-decoration: none;
}

.pc-title a:hover {
  color: var(--accent);
}

.pc-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.pc-author {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.pc-author:hover {
  color: var(--accent);
}

.pc-reactions-badge {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: var(--space-1);
  font-weight: 500;
}

/* ── Reaction Pills ─────────────────────────────────────── */
.card-reactions-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.card-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD REDESIGN OVERRIDES — Creator Studio
   Applies brand rules: no box-shadow, var(--r-card) cards,
   bottom-border tabs, 1.75rem/700 metric values.
══════════════════════════════════════════════════════════ */


.creator-card-avatar {
  box-shadow: none !important;
}
.creator-balance-num {
  font-weight: 700;
}

/* ── Quick action items: no box-shadow ── */
.dash-qa-item {
  box-shadow: none !important;
}
.dash-qa-item:hover {
  box-shadow: none !important;
}
.dash-qa-primary .dash-qa-icon {
  box-shadow: none !important;
}

/* ── Metrics grid: responsive 4-col / 2-col / 1-col ── */
.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: var(--space-6);
}
@media (min-width: 640px) {
  .dash-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .dash-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }
}
.dash-metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: none;
  transition: transform var(--dur) var(--ease-fast);
}
.dash-metric-card:hover {
  transform: translateY(-1px);
  box-shadow: none;
}
.dash-metric-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .dash-metric-val {
    font-size: 1.75rem;
  }
}

/* ── Post cards: var(--r-card) ── */
.dash-post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: none;
  transition: all var(--dur) var(--ease-fast);
}
.dash-post-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: none;
}

/* ── Status pill color classes ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--r-full);
}
.status-pill.status-approved,
.status-approved {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
}
.status-pill.status-pending,
.status-pending {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
}
.status-pill.status-rejected,
.status-rejected {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
}
.status-pill.status-suspended,
.status-suspended {
  background: color-mix(in srgb, #dc2626 15%, transparent);
  color: #ef4444;
  border: 1px solid color-mix(in srgb, #dc2626 30%, transparent);
}
.status-pill.status-draft,
.status-draft {
  background: var(--bg-sunken);
  color: var(--ink-3);
}

.status-pill.status-pending .pulsating-dot,
.pulsating-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulseStatusDot 1.4s ease-in-out infinite;
}

@keyframes pulseStatusDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.pending-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
  color: var(--amber);
  border-radius: var(--r-card);
  padding: 0.75rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ── Bio widget: no box-shadow ── */
.dash-bio-widget {
  box-shadow: none !important;
}
.dash-bio-widget:hover {
  box-shadow: none !important;
}
.dash-revenue-card,
.dash-monetag-card {
  box-shadow: none;
}

/* ── Dark mode for new classes ── */
[data-theme="dark"] .dash-metric-card {
  background: #141418;
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .dash-post-card {
  background: #141418;
  border-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .dash-post-card:hover {
  border-color: var(--accent);
}


/* ─────────────────────────────────────────────
   HOMEPAGE — 2-COLUMN MAIN GRID
───────────────────────────────────────────── */
.home-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (max-width: 900px) {
  .home-main-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── Latest Articles column ── */
.home-latest-col {
  min-width: 0;
}

.latest-articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Full-card article — image on top, content below */
.la-card {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-fast);
}

.la-card:hover {
  border-color: var(--ink-4);
}

.la-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-sunken);
}

.la-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.la-card:hover .la-card-image img {
  transform: scale(1.03);
}

.la-card-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.la-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.la-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.la-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease-fast);
}

.la-card-title a:hover {
  color: var(--accent);
}

.la-card-summary {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.la-card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.la-card-footer .author-chip {
  font-size: 0.82rem;
}

.la-card-footer-sep {
  color: var(--ink-4);
  font-size: 0.75rem;
}

.la-card-date,
.la-card-readtime {
  font-size: 0.8rem;
  color: var(--ink-4);
}

/* ── Right sidebar ── */
.home-sidebar-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: 80px;
}

@media (max-width: 900px) {
  .home-sidebar-col {
    position: static;
  }
}

.home-sidebar-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-5);
}

.home-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-4) 0;
}

/* Trending list — compact rows */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-subtle);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease-fast);
}

.tl-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tl-item:hover {
  opacity: 0.75;
}

.tl-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
}

.tl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.tl-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tl-date {
  font-size: 0.75rem;
  color: var(--ink-4);
}

/* Newsletter box */
.home-newsletter-box {
  background: var(--accent-light);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

[data-theme="dark"] .home-newsletter-box {
  background: rgba(219, 51, 48, 0.08);
  border-color: rgba(219, 51, 48, 0.22);
}

.home-newsletter-desc {
  font-size: 0.84rem;
  color: var(--ink-3);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.5;
}

.home-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-newsletter-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0 1rem;
  transition: border-color var(--dur) var(--ease-fast);
  box-sizing: border-box;
}

.home-newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.home-newsletter-form .newsletter-btn {
  width: 100%;
  justify-content: center;
}

/* ── Latest Articles: 2-col grid inside left column ── */
.la-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .la-grid {
    grid-template-columns: 1fr;
  }
}

/* Override home-main-grid ratio to match mockup proportions */
.home-main-grid {
  grid-template-columns: 1fr 280px;
}

@media (max-width: 1024px) {
  .home-main-grid {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 860px) {
  .home-main-grid {
    grid-template-columns: 1fr;
  }
  /* On mobile stack: sidebar goes below, la-grid becomes 1 col */
  .la-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .la-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   DASHBOARD REDESIGN — Creator Profile + Content Tips
   Uses semantic CSS variables (--surface, --line, --accent,
   --ink, --ink-3, --ink-4) which already flip under
   [data-theme="dark"], so no explicit dark overrides needed.
   No text-transform, letter-spacing, or box-shadow (per UI rules).
   Border-radius uses --r-card (rounded-3xl) to match card convention.
───────────────────────────────────────────── */
.creator-profile-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.75rem 1.15rem;
  background: radial-gradient(120% 120% at 0% 0%, rgba(219, 51, 48, 0.08) 0%, transparent 60%),
              radial-gradient(100% 100% at 100% 100%, rgba(239, 68, 68, 0.07) 0%, transparent 55%),
              var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-fast);
}

.creator-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #b91c1c 0%, #db3330 50%, #ef4444 100%);
  border-top-left-radius: var(--r-card);
  border-bottom-left-radius: var(--r-card);
}

.creator-profile-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 51, 48, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .creator-profile-card {
  background: radial-gradient(120% 120% at 0% 0%, rgba(219, 51, 48, 0.14) 0%, transparent 60%),
              radial-gradient(100% 100% at 100% 100%, rgba(239, 68, 68, 0.1) 0%, transparent 55%),
              var(--surface);
}

.cpc-avatar {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  object-fit: cover;
  padding: 2px;
  background: linear-gradient(135deg, #b91c1c 0%, #db3330 60%, #ef4444 100%);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-fast);
}

.cpc-avatar:hover {
  transform: scale(1.04);
}

.cpc-info {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cpc-user-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cpc-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.cpc-name .verified-badge {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.cpc-handle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-3);
}

.cpc-stats {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.cpc-stat {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  transition: all var(--dur) var(--ease-fast);
}

.cpc-stat:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}

.cpc-stat-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  background: linear-gradient(135deg, var(--ink) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cpc-stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-3);
}

.cpc-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.cpc-actions .btn-outline {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--ink);
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 9999px;
  transition: all var(--dur) var(--ease-fast);
}

.cpc-actions .btn-outline:hover {
  background: var(--bg-alt);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent);
}

.cpc-actions .btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--dur) var(--ease-fast);
}

.cpc-actions .btn-primary:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
}
.dash-tips-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--space-5); margin-bottom: var(--space-4); }
.dash-tips-title { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin: 0 0 var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.dash-tips-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.dash-tips-list li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; }
.dash-tip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }

/* ── Quick Actions — single unified card (no nested cards, no internal borders) ── */
.dash-quick-actions-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.1rem 0.85rem;
  margin-bottom: var(--space-5);
}

.dash-quick-actions-card .dash-qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 0.5rem;
  background: transparent !important;
  border: none !important;
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--ink-2);
  box-shadow: none !important;
  transform: none !important;
  transition: all var(--dur) var(--ease-fast);
}

.dash-quick-actions-card .dash-qa-item:hover {
  background: var(--bg-alt) !important;
  color: var(--ink);
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.dash-quick-actions-card .dash-qa-item .dash-qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease-fast);
}

.dash-quick-actions-card .dash-qa-item:hover .dash-qa-icon {
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-2px);
}

.dash-quick-actions-card .dash-qa-primary .dash-qa-icon {
  background: var(--accent);
  color: #ffffff;
}

.dash-quick-actions-card .dash-qa-primary:hover .dash-qa-icon {
  background: var(--accent);
  color: #ffffff;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.dash-quick-actions-card .dash-qa-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

[data-theme="dark"] .dash-quick-actions-card {
  background: var(--surface);
  border-color: var(--line);
}

[data-theme="dark"] .dash-quick-actions-card .dash-qa-item {
  background: transparent !important;
  border: none !important;
}

[data-theme="dark"] .dash-quick-actions-card .dash-qa-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border: none !important;
}

[data-theme="dark"] .dash-quick-actions-card .dash-qa-item .dash-qa-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-3);
}

[data-theme="dark"] .dash-quick-actions-card .dash-qa-item:hover .dash-qa-icon {
  background: rgba(219, 51, 48, 0.2);
  color: var(--accent-2);
}

[data-theme="dark"] .dash-quick-actions-card .dash-qa-primary .dash-qa-icon {
  background: var(--accent);
  color: #ffffff;
}

@media (max-width: 640px) {
  .dash-quick-actions-card {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0.7rem 0.35rem;
    margin-bottom: var(--space-4);
  }

  .dash-quick-actions-card .dash-qa-item {
    padding: 0.45rem 0.15rem;
    gap: 0.35rem;
    border-radius: var(--r-md);
  }

  .dash-quick-actions-card .dash-qa-item .dash-qa-icon {
    width: 36px;
    height: 36px;
  }

  .dash-quick-actions-card .dash-qa-item .dash-qa-icon svg {
    width: 17px;
    height: 17px;
  }

  .dash-quick-actions-card .dash-qa-label {
    font-size: 0.7rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .dash-quick-actions-card {
    padding: 0.55rem 0.2rem;
    gap: 2px;
  }

  .dash-quick-actions-card .dash-qa-item {
    padding: 0.35rem 0.1rem;
    gap: 0.25rem;
  }

  .dash-quick-actions-card .dash-qa-item .dash-qa-icon {
    width: 32px;
    height: 32px;
  }

  .dash-quick-actions-card .dash-qa-item .dash-qa-icon svg {
    width: 15px;
    height: 15px;
  }

  .dash-quick-actions-card .dash-qa-label {
    font-size: 0.62rem;
  }
}

/* ── Reactions bar — closer to post body ── */
.thread-reactions-bar {
  margin-top: var(--space-5) !important;
  margin-bottom: var(--space-5) !important;
}

.trb-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Share dropdown menu ── */
.share-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-width: 180px;
  z-index: 100;
  overflow: hidden;
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--dur) var(--ease-fast);
}

.share-menu-item:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.share-menu-item:not(:last-child) {
  border-bottom: 1px solid var(--line-subtle);
}

/* ── Article reading page improvements ── */
.article-container {
  padding-top: var(--space-8);
  padding-bottom: var(--space-16);
}

.article-headline {
  font-weight: 600;
  line-height: 1.25;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.article-body > * + * {
  margin-top: 1.5em;
}

.article-body p {
  margin: 0;
}

.article-hero-image {
  border-radius: var(--r-card);
  margin-bottom: var(--space-8);
}

.article-author-row {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  margin-bottom: var(--space-6);
}

@media (max-width: 640px) {
  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }
  .article-headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* ── Article body — tighter spacing ── */
.article-container {
  padding: var(--space-6) 0 var(--space-10);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.article-body > * + * {
  margin-top: 1.25em;
}

.article-header {
  margin-bottom: var(--space-5);
}

.article-subhead {
  font-size: 1.05rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

/* ── Author + More Posts ── */
.author-more-section {
  margin-top: var(--space-8);
  border-top: 1px solid var(--line-subtle);
  padding-top: var(--space-6);
}

.author-more-strip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.author-more-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.author-more-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-more-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.author-more-bio {
  font-size: 0.82rem;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-more-posts {
  margin-top: var(--space-2);
}

.author-more-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0 0 var(--space-3) 0;
}

/* Auto-scroll carousel */
.author-posts-carousel {
  display: flex;
  gap: var(--space-4);
  overflow: hidden;
  cursor: grab;
}

.author-posts-carousel:active { cursor: grabbing; }

.apc-card {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-fast);
}

.apc-card:hover { border-color: var(--accent); }

.apc-image {
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: var(--bg-sunken);
}

.apc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.apc-card:hover .apc-image img { transform: scale(1.04); }

.apc-image-placeholder {
  background: var(--bg-sunken);
}

.apc-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.apc-cat { font-size: 0.7rem; }

.apc-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.apc-date {
  font-size: 0.72rem;
  color: var(--ink-4);
}

/* ── Post page two-column layout ── */
.post-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-10);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 900px) {
  .post-page-layout {
    grid-template-columns: 1fr;
    padding: 0 var(--space-4);
  }
  .post-sidebar-col {
    display: none;
  }
}

/* Left: article content */
.post-main-col {
  min-width: 0;
  max-width: 100%;
  padding: 0 !important;
}

/* Right: sticky sidebar */
.post-sidebar-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
}

/* Author card in sidebar */
.post-sidebar-author {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.psa-avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.psa-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.psa-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.psa-name:hover { color: var(--accent); }

.psa-handle {
  font-size: 0.78rem;
  color: var(--ink-4);
}

.psa-bio {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.45;
  margin: var(--space-1) 0 0;
}

.psa-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

/* More posts list in sidebar */
.post-sidebar-more {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--space-5);
}

.post-sidebar-more-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0 0 var(--space-3);
}

.psm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.psm-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-subtle);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease-fast);
}

.psm-item:last-child { border-bottom: none; padding-bottom: 0; }
.psm-item:hover { opacity: 0.72; }

.psm-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-sunken);
}

.psm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psm-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.psm-cat { font-size: 0.65rem; }

.psm-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psm-date {
  font-size: 0.7rem;
  color: var(--ink-4);
}

/* ── Verified Badge ── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  vertical-align: middle;
  flex-shrink: 0;
  margin-left: 2px;
}

.verified-badge svg {
  display: block;
}

/* ── Navigation Categories Dropdown (Hover on Desktop & Click Fallback) ── */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: var(--r-md, 0.5rem);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.nav-dropdown-btn:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-btn,
.nav-dropdown-wrapper.open .nav-dropdown-btn {
  color: var(--ink);
  background: var(--bg-secondary);
}

.nav-dropdown-btn .dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown-wrapper:hover .dropdown-chevron,
.nav-dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

/* Hover on desktop */
@media (hover: hover) and (min-width: 900px) {
  .nav-dropdown-wrapper:hover .nav-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Click/Touch fallback */
.nav-dropdown-wrapper.open .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.nav-dropdown-item .nav-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  color: var(--primary);
}

/* Mobile Drawer Accordion for Categories */
.mobile-drawer-accordion-btn .accordion-chevron {
  transition: transform 0.2s ease;
}

.mobile-drawer-accordion.open .accordion-chevron {
  transform: rotate(180deg);
}

.mobile-drawer-accordion.open .mobile-drawer-accordion-content {
  display: block !important;
}

.mobile-drawer-sublink:hover {
  background: var(--bg-secondary);
  color: var(--primary) !important;
}

