.pricing-chart {
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(240,242,245,0.1) 100%);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.chart-title {
  font-size: 1.75rem;
  background: linear-gradient(90deg, #4285f4, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.chart-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.legend {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.input-color {
  background-color: #4285f4;
}

.output-color {
  background-color: #7c4dff;
}

.chart-area {
  display: flex;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  position: relative;
  scroll-behavior: smooth;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  margin-right: 10px;
}

.y-axis-label {
  font-size: 0.75rem;
  text-align: right;
}

.chart-container {
  display: flex;
  align-items: flex-end;
  gap: 0.1rem;
  height: 350px;
  position: relative;
  padding-bottom: 130px;
  min-width: min-content;
  flex-grow: 1;
}

.grid-lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 80px;
  z-index: 1;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(224,224,224,0.3);
}

.chart-column {
  position: relative;
  min-width: 60px;
  max-width: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bars-container {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 100%;
  justify-content: center;
  flex-grow: 1;
}

.bar {
  width: 15px;
  position: relative;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, rgba(66,133,244,0.9), rgba(66,133,244,0.7));
  box-shadow: 0 4px 12px rgba(66,133,244,0.2);
}

.input-bar {
  background: linear-gradient(180deg, #4285f4, #2b579a);
}

.output-bar {
  background: linear-gradient(180deg, #7c4dff, #4a2b9a);
  margin-left: 5px;
}

.price-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  white-space: nowrap;
}

.provider-info {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.provider-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.provider-logo:hover {
  transform: scale(1.1);
}

.provider-name {
  font-size: 12px;
  transform: translate(-18px, 36px) rotate(-77deg);
  transform-origin: top center;
  line-height: 14px;
  width: 90px;
  text-align: right;
  height: 40px;
  word-break: break-all;
  white-space: break-spaces;
  padding-right: 18px;
  color: var(--text-secondary);
}

.pricing-charts-container {
  padding: 6rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-primary);
  min-height: 100vh;
}

.update-time {
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: inline-block;
}

.chart-area::after {
  content: '';
  position: sticky;
  top: 0;
  right: 0;
  height: calc(100% - 10px);
  width: 60px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.chart-area.has-scroll::after {
  opacity: 1;
}

@keyframes scrollHint {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

.scroll-hint-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: scrollHint 1.5s infinite;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-hint:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.chart-area::-webkit-scrollbar {
  height: 8px;
  z-index: 10;
}

.chart-area::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.chart-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.chart-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.score-bar {
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
  width: 40px;
  margin: 0 10px;
  border-radius: 4px;
  position: relative;
  transition: opacity 0.3s ease;
}

.tab-ranking-charts {
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
  gap: 1px;
  background: #f5f5f5;
  padding: 0.5rem;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #eee;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.tab-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.tab-button.active {
  background: #fff;
  color: #1a73e8;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-content {
  padding: 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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