* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      padding: 20px;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      background: white;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      padding: 30px;
    }

    .header {
      text-align: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 3px solid #667eea;
    }

    h1 {
      color: #2d3748;
      font-size: 2.5em;
      margin-bottom: 10px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .subtitle {
      color: #718096;
      font-size: 1.1em;
    }

    .nav-links {
      text-align: center;
      margin-bottom: 20px;
    }

    .nav-links a {
      display: inline-block;
      padding: 10px 20px;
      margin: 0 10px;
      background: #f7fafc;
      color: #667eea;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 600;
      transition: all 0.3s;
    }

    .nav-links a:hover {
      background: #667eea;
      color: white;
      transform: translateY(-2px);
    }

    .controls {
      display: flex;
      gap: 20px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      padding: 25px;
      background: #f7fafc;
      border-radius: 15px;
      margin-bottom: 30px;
    }

    button {
      padding: 14px 40px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    button:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

    button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .status-badge {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 14px;
    }

    .status-badge.scanning {
      background: #fef3c7;
      color: #92400e;
    }

    .status-badge.ready {
      background: #d1fae5;
      color: #065f46;
    }

    .status-badge.idle {
      background: #e5e7eb;
      color: #374151;
    }

    .stats-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
    }

    .stat-card {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 20px;
      border-radius: 12px;
      color: white;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .stat-label {
      font-size: 0.9em;
      opacity: 0.9;
      margin-bottom: 5px;
    }

    .stat-value {
      font-size: 2em;
      font-weight: 700;
    }

    .results-container {
      background: #f7fafc;
      padding: 20px;
      border-radius: 15px;
    }

    .results-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .results-header h2 {
      color: #2d3748;
      font-size: 1.5em;
    }

    .filter-input {
      padding: 10px 15px;
      border: 2px solid #e2e8f0;
      border-radius: 8px;
      font-size: 14px;
      width: 250px;
      transition: border-color 0.3s;
    }

    .filter-input:focus {
      outline: none;
      border-color: #667eea;
    }

    .results-table {
      width: 100%;
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .results-table table {
      width: 100%;
      border-collapse: collapse;
    }

    .results-table th {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 15px;
      text-align: left;
      font-weight: 600;
      font-size: 0.9em;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .results-table td {
      padding: 12px 15px;
      border-bottom: 1px solid #e2e8f0;
      color: #2d3748;
    }

    .results-table tr:hover {
      background: #f7fafc;
    }

    .symbol-link {
      color: #667eea;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s;
    }

    .symbol-link:hover {
      color: #764ba2;
      text-decoration: underline;
    }

    .bpr-badge {
      background: #a8a2ff;
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 0.85em;
    }

    .price-positive {
      color: #10b981;
      font-weight: 600;
    }

    .price-negative {
      color: #ef4444;
      font-weight: 600;
    }

    .loading {
      text-align: center;
      padding: 40px;
      color: #667eea;
    }

    .spinner {
      border: 4px solid #f3f4f6;
      border-top: 4px solid #667eea;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .no-data {
      text-align: center;
      padding: 40px;
      color: #718096;
      font-style: italic;
    }

    .status-indicator {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #48bb78;
      animation: pulse 2s infinite;
      margin-right: 8px;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.lang-switch {
  display: inline-flex;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-left: auto;
}
.lang-switch a {
  padding: 6px 14px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.04em;
}
.lang-switch a.active {
  background: #667eea;
  color: #fff;
}
.lang-switch a:hover:not(.active) {
  background: #edf2f7;
}
.site-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #718096;
  font-size: 0.9em;
  line-height: 1.6;
  text-align: center;
}
.site-footer a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
}
.info-section {
  margin-top: 32px;
  background: #f7fafc;
  padding: 24px;
  border-radius: 15px;
  border-top: 3px solid #667eea;
}
.info-section h2 {
  color: #2d3748;
  font-size: 1.3em;
  margin-bottom: 10px;
}
.info-section p, .info-section li {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 10px;
}
.info-section ul { padding-left: 20px; }
