:root {
  --bg-primary: hsl(224, 71%, 4%);
  --bg-secondary: hsl(222, 47%, 8%);
  --bg-card: hsla(222, 40%, 12%, 0.7);
  --bg-card-hover: hsla(222, 40%, 16%, 0.85);
  --border-subtle: hsla(220, 20%, 60%, 0.12);
  --border-focus: hsla(243, 75%, 65%, 0.5);

  --text-main: hsl(210, 40%, 96%);
  --text-muted: hsl(215, 20%, 65%);
  --text-dim: hsl(215, 15%, 45%);

  --accent-primary: hsl(243, 75%, 59%);
  --accent-primary-hover: hsl(243, 75%, 65%);
  --accent-cyan: hsl(187, 92%, 48%);
  --accent-amber: hsl(38, 92%, 50%);
  --accent-emerald: hsl(158, 64%, 52%);
  --accent-rose: hsl(350, 89%, 60%);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px -5px hsla(243, 75%, 59%, 0.35);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Smooth Ambient Gradient Background (Feathered with vertical mask to eliminate horizontal seams) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse 75% 55% at 20% 0%, hsla(243, 75%, 59%, 0.15) 0%, hsla(243, 75%, 59%, 0.04) 50%, hsla(243, 75%, 59%, 0) 100%),
    radial-gradient(ellipse 65% 50% at 88% 25%, hsla(187, 92%, 48%, 0.07) 0%, hsla(187, 92%, 48%, 0.02) 50%, hsla(187, 92%, 48%, 0) 100%),
    radial-gradient(ellipse 75% 55% at 50% 90%, hsla(270, 91%, 65%, 0.07) 0%, hsla(270, 91%, 65%, 0.02) 50%, hsla(270, 91%, 65%, 0) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px hsla(243, 75%, 59%, 0.35);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .subtext {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
}

/* Header Stats */
.header-stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: hsla(222, 47%, 6%, 0.6);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1366px) {
  .header-stats {
    gap: 0.65rem;
    padding: 0.2rem 0.65rem;
  }
  .header-stats .stat-val {
    font-size: 1rem;
  }
  .header-stats .stat-lbl {
    font-size: 0.62rem;
  }
}

@media (max-width: 1240px) {
  .header-stats {
    display: none;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

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

.stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px hsla(243, 75%, 59%, 0.3);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: hsla(220, 20%, 30%, 0.25);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: hsla(220, 20%, 40%, 0.35);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Controls Panel: Smart Omnibar + Quick Venues Ribbon + Collapsible Drawer */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Omnibar (Line 1) */
.omnibar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  gap: 0.75rem;
  transition: var(--transition);
}

.omnibar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px hsla(243, 75%, 59%, 0.2), var(--shadow-card);
}

.omnibar-search {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  gap: 0.75rem;
}

.omnibar-search .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.omnibar-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  padding: 0.45rem 0;
}

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

.btn-clear {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
}

.hidden {
  display: none !important;
}

.btn-clear.hidden {
  display: none !important;
}

.omnibar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.omnibar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

.omnibar-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  background: hsla(222, 47%, 7%, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition);
}

.omnibar-sort-wrap:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.omnibar-sort-wrap .sort-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.omnibar-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.omnibar-select option {
  background: hsl(222, 47%, 8%);
  color: var(--text-main);
}

.btn-matrix-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsla(243, 75%, 59%, 0.12);
  border: 1px solid hsla(199, 89%, 48%, 0.35);
  border-radius: var(--radius-sm);
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-matrix-open:hover {
  background: linear-gradient(135deg, hsla(243, 75%, 59%, 0.28), hsla(199, 89%, 48%, 0.28));
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px hsla(199, 89%, 48%, 0.25);
}

