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

:root {
  /* Cores Helsen IA - Preto + Amarelo Dourado */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-input: #1a1a1a;

  --gold-primary: #fbbf24;
  --gold-hover: #f59e0b;
  --gold-light: #fcd34d;
  --gold-dark: #d97706;

  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;

  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;

  --border-color: #1f1f1f;
  --border-hover: #2a2a2a;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.7);
  --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.4);
  --glow-gold: 0 0 20px rgba(251, 191, 36, 0.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ========== TOP BAR ========== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, #000000 100%);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
  z-index: 1000;
  padding: 15px 0;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.logo-helsen {
  height: 45px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
  transition: all 0.3s ease;
}

.logo-helsen:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

/* ========== HEADER ========== */
header {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 60px;
  padding: 60px 0 40px;
}

.hero-section {
  max-width: 900px;
  margin: 0 auto;
}

.logo-smartleads {
  height: 160px;
  max-width: 600px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
  transition: all 0.4s ease;
}

.logo-smartleads:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.6));
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.features-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.feature-badge i {
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.feature-badge:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* ========== FORM CARD ========== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-card:hover::before {
  opacity: 1;
}

.form-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1rem;
}

.form-group label i {
  font-size: 1.2rem;
  color: var(--gold-primary);
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.05rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
  background: var(--bg-secondary);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-hover) 100%);
  color: #000;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover:not(:disabled)::before {
  width: 400px;
  height: 400px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.btn-secondary {
  padding: 11px 22px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

#progressText {
  color: var(--text-secondary);
  font-weight: 600;
}

#progressPercent {
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: var(--bg-input);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
}

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

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

/* ========== STATUS MESSAGES ========== */
.status-message {
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

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

.status-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.status-message.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* ========== RESULTS ========== */
.results-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s ease;
  transition: all 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.results-section:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

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

.results-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-header h2 i {
  color: var(--gold-primary);
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.results-count {
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--gold-primary);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

#resultsTable {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-input);
}

#resultsTable thead {
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}

#resultsTable th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#resultsTable td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#resultsTable tbody tr {
  transition: all 0.2s ease;
}

#resultsTable tbody tr:hover {
  background: rgba(251, 191, 36, 0.08);
}

#resultsTable tbody tr.new-row {
  animation: highlightRow 1s ease;
}

@keyframes highlightRow {
  0%, 100% { background: transparent; }
  50% { background: rgba(251, 191, 36, 0.2); }
}

#resultsTable td:first-child {
  color: var(--text-muted);
  font-weight: 700;
}

#resultsTable td:nth-child(2) {
  color: var(--text-primary);
  font-weight: 600;
}

#resultsTable td:nth-child(3) {
  color: var(--gold-primary);
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 80px;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.footer-tech {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .top-bar-content {
    padding: 0 20px;
  }

  .logo-helsen {
    height: 35px;
  }

  header {
    margin-top: 70px;
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .logo-smartleads {
    height: 110px;
  }

  .features-badges {
    gap: 12px;
  }

  .feature-badge {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .feature-badge i {
    font-size: 1.1rem;
  }

  .form-card {
    padding: 30px 25px;
  }

  .form-header h2 {
    font-size: 1.6rem;
  }

  .results-section {
    padding: 25px 20px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-header h2 {
    font-size: 1.5rem;
  }

  .results-actions {
    width: 100%;
    justify-content: space-between;
  }

  #resultsTable {
    font-size: 0.85rem;
  }

  #resultsTable th,
  #resultsTable td {
    padding: 12px 14px;
  }
}
