:root {
  /* Brand Core - TopScore Luxury Emerald & Midnight Slate */
  --brand-emerald-50: #ecfdf5;
  --brand-emerald-100: #d1fae5;
  --brand-emerald-200: #a7f3d0;
  --brand-emerald-300: #6ee7b7;
  --brand-emerald-400: #34d399;
  --brand-emerald-500: #10b981;
  --brand-emerald-600: #059669;
  --brand-emerald-700: #047857;
  --brand-emerald-800: #065f46;
  --brand-emerald-900: #064e3b;

  --dark-obsidian: #06130f;
  --dark-surface: #0a1c17;
  --dark-surface-elevated: #0f2821;
  --dark-border: rgba(255, 255, 255, 0.08);

  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;

  /* Backward-compatible variables remapped to modern palette */
  --forest: #059669;
  --forest-light: #10b981;
  --forest-dark: #06130f;
  --lime: #34d399;
  --bs-primary: #059669;
  --bs-primary-rgb: 5, 150, 105;
  --bs-body-color: #1e293b;
  --bs-body-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: #f8fafc;
  --bs-border-color: #e2e8f0;
}

body {
  margin: 0;
  font-size: 14px;
  color: var(--bs-body-color);
  background-color: var(--canvas);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--forest-light);
}

button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.45);
  outline-offset: 2px;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 20px;
  text-align: center;
  background: var(--canvas);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

/* Sidebar Navigation */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #06130f 0%, #0a1c17 100%);
  color: #e2e8f0;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  z-index: 1020;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 32px;
}

.brand.brand-logo-wrap {
  display: block;
  margin: 0 0 32px;
}

.brand-logo-card {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.sidebar .brand-logo-card {
  width: 100%;
}
.sidebar .brand:hover .brand-logo-card {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(16, 185, 129, 0.2);
}

.brand-logo-img {
  height: auto;
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #6ee7b7;
  font-weight: 600;
}

.nav-caption {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6ee7b7;
  font-weight: 700;
  margin: 0 12px 14px;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #94a3b8;
  margin: 3px 0;
  font-weight: 550;
  font-size: 13px;
  transition: all 0.16s ease;
  border-left: 3px solid transparent;
}

.nav-item-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item-link.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: #34d399;
  border-left-color: #10b981;
  font-weight: 650;
}

.icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 8px 0;
}

.account-button {
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.account-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.role-tag {
  font-size: 11px;
  color: #94a3b8;
}

/* Workspace Layout */
.workspace {
  margin-left: 250px;
  min-height: 100vh;
  background: var(--canvas);
}

.topbar {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.breadcrumb-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.topbar-title {
  font-weight: 750;
  color: var(--ink);
  font-size: 16px;
}

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

.topbar-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

#main {
  padding: 32px 38px 60px;
  max-width: 1680px;
  margin: auto;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

h1 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 6px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink-secondary);
}

.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

/* Button System */
.btn {
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 7px;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: 1px solid #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  border-color: #047857 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.38);
  color: #ffffff !important;
}

.btn-outline-secondary {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-outline-secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.btn-link {
  text-decoration: none;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, #041c15 0%, #083327 50%, #05261d 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(4, 28, 21, 0.35);
  color: #ffffff;
}
.welcome-banner:before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.welcome-banner h2 {
  font-family: inherit;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 750;
  color: #ffffff;
}
.welcome-banner p {
  margin: 6px 0 0;
  color: #a7f3d0;
  font-size: 13px;
}
.banner-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
}

/* Metric Cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}

.metric-value {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 750;
  color: var(--ink);
  margin: 12px 0 6px;
  line-height: 1.2;
}

.metric-note {
  font-size: 12px;
  color: var(--muted);
}
.metric-note strong {
  color: var(--forest);
  font-weight: 650;
}

/* Panels & Tables */
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 26px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 14px rgba(15, 23, 42, 0.03);
}