.btn-matrix-open svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsla(220, 20%, 30%, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.btn-filter-toggle:hover {
  background: hsla(243, 75%, 59%, 0.15);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn-filter-toggle.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 12px hsla(243, 75%, 59%, 0.4);
}

.btn-filter-toggle.has-active:not(.active) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.filter-count-badge {
  background: var(--accent-cyan);
  color: #05070f;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  line-height: 1;
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.btn-filter-toggle.active .chevron-icon {
  transform: rotate(180deg);
}

/* Ribbon Bar (Line 2) */
.ribbon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 40;
}

.ribbon-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.ribbon-meta .results-count {
  margin-left: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Venue Pills in Ribbon */
.venue-pills-wrapper {
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  min-width: 0;
}

.venue-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: max-content;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pill:hover {
  color: var(--text-main);
  background: hsla(220, 20%, 30%, 0.3);
  border-color: hsla(220, 20%, 50%, 0.3);
}

.pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px hsla(243, 75%, 59%, 0.3);
}

/* More Venues Dropdown */
.venue-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.pill-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.venue-menu {
  position: fixed;
  min-width: 220px;
  background: hsla(222, 47%, 9%, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 0.4rem;
  z-index: 99999;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 280px;
  overflow-y: auto;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.venue-dropdown.open .venue-menu {
  display: flex;
}

.venue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}

.venue-item:hover {
  background: hsla(243, 75%, 59%, 0.2);
  color: #fff;
}

/* Collapsible Filters Drawer */
.filters-drawer {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-card);
  animation: drawerSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Topic Pills in Drawer */
.topic-pills-wrapper {
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.topic-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: max-content;
}

.pill-topic.active {
  background: hsla(187, 92%, 48%, 0.2);
  color: hsl(187, 100%, 75%);
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 10px hsla(187, 92%, 48%, 0.25);
}

.drawer-controls-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.drawer-filter-group label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.select-input {
  background: hsla(222, 47%, 7%, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  height: 35px;
}

.select-input:focus {
  border-color: var(--accent-primary);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  margin-left: auto;
  cursor: pointer;
}

/* Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* Paper Card */
.paper-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.paper-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.badge-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-venue {
  background: hsla(243, 75%, 59%, 0.18);
  color: hsl(243, 90%, 75%);
  border: 1px solid hsla(243, 75%, 59%, 0.35);
}

.badge-year {
  background: hsla(215, 20%, 30%, 0.25);
  color: var(--text-muted);
}

.badge-status-must_read {
  background: hsla(38, 92%, 50%, 0.2);
  color: hsl(38, 100%, 70%);
  border: 1px solid hsla(38, 92%, 50%, 0.4);
}

.badge-status-reading {
  background: hsla(187, 92%, 48%, 0.2);
  color: hsl(187, 100%, 70%);
}

.badge-status-reviewed {
  background: hsla(158, 64%, 52%, 0.2);
  color: hsl(158, 90%, 70%);
}

.badge-status-unread {
  background: hsla(215, 20%, 25%, 0.25);
  color: var(--text-dim);
}

.paper-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.paper-authors {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.paper-abstract-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-meta {
  display: flex;
  gap: 1rem;
}

.card-action-hint {
  color: var(--accent-cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==============================================================================
   BLACK ANIMATED GLASS SHIMMER SKELETON CARDS
   ============================================================================== */
.paper-card-skeleton {
  background: rgba(13, 19, 33, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 255px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  user-select: none;
}

.paper-card-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(56, 189, 248, 0.07) 65%,
    rgba(255, 255, 255, 0.02) 80%,
    transparent 100%
  );
  animation: glassCardShimmer 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.paper-card-skeleton:nth-child(2)::after { animation-delay: 0.1s; }
.paper-card-skeleton:nth-child(3)::after { animation-delay: 0.2s; }
.paper-card-skeleton:nth-child(4)::after { animation-delay: 0.3s; }
.paper-card-skeleton:nth-child(5)::after { animation-delay: 0.15s; }
.paper-card-skeleton:nth-child(6)::after { animation-delay: 0.25s; }
.paper-card-skeleton:nth-child(7)::after { animation-delay: 0.35s; }
.paper-card-skeleton:nth-child(8)::after { animation-delay: 0.45s; }
.paper-card-skeleton:nth-child(9)::after { animation-delay: 0.2s; }
.paper-card-skeleton:nth-child(10)::after { animation-delay: 0.3s; }
.paper-card-skeleton:nth-child(11)::after { animation-delay: 0.4s; }
.paper-card-skeleton:nth-child(12)::after { animation-delay: 0.5s; }

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

.skeleton-bone {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.skeleton-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.skeleton-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skeleton-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-venue {
  width: 58px;
  height: 20px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.skeleton-year {
  width: 42px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.skeleton-status {
  width: 78px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-title-l1 {
  height: 18px;
  width: 90%;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
}

.skeleton-title-l2 {
  height: 18px;
  width: 65%;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
}

.skeleton-author {
  height: 13px;
  width: 48%;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.skeleton-snippet-l1 {
  height: 11px;
  width: 100%;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 3px;
}

.skeleton-snippet-l2 {
  height: 11px;
  width: 94%;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 3px;
}

.skeleton-snippet-l3 {
  height: 11px;
  width: 72%;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 3px;
}

.skeleton-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-meta-left {
  height: 13px;
  width: 95px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.skeleton-meta-right {
  height: 13px;
  width: 80px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: hsl(222, 45%, 10%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-sm {
  max-width: 580px;
}

.modal-lg {
  max-width: 1060px;
}

/* Mind Map Explorer */
.mindmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1rem;
}

.mindmap-branch {
  background: hsla(222, 47%, 7%, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.mindmap-branch:hover {
  border-color: var(--accent-primary);
  background: hsla(222, 47%, 10%, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

.mindmap-branch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.mindmap-branch-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mindmap-branch-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: hsla(187, 92%, 48%, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid hsla(187, 92%, 48%, 0.25);
}

.mindmap-node-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.mindmap-node-item {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.mindmap-node-bullet {
  color: var(--accent-cyan);
  font-weight: 700;
}

.mindmap-explore-btn {
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: hsla(243, 75%, 59%, 0.12);
  border: 1px solid hsla(243, 75%, 59%, 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent-primary-hover);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.mindmap-explore-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

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

/* Modal Header Top Bar & Controls */
.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.modal-nav-group {
  display: inline-flex;
  align-items: center;
  background: hsla(220, 25%, 15%, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  gap: 2px;
}

.modal-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-nav-btn:hover:not(:disabled) {
  background: hsla(220, 20%, 30%, 0.7);
  color: #fff;
}

.modal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.modal-nav-pos {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.45rem;
  user-select: none;
  white-space: nowrap;
}

.modal-close {
  background: hsla(220, 20%, 30%, 0.35);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: hsla(0, 70%, 50%, 0.25);
  border-color: hsla(0, 70%, 50%, 0.5);
  color: #ff6b6b;
}

.modal-header {
  padding: 1.5rem 1.75rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.55rem 0 0.45rem;
  color: #fff;
}

.modal-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Publication Notice Banner */
.modal-pub-notice {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: hsla(215, 25%, 14%, 0.85);
  border: 1px solid hsla(215, 25%, 28%, 0.6);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: hsl(210, 25%, 82%);
}

.modal-pub-notice.hidden {
  display: none;
}

.pub-notice-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  background: hsla(187, 92%, 48%, 0.15);
  color: var(--accent-cyan);
  border: 1px solid hsla(187, 92%, 48%, 0.3);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.pub-notice-text {
  flex: 1;
  word-break: break-word;
}

.modal-tabs {
  display: flex;
  gap: 1.5rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: hsla(222, 45%, 8%, 0.5);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px 2px 0 0;
}

.modal-body-container {
  position: relative;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: hsla(220, 20%, 35%, 0.7) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: hsla(220, 20%, 35%, 0.7);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.modal-scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(to bottom, transparent, hsla(222, 45%, 10%, 0.95));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-scroll-indicator.scrolled-bottom {
  opacity: 0;
}

/* Topic Pills */
.modal-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.topic-tag-pill {
  display: inline-flex;
  align-items: center;
  background: hsla(243, 75%, 59%, 0.12);
  border: 1px solid hsla(243, 75%, 59%, 0.28);
  color: hsl(243, 90%, 82%);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.topic-tag-pill:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.abstract-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: hsl(210, 30%, 88%);
}

.paper-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.repo-path-box {
  display: block;
  background: hsl(222, 47%, 6%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--accent-cyan);
  user-select: all;
}

/* BibTeX formatting */
.bibtex-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.bibtex-code {
  background: hsl(222, 47%, 6%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: hsl(158, 64%, 65%);
  overflow-x: auto;
  line-height: 1.6;
}

/* Notes Tab */
.notes-banner {
  background: hsla(243, 75%, 59%, 0.12);
  border: 1px solid hsla(243, 75%, 59%, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: hsl(243, 90%, 80%);
}

.notes-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.note-box {
  background: hsla(222, 47%, 7%, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.note-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.note-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal Footer */
.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: hsla(222, 45%, 8%, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-selector {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mindmap-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: hsla(222, 45%, 8%, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mindmap-footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diagram-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}

.diagram-link:hover {
  text-decoration: underline;
}

/* Ingestion helper command boxes */
.command-card {
  margin-bottom: 1rem;
}
.cmd-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.command-card code {
  display: block;
  background: hsl(222, 47%, 6%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Empty / Loading State */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid hsla(220, 20%, 40%, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Pagination Navigation Bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.1rem 1.6rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.pagination-bar.hidden {
  display: none;
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pagination-info strong {
  color: var(--text-main);
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: hsla(222, 47%, 9%, 0.7);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: hsla(243, 75%, 59%, 0.15);
  border-color: var(--accent-primary);
  color: var(--text-main);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 38px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination-jump-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-jump-input {
  width: 60px;
  height: 36px;
  padding: 0 0.5rem;
  background: hsl(222, 47%, 6%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.pagination-jump-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px hsla(243, 75%, 59%, 0.2);
}

.pagination-jump-btn {
  height: 36px;
  padding: 0 0.85rem;
  background: hsla(220, 20%, 60%, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-jump-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}


/* -----------------------------------------------------------------------------
   Dropdown Component (Copy Prompt)
   ----------------------------------------------------------------------------- */
.dropdown {
  position: relative;
  z-index: 60;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.dropdown-caret {
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 310px;
  background: hsla(222, 47%, 9%, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 0.45rem;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown.open .dropdown-menu {
  display: flex;
}

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

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: calc(var(--radius-md) - 3px);
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  width: 100%;
}

.dropdown-item:hover {
  background: hsla(220, 20%, 30%, 0.45);
  color: #fff;
  transform: translateX(2px);
}

.dropdown-item-icon {
  margin-top: 2px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.dropdown-item-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* -----------------------------------------------------------------------------
   Paper Card Selection & Checkboxes
   ----------------------------------------------------------------------------- */
.paper-select-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  cursor: pointer;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0;
  flex-shrink: 0;
}

.paper-select-input:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 10px hsla(199, 89%, 60%, 0.4);
}

.paper-select-input:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.paper-select-input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4.5px;
  height: 8.5px;
  border: solid #05070f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.paper-select-input:indeterminate {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-cyan);
}

.paper-select-input:indeterminate::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 10px;
  height: 2px;
  background: #38bdf8;
  border-radius: 1px;
}

.paper-card.selected {
  border-color: rgba(99, 102, 241, 0.65) !important;
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.4), rgba(15, 23, 42, 0.85)) !important;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.22), inset 0 0 0 1px rgba(99, 102, 241, 0.5) !important;
}

/* Vibrant Badge Count Pill for Toolbar Buttons */
.badge-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.42rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  box-shadow: 0 0 8px hsla(243, 75%, 59%, 0.5);
  line-height: 1.2;
}

/* Venue Pill Count Badge */
.pill-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsla(220, 20%, 30%, 0.45);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.08rem 0.38rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.pill.active .pill-badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
}

.venue-item .pill-badge-count {
  margin-left: auto;
  background: hsla(220, 20%, 30%, 0.45);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0.06rem 0.4rem;
}

.venue-item.active .pill-badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Selection Toolbar */
.selection-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: hsla(199, 89%, 60%, 0.12);
  border: 1px solid hsla(199, 89%, 60%, 0.35);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

.btn-link-action {
  background: transparent;
  border: none;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.76rem;
  padding: 0;
  font-family: var(--font-body);
  transition: color 0.15s ease;
}

.btn-link-action:hover {
  color: var(--accent-cyan);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: hsla(222, 47%, 10%, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px hsla(199, 89%, 60%, 0.25);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* -----------------------------------------------------------------------------
   Responsive Design System (Tablets & Mobile Devices)
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Layout */
  .app-layout {
    padding: 0.85rem 0.85rem 3rem;
  }

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
  }

  .brand {
    justify-content: flex-start;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
  }

  .brand-text h1 {
    font-size: 1.2rem;
  }

  .brand-text .subtext {
    font-size: 0.72rem;
  }

  /* Header Stats - Symmetrical 3 Columns */
  .header-stats {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 0.55rem 0.85rem;
    gap: 0.5rem;
    width: 100%;
  }

  .stat-item {
    text-align: center;
  }

  .stat-val {
    font-size: 1.05rem;
  }

  .stat-lbl {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  /* Header Actions on Mobile */
  .header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  /* Catalog Member Actions on Mobile */
  .navbar-catalog-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
  }

  /* Public Landing Nav Links on Mobile */
  .navbar-public-nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.1rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .navbar-public-nav::-webkit-scrollbar {
    display: none;
  }

  .navbar-public-nav .nav-link {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.32rem 0.65rem;
    border-radius: var(--radius-full);
    background: hsla(220, 20%, 15%, 0.6);
    border: 1px solid hsla(220, 20%, 30%, 0.4);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .navbar-public-nav .nav-link::after {
    display: none;
  }

  .navbar-public-nav .nav-link:hover,
  .navbar-public-nav .nav-link:active {
    background: hsla(243, 75%, 59%, 0.25);
    border-color: var(--accent-primary);
    color: #ffffff;
  }

  .navbar-auth-section {
    width: 100%;
    display: flex;
    justify-content: stretch;
    gap: 0.5rem;
  }

  .navbar-auth-section .btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Dropdown on Mobile: Spans header width directly underneath buttons */
  .dropdown {
    position: static;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .dropdown-menu {
    left: 0.85rem;
    right: 0.85rem;
    width: auto;
    min-width: unset;
    top: calc(100% + 6px);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px hsla(0, 0%, 100%, 0.08);
  }

  .dropdown-item {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .dropdown-item-title {
    font-size: 0.85rem;
  }

  .dropdown-item-desc {
    font-size: 0.72rem;
  }

  /* Search & Filter Controls */
  .controls-panel {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .search-box input {
    padding: 0.8rem 2.5rem 0.8rem 2.6rem;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
  }

  .search-icon {
    left: 0.9rem;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
  }

  /* Smooth Native-feel Horizontal Scrolling for Pills */
  .venue-pills-wrapper,
  .topic-pills-wrapper {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .venue-pills-wrapper::-webkit-scrollbar,
  .topic-pills-wrapper::-webkit-scrollbar {
    display: none;
  }

  .pill {
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
}

  .pills-label {
    display: none;
  }

  /* Controls Panel on Mobile */
  .controls-panel {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .omnibar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem 0.75rem;
    gap: 0.55rem;
  }

  .omnibar-search {
    width: 100%;
  }

  .omnibar-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .omnibar-actions::-webkit-scrollbar {
    display: none;
  }

  .omnibar-sort-wrap {
    flex: 1;
    min-width: 110px;
  }

  .btn-matrix-open {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .btn-filter-toggle {
    flex-shrink: 0;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .ribbon-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .ribbon-meta {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .ribbon-meta .results-count {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .filters-drawer {
    padding: 0.85rem;
  }

  .drawer-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .btn-reset-filters {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  /* Papers Grid */
  .papers-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .paper-card {
    padding: 1.15rem;
    border-radius: var(--radius-md);
  }

  .card-top {
    margin-bottom: 0.65rem;
  }

  .paper-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
  }

  .paper-authors {
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
  }

  .paper-abstract-snippet {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    -webkit-line-clamp: 2;
  }

  .card-footer {
    padding-top: 0.75rem;
    font-size: 0.75rem;
  }

  /* Paper Details Modal */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: center;
  }

  .modal-card {
    max-height: 94vh;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .modal-close {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

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

  .modal-top-bar {
    gap: 0.5rem;
    margin-bottom: 0.45rem;
  }

  .modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .modal-title {
    font-size: 1.12rem;
    line-height: 1.3;
    margin: 0.45rem 0 0.35rem;
  }

  .modal-authors {
    font-size: 0.8rem;
  }

  .modal-tabs {
    padding: 0 1rem;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .tab-btn {
    padding: 0.75rem 0;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .modal-body {
    padding: 1rem;
    max-height: calc(94vh - 210px);
    overflow-y: auto;
  }

  .abstract-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .notes-preview {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .note-box {
    padding: 0.75rem;
  }

  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .status-selector {
    width: 100%;
    justify-content: space-between;
  }

  .status-selector .select-input {
    width: auto;
    min-width: 140px;
  }

  .footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .footer-actions #modalOpenPdfBtn {
    grid-column: 1 / -1;
  }

  .footer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Mind Map Modal */
  .mindmap-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.25rem 0;
  }

  .mindmap-branch {
    padding: 1rem;
  }

  .mindmap-modal-footer {
    flex-direction: column-reverse;
    gap: 0.65rem;
    align-items: stretch;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .mindmap-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pagination Bar */
  .pagination-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .pagination-info {
    font-size: 0.78rem;
  }

  .pagination-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
  }

  #pgFirst, #pgLast {
    display: none;
  }

  .pagination-btn {
    min-width: 32px;
    height: 34px;
    padding: 0 0.35rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }

  .pagination-ellipsis {
    min-width: 20px;
    height: 34px;
    font-size: 0.8rem;
  }

  .pagination-jump-wrap {
    font-size: 0.8rem;
  }

  .pagination-jump-input {
    width: 48px;
    height: 32px;
    font-size: 0.8rem;
  }

  .pagination-jump-btn {
    height: 32px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  /* Toast Notification */
  .toast-notice {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
  }
}

/* Extra small mobile devices (<= 420px) */
@media (max-width: 420px) {
  .header-actions .btn {
    font-size: 0.72rem;
    padding: 0.55rem 0.2rem;
  }

  .header-stats {
    padding: 0.45rem 0.5rem;
  }

  .stat-val {
    font-size: 0.95rem;
  }

  .stat-lbl {
    font-size: 0.6rem;
  }
}

/* =============================================================================
   RESEARCH CLUB AUTH GATE, PREVIEW SITE & 4-BLOCK ACCESS FORMS
   ============================================================================= */

/* Protected Content DRM Rules */
.protected-content,
.paper-card,
.modal-body,
.modal-abstract,
.teaser-card {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Navbar Header Actions & Catalog Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-catalog-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.navbar-catalog-actions.hidden {
  display: none !important;
}

/* Navbar Icon Buttons & Hover Tooltips */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: hsla(220, 20%, 30%, 0.25);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: hsla(220, 20%, 40%, 0.4);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.nav-icon-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Tooltip on Hover */
.nav-icon-btn[data-tooltip] {
  position: relative;
}

.nav-icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: hsla(222, 47%, 9%, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.nav-icon-btn[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* If dropdown is open, suppress the tooltip so it doesn't overlap the menu */
.dropdown.open .nav-icon-btn[data-tooltip]::after {
  display: none !important;
}

/* Three-dot selection badge */
.nav-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-cyan);
  color: hsl(222, 47%, 6%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  border: 1.5px solid hsl(222, 47%, 7%);
  animation: pulseBadge 2s infinite;
}

.dropdown-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.4rem 0.85rem 0.25rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.25rem 0;
}

.dropdown-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

/* Navbar Auth Section */
.navbar-auth-section {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(222, 47%, 11%, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 125px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status-tag {
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { color: #34d399; }
.badge-warning { color: #f59e0b; }
.badge-danger { color: #f87171; }

.btn-admin-link {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-link:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.65);
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Persistent Quick Select Page Affordance */
.quick-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
}

.quick-select-label:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

/* Interactive Card Status Badge */
.badge-status-interactive {
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  line-height: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-status-interactive:hover {
  transform: translateY(-1px);
  filter: brightness(1.25);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Direct arXiv link badge */
.arxiv-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.76rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
}

.arxiv-link-badge:hover {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
}

/* 1-Click Card .bib copy button */
.btn-card-bib {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-mono, monospace);
}

.btn-card-bib:hover {
  color: #fff;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.18);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.btn-card-bib.copied {
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  background: rgba(52, 211, 153, 0.15) !important;
}

.btn-icon-subtle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-icon-subtle:hover {
  color: #f87171;
  background: hsla(0, 84%, 60%, 0.1);
}

/* -----------------------------------------------------------------------------
   Public Navbar Navigation Links & Subtle Ghost Buttons
   ----------------------------------------------------------------------------- */
.navbar-public-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-public-nav .nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 0.35rem 0.2rem;
}

.navbar-public-nav .nav-link:hover {
  color: var(--text-main);
}

.navbar-public-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.navbar-public-nav .nav-link:hover::after {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-ghost:hover {
  color: #ffffff;
  background: hsla(222, 47%, 18%, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

/* -----------------------------------------------------------------------------
   Public Preview Site Styling
   ----------------------------------------------------------------------------- */
.preview-hero {
  text-align: center;
  max-width: 960px;
  margin: 3.5rem auto 3rem;
  padding: 0 1.5rem;
}

.preview-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: hsla(243, 75%, 59%, 0.1);
  border: 1px solid hsla(243, 75%, 59%, 0.3);
  color: #a5b4fc;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.preview-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.8rem + 2.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  text-wrap: balance;
}

.hero-title-gradient {
  white-space: nowrap;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preview-lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.lead-highlight {
  color: #ffffff;
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Hero Search Box & Exploration Pills
   ----------------------------------------------------------------------------- */
.preview-search-wrap {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.preview-search-bar {
  background: hsla(222, 47%, 9%, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 0.45rem 0.65rem;
  box-shadow: 
    0 14px 35px -10px rgba(0, 0, 0, 0.7), 
    0 0 25px -4px hsla(243, 75%, 59%, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.preview-search-bar:focus-within {
  border-color: #818cf8;
  box-shadow: 
    0 16px 40px -8px rgba(99, 102, 241, 0.35), 
    0 0 0 1px #818cf8,
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.search-input-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.search-input-inner .search-icon {
  color: #818cf8;
  flex-shrink: 0;
}

.search-input-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.search-input-inner input::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

.search-shortcut-badge {
  background: hsla(222, 47%, 16%, 0.85);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.search-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.search-action-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
}

.preview-quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.quick-filter-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.quick-filter-pill {
  background: hsla(222, 47%, 12%, 0.7);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-filter-pill:hover {
  color: #ffffff;
  background: hsla(243, 75%, 59%, 0.2);
  border-color: #818cf8;
  transform: translateY(-1px);
}

/* -----------------------------------------------------------------------------
   Conference Logo & Credibility Strip
   ----------------------------------------------------------------------------- */
.preview-venue-strip {
  margin: 2rem auto 0;
  max-width: 900px;
}

.venue-strip-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.95rem;
}

.venue-strip-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.venue-strip-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: hsla(222, 47%, 10%, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  transition: all 0.2s ease;
}

.venue-strip-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: hsla(222, 47%, 14%, 0.9);
  transform: translateY(-1px);
}

.venue-acronym {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.venue-full {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Standardized 4-Stat Metric Row with Visual Anchor Icons
   ----------------------------------------------------------------------------- */
.preview-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.preview-stat-card {
  background: hsla(222, 47%, 9%, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.25rem 1.5rem;
  backdrop-filter: blur(14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.preview-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.preview-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

.stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.icon-cyan {
  background: hsla(199, 89%, 48%, 0.15);
  color: #38bdf8;
  border: 1px solid hsla(199, 89%, 48%, 0.3);
}

.icon-purple {
  background: hsla(270, 91%, 65%, 0.15);
  color: #c084fc;
  border: 1px solid hsla(270, 91%, 65%, 0.3);
}

.icon-indigo {
  background: hsla(243, 75%, 59%, 0.15);
  color: #818cf8;
  border: 1px solid hsla(243, 75%, 59%, 0.3);
}

.icon-amber {
  background: hsla(43, 96%, 56%, 0.15);
  color: #fbbf24;
  border: 1px solid hsla(43, 96%, 56%, 0.3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-caption {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   Platform Capabilities Showcase (Visual Proof: Mind Map & AI Synthesis)
   ----------------------------------------------------------------------------- */
.preview-features-showcase {
  max-width: 1200px;
  margin: 4.5rem auto 4rem;
  padding: 0 1.5rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.showcase-card {
  background: hsla(222, 47%, 8%, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.showcase-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}

.showcase-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.showcase-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.showcase-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.showcase-card-header p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.showcase-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: hsla(243, 75%, 59%, 0.15);
  border: 1px solid hsla(243, 75%, 59%, 0.35);
  color: #a5b4fc;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.showcase-mindmap-visual {
  background-color: hsla(222, 47%, 5%, 0.95);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

.mindmap-svg {
  width: 100%;
  max-height: 220px;
}

.showcase-terminal-body {
  background: hsla(222, 47%, 5%, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
  justify-content: center;
}

.terminal-dim {
  color: #64748b;
  font-size: 0.72rem;
}

.terminal-accent {
  color: #38bdf8;
  font-weight: 700;
}

.terminal-box {
  background: hsla(222, 47%, 8%, 0.8);
  border-left: 2px solid #a855f7;
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.76rem;
}

.terminal-code-item {
  color: #cbd5e1;
}

.text-success {
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 600;
}

.teaser-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: hsla(222, 47%, 9%, 0.6);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.teaser-empty-state h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.teaser-empty-state p {
  color: #94a3b8;
  font-size: 0.85rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}


/* Preview Charts Section */
.preview-charts-section {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.preview-section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.charts-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #60a5fa;
}

.chart-title-wrap h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.chart-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: hsla(220, 20%, 60%, 0.12);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Horizontal Bar Chart (Topics vs Papers) */
.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bar-chart-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.bar-topic-name {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.bar-count-val {
  color: #a5b4fc;
  font-size: 0.78rem;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: hsla(220, 20%, 50%, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Vertical Column Chart (Year vs Papers) */
.col-chart-container {
  height: 240px;
  display: flex;
  align-items: flex-end;
  padding-top: 2rem;
}

.col-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 0.5rem;
}

.col-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.col-bar-track {
  width: 100%;
  height: calc(100% - 24px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.col-bar-fill {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, #ec4899 0%, #6366f1 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.col-tooltip {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: #cbd5e1;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.col-bar-wrap:hover .col-tooltip {
  opacity: 1;
}

.col-bar-year {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

.col-bar-in-progress .col-bar-fill {
  background: repeating-linear-gradient(
    45deg,
    #8b5cf6,
    #8b5cf6 6px,
    #ec4899 6px,
    #ec4899 12px
  );
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
  border: 1.5px dashed rgba(255, 255, 255, 0.65);
  border-bottom: none;
}

.col-bar-in-progress .col-bar-year {
  color: #f472b6;
  font-weight: 700;
}

.in-progress-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: hsla(330, 81%, 60%, 0.25);
  border: 1px solid #f472b6;
  color: #fbcfe8;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Venue Distribution Card */
.venue-breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.venue-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.venue-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.venue-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.venue-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.preview-venue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.preview-venue-chip {
  background: hsla(220, 20%, 60%, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.preview-venue-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.preview-venue-chip.chip-peer-reviewed {
  border-color: hsla(217, 91%, 60%, 0.25);
}

.preview-venue-chip.chip-preprint {
  background: hsla(270, 91%, 65%, 0.1);
  border-color: hsla(270, 91%, 65%, 0.35);
}

.preview-venue-chip.chip-preprint .venue-count {
  background: hsla(270, 91%, 65%, 0.3);
  color: #e9d5ff;
}

.preview-venue-chip .venue-name {
  color: var(--text-main);
  font-weight: 600;
}

.preview-venue-chip .venue-count {
  background: hsla(243, 75%, 59%, 0.25);
  color: #a5b4fc;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Featured Teasers Grid */
.preview-teasers-section {
  max-width: 1200px;
  margin: 0 auto 4.5rem;
  padding: 0 1.5rem;
}

.preview-teasers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.teaser-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.teaser-card.demo-card {
  border-color: hsla(187, 92%, 48%, 0.45);
  background: linear-gradient(180deg, hsla(199, 89%, 48%, 0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 25px -5px hsla(187, 92%, 48%, 0.15);
}

.teaser-card.demo-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px -10px hsla(187, 92%, 48%, 0.3);
}

.demo-unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: hsla(187, 92%, 48%, 0.15);
  border: 1px solid var(--accent-cyan);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teaser-card-bottom {
  margin-top: auto;
  width: 100%;
}

.btn-teaser-demo {
  margin-top: auto;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-teaser-demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
  background: linear-gradient(135deg, #0369a1 0%, #4f46e5 100%);
}

.teaser-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.teaser-venue-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: hsla(220, 20%, 60%, 0.12);
  color: #60a5fa;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.teaser-citation-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.teaser-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.7em;
}

.teaser-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.teaser-topics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.teaser-topic-pill {
  font-size: 0.7rem;
  background: hsla(243, 75%, 59%, 0.1);
  color: #c7d2fe;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.teaser-lock-banner {
  margin-top: auto;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  background: hsla(0, 0%, 0%, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Bottom Conversion Box */
.preview-bottom-cta {
  max-width: 960px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.bottom-cta-inner {
  background: linear-gradient(135deg, hsla(243, 75%, 59%, 0.2) 0%, hsla(280, 80%, 50%, 0.18) 100%);
  border: 1px solid hsla(243, 75%, 59%, 0.45);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
}

.bottom-cta-inner h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.bottom-cta-inner p {
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto 1.85rem;
  line-height: 1.6;
  font-size: 1rem;
}

.cta-institution-proof {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 1rem;
}

/* Interactive Demo Modal */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 15, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.demo-modal-dialog {
  background: hsla(222, 47%, 8%, 0.98);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px hsla(243, 75%, 59%, 0.25);
  display: flex;
  flex-direction: column;
}

.demo-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsla(222, 47%, 6%, 0.8);
}

.demo-modal-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.demo-modal-title h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.demo-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.demo-modal-close:hover {
  background: hsla(0, 0%, 100%, 0.1);
  color: #ffffff;
}

.demo-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-section-box {
  background: hsla(222, 47%, 6%, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.demo-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 0.65rem;
}

.demo-abstract-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.demo-code-block {
  background: #05070f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.45;
}

.demo-copy-btn {
  background: hsla(243, 75%, 59%, 0.2);
  border: 1px solid hsla(243, 75%, 59%, 0.4);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-copy-btn:hover {
  background: hsla(243, 75%, 59%, 0.4);
  color: #ffffff;
}

.demo-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: hsla(222, 47%, 6%, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Public Minimal Footer */
.public-footer {
  border-top: 1px solid var(--border-subtle);
  background: hsla(222, 47%, 6%, 0.95);
  backdrop-filter: blur(16px);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
}

.public-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.public-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-col p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 340px;
  margin-top: 0.75rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.public-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 600;
}

@media (max-width: 768px) {
  .public-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .public-footer-top {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------------
   4-Block Access Form Styling
   ----------------------------------------------------------------------------- */
.form-page-container {
  max-width: 780px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.25rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-header-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: hsla(243, 75%, 59%, 0.2);
  color: #818cf8;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.form-header-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 620px;
  margin: 0 auto;
}

.form-block {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  margin-bottom: 1.75rem;
  background: hsla(222, 47%, 9%, 0.45);
}

.block-legend {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.block-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.req {
  color: #f87171;
}

.badge-locked {
  font-size: 0.65rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: hsla(222, 47%, 13%, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px hsla(243, 75%, 59%, 0.25);
}

.form-input-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: hsla(222, 47%, 9%, 0.8);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
}

.input-with-icon input {
  padding-left: 32px;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Payment Selector & Box */
.payment-method-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.payment-pill {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: hsla(220, 20%, 60%, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-pill input {
  display: none;
}

.payment-pill.active {
  background: hsla(243, 75%, 59%, 0.2);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 12px hsla(243, 75%, 59%, 0.35);
}

.payment-instruction-box {
  background: hsla(222, 47%, 6%, 0.85);
  border: 1px solid hsla(243, 75%, 59%, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
}

.instruction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.method-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #60a5fa;
}

.fee-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 999px;
}

.account-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: hsla(220, 20%, 60%, 0.08);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.acc-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.acc-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fbbf24;
}

.btn-copy-sm {
  background: hsla(220, 20%, 60%, 0.15);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  margin-left: auto;
}

.bank-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

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

.instruction-steps {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* File Dropzone */
.file-dropzone {
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  background: hsla(222, 47%, 13%, 0.5);
  cursor: pointer;
  transition: var(--transition);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--accent-primary);
  background: hsla(243, 75%, 59%, 0.08);
}

.hidden-file-input {
  display: none;
}

.dropzone-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.dropzone-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.dropzone-prompt {
  font-size: 0.82rem;
  color: var(--text-main);
}

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

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.dropzone-preview img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.preview-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.preview-filename {
  font-size: 0.75rem;
  color: var(--text-main);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-remove-file {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Custom Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1.45;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 4px;
  background: hsla(222, 47%, 13%, 0.8);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.custom-checkbox input:checked + .checkbox-box {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.custom-checkbox input:checked + .checkbox-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Form Actions */
.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* -----------------------------------------------------------------------------
   Status Screens (Pending Approval, Rejected)
   ----------------------------------------------------------------------------- */
.status-card-wrap {
  max-width: 640px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  text-align: center;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65);
}

.status-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.pending-glow {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.rejected-glow {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.2);
}

.status-card h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
}

.status-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.status-meta-box {
  background: hsla(222, 47%, 9%, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.status-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid hsla(220, 20%, 60%, 0.08);
  font-size: 0.84rem;
}

.status-meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  color: var(--text-main);
  font-weight: 500;
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-note {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.status-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.admin-reason-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Responsive Rules for Forms & Preview */
@media (max-width: 860px) {
  .charts-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .preview-teasers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .preview-hero {
    margin: 1.75rem auto 2rem;
    padding: 0 0.5rem;
  }
  .preview-title {
    font-size: clamp(1.75rem, 6.2vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }
  .hero-title-gradient {
    white-space: normal;
    display: inline;
  }
  .preview-lead {
    font-size: 0.94rem;
    line-height: 1.55;
    padding: 0 0.25rem;
    margin-bottom: 1.5rem;
  }
  .preview-badge-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
  }
  .preview-search-wrap {
    max-width: 100%;
    padding: 0;
    margin-bottom: 1.75rem;
  }
  .preview-search-bar {
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-md);
  }
  .search-shortcut-badge {
    display: none !important;
  }
  .search-input-inner {
    gap: 0.45rem;
    padding: 0.2rem 0.25rem;
  }
  .search-input-inner input {
    font-size: 0.85rem;
  }
  .search-action-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
  }
  .preview-quick-filters {
    gap: 0.35rem;
    margin-top: 0.65rem;
  }
  .quick-filter-pill {
    font-size: 0.72rem;
    padding: 0.22rem 0.55rem;
  }
  .preview-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }
  .preview-stat-card {
    padding: 1.05rem 0.65rem 0.95rem;
    overflow: hidden;
    min-width: 0;
  }
  .stat-icon-wrap {
    width: 32px;
    height: 32px;
    margin-bottom: 0.45rem;
  }
  .stat-icon-wrap svg {
    width: 16px;
    height: 16px;
  }
  .stat-number {
    font-size: clamp(1.15rem, 4.4vw, 1.6rem);
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.2rem;
  }
  .stat-number-citations {
    font-size: clamp(1.05rem, 3.8vw, 1.45rem);
  }
  .stat-caption {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .preview-venue-strip {
    margin: 1.5rem auto 0;
    max-width: 100%;
  }
  .venue-strip-label {
    font-size: 0.68rem;
    margin-bottom: 0.65rem;
  }
  .venue-strip-badges {
    gap: 0.4rem;
    justify-content: center;
  }
  .venue-strip-pill {
    padding: 0.3rem 0.55rem;
  }
  .venue-acronym {
    font-size: 0.76rem;
  }
  .venue-full {
    display: none;
  }
  .preview-features-showcase,
  .preview-charts-section,
  .preview-teasers-section,
  .preview-bottom-cta {
    padding: 0 0.25rem;
    margin-bottom: 2.5rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .showcase-card {
    padding: 1.15rem;
  }
  .showcase-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .charts-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .chart-card {
    padding: 1.15rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .chart-card-header {
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
  }
  .chart-title-wrap h3 {
    font-size: 0.95rem;
  }
  .col-chart-container {
    height: 200px;
    padding-top: 1.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .col-chart-bars {
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: space-between;
  }
  .col-bar-wrap {
    min-width: 0 !important;
    flex: 1;
  }
  .col-bar-fill {
    max-width: 18px !important;
  }
  .col-bar-year {
    font-size: 0.58rem !important;
    letter-spacing: -0.05em;
    margin-top: 4px;
  }
  .in-progress-badge {
    top: -22px;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
  }
  .bar-chart-list {
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
  }
  .bar-label-row {
    gap: 0.5rem;
    font-size: 0.76rem;
  }
  .bar-topic-name {
    max-width: 62% !important;
    min-width: 0;
    flex: 1;
    font-size: 0.74rem;
  }
  .bar-count-val {
    font-size: 0.72rem !important;
    flex-shrink: 0;
  }
  .venue-breakdown-card {
    padding: 1.15rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .venue-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .bottom-cta-inner {
    padding: 2.25rem 1.25rem;
  }
  .bottom-cta-inner h2 {
    font-size: 1.45rem;
  }
  .bottom-cta-inner p {
    font-size: 0.88rem;
  }
}
/* -----------------------------------------------------------------------------
   Unified Auth Modal (Google + Email / Password + Magic Link)
   ----------------------------------------------------------------------------- */
.auth-modal-card {
  max-width: 440px;
  width: 90vw;
  background: hsla(222, 47%, 9%, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: hsla(243, 75%, 59%, 0.15);
  color: #a5b4fc;
  border: 1px solid hsla(243, 75%, 59%, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.auth-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
}

.auth-modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: hsla(222, 47%, 14%, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-google:hover {
  background: hsla(222, 47%, 18%, 1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.35rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.auth-tabs {
  display: flex;
  background: hsla(222, 47%, 6%, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 1.25rem;
  gap: 2px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.auth-tab-btn:hover {
  color: var(--text-main);
}

.auth-tab-btn.active {
  background: hsla(243, 75%, 59%, 0.25);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* -----------------------------------------------------------------------------
   Catalog Real-Time Analytics Strip & Cross-Distribution
   ----------------------------------------------------------------------------- */
.catalog-analytics-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.75rem;
  background: hsla(222, 47%, 9%, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: var(--transition);
}

.catalog-analytics-strip:hover {
  border-color: hsla(243, 75%, 59%, 0.3);
}

.analytics-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: hsla(220, 20%, 15%, 0.6);
  border: 1px solid hsla(220, 20%, 30%, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-main);
  user-select: none;
  transition: all 0.2s ease;
}

.analytics-stat-pill:hover {
  background: hsla(220, 20%, 22%, 0.8);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.analytics-stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-cyan);
}

.analytics-stat-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.analytics-stat-ratio {
  background: hsla(243, 75%, 59%, 0.15);
  border-color: hsla(243, 75%, 59%, 0.4);
}

.analytics-stat-ratio .analytics-stat-num {
  color: #a5b4fc;
}

.analytics-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-matrix-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, hsla(243, 75%, 59%, 0.2), hsla(199, 89%, 48%, 0.2));
  border: 1px solid hsla(199, 89%, 48%, 0.4);
  color: #e0f2fe;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-matrix-open:hover {
  background: linear-gradient(135deg, hsla(243, 75%, 59%, 0.4), hsla(199, 89%, 48%, 0.4));
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px hsla(199, 89%, 48%, 0.35);
}

/* Cross-Distribution Horizontal Bar */
.cross-distribution-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.95rem;
  margin-bottom: 1.25rem;
  background: hsla(222, 47%, 7%, 0.5);
  border: 1px dashed hsla(220, 20%, 30%, 0.5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dist-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dist-label-icon {
  font-size: 0.9rem;
}

.dist-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 2px 2px 4px 2px;
  -webkit-overflow-scrolling: touch;
}

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

.dist-chips-scroll::-webkit-scrollbar-thumb {
  background: hsla(220, 20%, 40%, 0.35);
  border-radius: 4px;
}

.dist-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  background: hsla(220, 20%, 18%, 0.5);
  border: 1px solid hsla(220, 20%, 32%, 0.5);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  user-select: none;
}

.dist-chip:hover {
  background: hsla(243, 75%, 59%, 0.2);
  border-color: var(--accent-primary);
  color: var(--text-main);
  transform: translateY(-1px);
}

.dist-chip.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 10px hsla(243, 75%, 59%, 0.4);
}

.dist-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.dist-chip.active .dist-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* -----------------------------------------------------------------------------
   Venue x Topic Literature Matrix Modal
   ----------------------------------------------------------------------------- */
.modal-xl {
  max-width: 1240px;
  width: 95vw;
}

.matrix-modal-card {
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

.matrix-modal-body {
  padding: 0.85rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matrix-table-wrap {
  width: 100%;
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: hsl(222, 47%, 7%);
  scrollbar-width: thin;
}

.matrix-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.matrix-table-wrap::-webkit-scrollbar-thumb {
  background: hsla(199, 89%, 48%, 0.35);
  border-radius: 4px;
}

.matrix-table {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  font-size: 0.75rem;
}

/* Sticky row header and column headers */
.matrix-table th,
.matrix-table td {
  padding: 0.32rem 0.42rem;
  text-align: center;
  user-select: none;
}

.matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: hsla(222, 47%, 10%, 0.98);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.73rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.matrix-table thead th:hover:not(.matrix-corner-th) {
  background: hsla(243, 75%, 59%, 0.3);
  color: #ffffff;
}

.matrix-table thead th.matrix-corner-th {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 20;
  background: hsla(222, 47%, 12%, 1);
  text-align: left;
  padding-left: 0.75rem;
  color: var(--text-muted);
  cursor: default;
}

.matrix-table tbody th.matrix-row-header {
  position: sticky;
  left: 0;
  z-index: 9;
  background: hsla(222, 47%, 10%, 0.98);
  backdrop-filter: blur(10px);
  text-align: left;
  padding-left: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  border-right: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}

.matrix-table tbody th.matrix-row-header:hover {
  background: hsla(243, 75%, 59%, 0.3);
  color: #ffffff;
}

.matrix-table tbody td.matrix-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 44px;
}

.matrix-table tbody td.matrix-cell:hover {
  outline: 2px solid var(--accent-cyan);
  outline-offset: -1px;
  transform: scale(1.08);
  z-index: 5;
  box-shadow: 0 0 10px hsla(199, 89%, 60%, 0.5);
}

.matrix-table tfoot td,
.matrix-table tfoot th {
  background: hsla(222, 47%, 11%, 0.98);
  border-top: 2px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.matrix-table tfoot th {
  position: sticky;
  left: 0;
  z-index: 9;
  text-align: left;
  padding-left: 0.75rem;
  color: var(--text-main);
  background: hsla(222, 47%, 12%, 1);
  border-right: 2px solid var(--border-subtle);
}

/* Density Heatmap Classes */
.cell-0 {
  background: hsla(220, 20%, 15%, 0.25);
  color: hsla(220, 10%, 50%, 0.35);
  cursor: default !important;
}

.cell-0:hover {
  outline: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.cell-low {
  background: hsla(243, 75%, 59%, 0.18);
  color: #c7d2fe;
}

.cell-mid {
  background: hsla(243, 75%, 59%, 0.38);
  color: #ffffff;
}

.cell-high {
  background: hsla(199, 89%, 44%, 0.55);
  color: #ffffff;
}

.cell-peak {
  background: hsla(199, 89%, 48%, 0.85);
  color: #ffffff;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Matrix Legend */
.matrix-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  background: hsla(222, 47%, 9%, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.matrix-legend-label {
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.matrix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.matrix-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid hsla(220, 20%, 40%, 0.3);
}

.matrix-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.matrix-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.matrix-footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Personal Literature Notes Editor */
.notes-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.notes-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.notes-header-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.notes-sync-status {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  background: hsla(199, 89%, 48%, 0.12);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid hsla(199, 89%, 48%, 0.25);
}

.notes-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-xs {
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
}

.notes-textarea {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: hsla(222, 47%, 7%, 0.85);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.75rem;
  resize: vertical;
  line-height: 1.55;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.notes-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px hsla(243, 75%, 59%, 0.25);
}

@media (max-width: 768px) {
  .matrix-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .matrix-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
}



