/* Dashboard layout */
.dash-main {
  min-height: calc(100vh - 73px);
}
.dash-section {
  padding: 60px 40px;
}
.dash-section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.dash-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.dash-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 8px;
  margin-top: 12px;
}
.dash-subtitle {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* Nav links */
.nav-links {
  margin-left: auto;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.15s;
}
.nav-link:hover,
.nav-link--active {
  color: var(--accent);
  border-color: var(--accent);
  background: #FFF9EB;
}
.nav-logo {
  text-decoration: none;
  color: var(--fg);
}

/* Launch card */
.launch-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 40px;
  max-width: 760px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 28px;
}
.launch-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}
.form-hint {
  font-weight: 400;
  color: var(--fg-muted);
}
.form-input,
.form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}
.form-textarea {
  resize: vertical;
}
.btn-primary {
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.launch-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.launch-result--success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.launch-result--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-alt); }

.td-name { min-width: 200px; }
.prospect-name { font-weight: 600; color: var(--fg); }
.prospect-meta { font-size: 0.8rem; color: var(--fg-muted); margin-top: 2px; }
.prospect-email { font-size: 0.8rem; color: var(--fg-muted); margin-top: 1px; }
.rate { color: var(--fg-muted); font-size: 0.8rem; margin-left: 4px; }
.ts { font-size: 0.8rem; color: var(--fg-muted); }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pending   { background: #F1F5F9; color: #64748B; }
.status-running   { background: #FFF9EB; color: #D97706; border: 1px solid #FDE68A; }
.status-completed { background: #ECFDF5; color: #065F46; }
.status-sent      { background: #EFF6FF; color: #1D4ED8; }
.status-failed    { background: #FEF2F2; color: #991B1B; }
.status-error     { background: #FEF2F2; color: #991B1B; }

/* Buttons */
.btn-ghost {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty/loading states */
.empty-state, .loading-state {
  padding: 40px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.error-state {
  padding: 20px;
  color: #991B1B;
  font-size: 0.9rem;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}
.pill-green  { background: #ECFDF5; color: #065F46; }
.pill-accent { background: #FFF9EB; color: #D97706; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-box {
  background: var(--card-bg);
  border-radius: 6px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-alt); }
.modal-content {
  overflow-y: auto;
  padding: 24px 28px;
}

/* Prospect list in modal */
.prospect-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prospect-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prospect-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prospect-subject {
  font-size: 0.85rem;
  color: var(--fg);
}
.subject-label, .hook-label {
  font-weight: 600;
  color: var(--fg-muted);
  font-size: 0.8rem;
}
.prospect-hook {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
  .dash-section { padding: 40px 24px; }
  .launch-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
