﻿/**
 * ============================================================================
 * PDF CONVERTER BOT • INTERACTIVE WIDGETS SUITE
 * File: widgets.css
 * Features:
 *   - Chart Period & Type Filter Controls (Idea 4)
 *   - Visual Format Conveyor Pipeline "Input -> Stream -> PDF Output" (Idea 5)
 *   - QR Code Smart-Link Modal (Idea 7)
 *   - Green Impact Eco Contribution Widget (Idea 8)
 *   - Community Hall of Fame Records Widget (Idea 10)
 *   - Micro-Interactions, Shimmer Gradients, and Mobile Adaptations (>= 375px)
 * ============================================================================
 */

/* -------------------------------------------------------------------------- */
/* 1. CHART PERIOD & TYPE FILTERS (Idea 4)                                     */
/* -------------------------------------------------------------------------- */
.chart-header-interactive {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .chart-header-interactive {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.chart-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chart-filter-group {
  display: inline-flex;
  background: rgba(10, 14, 26, 0.85);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.chart-filter-pill {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
  white-space: nowrap;
}

.chart-filter-pill:hover:not(.active) {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.chart-filter-pill.active {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.chart-filter-pill.active.pill-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.chart-filter-pill.active.pill-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

/* -------------------------------------------------------------------------- */
/* 2. VISUAL FORMAT PIPELINE CONVEYOR (Idea 5)                                */
/* -------------------------------------------------------------------------- */
.pipeline-section {
  margin: 3.5rem 0;
  position: relative;
}

.conveyor-card {
  background: rgba(13, 18, 32, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 20px);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.45);
}

.conveyor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 200% 100%;
  animation: shimmerBorder 6s linear infinite;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.conveyor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .conveyor-grid {
    grid-template-columns: 1fr 140px 1.15fr;
    gap: 1.5rem;
  }
}

/* Inbound Format Cards */
.pipeline-inlets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 540px) {
  .pipeline-inlets {
    grid-template-columns: 1fr 1fr;
  }
}

.pipeline-format-card {
  background: rgba(18, 25, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.pipeline-format-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(24, 34, 60, 0.85);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

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

.pipeline-format-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pipeline-format-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.pipeline-format-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
}

.pipeline-format-ext {
  font-size: 0.75rem;
  color: #94a3b8;
}

.pipeline-format-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
}

.pipeline-format-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.pipeline-format-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-format-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

/* Color thematic accents */
.format-images .pipeline-format-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.format-images .pipeline-format-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.format-images .pipeline-format-bar-fill { background: #10b981; }

.format-docs .pipeline-format-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.format-docs .pipeline-format-badge { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.format-docs .pipeline-format-bar-fill { background: #3b82f6; }

.format-tables .pipeline-format-icon { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.format-tables .pipeline-format-badge { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.format-tables .pipeline-format-bar-fill { background: #06b6d4; }

.format-other .pipeline-format-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.format-other .pipeline-format-badge { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.format-other .pipeline-format-bar-fill { background: #f59e0b; }

/* Center Stream & Core */
.pipeline-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem 0;
}

@media (min-width: 1024px) {
  .pipeline-stream {
    padding: 0;
  }
}

.pipeline-core-node {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.4), rgba(13, 18, 32, 0.95));
  border: 2px solid rgba(59, 130, 246, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
  animation: pulseCore 3s ease-in-out infinite alternate;
}

@keyframes pulseCore {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(59, 130, 246, 0.25); }
  100% { transform: scale(1.04); box-shadow: 0 0 35px rgba(59, 130, 246, 0.5); }
}

.pipeline-core-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.8));
}

.pipeline-core-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-top: 2px;
}

.pipeline-core-sub {
  font-size: 0.6rem;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
}

.pipeline-stream-arrows {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0;
  color: #60a5fa;
}

.pipeline-stream-arrows svg {
  animation: streamArrows 1.5s linear infinite;
}

@keyframes streamArrows {
  0% { opacity: 0.2; transform: translateX(-4px); }
  50% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0.2; transform: translateX(4px); }
}

/* Output Card */
.pipeline-output-card {
  background: linear-gradient(145deg, rgba(26, 36, 62, 0.8) 0%, rgba(16, 22, 38, 0.9) 100%);
  border: 1.5px solid rgba(96, 165, 250, 0.35);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pipeline-output-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pipeline-output-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.2);
}

.pipeline-output-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.pipeline-output-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.pipeline-output-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pipeline-feature-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.pipeline-feature-row svg {
  color: #10b981;
  flex-shrink: 0;
}

.pipeline-output-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.pipeline-output-meta .meta-label {
  color: #64748b;
}

.pipeline-output-meta .meta-val {
  font-weight: 700;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

.pipeline-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.pipeline-cta-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* 3. QR CODE MODAL & SMART LINK (Idea 7)                                     */
/* -------------------------------------------------------------------------- */
.hero-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md, 14px);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-qr-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.hero-qr-btn svg {
  color: #60a5fa;
}

/* QR Modal Backdrop */
.qr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem;
}

