/* ================================================================
   American Ally Sales Academy 2.0 — Professional Stylesheet
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand — American Ally (red + navy) */
  --dark-blue:     #1B3A5C;
  --mid-blue:      #2E5F8A;
  --primary:       #C41E1E;
  --primary-hover: #991515;
  --light-blue-bg: #FEF2F2;

  /* Greens (scripts) */
  --green:         #16a34a;
  --green-light:   #dcfce7;
  --green-border:  #86efac;

  /* Oranges (objections) */
  --orange:        #ea580c;
  --orange-light:  #fff7ed;
  --orange-border: #fdba74;

  /* Neutrals */
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-hover:  #cbd5e1;
  --text:          #0f172a;
  --text-2:        #334155;
  --text-3:        #64748b;
  --text-4:        #94a3b8;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05);

  /* Layout */
  --sidebar-w:   272px;
  --topbar-h:    64px;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ================================================================
   LOGIN PAGE
   ================================================================ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-brand {
  background: linear-gradient(145deg, #0a1628 0%, #1B3A5C 55%, #8B1313 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(196,30,30,0.15);
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: 80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.login-brand-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.login-brand h1 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.login-brand h1 span {
  color: #FCA5A5;
}

.login-brand p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.login-brand-badge {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.login-brand-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.login-form-side {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-box {
  width: 100%;
  max-width: 380px;
}

.login-form-header {
  margin-bottom: 36px;
}

.login-form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.login-form-header p {
  font-size: 14px;
  color: var(--text-3);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,30,30,0.1);
}

.login-error {
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 12px;
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #991515, var(--primary));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  letter-spacing: 0.2px;
}

.btn-login:hover { opacity: 0.92; }
.btn-login:active { transform: scale(0.99); }

.login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-side { padding: 32px 24px; }
}

/* ================================================================
   APP SHELL
   ================================================================ */

.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0a1628 0%, #1B3A5C 100%);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-header {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.sidebar-wordmark {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}

.sidebar-logo-img {
  display: block;
  width: 168px;
  height: auto;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
}

.sidebar-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  letter-spacing: .5px;
  margin-top: 2px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0 16px;
}

.nav-section-label {
  padding: 16px 18px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.28);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 450;
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: #F87171;
  border-radius: 0 2px 2px 0;
}

.nav-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  transition: all .2s;
}

.nav-item.completed .nav-check {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.nav-num {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  width: 20px;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.nav-item-text { flex: 1; line-height: 1.35; }

/* ── Licensing dropdown nav ───────────────────── */
.nav-section-label.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 18px;
  user-select: none;
  transition: color .15s;
}
.nav-section-label.nav-dropdown-toggle:hover { color: rgba(255,255,255,.55); }
.nav-dropdown-arrow { font-size: 13px; transition: transform .2s; opacity: .75; }
.nav-dropdown-arrow.open { transform: rotate(90deg); }
.nav-dropdown-items { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.nav-dropdown-items.open { max-height: 500px; }
.nav-item.nav-sub {
  padding-left: 30px;
  font-size: 12px;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11.5px;
  color: rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer a {
  color: rgba(255,255,255,.3);
  transition: color .15s;
}

.sidebar-footer a:hover { color: rgba(255,255,255,.6); text-decoration: none; }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }

.topbar-breadcrumb {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-blue);
}

.topbar-sep {
  color: var(--text-4);
  font-size: 14px;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.progress-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 100px;
  padding: 5px 12px 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #991515;
}

.progress-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1;
  transition: background .15s;
}

.hamburger:hover { background: var(--bg); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
  backdrop-filter: blur(2px);
}

/* ================================================================
   PAGE CONTENT
   ================================================================ */

.page-content {
  padding: 36px 40px;
  max-width: 900px;
}

/* ================================================================
   DASHBOARD
   ================================================================ */

.dash-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1B3A5C 55%, #8B1313 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.dash-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.dash-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 120px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(196,30,30,.2);
}

