@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #171717;
  --secondary: #404040;
  --cta: #D4AF37;
  --background: #FFFFFF;
  --text: #171717;
  --text-muted: #666666;
  --border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
}

#root {
  min-height: 100vh;
}

.app-container {
  min-height: 100vh;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 3rem 0;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Content */
.content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  width: fit-content;
}

.tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.tab.active {
  color: var(--primary);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Filter Bar */
.filter-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 300px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

/* Provider Card */
.provider-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cta), #f0d878);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.provider-card:hover::before {
  opacity: 1;
}

.provider-card.selected {
  border-color: var(--cta);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3), var(--shadow);
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.provider-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.provider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cta), #f0d878);
  border-radius: 10px;
  color: white;
}

.provider-icon svg {
  width: 24px;
  height: 24px;
}

.provider-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.provider-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.provider-link:hover {
  color: var(--cta);
}

.provider-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.price-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.provider-quota {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.provider-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.provider-updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cta);
  border-radius: 50%;
  opacity: 0.6;
}

.provider-models,
.provider-plans-preview {
  margin-bottom: 1rem;
}

.models-label,
.plans-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.models-list,
.plans-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.model-tag,
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(23, 23, 23, 0.06);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  transition: all 0.2s ease;
}

.model-tag {
  cursor: help;
}

.model-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary);
}

.model-tag.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.model-tag.large {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

.model-tag-icon {
  display: flex;
  align-items: center;
  color: var(--cta);
}

.model-tag-icon svg {
  width: 14px;
  height: 14px;
}

.plan-tag {
  background: rgba(212, 175, 55, 0.1);
  color: var(--cta);
  cursor: help;
}

.plan-tag:hover {
  background: rgba(212, 175, 55, 0.2);
}

.compare-toggle {
  width: 100%;
  padding: 0.875rem;
  margin-top: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.compare-toggle:hover {
  border-color: var(--cta);
  color: var(--cta);
}

.compare-toggle.selected {
  background: var(--cta);
  border-color: var(--cta);
  color: white;
}

/* Compare Section */
.compare-section {
  margin-bottom: 2rem;
}

.compare-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.compare-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.compare-selector-card {
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.compare-selector-card:hover {
  border-color: var(--cta);
  transform: translateY(-2px);
}

.compare-selector-card.selected {
  border-color: var(--cta);
  background: rgba(212, 175, 55, 0.1);
}

.selector-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--cta);
}

.selector-icon svg {
  width: 28px;
  height: 28px;
}

.selector-name {
  font-weight: 600;
  color: var(--primary);
}

/* Comparison Table */
.comparison-table-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.row-label {
  font-weight: 600;
  color: var(--secondary);
}

.provider-cell {
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.02);
}

.plan-name-cell {
  font-weight: 500;
  color: var(--secondary);
}

.table-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plans-comparison-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--primary);
}

.plans-table {
  margin-top: 1rem;
}

/* Detail Page */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.back-button:hover {
  background: white;
  border-color: var(--cta);
  color: var(--cta);
}

.detail-page {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.detail-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--cta), #f0d878);
  border-radius: 12px;
  color: white;
}

.detail-icon svg {
  width: 28px;
  height: 28px;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--cta);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.detail-link:hover {
  background: #c4a030;
  transform: translateY(-2px);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-updated::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cta);
  border-radius: 50%;
  opacity: 0.6;
}

.detail-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.detail-models {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-model-card {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
}

.detail-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

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

.plan-header {
  margin-bottom: 1.25rem;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.plan-prices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.price-value.highlight {
  color: var(--cta);
  font-size: 1.25rem;
}

.plan-extra-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.plan-limits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.limit-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.limit-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
}

/* Plan Popup */
.plan-popup {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  min-width: 260px;
}

.plan-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cta);
}

.plan-popup-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.plan-popup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-popup-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-popup-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.plan-popup-prices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-popup-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.plan-popup-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-popup-price-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.plan-popup-price-value.highlight {
  color: var(--cta);
  font-size: 1.1rem;
}

.plan-popup-extra-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.plan-popup-limits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-popup-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.plan-popup-limit-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-popup-limit-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

/* Model Popup */
.model-popup {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  min-width: 280px;
}

.model-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cta);
}

.model-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  color: var(--cta);
}

.model-popup-icon svg {
  width: 20px;
  height: 20px;
}

.model-popup-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.model-popup-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.model-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.model-popup-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.model-popup-label svg {
  flex-shrink: 0;
}

.model-popup-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.model-popup-row.benchmark-row {
  align-items: flex-start;
}

.model-popup-value.benchmark-value {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.benchmark-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.benchmark-score {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.benchmark-score.estimated {
  color: #999999;
  opacity: 0.4;
  filter: blur(0.8px);
}

.benchmark-bar-bg {
  width: 80px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.benchmark-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.benchmark-bar-fill.estimated {
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.3) 4px,
    rgba(255, 255, 255, 0.3) 8px
  );
}

.benchmark-score.estimated {
  opacity: 0.7;
  filter: blur(0.3px);
}

.estimated-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
}

