.company-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay-content {
  background: rgba(65, 69, 84, 0.8);
  backdrop-filter: blur(10px);
  color: var(--color-text-primary);
  border-radius: 8px;
  width: 100%;
  max-width: 960px;
  height: 100%;
  max-height: 680px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.overlay-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.overlay-title {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 1000;
  color: var(--color-text-primary);
}

.price-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-primary);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.price-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-change.positive {
  color: #059669;
}

.price-change.negative {
  color: #dc2626;
}

.overlay-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.overlay-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-transform: capitalize;
  font-size: 14px;
  font-weight: 600;
}

.overlay-tab:hover {
  color: #616c7d;
}

.overlay-tab.active {
  color: #afc6f7;
  font-weight: 1000;
  border-bottom-color: #3b82f6;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-close:hover {
  opacity: 0.8;
}

.overlay-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.news-article {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.news-article:last-child {
  border-bottom: none;
}

.news-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
}

.news-title a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.news-title a:hover {
  text-decoration: underline;
}

.news-meta {
  font-size: 12px;
  color: #9ca3af;
}

.news-meta a {
  color: #9ca3af;
  text-decoration: none;
}

.company-info {
  line-height: 1.6;
  color: var(--color-text-primary);
}

.company-info p {
  margin-bottom: 16px;
}

.company-info a {
  color: #3b82f6;
  text-decoration: none;
}

.company-info a:hover {
  text-decoration: underline;
}

.buy-content {
  text-align: center;
  padding: 40px 20px;
}

.buy-content h3 {
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.buy-content p {
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.buy-content a {
  color: var(--color-text-primary);
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
}

.loading-message, .error-message {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .company-overlay {
    padding: 8px;
  }
  
  .overlay-content {
    max-height: calc(100vh - 16px);
  }
  
  .overlay-header {
    padding: 16px;
  }
  
  .overlay-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .price-row {
    gap: 16px;
  }
  
  .overlay-tab {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .overlay-body {
    padding: 16px;
  }
  
  .overlay-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Touch-friendly */
@media (pointer: coarse) {
  .overlay-tab {
    min-height: 44px;
  }
  
  .overlay-close {
    min-width: 44px;
    min-height: 44px;
  }
}