.dash-hero-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FCA5A5;
  margin-bottom: 10px;
}

.dash-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.dash-hero p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* Stat cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
}

.stat-icon.blue { background: #eff6ff; }
.stat-icon.green { background: #f0fdf4; }
.stat-icon.orange { background: #fff7ed; }
.stat-icon.purple { background: #faf5ff; }

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-blue);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #991515, var(--primary));
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* Quick links */
.section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  box-shadow: var(--shadow-sm);
}

.quick-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,30,30,.06), var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.quick-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.quick-card-icon.green { background: #dcfce7; }
.quick-card-icon.blue  { background: #eff6ff; }
.quick-card-icon.orange { background: #fff7ed; }

.quick-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.quick-card-desc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.4;
}

/* Section card (module list) */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafbfc;
}

.sec-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #991515;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 100px;
  padding: 3px 10px;
}

.section-card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.module-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
}

.module-row:last-child { border-bottom: none; }

.module-row:hover {
  background: #fafbfd;
  text-decoration: none;
}

.mod-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-4);
  width: 24px;
  flex-shrink: 0;
}

.mod-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--bg);
}

.mod-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
}

.mod-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.mod-status.done {
  background: #dcfce7;
  color: #15803d;
}

.mod-status.todo {
  background: var(--bg);
  color: var(--text-4);
  border: 1px solid var(--border);
}

.mod-arrow {
  color: var(--text-4);
  font-size: 14px;
  flex-shrink: 0;
}

/* ================================================================
   MODULE HEADER
   ================================================================ */

.module-header {
  margin-bottom: 32px;
}

.module-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 8px;
}

.module-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark-blue);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.module-meta {
  font-size: 14px;
  color: var(--text-3);
  max-width: 600px;
  line-height: 1.6;
}

.complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 1px 2px rgba(22,163,74,.25), 0 4px 12px rgba(22,163,74,.2);
}

.complete-btn:hover { opacity: .88; transform: translateY(-1px); }
.complete-btn:active { transform: scale(.98); }
.complete-btn.done {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  box-shadow: none;
  cursor: default;
}
.complete-btn.done:hover { opacity: 1; transform: none; }

/* ================================================================
   CONTENT ELEMENTS
   ================================================================ */

.content-section { margin-bottom: 36px; }

.content-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-blue-bg);
  letter-spacing: -.2px;
}

.content-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
  margin-top: 22px;
}

.content-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
}

.content-section p { margin-bottom: 12px; color: var(--text-2); }
.content-section ul, .content-section ol { margin-left: 20px; margin-bottom: 14px; }
.content-section li { margin-bottom: 5px; color: var(--text-2); line-height: 1.6; }
.content-section strong { color: var(--text); }

/* Script box */
.script-box {
  background: #f0fdf4;
  border: 1px solid var(--green-border);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 14px 0;
  font-style: italic;
  color: #14532d;
  line-height: 1.75;
  font-size: 14px;
}

.script-box strong {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}

/* Objection box */
.objection-box {
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 16px 0;
}

.objection-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 4px;
}

.objection-title {
  font-size: 15px;
  font-weight: 700;
  color: #7c2d12;
  margin-bottom: 10px;
}

.objection-script {
  font-style: italic;
  color: #9a3412;
  line-height: 1.72;
  font-size: 14px;
  margin-bottom: 10px;
}

.objection-tip {
  font-size: 12.5px;
  color: #9a3412;
  padding-top: 10px;
  border-top: 1px solid rgba(234,88,12,.2);
}

.objection-tip strong { color: var(--orange); }

/* Tip box */
.tip-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13.5px;
  color: #1e3a5f;
  line-height: 1.65;
}

.tip-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 5px;
}

/* Warning box */
.warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.65;
}

/* Compliance box */
.compliance-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 14px 0;
}

.compliance-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e11d48;
  margin-bottom: 8px;
}