/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--cta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-container p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 2rem 0;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  .content {
    padding: 1rem;
  }

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

  .compare-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .detail-plans {
    grid-template-columns: 1fr;
  }

  .comparison-table-container {
    padding: 1rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 1rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    padding: 0.625rem 1rem;
  }

  .provider-card {
    padding: 1.25rem;
  }

  .provider-price {
    font-size: 1.75rem;
  }

  .model-popup {
    max-width: 280px;
    min-width: 240px;
    padding: 1rem;
  }
}

/* Model Compare Page Styles */
.model-compare-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.models-table-section {
  margin-top: 2rem;
}

.models-table-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.models-table th,
.models-table td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.models-table th {
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.models-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.models-table th.sortable:hover {
  background: rgba(0, 0, 0, 0.06);
}

.sort-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
  opacity: 0.5;
}

.sort-icon.active {
  color: var(--cta);
  opacity: 1;
  font-weight: 700;
}

.models-table tbody tr {
  cursor: pointer;
  transition: all 0.2s ease;
}

.models-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.models-table tbody tr.selected {
  background: rgba(212, 175, 55, 0.1);
}

.models-table tbody tr.selected td {
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

/* Table Column Widths */
.select-col {
  width: 50px;
  text-align: center;
}

.model-name-col {
  min-width: 180px;
}

.params-col {
  width: 80px;
}

.context-col {
  width: 100px;
}

.modalities-col {
  width: 120px;
}

.thinking-col {
  width: 60px;
  text-align: center;
}

.benchmark-col {
  width: 120px;
  min-width: 120px;
}

/* Table Cell Styles */
.select-cell {
  text-align: center;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox.checked {
  background: var(--cta);
  border-color: var(--cta);
  color: white;
}

.model-name-cell {
  font-weight: 600;
}

.model-name-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-table-icon {
  display: flex;
  align-items: center;
  color: var(--cta);
}

.model-table-name {
  color: var(--primary);
}

.params-cell {
  color: var(--secondary);
  font-weight: 500;
}

.context-cell {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modalities-cell {
  text-align: center;
}

.modalities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.modality-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.thinking-cell {
  text-align: center;
}

.thinking-yes {
  color: #10B981;
  font-weight: 700;
  font-size: 1.1rem;
}

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

.benchmark-cell {
  text-align: center;
}

.benchmark-table-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.benchmark-score {
  font-weight: 700;
  font-size: 0.95rem;
}

.benchmark-bar-bg {
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.benchmark-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Model Comparison Section */
.model-comparison-section {
  margin-bottom: 2rem;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.clear-selection-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-selection-btn:hover {
  border-color: #EF4444;
  color: #EF4444;
}

.model-comparison-table-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.model-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.model-comparison-table th,
.model-comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.model-comparison-table th {
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.02);
}

.feature-column {
  min-width: 150px;
  font-weight: 600;
  color: var(--secondary);
}

.model-column {
  min-width: 180px;
}

.model-header-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-header-icon {
  display: flex;
  align-items: center;
  color: var(--cta);
}

.model-header-name {
  font-weight: 600;
}

.feature-name {
  font-weight: 500;
  color: var(--secondary);
}

.model-value {
  color: var(--primary);
}

.benchmark-row {
  background: rgba(0, 0, 0, 0.01);
}

.benchmark-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.benchmark-name {
  font-weight: 600;
  color: var(--primary);
}

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

.benchmark-cell {
  text-align: center;
}

.benchmark-score-large {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benchmark-bar-fill-large {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Responsive for Model Compare */
@media (max-width: 768px) {
  .model-compare-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    width: 100%;
  }

  .models-table-container {
    padding: 1rem;
  }

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

  .models-table th,
  .models-table td {
    padding: 0.75rem 0.5rem;
  }

  .benchmark-col {
    min-width: 80px;
  }

  .benchmark-bar-bg {
    width: 40px;
  }

  .model-name-col {
    min-width: 140px;
  }

  .model-comparison-table-container {
    padding: 1rem;
  }

  .model-comparison-table {
    font-size: 0.85rem;
  }

  .model-comparison-table th,
  .model-comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .feature-column,
  .model-column {
    min-width: 120px;
  }

  .benchmark-score-large {
    font-size: 1.1rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === 双币种显示 === */
.price-rmb {
  font-size: 0.75em;
  opacity: 0.7;
  margin-left: 2px;
}

.currency-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}

.currency-badge.usd {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.plan-popup .price-rmb {
  font-size: 0.7em;
  opacity: 0.6;
}

.plan-popup-limit-value .limit-unit,
.limit-unit {
  font-size: 0.75em;
  opacity: 0.7;
  margin-left: 2px;
}

.usd-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid rgba(37, 99, 235, 0.3);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* === 更新日志页面 === */
.update-log-page {
  max-width: 700px;
  margin: 0 auto;
}

.update-log-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.update-log-date-group {
  margin-bottom: 24px;
}

.update-log-date {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

.update-log-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.update-log-provider {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.update-log-changes {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}

.update-log-changes li {
  margin-bottom: 2px;
}

@media (prefers-color-scheme: dark) {
  .update-log-card {
    background: #1f2937;
    border-color: #374151;
  }

  .update-log-provider {
    color: #f3f4f6;
  }

  .update-log-changes {
    color: #9ca3af;
  }

  .update-log-date {
    color: #9ca3af;
    border-bottom-color: #374151;
  }
}
