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

  body {
    font-family: 'Arial', sans-serif;
    background: white;
    min-height: 100vh;
    color: #333;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  header {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
  }

  header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #07165a, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  header p {
    font-size: 1.1rem;
    color: #666;
  }

  .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
  }

  .card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
  }

  .card h2 {
    margin-bottom: 20px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
  }

  /* Fear and Greed Index Styles */
  .fng-container {
    text-align: center;
  }

  .fng-value {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #07165a, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .fng-classification {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
  }

  .fng-meter {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #ff4444, #ffaa00, #ffff00, #aaff00, #44ff44);
    border-radius: 10px;
    position: relative;
    margin: 20px 0;
  }

  .meter-bar {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 30px;
    background: #2d3748;
    border-radius: 2px;
    transition: left 0.5s ease;
  }

  .fng-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
  }

  /* Binance Ticker Styles */
  .ticker-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }

  .search-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
  }

  .ticker-controls input {
    flex: 1;
    padding: 10px;
    padding-right: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    background: white;
  }

  .ticker-controls input:focus {
    outline: none;
    border-color: #07165a;
  }

  .clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .clear-btn:hover {
    background-color: #f0f0f0;
    color: #666;
  }

  .ticker-controls button:not(.clear-btn) {
    padding: 10px 20px;
    background: #07165a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    white-space: nowrap;
  }

  .ticker-controls button:not(.clear-btn):hover {
    background: #5a67d8;
  }

  /* Crypto Table Styles */
  .crypto-table-container {
    overflow-x: auto;
  }

  .crypto-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
  }

  .crypto-table th {
    background-color: #f1f5f9;
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
  }

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

  .crypto-table th.sortable:hover {
    background-color: #e2e8f0;
  }

  .crypto-table th.sortable:after {
    content: ' ↕';
    font-size: 0.8rem;
    color: #999;
  }

  .crypto-table th.sorted-asc:after {
    content: ' ↑';
    color: #07165a;
  }

  .crypto-table th.sorted-desc:after {
    content: ' ↓';
    color: #07165a;
  }

  .crypto-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    background: white;
  }

  .crypto-table tr:hover td {
    background-color: #f7fafc;
  }

  .crypto-table .rank {
    font-weight: bold;
    color: #666;
    width: 50px;
    text-align: center;
  }

  .crypto-table .symbol {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
  }

  /* NEW: Clickable crypto symbol styling */
  .clickable-symbol {
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .clickable-symbol:hover {
    color: #07165a !important;
    text-decoration: underline;
    transform: scale(1.05);
  }

  .crypto-table .price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
  }

  .crypto-table .change {
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 4px;
    color: white;
    text-align: center;
  }

  .crypto-table .change.positive {
    background-color: #48bb78;
  }

  .crypto-table .change.negative {
    background-color: #f56565;
  }

  .crypto-table .volume {
    color: #666;
    font-size: 0.95rem;
  }

  .crypto-table .loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
  }

  /* Combined DeFi News Card Styles */
  .defi-news-card {
    grid-column: 1 / -1;
    /* Take full width */
    max-height: 650px;
  }

  /* Tab Navigation Styles */
  .tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
  }

  .tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 0;
  }

  .tab-btn:hover {
    background: #f1f5f9;
    color: #2d3748;
  }

  .tab-btn.active {
    color: #07165a;
    border-bottom-color: #07165a;
    background: #f1f5f9;
  }

  /* Tab Content Styles */
  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  /* Tweets Container */
  .tweets-container {
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
  }

  .tweet-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
  }

  .tweet-item:last-child {
    border-bottom: none;
  }

  .tweet-item:hover {
    background: #f9f9f9;
  }

  .tweet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .tweet-header:hover {
    color: #07165a;
  }

  .tweet-header a {
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
  }

  .tweet-header a:hover {
    color: #07165a;
  }

  .tweet-author {
    font-weight: bold;
    color: #2d3748;
    font-size: 0.95rem;
  }

  .tweet-username {
    color: #666;
    font-size: 0.85rem;
    margin-left: 8px;
  }

  .tweet-time {
    color: #999;
    font-size: 0.8rem;
  }

  .tweet-content {
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 10px;
    word-wrap: break-word;
  }

  .tweet-content a {
    color: #07165a;
    text-decoration: none;
  }

  .tweet-content a:hover {
    text-decoration: underline;
  }

  .loading-tweets {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
  }

  /* News Container */
  .news-container {
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
  }

  .news-article {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
  }

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

  .news-article:hover {
    background: #f9f9f9;
  }

  .news-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .news-title:hover {
    color: #07165a;
  }

  .news-title a {
    color: inherit;
    text-decoration: none;
  }

  .news-title a:hover {
    color: #07165a;
  }

  .news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .news-topic {
    font-weight: bold;
    color: #764ba2;
  }

  .news-time {
    color: #999;
  }

  .news-sentiment {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
  }

  .news-sentiment.positive {
    background: #c6f6d5;
    color: #22543d;
  }

  .news-sentiment.negative {
    background: #fed7d7;
    color: #742a2a;
  }

  .news-sentiment.neutral {
    background: #e2e8f0;
    color: #4a5568;
  }

  .news-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
    word-wrap: break-word;
  }

  .loading-news {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
  }

  .error-message,
  .error-message-news {
    text-align: center;
    padding: 20px;
    color: #f56565;
    background: #fed7d7;
    border-radius: 6px;
    margin: 10px;
  }

  /* Scrollbar styling */
  .tweets-container::-webkit-scrollbar,
  .news-container::-webkit-scrollbar {
    width: 6px;
  }

  .tweets-container::-webkit-scrollbar-track,
  .news-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .tweets-container::-webkit-scrollbar-thumb,
  .news-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
  }

  .tweets-container::-webkit-scrollbar-thumb:hover,
  .news-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }

  .last-updated {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
  }

  .refresh-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #07165a, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .refresh-btn:hover {
    opacity: 0.9;
  }

  @media (max-width: 768px) {
    .dashboard {
      grid-template-columns: 1fr;
    }

    header h1 {
      font-size: 2rem;
    }

    .fng-value {
      font-size: 3rem;
    }

    .ticker-controls {
      flex-direction: column;
    }

    .ticker-controls button:not(.clear-btn) {
      width: 100%;
    }

    .crypto-table th,
    .crypto-table td {
      padding: 10px 8px;
      font-size: 0.9rem;
    }

    .defi-news-card {
      max-height: 500px;
    }

    .tweets-container,
    .news-container {
      max-height: 350px;
    }

    .tab-btn {
      font-size: 0.85rem;
      padding: 10px 15px;
    }

    .tweet-header,
    .news-meta {
      flex-direction: column;
      gap: 5px;
      align-items: flex-start;
    }
  }