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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1E293B;
  background: #F8FAFC;
  line-height: 1.6;
  padding-bottom: 60px;
}

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

/* Nav */
.nav {
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container { display: flex; align-items: center; gap: 16px; }
.nav-brand { font-size: 18px; font-weight: 800; color: #0F172A; text-decoration: none; }
.nav-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #4F46E5; background: rgba(79,70,229,0.1); padding: 4px 12px; border-radius: 100px; }

/* Header */
.page-header { padding: 32px 0 24px; }
.page-header h1 { font-size: 28px; font-weight: 800; color: #0F172A; margin-bottom: 6px; }
.page-header p { font-size: 15px; color: #64748B; }

/* Card */
.card {
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #0F172A; }
.card p { font-size: 14px; color: #64748B; margin-bottom: 12px; }
.card a { color: #4F46E5; font-weight: 600; }
.card code { background: #F1F5F9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Inputs */
.input, .textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #F8FAFC;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: #fff;
}

.textarea { resize: vertical; min-height: 80px; }

/* Drop Zone */
.drop-zone {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #FAFAFA;
}

.drop-zone:hover, .drop-zone.dragover { border-color: #4F46E5; background: #EEF2FF; }
.drop-icon { font-size: 36px; margin-bottom: 8px; }
.drop-zone p { font-size: 14px; color: #475569; margin-bottom: 0; }

.sample-link { display: inline-block; margin-top: 12px; font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #4F46E5;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,70,229,0.25);
  width: 100%;
  justify-content: center;
}

.btn-primary:hover { background: #4338CA; transform: translateY(-1px); }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-sm:hover { background: #E2E8F0; }

/* Lead Cards */
.lead-card {
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.lead-card.sent { opacity: 0.7; border-left: 4px solid #22C55E; }

.lead-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.lead-business {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}

.lead-person {
  font-size: 13px;
  color: #64748B;
  margin-top: 2px;
}

.lead-phone {
  font-size: 13px;
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
}

.lead-message {
  font-size: 14px;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,211,102,0.25);
}

.btn-send:hover { background: #1DA851; transform: translateY(-1px); }
.btn-send.sent { background: #94A3B8; box-shadow: none; }

.btn-copy {
  background: #F1F5F9;
  color: #475569;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover { background: #E2E8F0; }

/* Results */
.results-section { margin-top: 32px; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-header h2 { font-size: 20px; font-weight: 700; }

/* Loading */
#loadingIndicator { text-align: center; padding: 40px; color: #64748B; }

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #E2E8F0;
  border-top-color: #4F46E5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

.hidden { display: none !important; }

@media (max-width: 600px) {
  .lead-top { flex-direction: column; }
  .lead-actions { flex-direction: column; }
  .btn-send { width: 100%; justify-content: center; }
  .btn-copy { width: 100%; justify-content: center; }
}