.compliance-box ul { margin-left: 18px; color: #881337; }
.compliance-box li { margin-bottom: 5px; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.data-table thead tr { background: var(--dark-blue); }

.data-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.55;
}

.data-table td:first-child { font-weight: 600; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbfd; }

/* Step cards */
.step-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}

.step-card:hover { box-shadow: var(--shadow-md); }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-blue), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.step-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.step-body p, .step-body ul { font-size: 13.5px; color: var(--text-2); }
.step-body ul { margin-left: 18px; }
.step-body li { margin-bottom: 4px; }

/* Profile cards */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}

.profile-card:hover { box-shadow: var(--shadow-md); }

.profile-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.profile-card p { font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }

/* Pipeline stages */
.pipeline-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pipeline-stage {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.pipeline-stage:last-child { border-bottom: none; }

.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.stage-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  width: 180px;
  flex-shrink: 0;
}

.stage-desc { font-size: 13px; color: var(--text-3); }

/* Checklist */
.checklist { list-style: none !important; margin-left: 0 !important; }

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-2);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-hover);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Nav buttons */
.module-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light-blue-bg);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-nav.primary {
  background: linear-gradient(135deg, var(--dark-blue), var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(37,99,235,.2), 0 4px 12px rgba(37,99,235,.15);
}

.btn-nav.primary:hover {
  color: #fff;
  opacity: .9;
  box-shadow: 0 1px 2px rgba(37,99,235,.3), 0 6px 16px rgba(37,99,235,.2);
}

/* ================================================================
   SCRIPT REFERENCE PAGES
   ================================================================ */

.script-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.script-step-header {
  background: linear-gradient(135deg, #0f2d4a, #1F4E79);
  color: #fff;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .1px;
}

.script-step-header.orange-header {
  background: linear-gradient(135deg, #7c2d12, #c2410c);
}

.snum {
  background: rgba(255,255,255,.18);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}

.script-label {
  padding: 6px 18px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark-blue);
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--surface);
  border-bottom: none;
}

.script-text {
  background: #f0fdf4;
  padding: 14px 18px;
  font-style: italic;
  color: #14532d;
  line-height: 1.75;
  font-size: 14px;
  border-bottom: 1px solid #bbf7d0;
}

.script-text:last-child { border-bottom: none; }

.script-text.orange-bg {
  background: var(--orange-light);
  color: #9a3412;
  border-bottom-color: #fed7aa;
}

.script-note {
  padding: 10px 18px;
  font-size: 12.5px;
  color: var(--text-3);
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.script-note:last-child { border-bottom: none; }

/* ================================================================
   BADGES + UTILITIES
   ================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-blue   { background: #eff6ff; color: var(--dark-blue); border: 1px solid #bfdbfe; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-orange { background: #fff7ed; color: var(--orange); }
.badge-red    { background: #fff1f2; color: #be123c; }

.text-muted   { color: var(--text-3); font-size: 12.5px; }
.divider      { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ================================================================
   SALES FUNNEL PAGE
   ================================================================ */

.funnel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 28px 0;
}

.funnel-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  height: 46px;
  letter-spacing: -.1px;
  text-align: center;
  padding: 0 20px;
  transition: opacity .2s;
  cursor: default;
}

.funnel-tier:hover { opacity: .88; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 272px; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .sidebar-overlay.active { display: block; }

  .main-content { margin-left: 0; }
  .hamburger { display: flex; }

  .topbar { padding: 0 16px; }
  .page-content { padding: 20px 16px; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .step-card { flex-direction: column; gap: 12px; }

  .dash-hero { padding: 24px 22px; }
  .dash-hero h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PRINT
   ================================================================ */

@media print {
  .sidebar, .topbar, .module-nav-buttons, .complete-btn, .hamburger { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; max-width: 100%; }
  .script-box, .objection-box { break-inside: avoid; }
  .script-step { break-inside: avoid; }
  body { background: #fff; }
}
