/* ==========================================================================
   Digit3D Academic Project Page - Modern Vibrant Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #090d16;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --primary: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

/* Global Reset & Base */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main) !important;
}

:not(pre) > code {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0.15em 0.45em !important;
  border-radius: 4px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.88em !important;
  font-weight: 500 !important;
}

/* Background Animated Gradient Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(139, 92, 246, 0.10) 0%, transparent 45%);
}

/* Hero Section */
.hero.is-bold {
  background: transparent;
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.hero .title.publication-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero .subtitle.publication-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted) !important;
  max-width: 820px;
  margin: 0 auto 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Publication Authors & Affiliations */
.publication-authors {
  margin-bottom: 1.5rem;
}

.author-block {
  font-size: 1.15rem;
  font-weight: 600;
}

.author-block a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

.author-block a:hover {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.affiliation-block {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Links & Action Badges */
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.btn-action:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-action.btn-primary,
.btn-action.is-active {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-action.btn-primary:hover,
.btn-action.is-active:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
}

/* Section Containers & Headers */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Dataset Feature Grid */
.dataset-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Point Cloud Grid Containers */
.pointcloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.pointcloud-grid.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

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

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

/* Point Cloud Card Component */
.pc-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.pc-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.pc-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

.digit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.sample-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-expand-ply {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-expand-ply:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* 3D Canvas Container */
.ply-viewer {
  width: 100%;
  height: 220px;
  min-height: 220px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.card-2d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  cursor: grab;
}

.card-2d-canvas:active {
  cursor: grabbing;
}

/* Image Conditioned Paired Card (2 Columns x 5 Rows) */
.img-cond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .img-cond-grid {
    grid-template-columns: 1fr;
  }
}

.img-cond-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.img-cond-card:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
  transform: translateY(-3px);
}

.paired-container {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.input-img-wrapper {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.input-img-wrapper img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 4px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.input-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.output-3d-wrapper {
  height: 200px;
  position: relative;
}

.output-3d-wrapper .ply-viewer {
  height: 200px;
  min-height: 200px;
}

/* Sparse Voxel Reconstruction Mesh Cards (2 Columns x 5 Rows) */
.mesh-recon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .mesh-recon-grid {
    grid-template-columns: 1fr;
  }
}

.mesh-pair-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.mesh-pair-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
  transform: translateY(-3px);
}

.mesh-pair-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mesh-view-wrapper {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mesh-expand-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.mesh-expand-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.mesh-view-wrapper .ply-viewer {
  width: 100%;
  height: 180px;
  min-height: 180px;
}

.mesh-view-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.4rem;
  text-align: center;
}

.mesh-view-label.gt-label {
  color: #38bdf8;
}

.mesh-view-label.recon-label {
  color: #ec4899;
}

/* Spinner */
.ply-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 5;
}

.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Modal 3D Inspector */
.modal.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content.custom-modal {
  width: 90%;
  max-width: 760px;
  background: #0f172a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-stats-badge {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.modal-viewer-container {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
  position: relative;
}

/* Code & BibTeX Snippet */
pre, pre.bibtex-box {
  background: #090d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.88rem !important;
  color: #f1f5f9 !important;
  overflow-x: auto;
  line-height: 1.65;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

pre code, pre.bibtex-box code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #f1f5f9 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  display: block;
}

/* Footer */
.footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

.footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.footer a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   Two-Stage Sparse Voxel 3D Generation Progression Grid
   ========================================================================== */
.sparse-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .sparse-gen-grid {
    grid-template-columns: 1fr;
  }
}

.sparse-gen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sparse-gen-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}

.gen-time-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.sparse-progression-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.progression-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}

.progression-step.step-img {
  flex: 0.85;
}

.progression-step.step-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.progression-step.step-3d {
  flex: 1.35;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  position: relative;
  overflow: hidden;
}

.progression-step.step-3d .ply-viewer {
  width: 100%;
  height: 160px;
  min-height: 160px;
}

.progression-arrow {
  color: var(--text-dim);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0.2rem;
  opacity: 0.7;
}

.progression-label {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.45rem;
  text-align: center;
  white-space: nowrap;
}

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

.progression-label.stage1-label {
  color: #38bdf8;
}

.progression-label.stage2-label {
  color: #ec4899;
}

/* ==========================================================================
   Limitations & Future Work Grid
   ========================================================================== */
.limitations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.limitation-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.limitation-card:hover {
  background: rgba(26, 35, 54, 0.75);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.limitation-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.limitation-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
}

.limitation-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Arbitrary Resolution Multi-Scale Progression (Sparse Voxel Gen Style)
   ========================================================================== */
.arbitrary-gen-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arbitrary-gen-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
}

.arbitrary-gen-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.arbitrary-progression-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.arbitrary-progression-container .progression-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
}

.arbitrary-progression-container .progression-step.step-img {
  flex: 0.85;
}

.arbitrary-progression-container .progression-step.step-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.arbitrary-progression-container .progression-step.step-3d {
  flex: 1.2;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  position: relative;
  overflow: hidden;
}

.arbitrary-progression-container .progression-step.step-3d .ply-viewer {
  width: 100%;
  height: 155px;
  min-height: 155px;
}

@media (max-width: 1024px) {
  .arbitrary-progression-container {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .arbitrary-progression-container .progression-step {
    min-width: 130px;
  }
  .arbitrary-progression-container .progression-step.step-img {
    min-width: 100px;
  }
}

/* ==========================================================================
   Global Resolution Switcher Tabs
   ========================================================================== */
.res-tabs-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.res-tab-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.res-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.res-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.res-tab-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.res-tab-btn.is-active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.density-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-left: auto;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}