.panel-header {
  padding: 22px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.panel-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.panel-body {
  padding: 20px 26px 26px;
}

.dashboard-middle {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 85px 1fr 35px;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
  font-size: 12px;
}

.progress {
  height: 8px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 6px;
}
.pipeline-row:nth-child(2) .progress-bar { background: linear-gradient(90deg, #10b981, #34d399); }
.pipeline-row:nth-child(3) .progress-bar { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.pipeline-row:nth-child(4) .progress-bar { background: linear-gradient(90deg, #6366f1, #818cf8); }
.pipeline-row:nth-child(5) .progress-bar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.progress-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 550;
  color: var(--ink-secondary);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}
.summary-line:last-child { border: 0; }
.summary-line span { color: var(--muted); }

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: #f1f5f9;
  margin: 0;
  vertical-align: middle;
  font-size: 13px;
}

.table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  white-space: nowrap;
}

.table tbody td {
  padding: 16px 22px;
  color: var(--ink-secondary);
  border-bottom: 1px solid #f1f5f9;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td {
  background-color: #f8fafc;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.student-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.student-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-HOT {
  color: #c2410c;
  background: #fff7ed;
  border-color: #ffedd5;
}

.status-WARM {
  color: #047857;
  background: #ecfdf5;
  border-color: #d1fae5;
}

.status-CALLBACK {
  color: #4338ca;
  background: #eef2ff;
  border-color: #e0e7ff;
}

.status-PENDING {
  color: #b45309;
  background: #fffbeb;
  border-color: #fef3c7;
}

.status-LOST {
  color: #be123c;
  background: #fff1f2;
  border-color: #ffe4e6;
}

.status-admitted {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #f8fafc;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.toolbar .form-control { max-width: 330px; }
.toolbar .form-select { width: auto; min-width: 140px; }

/* Form Controls */
.form-control, .form-select {
  font-size: 13px;
  background-color: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  outline: none;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-secondary);
}

.form-text {
  font-size: 11px;
  color: var(--muted);
}

.form-check-input:checked {
  background-color: var(--forest);
  border-color: var(--forest);
}

.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child { border: 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.section-toggle:hover .section-title h2 { color: var(--forest); }
.section-toggle:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
  border-radius: 4px;
}

.toggle-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}
.section-toggle:hover .toggle-indicator { background: #d1fae5; }
.toggle-indicator svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.collapsible-step.collapsed .toggle-indicator svg { transform: rotate(-90deg); }
.collapsible-step.collapsed .section-body { display: none; }
.collapsible-step .section-title { margin-bottom: 0; }
.collapsible-step .section-body { margin-top: 20px; }

.steps-toolbar {
  padding: 14px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr);
  gap: 24px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  z-index: 10;
}

/* Timeline */
.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}
.timeline-item {
  position: relative;
  padding: 0 0 24px 25px;
  border-left: 1.5px solid #e2e8f0;
  margin-left: 6px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px #ffffff, 0 0 8px rgba(16, 185, 129, 0.4);
}
.timeline-title { font-size: 12px; font-weight: 650; color: var(--ink); }
.timeline-date { color: var(--muted); font-size: 11px; margin-top: 4px; }
.timeline-detail { font-size: 12px; color: var(--ink-secondary); margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Empty States */
.empty-state {
  text-align: center;
  padding: 48px 25px;
  color: var(--muted);
}
.empty-state .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: #10b981;
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 7px;
  font-weight: 700;
}
.empty-state p {
  font-size: 13px;
  margin: 0;
  max-width: 400px;
  margin-inline: auto;
}

/* Visit Grid */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.visit-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.visit-card .visit-address {
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  margin: 20px 0;
}
.visit-notes {
  background: #f8fafc;
  border-radius: 8px;
  padding: 13px;
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  border: 1px solid #f1f5f9;
}

/* =======================================
   LOGIN SCREEN (LUXURY MIDNIGHT EMERALD)
   ======================================= */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  background: #ffffff;
}