.qr-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal-card {
  background: #0f1629;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.2);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-modal-backdrop.open .qr-modal-card {
  transform: scale(1) translateY(0);
}

.qr-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: rotate(90deg);
}

.qr-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 0.75rem;
}

.qr-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.qr-modal-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 1.5rem 0;
  max-width: 320px;
}

.qr-code-box {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.qr-code-box svg {
  display: block;
  width: 190px;
  height: 190px;
}

.qr-code-box::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px dashed rgba(59, 130, 246, 0.5);
  pointer-events: none;
  animation: rotateBorder 30s linear infinite;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.qr-link-input-group {
  width: 100%;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.qr-link-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}

.qr-link-copy-btn {
  background: rgba(59, 130, 246, 0.2);
  border: none;
  color: #60a5fa;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qr-link-copy-btn:hover {
  background: rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.qr-modal-hint {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* -------------------------------------------------------------------------- */
/* 4. GREEN IMPACT ECOLOGICAL CONTRIBUTION (Idea 8)                           */
/* -------------------------------------------------------------------------- */
.eco-section {
  margin: 4rem 0;
  position: relative;
}

.eco-container {
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08), transparent 45%),
              linear-gradient(180deg, rgba(13, 22, 28, 0.7) 0%, rgba(10, 16, 22, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-lg, 20px);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px -15px rgba(5, 150, 105, 0.15);
  position: relative;
}

.eco-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
}

.eco-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.eco-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.eco-title span {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eco-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  max-width: 680px;
}

.eco-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 560px) {
  .eco-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .eco-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.eco-card {
  background: rgba(18, 30, 36, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.eco-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(22, 38, 45, 0.8);
  box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.2);
}

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

.eco-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.eco-card-trend {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.eco-val-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.eco-card-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.eco-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.eco-card-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.65rem;
}

.eco-footer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
}

.eco-footer-note svg {
  flex-shrink: 0;
  color: #10b981;
}

/* -------------------------------------------------------------------------- */
/* 5. COMMUNITY HALL OF FAME RECORDS (Idea 10)                                */
/* -------------------------------------------------------------------------- */
.hall-of-fame-section {
  margin: 4rem 0;
  position: relative;
}

.fame-container {
  background: radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.07), transparent 50%),
              linear-gradient(180deg, rgba(17, 20, 32, 0.75) 0%, rgba(13, 16, 26, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg, 20px);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.fame-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.fame-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.fame-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.fame-title span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fame-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  max-width: 680px;
}

.fame-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .fame-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fame-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fame-card {
  background: rgba(20, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.fame-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(26, 31, 50, 0.75);
  box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.15);
}

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

.fame-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.fame-card.card-heavy .fame-icon-wrap { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }
.fame-card.card-speed .fame-icon-wrap { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.fame-card.card-peak .fame-icon-wrap { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.fame-card.card-space .fame-icon-wrap { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }

.fame-category-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.card-heavy .fame-category-tag { color: #f87171; background: rgba(239, 68, 68, 0.1); }
.card-speed .fame-category-tag { color: #60a5fa; background: rgba(59, 130, 246, 0.1); }
.card-peak .fame-category-tag { color: #fbbf24; background: rgba(245, 158, 11, 0.1); }
.card-space .fame-category-tag { color: #34d399; background: rgba(16, 185, 129, 0.1); }

.fame-val-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fame-card-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fame-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
}

.fame-card-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.65rem;
}

/* -------------------------------------------------------------------------- */
/* 6. RESPONSIVENESS & MOBILE POLISH (down to 375px)                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 540px) {
  .conveyor-card,
  .eco-container,
  .fame-container {
    padding: 1.5rem 1.15rem;
  }
  
  .chart-filters-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .chart-filter-group {
    display: flex;
    justify-content: space-between;
  }

  .chart-filter-pill {
    flex: 1;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.76rem;
  }

  .qr-modal-card {
    padding: 1.75rem 1.25rem;
  }

  .qr-code-box svg {
    width: 160px;
    height: 160px;
  }
}
