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

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --error: #ef4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.lead-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-divider span {
  padding: 0 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-loading {
  display: none;
}

.btn-primary.loading .btn-text {
  display: none;
}

.btn-primary.loading .btn-loading {
  display: inline;
}

.results {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.results.hidden {
  display: none;
}

section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-item {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.info-value {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
}

.mock-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.multi-value-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-value-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.multi-value-item .info-value {
  display: inline;
}

.email-grade {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.grade-a { background: #dcfce7; color: #166534; }
.grade-b { background: #f0fdf4; color: #15803d; }
.grade-c { background: #fef9c3; color: #854d0e; }
.grade-d { background: #fef3c7; color: #92400e; }
.grade-e, .grade-f { background: #fee2e2; color: #991b1b; }
.grade-n { background: #f1f5f9; color: #475569; }

.phone-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #e0e7ff;
  color: #3730a3;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.data-source {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.data-source:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.source-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.source-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.source-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.rocketreach-badge {
  background: #dbeafe;
  color: #1e40af;
}

.zoominfo-badge {
  background: #dcfce7;
  color: #166534;
}

.hunter-badge {
  background: #fef3c7;
  color: #92400e;
}

.hunter-verified-section,
.hunter-found-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.hunter-verified-section h4,
.hunter-found-section h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hunter-emails-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hunter-email-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 4px;
}

.hunter-email-item .email-address {
  font-size: 0.9rem;
}

.hunter-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 500;
}

.hunter-status.valid {
  background: #dcfce7;
  color: #166534;
}

.hunter-status.invalid {
  background: #fee2e2;
  color: #991b1b;
}

.hunter-status.accept_all {
  background: #fef3c7;
  color: #92400e;
}

.hunter-status.webmail {
  background: #dbeafe;
  color: #1e40af;
}

.hunter-status.disposable {
  background: #f3e8ff;
  color: #7c3aed;
}

.hunter-status.unknown {
  background: #f1f5f9;
  color: #64748b;
}

.rate-limit-notice {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.85rem;
  border-radius: 4px;
  text-align: center;
}

.zi-extra {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.mock-badge.hidden {
  display: none;
}

.outcomes-list {
  list-style: none;
}

.outcomes-list li {
  padding: 0.75rem 1rem;
  background: var(--bg);
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.outcomes-list li:last-child {
  margin-bottom: 0;
}

.email-preview {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.email-preview pre {
  font-family: inherit;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.95rem;
  line-height: 1.7;
}

.linkedin-draft {
  margin-top: 2rem;
}

.linkedin-preview {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.linkedin-preview p {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.loom-script {
  margin-top: 2rem;
}

.loom-preview {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.loom-preview pre {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.loom-personalization {
  margin-top: 1rem;
  background: #f0f4ff;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.loom-personalization pre {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
  color: #555;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-secondary.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.copy-text, .copied-text {
  display: none;
}

.btn-secondary.copied .copy-text {
  display: none;
}

.btn-secondary.copied .copied-text {
  display: inline;
}

.btn-secondary:not(.copied) .copy-text {
  display: inline;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.error.hidden {
  display: none;
}

.rate-limited-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 1.25rem 1.5rem;
  }
}

.lookalike-companies {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.lookalike-companies h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lookalike-companies .section-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.lookalike-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.lookalike-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: 8px;
}

.lookalike-name {
  font-weight: 500;
  color: var(--text);
}

.lookalike-website {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}

.lookalike-website:hover {
  text-decoration: underline;
}

.no-results {
  color: var(--text-muted);
  font-style: italic;
}