.login-story {
  background: radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.2) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.16) 0%, transparent 50%),
              linear-gradient(150deg, #051410 0%, #0a2019 45%, #04100c 100%);
  color: #ffffff;
  padding: 70px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.login-story:after {
  content: "";
  width: 620px;
  height: 620px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  position: absolute;
  bottom: -180px;
  right: -150px;
  box-shadow: 0 0 0 60px rgba(16, 185, 129, 0.04), 0 0 0 130px rgba(16, 185, 129, 0.02);
  pointer-events: none;
}

.login-story .brand { margin: 0; }
.login-story .brand.brand-logo-wrap {
  margin: 0;
  display: inline-block;
}

.login-story .brand-logo-card {
  padding: 18px 34px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35), 0 0 35px rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.login-story .brand-logo-img {
  height: clamp(80px, 9.5vw, 115px);
  max-height: 120px;
  max-width: min(400px, 85vw);
  width: auto;
  object-fit: contain;
  display: block;
}

.login-message {
  margin: auto 0;
  position: relative;
  z-index: 1;
}

.login-message h1 {
  font-family: inherit;
  font-size: 50px;
  line-height: 1.16;
  letter-spacing: -1.2px;
  font-weight: 750;
  color: #f8fafc;
  max-width: 480px;
}

.login-message h1 em {
  background: linear-gradient(120deg, #34d399 0%, #a7f3d0 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: 800;
}

.login-message p {
  font-size: 15px;
  color: #94a3b8;
  max-width: 400px;
  line-height: 1.75;
  margin-top: 24px;
}

.login-footer {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6ee7b7;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-footer:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #ffffff;
}

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

.login-form .eyebrow {
  color: #059669;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
}

.login-form h2 {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.7px;
  color: var(--ink);
}

.login-form .subtitle {
  margin: 10px 0 28px;
  color: var(--muted);
}

.login-form .btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  font-size: 14px;
}

.secure-note {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  margin-top: 26px;
}

/* Modals & Notifications */
.notification-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  max-width: 440px;
  width: calc(100% - 40px);
}
.notification-stack .alert {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  font-size: 13px;
  border-radius: 12px;
}

.modal-content {
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 26px;
}

.field-help {
  padding: 12px 15px;
  background: #ecfdf5;
  font-size: 12px;
  color: #047857;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #d1fae5;
}

.mobile-toggle { display: none; }
.text-muted { color: var(--muted) !important; }

.daily-bars {
  display: flex;
  gap: 6px;
  align-items: end;
  height: 95px;
  overflow-x: auto;
}
.day-bar {
  flex: 1;
  min-width: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
}
.day-bar meter {
  width: 100%;
  height: 60px;
  display: block;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.checklist { display: grid; gap: 14px; }
.checklist .form-check-label { font-size: 12px; color: var(--ink-secondary); }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; }

.hint-card {
  padding: 18px;
  background: #ecfdf5;
  border-radius: 10px;
  color: #047857;
  font-size: 12px;
  line-height: 1.7;
  border: 1px solid #d1fae5;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date-range input { width: 140px; }

.error-panel {
  border: 1px solid #fecaca;
  background: #fff1f2;
  border-radius: 10px;
  padding: 22px;
  color: #be123c;
}

.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Responsive Media Queries */
@media(min-width:1500px) {
  #main { padding-top: 40px; }
  .metric-card { padding: 25px; }
  .metric-value { font-size: 36px; }
}

@media(max-width:1150px) {
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  #main { padding: 25px; }
  .topbar { padding: 0 25px; }
  .metric-grid { gap: 14px; }
  .metric-card { padding: 18px; }
  .metric-value { font-size: 28px; }
  .lead-layout { grid-template-columns: 1fr; }
  .login-story { padding: 45px; }
  .login-message h1 { font-size: 40px; }
}

@media(max-width:850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 250px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
  }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-toggle { display: inline-flex; }
  .topbar { height: 64px; padding: 0 18px; }
  .topbar-date { display: none; }
  #main { padding: 24px 18px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-middle { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 24px; }
  .visit-grid { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: 32px 24px; min-height: 280px; }
  .login-message { margin: 28px 0 0; }
  .login-message h1 { font-size: 32px; max-width: 100%; }
  .login-message p, .login-footer { display: none; }
  .login-form-wrap { padding: 35px 25px; }
  .banner-badge { display: none; }
}

