/* Crypto Widget Styles */

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .widget {
    margin: 8px 0;
    padding: 16px;
  }
  
  .price-widget {
    gap: 12px;
  }
  
  .coin-icon {
    width: 40px;
    height: 40px;
  }
  
  .coin-name {
    font-size: 16px;
  }
  
  .coin-symbol {
    font-size: 12px;
  }
  
  .price-value {
    font-size: 20px;
  }
  
  .price-change {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  /* Chart widget mobile */
  .chart-widget {
    padding: 16px;
  }
  
  .chart-header h3 {
    font-size: 16px;
  }
  
  .time-selector {
    gap: 4px;
  }
  
  .time-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .chart-container {
    height: 150px;
    margin-top: 16px;
  }
  
  /* News widget mobile */
  .news-item {
    padding: 12px;
  }
  
  .news-title {
    font-size: 14px;
  }
  
  .news-meta {
    font-size: 11px;
  }
  
  /* Market stats mobile */
  .market-stats {
    gap: 12px;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  /* Portfolio widget mobile */
  .portfolio-item {
    padding: 12px;
  }
  
  .token-info {
    gap: 8px;
  }
  
  .token-icon {
    width: 32px;
    height: 32px;
  }
  
  .token-name {
    font-size: 14px;
  }
  
  .token-amount {
    font-size: 12px;
  }
  
  .token-value {
    font-size: 14px;
  }
  
  .token-change {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .widget {
    border-radius: 12px;
    padding: 12px;
  }
  
  .widget h3 {
    font-size: 16px;
  }
  
  /* Hide less important elements on very small screens */
  .coin-symbol {
    display: none;
  }
  
  .news-source {
    display: none;
  }
}

/* Base widget container */
.widget {
  background: rgba(17, 25, 40, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
  animation: widgetSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Price ticker widget */
.price-widget {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coin-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.price-info {
  flex: 1;
}

.coin-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.coin-symbol {
  font-size: 14px;
  color: #9ca3af;
  text-transform: uppercase;
}

.price-data {
  text-align: right;
}

.current-price {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.price-change {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
}

.price-change.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.price-change-icon {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.price-change.positive .price-change-icon {
  border-bottom: 6px solid #10b981;
}

.price-change.negative .price-change-icon {
  border-top: 6px solid #ef4444;
}

/* Chart widget */
.chart-widget {
  padding: 20px;
  min-height: 400px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.chart-controls {
  display: flex;
  gap: 8px;
}

.chart-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.chart-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chart-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.chart-container {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  padding: 16px;
  margin-bottom: 16px;
}

.chart-stats {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Market data widget */
.market-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.market-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

/* Trending coins widget */
.trending-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-header {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.trending-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.trending-coin-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trending-rank {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  min-width: 20px;
}

/* Loading state */
.widget-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.widget-loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: widgetSpin 0.8s linear infinite;
}

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

/* Individual Tweet Widget */
.tweet-widget {
  background: rgba(20, 25, 40, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  animation: slideUp 0.4s ease-out;
}

.tweet-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tweet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweet-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.tweet-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tweet-author-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 14px;
}

.tweet-author-handle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.tweet-time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.tweet-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.tweet-hashtag {
  color: #60a5fa;
  cursor: pointer;
}

.tweet-hashtag:hover {
  text-decoration: underline;
}

.tweet-mention {
  color: #a78bfa;
  cursor: pointer;
}

.tweet-mention:hover {
  text-decoration: underline;
}

.tweet-link {
  color: #60a5fa;
  text-decoration: none;
}

.tweet-link:hover {
  text-decoration: underline;
}

.tweet-metrics {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tweet-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.metric-icon {
  font-size: 14px;
}

/* Tweet Widget Styles - Glassy Modern Look */
.tweets-widget {
  background: rgba(17, 25, 40, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
  animation: widgetSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tweets-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tweets-widget-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tweets-widget-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #1da1f2 0%, #60c5ff 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.tweets-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tweet-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tweet-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(29, 161, 242, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tweet-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29, 161, 242, 0.1);
}

.tweet-item:hover::before {
  opacity: 1;
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.2) 0%, rgba(29, 161, 242, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1da1f2;
  font-weight: 600;
  flex-shrink: 0;
}

.tweet-author {
  flex: 1;
  min-width: 0;
}

.author-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  width: 16px;
  height: 16px;
  background: #1da1f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}

.author-handle {
  color: #9ca3af;
  font-size: 13px;
}

.tweet-time {
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.tweet-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: break-word;
}

.tweet-metrics {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  font-size: 13px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.metric-item:hover {
  color: #1da1f2;
  transform: translateY(-1px);
}

.metric-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sentiment-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sentiment-badge.bullish {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sentiment-badge.bearish {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sentiment-badge.neutral {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Tweet loading animation */
.tweet-item.loading {
  background: rgba(255, 255, 255, 0.03);
  animation: tweetsLoading 1.5s ease-in-out infinite;
}

@keyframes tweetsLoading {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Empty state */
.tweets-empty {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}

.tweets-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.tweets-empty-text {
  font-size: 14px;
}

/* Tweet Actions and Links */
.tweet-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tweet-link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(29, 161, 242, 0.1);
  border: 1px solid rgba(29, 161, 242, 0.2);
  border-radius: 20px;
  color: #1da1f2;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tweet-link-button:hover {
  background: rgba(29, 161, 242, 0.2);
  border-color: rgba(29, 161, 242, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.15);
}

/* Tweet Images */
.tweet-images {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.tweet-images.single {
  grid-template-columns: 1fr;
}

.tweet-images.double {
  grid-template-columns: repeat(2, 1fr);
}

.tweet-images.multiple {
  grid-template-columns: repeat(2, 1fr);
}

.tweet-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tweet-image-container:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tweet-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

.tweet-images.single .tweet-image {
  max-height: 400px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.5);
}

/* Retweet Indicator */
.tweet-retweet-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(34, 197, 94, 0.8);
  font-size: 12px;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
  width: fit-content;
}

.tweet-retweet-indicator svg {
  width: 14px;
  height: 14px;
}

/* Relevance Score Badge */
.tweet-relevance-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* Compact Tweet Styles */
.tweets-widget.compact {
  max-width: 600px;
  background: rgba(13, 17, 23, 0.95);
  /* Ensure widget doesn't cut off content */
  overflow: visible;
  height: auto;
}

.tweets-widget.compact .tweets-container {
  gap: 8px;
  max-height: 600px; /* Increased height for better visibility */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.tweets-widget.compact .tweet-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  /* Ensure full height display */
  min-height: auto;
  height: auto;
  overflow: visible;
}

.tweets-widget.compact .tweet-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(29, 161, 242, 0.2);
}

.tweets-widget.compact .tweet-header {
  gap: 6px;
  margin-bottom: 4px;
}

.tweets-widget.compact .tweet-avatar {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.tweets-widget.compact .author-name {
  font-size: 12px;
  font-weight: 500;
}

.tweets-widget.compact .author-handle {
  font-size: 11px;
}

.tweets-widget.compact .tweet-time {
  font-size: 11px;
}

.tweets-widget.compact .tweet-content {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
  /* Ensure full content is displayed */
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  overflow: visible;
  max-height: none;
  height: auto;
}

.tweets-widget.compact .tweet-metrics {
  gap: 12px;
  padding-top: 6px;
  margin-top: 6px;
}

.tweets-widget.compact .metric-item {
  font-size: 11px;
  gap: 4px;
}

.tweets-widget.compact .tweet-images {
  margin-top: 6px;
  gap: 4px;
  overflow: visible;
  height: auto;
}

.tweets-widget.compact .tweet-image {
  max-height: 120px;
  border-radius: 4px;
}

.tweets-widget.compact .tweet-retweet-indicator {
  font-size: 10px;
  padding: 2px 6px;
  margin-bottom: 4px;
}

.tweets-widget.compact .tweet-actions {
  margin-top: 6px;
  padding-top: 6px;
}

.tweets-widget.compact .tweet-link-button {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
}

.tweets-widget.compact .expert-badge {
  padding: 2px 6px;
  font-size: 10px;
  margin-left: 4px;
}

/* Scrollbar for compact tweets */
.tweets-widget.compact .tweets-container::-webkit-scrollbar {
  width: 8px;
}

.tweets-widget.compact .tweets-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 4px 0;
}

.tweets-widget.compact .tweets-container::-webkit-scrollbar-thumb {
  background: rgba(29, 161, 242, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tweets-widget.compact .tweets-container::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 161, 242, 0.5);
}

/* Data Source Badge */
.data-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-source-badge.real {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.data-source-badge:not(.real) {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* News Widget Styles */
.news-widget {
  background: rgba(30, 30, 45, 0.6);
  border-color: rgba(100, 100, 255, 0.1);
  max-width: 700px;
}

.news-widget .widget-header {
  padding: 20px;
  border-bottom: 1px solid rgba(100, 100, 255, 0.1);
}

.news-widget .widget-header h3 {
  margin: 0;
  color: #e0e0e0;
  font-size: 20px;
}

.news-container {
  padding: 15px;
}

.news-item {
  background: rgba(20, 20, 35, 0.4);
  border: 1px solid rgba(100, 100, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.news-item:hover {
  border-color: rgba(100, 100, 255, 0.3);
  background: rgba(20, 20, 35, 0.6);
  transform: translateY(-2px);
}

.news-header {
  margin-bottom: 12px;
}

.news-title {
  color: #e0e0e0;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #888;
}

.news-source {
  color: #a0a0ff;
  font-weight: 500;
}

.news-summary {
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.news-link {
  color: #8080ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: #a0a0ff;
}

/* Deep Analysis Widget */
.deep-analysis-widget {
  background: rgba(30, 30, 45, 0.8);
  border-color: rgba(255, 215, 0, 0.3);
  max-width: 800px;
  margin: 20px 0;
}

.deep-analysis-widget .widget-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deep-analysis-widget .widget-header h3 {
  margin: 0;
  color: #ffd700;
  font-size: 22px;
}

.analysis-time {
  color: #888;
  font-size: 14px;
}

.analysis-content {
  padding: 20px;
}

.analysis-section {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(20, 20, 35, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(100, 100, 255, 0.1);
}

.analysis-section h4 {
  margin: 0 0 15px 0;
  color: #e0e0e0;
  font-size: 18px;
}

.sentiment-indicator {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 15px;
}

.sentiment-indicator.positive {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.sentiment-indicator.negative {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.sentiment-indicator.neutral {
  background: rgba(156, 163, 175, 0.2);
  border: 1px solid rgba(156, 163, 175, 0.4);
  color: #9ca3af;
}

.sentiment-label {
  text-transform: capitalize;
  font-size: 16px;
}

.sentiment-score {
  font-size: 20px;
}

.sentiment-breakdown {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #d0d0d0;
}

.sentiment-breakdown .positive {
  color: #10b981;
}

.sentiment-breakdown .negative {
  color: #ef4444;
}

.sentiment-breakdown .neutral {
  color: #9ca3af;
}

.trending-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 20px;
  color: #93bbfc;
  font-size: 14px;
  font-weight: 500;
}

.news-themes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(100, 100, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(100, 100, 255, 0.1);
}

.theme-name {
  color: #e0e0e0;
  font-weight: 500;
}

.theme-count {
  color: #888;
  font-size: 14px;
}

.insights-list,
.recommendations-list {
  margin: 0;
  padding-left: 20px;
  color: #d0d0d0;
  line-height: 1.8;
}

.insights-list li,
.recommendations-list li {
  margin-bottom: 8px;
}

.recommendations-list {
  color: #ffd700;
}

/* Error state */
.widget-error {
  text-align: center;
  padding: 24px;
  color: #ef4444;
}

/* Action buttons */
.widget-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.widget-button {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.widget-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  transform: translateY(-1px);
}

.widget-button.primary {
  background: linear-gradient(135deg, #ffffff 0%, #DCE1FF 100%);
  color: #1b212d;
}

/* Sparkline */
.sparkline {
  width: 100px;
  height: 40px;
  margin-left: auto;
}

/* Research widget */
.research-widget {
  padding: 20px;
}

.research-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.research-icon {
  font-size: 24px;
}

.research-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.research-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.research-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.research-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.link-icon {
  font-size: 16px;
}

.link-name {
  flex: 1;
  font-weight: 500;
}

.link-arrow {
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.research-link:hover .link-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.research-tips {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.research-tips h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.research-tips ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.research-tips li {
  margin-bottom: 6px;
}

/* Activity widget */
.activity-widget {
  padding: 20px;
  transition: opacity 0.3s ease;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.activity-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: activitySpin 1s linear infinite;
}

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

.activity-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.activity-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-steps-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.activity-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.activity-step.active,
.activity-step.completed {
  opacity: 1;
}

.step-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.activity-step.active .step-indicator {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  animation: pulse 2s ease-in-out infinite;
}

.activity-step.completed .step-indicator {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.step-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.activity-message {
  margin-top: 16px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
}

/* Progress Indicator */
.progress-indicator {
  margin-top: 8px;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.activity-step.active .progress-indicator {
  display: block;
}

.activity-step:not(.active) .progress-indicator {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .market-widget {
    grid-template-columns: 1fr;
  }
  
  .price-widget {
    flex-wrap: wrap;
  }
  
  .widget {
    padding: 16px;
  }
  
  .research-links {
    grid-template-columns: 1fr;
  }
}

/* Technical Analysis Widget */
.technical-analysis-widget {
  padding: 20px;
}

.ta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ta-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.ta-price {
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
}

.ta-chart-container {
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.ta-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.levels-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
}

.level-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 13px;
}

.level-item.resistance {
  border-left: 3px solid #ef4444;
}

.level-item.support {
  border-left: 3px solid #22c55e;
}

.level-strength {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
}

.level-strength.strong {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.level-strength.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.ta-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.indicator-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  text-align: center;
}

.indicator-label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.indicator-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.indicator-value.overbought {
  color: #ef4444;
}

.indicator-value.oversold {
  color: #22c55e;
}

.indicator-value.neutral {
  color: #9ca3af;
}

.indicator-value.bullish {
  color: #22c55e;
}

.indicator-value.bearish {
  color: #ef4444;
}

.indicator-signal {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
}

/* Volume Analysis Widget */
.volume-analysis-widget {
  padding: 20px;
}

.volume-header {
  margin-bottom: 20px;
}

.volume-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.volume-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  text-align: center;
}

.metric-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-status {
  font-size: 12px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.metric-status.high,
.metric-status.very.high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.metric-status.low {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.metric-status.above.average {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.volume-analysis {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.analysis-label {
  color: #9ca3af;
  font-size: 14px;
}

.analysis-value {
  font-size: 16px;
  font-weight: 600;
}

.signal-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.signal-box.bullish {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.signal-box.bearish {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.signal-box.neutral {
  background: rgba(156, 163, 175, 0.1);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.signal-icon {
  font-size: 24px;
}

.signal-text {
  font-size: 14px;
  font-weight: 500;
}

/* Chart Patterns Widget */
.chart-patterns-widget {
  padding: 20px;
}

.patterns-header {
  margin-bottom: 20px;
}

.patterns-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.no-patterns {
  text-align: center;
  padding: 40px 20px;
}

.no-patterns-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.no-patterns-text {
  color: #9ca3af;
  font-size: 14px;
}

.patterns-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pattern-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border-left: 4px solid;
}

.pattern-item.bullish {
  border-left-color: #22c55e;
}

.pattern-item.bearish {
  border-left-color: #ef4444;
}

.pattern-item.neutral {
  border-left-color: #9ca3af;
}

.pattern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pattern-name {
  font-size: 16px;
  font-weight: 600;
}

.pattern-confidence {
  font-size: 12px;
  color: #9ca3af;
}

.pattern-description {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 8px;
}

.pattern-level {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

/* Technical Analysis Detailed */
.ta-timeframe-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid rgba(251, 191, 36, 0.5);
  border-radius: 12px;
  color: #fbbf24;
  font-size: 0.95em;
  font-weight: 500;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
  50% {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  }
}

.ta-timeframe-note .info-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.ta-detailed-analysis {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ta-detailed-analysis h4 {
  margin-bottom: 16px;
  color: #f3f4f6;
  font-size: 1.1em;
}

.analysis-content {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.analysis-content p {
  margin-bottom: 12px;
  text-align: left;
}

/* Gas Tracker Widget */
.gas-tracker-widget {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  min-width: 400px;
}

.gas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gas-updated {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
}

.gas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.gas-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.gas-option.recommended {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.gas-speed {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.gas-gwei {
  font-size: 1.4em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.gas-usd {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.gas-time {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
}

.gas-recommended {
  margin-top: 8px;
  font-size: 0.8em;
  color: #10b981;
  font-weight: 500;
}

.gas-info {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 12px;
}

.gas-note {
  font-size: 0.85em;
  color: rgba(251, 191, 36, 0.8);
  padding: 12px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Token Security Widget */
.token-security-widget {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  min-width: 450px;
}

.security-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.risk-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

.risk-badge.high-risk {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.risk-badge.medium-risk {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.risk-badge.low-risk {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.security-score {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 4px solid;
}

.score-circle.high-risk {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.score-circle.medium-risk {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.score-circle.low-risk {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.score-value {
  font-size: 2em;
  font-weight: 700;
  color: #fff;
}

.score-label {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

.security-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.check-item.safe {
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.check-item.warning {
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.check-item.danger {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.check-icon {
  font-size: 1.2em;
}

.check-label {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
}

.security-details {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
}

.detail-value {
  color: #fff;
  font-weight: 500;
}

.security-recommendations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recommendation {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85em;
  border: 1px solid;
}

.recommendation.critical {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.recommendation.warning {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.recommendation.info {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #3b82f6;
}

/* DeFi Yields Widget */
.defi-yields-widget {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  min-width: 500px;
}

.yields-header {
  margin-bottom: 20px;
}

.yields-summary {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.yields-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yield-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.yield-item.best {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

.yield-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.yield-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.yield-protocol {
  display: flex;
  flex-direction: column;
}

.protocol-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
}

.protocol-chain {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: capitalize;
}

.yield-apy {
  font-size: 1.5em;
  font-weight: 700;
}

.yield-apy.high {
  color: #10b981;
}

.yield-apy.normal {
  color: #fff;
}

.yield-details {
  display: flex;
  gap: 16px;
  font-size: 0.85em;
  margin-bottom: 8px;
}

.yield-type {
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}

.yield-risk {
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 500;
}

.risk-low {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.risk-medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.risk-high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.yield-tvl {
  color: rgba(255, 255, 255, 0.6);
}

.yield-rewards {
  font-size: 0.85em;
  color: rgba(147, 51, 234, 0.8);
}

.yield-pool-name {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* NFT Stats Widget */
.nft-stats-widget {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  min-width: 450px;
}

.nft-header {
  margin-bottom: 20px;
}

.nft-contract {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.nft-main-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.main-stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.nft-grid-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.grid-stat {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.nft-message {
  padding: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
}

/* Portfolio Widget */
.portfolio-widget {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  min-width: 550px;
  max-width: 700px;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.portfolio-address {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  font-family: monospace;
}

.portfolio-total {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
}

.total-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.value-change {
  font-size: 1.1em;
  font-weight: 500;
}

.value-change.positive {
  color: #10b981;
}

.value-change.negative {
  color: #ef4444;
}

.portfolio-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.breakdown-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.breakdown-label {
  display: block;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.breakdown-value {
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
}

.portfolio-chain {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-chain h4 {
  margin-bottom: 16px;
  color: #f3f4f6;
}

.chain-assets {
  margin-bottom: 16px;
}

.asset-item {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
}

.asset-name {
  font-weight: 500;
  color: #fff;
}

.asset-balance {
  text-align: right;
  color: rgba(255, 255, 255, 0.8);
}

.asset-value {
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
}

.chain-nfts, .chain-defi {
  margin-top: 16px;
}

.chain-nfts h5, .chain-defi h5 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

.nft-item, .defi-position {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.9em;
}

.nft-collection, .defi-protocol {
  color: rgba(255, 255, 255, 0.8);
}

.nft-value, .defi-type {
  color: rgba(255, 255, 255, 0.6);
}

.health-factor {
  color: #10b981;
  font-size: 0.85em;
}

/* Narrative Widget Styles - Galaxy Theme */
.narrative-widget {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.narrative-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.narrative-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.narrative-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.narrative-status {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: #22c55e;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.narrative-status:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.narrative-reason {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.narrative-reason p {
  margin: 8px 0 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.narrative-contract {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.narrative-contract code {
  display: block;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-family: 'Fira Code', 'Monaco', monospace;
  font-size: 12px;
  color: rgba(147, 187, 252, 0.9);
  word-break: break-all;
  letter-spacing: 0.02em;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.narrative-metrics {
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.narrative-widget .metric-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.narrative-widget .metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.narrative-widget .metric-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.narrative-widget .metric-card:hover::before {
  opacity: 1;
}

.narrative-widget .metric-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 500;
}

.narrative-widget .metric-value {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  line-height: 1;
}

.narrative-widget .metric-change {
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.narrative-widget .metric-change.positive {
  color: #22c55e;
}

.narrative-widget .metric-change.negative {
  color: #ef4444;
}

.metric-value.status-clean {
  color: #22c55e;
}

.metric-value.status-moderate-risk {
  color: #f59e0b;
}

.metric-value.status-high-risk {
  color: #ef4444;
}

.narrative-security {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.security-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

.security-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.security-value {
  font-weight: 600;
  font-size: 13px;
}

.security-value.safe {
  color: #22c55e;
}

.security-value.danger {
  color: #ef4444;
}

.security-value.warning {
  color: #f59e0b;
}

.narrative-kol {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.kol-sentiment {
  margin: 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.kol-sentiment .bullish {
  color: #22c55e;
  font-weight: 600;
}

/* Additional Galaxy Theme Enhancements for Narrative Widget */
.narrative-widget * {
  position: relative;
  z-index: 1;
}

/* Subtle glow effect for important elements */
.narrative-widget .metric-value,
.narrative-widget .narrative-status {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Smooth transitions for all interactive elements */
.narrative-widget [class*="item"],
.narrative-widget [class*="card"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced visual hierarchy */
.narrative-widget .metric-change {
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  opacity: 0.9;
}

/* Refined color palette for status indicators */
.narrative-widget .positive,
.narrative-widget .bullish,
.narrative-widget .safe {
  color: rgba(34, 197, 94, 0.9);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.narrative-widget .negative,
.narrative-widget .bearish,
.narrative-widget .danger {
  color: rgba(239, 68, 68, 0.9);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.narrative-widget .warning,
.narrative-widget .moderate-risk {
  color: rgba(245, 158, 11, 0.9);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Ensure readability with proper contrast */
.narrative-widget p,
.narrative-widget .description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .narrative-widget {
    padding: 16px;
  }
  
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .narrative-widget .kol-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.kol-sentiment .neutral {
  color: #6b7280;
  font-weight: 600;
}

.kol-sentiment .bearish {
  color: #ef4444;
  font-weight: 600;
}

.narrative-widget .kol-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.narrative-widget .kol-item {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  align-items: center;
  transition: all 0.2s ease;
}

.narrative-widget .kol-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.kol-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kol-name {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
}

.kol-twitter {
  font-size: 12px;
  color: #60a5fa;
}

.kol-holding {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.kol-first-buy {
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.narrative-social, .narrative-kol-config {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.social-links, .kol-config-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.social-link, .kol-config-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  color: #60a5fa;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover, .kol-config-item:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

.social-link svg, .kol-config-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
EOF < /dev/null