/* Agent Bible 2.0 - Global Stylesheet v2.0 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #f8f9fa;
  --card: #ffffff;
  --muted: #6c757d;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --success: #198754;
  --primary-text: #212529;
  --heading-text: #111827;
  --border-color: #dee2e6;
  --maxw: 1200px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--primary-text);
  line-height: 1.7;
}

h1, h2, h3, h4, .module-title, summary, .header h1, .btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--heading-text);
}

.header {
  background: var(--card);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent);
}
.header a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.container {
  max-width: var(--maxw);
  margin: 2rem auto;
  padding: 0 1rem;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.25rem; color: var(--accent); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease-in-out;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4338ca; transform: translateY(-2px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #157347; transform: translateY(-2px); }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5c636a; }

/* Issue Page Specifics */
.module { margin-bottom: 2rem; }
.module-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.script-flow { padding-left: 0; }
.script-step {
  padding: 1.25rem;
  border-left: 5px solid var(--accent-light);
  margin-bottom: 1rem;
  background: #fdfdff;
  border-radius: 0 8px 8px 0;
}
.script-step h4 { margin: 0 0 0.75rem 0; color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.script-step p { white-space: pre-wrap; }
.script-step ul { padding-left: 20px; margin: 10px 0 0 0; }
.script-step li { margin-bottom: 8px; }

.rebuttal {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.rebuttal strong { display: block; margin-bottom: 0.5rem; font-family: 'Poppins', sans-serif; }
details {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
}
details summary {
  padding: 1rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--accent);
}
.troubleshooting-content { padding: 0 1.5rem 1.5rem 1.5rem; }
.troubleshooting-step img { max-width: 100%; border-radius: 6px; margin-top: 1rem; }

/* CRM Modal */
.modal-overlay { /* ... same as before ... */ }
.modal-content { /* ... same as before ... */ }
.form-group { /* ... same as before ... */ }
.modal-actions { /* ... same as before ... */ }