@media(max-width:480px) {
  .page-heading { flex-wrap: wrap; }
  .metric-card { padding: 16px; }
  .metric-value { font-size: 26px; }
  .metric-head { font-size: 11px; }
  .welcome-banner { padding: 18px; }
  .welcome-banner h2 { font-size: 20px; }
  .panel-header, .panel-body { padding-left: 18px; padding-right: 18px; }
  .form-section { padding: 20px 17px; }
  .toolbar { padding: 16px; }
  .toolbar .form-control, .toolbar .form-select { max-width: none; width: 100%; }
  .topbar-right { gap: 8px; }
  .btn { padding: 9px 13px; }
  .lead-layout { gap: 10px; }
  .table-footer { gap: 12px; }
  .date-range input { width: 130px; }
}

@media(max-height: 820px) {
  .login-story { padding: 42px 45px; }
  .login-story .brand-logo-card { padding: 14px 26px; border-radius: 15px; }
  .login-story .brand-logo-img { height: 82px; max-height: 85px; }
}

.boot-screen .brand-logo-card {
  padding: 14px 26px;
  border-radius: 14px;
}
.boot-screen .brand-logo-img {
  max-height: 60px;
  max-width: 240px;
}

@media(prefers-reduced-motion:reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* TopScore Conversion Suite Styles */
:root {
  --whatsapp-color: #25D366;
  --whatsapp-hover: #128C7E;
  --whatsapp-dark: #075E54;
  --whatsapp-light: #dcf8c6;
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
  transition: all 0.2s ease;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20bd59 0%, #0e7266 100%);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}
.btn-wa-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #1a8f4c;
  border: 1px solid #b7e8c6;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-wa-compact:hover {
  background: #25D366;
  color: white;
  transform: scale(1.15);
  border-color: #25D366;
}
.btn-wa-compact svg { width: 15px; height: 15px; }

/* Propensity Engine Styling */
.propensity-card {
  border-left: 4px solid #059669;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.propensity-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--p-color, #059669);
  background: conic-gradient(var(--p-color, #059669) calc(var(--p-val, 50) * 1%), #e9ecef 0);
  position: relative;
  flex-shrink: 0;
}
.propensity-ring span {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.propensity-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--p-color, #0f172a);
  background: var(--p-bg, #ecfdf5);
  letter-spacing: 0.3px;
  border: 1px solid rgba(0,0,0,0.06);
}
.next-action-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #0f172a;
}
.factors-wrap { margin-top: 10px; }
.factor-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #43634e;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
}

/* Tactical Objection Playbook */
.playbook-card {
  border-left: 4px solid #b27133;
}
.objection-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.objection-pill {
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
}
.objection-pill:hover {
  background: #f1f5f9;
  border-color: #a7bfa7;
}
.objection-pill.active {
  background: #059669;
  color: white;
  border-color: #059669;
}
.playbook-quote {
  background: #f8fafc;
  border-left: 3px solid #059669;
  padding: 9px 13px;
  margin: 6px 0;
  font-size: 12px;
  font-style: italic;
  color: #0f172a;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

/* WhatsApp Dialog Styling */
.wa-template-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  background: white;
  transition: all 0.15s ease;
}
.wa-template-card:hover {
  border-color: #25D366;
  background: #f9fdfa;
}
.wa-template-card.selected {
  border-color: #25D366;
  background: #f0faf3;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Power Dialer Banner & Speed Dispositions */
.power-dialer-banner {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: all 0.2s ease;
}
.power-dialer-banner.active {
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #86efac;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.12);
}
.power-badge {
  background: #fef08a;
  color: #854d0e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quick-action-pill {
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 6px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-quick-no-ans {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.btn-quick-no-ans:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}
.btn-quick-callback {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.btn-quick-callback:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Fee Calculator Banner & Modal */
.fee-calculator-bar {
  background: linear-gradient(135deg, rgba(22, 59, 50, 0.05) 0%, rgba(212, 237, 172, 0.25) 100%);
  border: 1px dashed #97b98d;
  border-radius: 9px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.calculator-modal {
  font-size: 13px;
}

/* Funnel Drop-off Diagnostics */
.funnel-steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 0;
}
.funnel-step-item {
  flex: 1;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.funnel-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.step-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 4px;
}
.step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bs-body-color);
}
.step-val {
  font-size: 14px;
  font-weight: 700;
}
.funnel-bar-wrap {
  height: 8px;
  background: #f0f3ee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.funnel-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.step-rate {
  font-size: 10px;
}
.funnel-arrow-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drop-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  white-space: nowrap;
}

/* ============================================================
   NEW ADMISSION LEAD INTAKE REDESIGN & QUALITY COPILOT
   ============================================================ */

/* Fast Intake Presets Bar */
.intake-presets-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(22, 59, 50, 0.04);
}
.bg-forest {
  background-color: #059669 !important;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.preset-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.preset-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 12px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.preset-pill:hover {
  background: #f0fdf4;
  border-color: #7ca884;
  color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.preset-pill:active {
  transform: scale(0.98);
}

/* Intake Stepper HUD */
.intake-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.65;
  transition: all 0.2s ease;
}
.stepper-item:hover, .stepper-item.active {
  opacity: 1;
}
.stepper-item.completed .step-badge {
  background: #22c55e;
  color: white;
}
.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf2ea;
  color: #334155;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.stepper-item.active .step-badge {
  background: #059669;
  color: white;
  box-shadow: 0 0 0 3px rgba(22, 59, 50, 0.2);
}
.step-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}
.stepper-connector {
  flex: 1;
  height: 2px;
  background: #e2e8e2;
  margin: 0 10px;
  min-width: 15px;
}

