/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-hover: #f0f4ff;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  background: var(--surface);
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: transparent;
  color: #fff;
  background: var(--accent-gradient);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(99,102,241,0.3);
}

.qr-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition);
}

.qr-img:hover {
  transform: scale(1.1);
}

.qr-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ===== Main Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  min-width: 0;
}

/* ===== Dashboard ===== */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
}

.stat-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Language chart card */
.stat-card.lang-chart {
  padding: 1rem 1.25rem;
}

.lang-chart-title {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.lang-bar-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.lang-bar-row:last-child {
  margin-bottom: 0;
}

.lang-bar-name {
  width: 2.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  flex-shrink: 0;
}

.lang-bar-track {
  flex: 1;
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.lang-bar-value {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 3rem;
  text-align: right;
}

/* ===== Filters ===== */
.filters {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 7px 30px 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: #eef2ff;
}
.filter-chip:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 7px 14px 7px 36px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.search-box::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.filter-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
}

.filter-reset {
  font-size: 0.78rem;
  font-family: var(--font);
  color: var(--accent);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 20px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-reset:hover {
  color: #fff;
  background: var(--accent);
}

/* ===== Dataset Grid ===== */
.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 0.75rem;
  min-width: 0;
}

a.dataset-card {
  text-decoration: none;
  color: inherit;
}

.dataset-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

@media (hover: hover) {
  .dataset-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  min-width: 0;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-tag.lang {
  background: #fef3c7;
  color: #92400e;
}

.meta-tag.rate {
  background: #d1fae5;
  color: #065f46;
}

.meta-tag.duration {
  background: #ede9fe;
  color: #5b21b6;
}

.card-publisher {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-text {
  font-size: 1rem;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

/* Modal Hero */
.modal-hero {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  padding-right: 2.5rem;
}

.modal-id {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.7);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modal Stats Bar */
.modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.modal-stat {
  flex: 1;
  min-width: 120px;
  padding: 1rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.modal-stat:last-child {
  border-right: none;
}

.modal-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.modal-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
}

.modal-section {
  margin-bottom: 1.25rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-light);
}

.section-content {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

/* Publisher tags */
.publisher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.publisher-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text);
  transition: all var(--transition);
}

.publisher-tag:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Description cards */
.desc-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.desc-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.desc-card-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc((0.9rem * 1.6 - 22px) / 2);
}

.desc-card-text {
  flex: 1;
  min-width: 0;
}

/* Language table */
.lang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.lang-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}

.lang-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.lang-table tr:last-child td {
  border-bottom: none;
}

.lang-table tr:hover td {
  background: var(--accent-light);
}

/* Resource links */
.resource-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--accent);
  word-break: break-all;
  transition: background var(--transition);
}

.resource-link:hover {
  background: var(--accent-light);
  text-decoration: none;
}

.resource-link-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Resource link with label */
.resource-link-label {
  font-weight: 600;
  white-space: nowrap;
}

.resource-link-url {
  color: var(--text-secondary);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 400px;
}

/* ===== Back Button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px 6px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}
.back-btn:hover {
  color: var(--accent);
  background: #eef2ff;
}
.back-btn svg {
  flex-shrink: 0;
}

/* ===== Detail Page ===== */
.detail-page {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.detail-hero {
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
  border-bottom: 1px solid var(--border);
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.detail-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.detail-body {
  padding: 1.5rem;
}

/* ===== Share Button ===== */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 800px;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.share-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn svg {
  flex-shrink: 0;
}

/* Share modal */
.share-modal {
  max-width: 420px;
}

.share-preview {
  padding: 1rem;
  text-align: center;
}

.share-preview img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.share-actions {
  padding: 0 1rem 1rem;
  text-align: center;
}

.share-download-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.share-download-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
  }

  .header {
    padding: 0.75rem 0;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .qr-label {
    display: none;
  }

  .qr-img {
    width: 40px;
    height: 40px;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .filter-chip {
    flex: 1;
    min-width: 0;
  }
  .search-box {
    min-width: 100%;
  }
  .filter-count {
    margin-left: auto;
  }
  .filter-reset {
    text-align: center;
  }

  .dataset-grid {
    grid-template-columns: 1fr;
  }

  .dataset-card {
    padding: 1rem 1.25rem;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%;
  }

  .modal-hero {
    padding: 1.25rem 1.25rem 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-stats,
  .detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .modal-stat {
    min-width: unset;
    padding: 0.6rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .modal-stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .modal-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .modal-stat-label {
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
  }

  .modal-stat-value {
    font-size: 0.9rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .detail-hero {
    padding: 1rem 1rem 0.85rem;
  }

  .detail-title {
    font-size: 1.25rem;
  }

  .detail-body {
    padding: 1rem;
  }

  .detail-page {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 -0.75rem;
    box-shadow: none;
  }

  .back-btn {
    margin-bottom: 0.5rem;
  }

  .share-btn {
    margin: 0.75rem 0 0;
    border-radius: var(--radius);
  }

  .desc-card {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .desc-card-num {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    margin-top: calc((0.85rem * 1.6 - 20px) / 2);
  }

  .resource-link-url {
    display: none;
  }

  .resource-link {
    word-break: normal;
  }

  .lang-table {
    font-size: 0.8rem;
  }

  .footer {
    margin-top: 1.5rem;
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .dashboard {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-card {
    padding: 1rem 1.25rem;
  }

  .card-name {
    font-size: 0.95rem;
  }

  .back-btn {
    font-size: 0.8rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ===== Feedback Button ===== */
.feedback-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  z-index: 50;
}

.feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(79, 70, 229, 0.45);
  text-decoration: none;
}

.feedback-btn svg {
  flex-shrink: 0;
}

.feedback-label {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .feedback-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem;
  }

  .feedback-label {
    display: none;
  }
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dataset-card {
  animation: fadeInUp 0.3s ease both;
}

.stat-card {
  animation: fadeInUp 0.3s ease both;
}