/* Enhanced Section Header */
.section-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.req-star {
  color: #dc2626;
  font-weight: bold;
  margin-left: 2px;
}

/* Quality Meter & Gauge in Sidebar */
.intake-quality-card {
  border-top: 4px solid #059669;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfa 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}
.quality-score-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #059669;
  background: conic-gradient(#059669 var(--q-score, 20%), #e7ece8 0);
  position: relative;
  flex-shrink: 0;
}
.quality-score-ring span {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.intake-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.criteria-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5d6e63;
  transition: all 0.2s ease;
}
.criteria-row.valid {
  color: #15803d;
  font-weight: 550;
}
.crit-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #f1f5f2;
  color: #64748b;
  border: 1px solid #d6dfd8;
  flex-shrink: 0;
}
.criteria-row.valid .crit-icon {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

/* Counselor Tips Card */
.intake-tips-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
}
.tip-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed #e8eee9;
}
.tip-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.tip-bullet {
  font-size: 14px;
}

/* Quick Schedule Buttons in Section 05 */
.quick-schedule-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-quick-date {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 550;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-quick-date:hover {
  background: var(--lime);
  color: #059669;
  border-color: #9cb881;
}

/* Clean Telecaller Assignment Card for Fresh Leads */
.assigned-counselor-box {
  background: #f6f9f6;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* ========================================================
   VISUAL ADMISSIONS KANBAN BOARD & BATCH SEAT MATRIX
   ======================================================== */

.view-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.view-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}
.view-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-radius: 7px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-pill:hover {
  color: #059669;
}
.view-pill.active {
  background: white;
  color: #059669;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Batch Seat Matrix & Urgency HUD */
.batch-matrix-hud {
  background: linear-gradient(135deg, #041c15 0%, #083327 100%);
  color: white;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(16,45,36,0.18);
}
.hud-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hud-title-row h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.hud-stream-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.hud-stream-name {
  font-size: 13px;
  font-weight: 600;
  color: #c9e0d1;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.hud-stream-metrics {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.hud-stream-count {
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.hud-stream-scarcity {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.25);
  color: #ff9b9b;
  border: 1px solid rgba(255, 100, 100, 0.4);
}
.hud-progress-wrap {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}
.hud-progress-bar {
  height: 100%;
  border-radius: 6px;
  background: #a9cf90;
  transition: width 0.4s ease;
}

/* Kanban Board Layout */
.kanban-board-wrapper {
  overflow-x: auto;
  padding-bottom: 24px;
  margin: 0 -10px;
}
.kanban-board {
  display: flex;
  gap: 16px;
  min-width: 1350px;
  padding: 4px 10px;
}
.kanban-col {
  flex: 1;
  min-width: 275px;
  max-width: 320px;
  background: #f4f7f4;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #059669;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.kanban-col.col-PENDING { border-top-color: #d97706; }
.kanban-col.col-CALLBACK { border-top-color: #2563eb; }
.kanban-col.col-WARM { border-top-color: #ea580c; }
.kanban-col.col-HOT { border-top-color: #dc2626; }
.kanban-col.col-ADMITTED { border-top-color: #16a34a; background: #f2f9f3; }
.kanban-col.col-LOST { border-top-color: #64748b; opacity: 0.92; }

.kanban-col.drag-over {
  background: #e5f6e8 !important;
  border-color: #059669 !important;
  border-style: dashed;
  transform: scale(1.01);
}

.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 8px 8px 0 0;
}
.col-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.col-count-badge {
  background: #eef3ef;
  color: #1e293b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.col-sub-stats {
  padding: 6px 14px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.kanban-col-body {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 340px);
  min-height: 250px;
}
.kanban-empty-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 24px 12px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  margin: 10px 0;
}

/* Kanban Cards */
.kanban-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.09);
  border-color: #adc5b2;
}
.kanban-card.is-admitted {
  border-left: 4px solid #16a34a;
  background: #ffffff;
}
.kanban-card.is-hot {
  border-left: 4px solid #dc2626;
}
.kanban-card:active {
  cursor: grabbing;
}
.kanban-card.dragging {
  opacity: 0.35;
  border: 2px dashed #059669;
}

.kcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}
.kcard-name {
  font-size: 14px;
  font-weight: 700;
  color: #06130f;
  text-decoration: none;
  line-height: 1.25;
}
.kcard-name:hover {
  text-decoration: underline;
  color: #0f172a;
}
.kcard-propensity {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.kcard-course-badge {
  display: inline-block;
  background: #eef5ef;
  color: #059669;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kcard-handler-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #e2e8f0;
  color: #059669;
  font-size: 11.5px;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 7px;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.kcard-handler-badge .handler-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.kcard-handler-badge .handler-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kcard-handler-badge strong {
  color: #0f172a;
  font-weight: 700;
}
.kcard-handler-badge.is-unassigned {
  background: #fff8eb;
  border-color: #f7ddab;
  color: #8c5b05;
}
.kcard-handler-badge.is-unassigned strong {
  color: #8c5b05;
}

.kcard-meta {
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kcard-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kcard-phone-link {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
}
.kcard-phone-link:hover {
  text-decoration: underline;
}

.kcard-milestones {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 5px 0;
  border-top: 1px dashed #e8efe9;
  border-bottom: 1px dashed #e8efe9;
  margin: 6px 0;
  color: #64748b;
}
.milestone-active {
  color: #059669;
  font-weight: 600;
}

.kcard-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}
.kcard-actions .btn {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.4;
}
.kcard-stage-select {
  font-size: 11px;
  padding: 2px 20px 2px 6px;
  border-radius: 6px;
  height: 24px;
  border-color: #cbd5e1;
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 550;
  flex: 1;
}

/* Admission Celebration Modal */
.celebrate-card {
  text-align: center;
  padding: 10px;
}
.celebrate-icon {
  font-size: 48px;
  margin-bottom: 8px;
  display: inline-block;
  animation: bounce 0.6s infinite alternate;
}
@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Brand Logo Styling */
.brand.brand-logo-wrap {
  display: block;
  margin: 0 0 35px;
}
.brand-logo-card {
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.sidebar .brand-logo-card {
  width: 100%;
}
.sidebar .brand:hover .brand-logo-card {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.brand-logo-img {
  height: auto;
  max-height: 40px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.login-story .brand.brand-logo-wrap {
  margin: 0;
  display: inline-block;
}
.login-story .brand-logo-card {
  padding: 18px 34px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.login-story .brand-logo-img {
  height: clamp(80px, 9.5vw, 115px);
  max-height: 120px;
  max-width: min(400px, 85vw);
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-height: 820px) {
  .login-story {
    padding: 42px 45px;
  }
  .login-story .brand-logo-card {
    padding: 14px 26px;
    border-radius: 15px;
  }
  .login-story .brand-logo-img {
    height: 82px;
    max-height: 85px;
  }
}
.boot-screen .brand-logo-card {
  padding: 14px 26px;
  border-radius: 14px;
}
.boot-screen .brand-logo-img {
  max-height: 60px;
  max-width: 240px;
}

