:root {
  /* Dreams LMS Color System */
  --primary:        #5F2DED;
  --primary-light:  #7C3AED;
  --primary-tint:   #E8E0FD;
  --secondary:      #FF6B35;
  --secondary-tint: #FFF0EB;
  --success:        #1BC5BD;
  --success-tint:   #E6FAF8;
  --warning:        #FFC107;
  --danger:         #EE5050;
  --dark:           #1D2026;
  --body:           #6E727D;
  --border:         #E9EAF0;
  --bg:             #F8F9FA;
  --white:          #FFFFFF;

  /* Legacy / dashboard aliases */
  --heading:        var(--dark);
  --muted:          #98a2b3;
  --ease-premium:   cubic-bezier(0.22, 0.8, 0.25, 1);
  --shadow-soft:    var(--shadow-md);
  --shadow-hover:   var(--shadow-lg);
  --gradient-start: var(--primary-light);
  --gradient-end:   var(--primary);
  --info:           #06b6d4;
  --cta:            var(--secondary);
  --primary-dark:   #4522b8;
  --radius-xl:      20px;

  /* Typography */
  --font: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 30px rgba(95,45,237,0.15);
  --shadow-btn: 0 6px 20px rgba(95,45,237,0.30);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; display: block; }

/* Section */
.section { padding: 80px 0; }
.section-bg { background: var(--bg); }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Section Header */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .badge-tag {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #E55A25;
  transform: translateY(-2px);
  color: white;
}

/* Course / marketing tiles (scoped — avoids overriding Bootstrap `.card`) */
.course-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .3s ease;
}
.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

/* Course Card */
.course-card .course-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.course-card .course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.course-card:hover .course-thumb img {
  transform: scale(1.06);
}
.course-card .course-body { padding: 20px; }
.course-card .course-badge {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.course-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card .course-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--body);
  margin-bottom: 14px;
}
.course-card .course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.course-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.course-card .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.course-card .rating .stars { color: var(--warning); }

/* Input styles */
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: white;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95,45,237,0.10);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  display: block;
  margin-bottom: 7px;
}

/* Badge variants */
.badge { display: inline-block; padding: 4px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-purple { background: var(--primary-tint); color: var(--primary); }
.badge-orange { background: var(--secondary-tint); color: var(--secondary); }
.badge-green  { background: var(--success-tint); color: var(--success); }
.badge-free   { background: #E6FAF8; color: #1BC5BD; }
.badge-paid   { background: var(--primary-tint); color: var(--primary); }

/* Stats counter */
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--body);
}

/* Instructor/Faculty card */
.instructor-card { text-align: center; }
.instructor-card .instructor-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-tint);
}
.instructor-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.instructor-card p {
  font-size: 13px;
  color: var(--body);
}

/* Testimonial card */
.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all .3s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-tint);
}
.testimonial-card .stars { color: var(--warning); font-size: 14px; margin-bottom: 12px; }
.testimonial-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-card .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .reviewer img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .reviewer strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: block;
}
.testimonial-card .reviewer span {
  font-size: 12px;
  color: var(--body);
}

/* Category card */
.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
}
.category-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.category-card:hover * { color: white !important; }
.category-card .cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  transition: background .3s;
}
.category-card:hover .cat-icon { background: rgba(255,255,255,0.2); }
.category-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.category-card span { font-size: 13px; color: var(--body); }

/* Responsive grid */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
}

/* Dashboard / global heading scale */
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; letter-spacing: -0.6px; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -1.5px; }
h2 { font-size: clamp(24px, 3vw, 40px); line-height: 1.18; letter-spacing: -0.5px; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }

.card-soft,.cl-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid var(--border); transition: transform .25s var(--ease-premium), box-shadow .25s var(--ease-premium), border-color .25s ease; padding: 28px; }
.cl-card-sm { padding: 16px; border-radius: 14px; }
.card-soft:hover { transform: translateY(-3px); box-shadow: 0 15px 28px rgba(16,24,40,.1); }
.cl-stat-card { display: flex; align-items: flex-start; gap: 16px; }
.cl-stat-card .stat-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.cl-stat-card .stat-value { font-size: 28px; font-weight: 800; color: #101828; line-height: 1; }
.cl-stat-card .stat-label { font-size: 13px; color: #667085; margin-top: 4px; }
.cl-stat-card .stat-change { font-size: 12px; margin-top: 8px; }
.btn-gradient,.btn-cl-primary { background: linear-gradient(135deg,var(--primary-light),var(--primary)); color: #fff; border: none; border-radius: 10px; padding: 11px 22px; font-weight: 700; font-size: 14px; position: relative; overflow: hidden; transition: all .25s; }
.btn-gradient::before,.btn-cl-primary::before { content: ""; position: absolute; top: 0; left: -120%; width: 50%; height: 100%; background: linear-gradient(120deg,transparent,rgba(255,255,255,.45),transparent); transition: transform .55s ease; }
.btn-gradient:hover::before,.btn-cl-primary:hover::before { transform: translateX(260%); }
.btn-gradient:hover,.btn-cl-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(95,45,237,.35); }
.btn-gradient:active,.btn-cl-primary:active { transform: translateY(0) scale(.98); }
.btn-cl-primary:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.btn-cl-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 9px 20px; font-weight: 600; font-size: 14px; }
.btn-cl-outline:hover { background: var(--primary); color: #fff; }
.btn-cl-ghost { background: transparent; color: #667085; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 20px; font-weight: 500; font-size: 14px; }
.btn-cl-ghost:hover { background: #f5f7fb; color: #374151; }
.btn-cl-danger { background: #fee2e2; color: #dc2626; border: none; border-radius: 10px; padding: 9px 20px; font-weight: 600; font-size: 14px; }
.btn-cl-danger:hover { background: #dc2626; color: #fff; }
.btn-cl-success { background: #dcfce7; color: #15803d; border: none; border-radius: 10px; padding: 9px 20px; font-weight: 600; font-size: 14px; }
.btn-cl-success:hover { background: #22c55e; color: #fff; }
.btn-icon { padding: 8px; border-radius: 8px; background: transparent; border: none; }
.btn-icon:hover { background: #f5f7fb; }
.btn-icon-danger:hover { background: #fee2e2; color: #dc2626; }
.card-hover { transition: transform .25s var(--ease-premium), box-shadow .25s var(--ease-premium), border-color .25s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.navbar.scrolled { backdrop-filter: blur(18px); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.badge-active,.badge-completed,.badge-expired,.badge-pending,.badge-approved,.badge-rejected,.badge-on-hold,.badge-paid,.badge-free,.badge-paid-type,.badge-upcoming,.badge-ongoing { border-radius:999px; padding:4px 12px; font-size:12px; font-weight:600; }
.badge-active,.badge-approved { background:#dcfce7; color:#15803d; }
.badge-completed,.badge-upcoming { background:#dbeafe; color:#1d4ed8; }
.badge-expired,.badge-rejected { background:#fee2e2; color:#dc2626; }
.badge-pending,.badge-on-hold { background:#fef3c7; color:#d97706; }
.badge-paid { background:#d1fae5; color:#065f46; }
.badge-free { background:#eff6ff; color:#3b82f6; }
.badge-paid-type { background:#fdf4ff; color:#7c3aed; }
.badge-ongoing { background:#fff7ed; color:#ea580c; }
.form-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-control,.form-select { border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 11px 14px; font-size: 14px; color: #101828; transition: border-color .2s, box-shadow .2s; }
.form-control:focus,.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(95,45,237,.12); outline: none; }
.form-control.is-invalid { border-color:#dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.form-control.is-valid { border-color:#22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.invalid-feedback { color:#dc2626; font-size:12px; margin-top:4px; }
.input-prefix { background:#f3f4f6; border:1.5px solid #e5e7eb; border-right:none; border-radius:10px 0 0 10px; padding:11px 12px; }
.cl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cl-table thead th { background:#f8fafc; padding:12px 16px; font-size:12px; font-weight:700; color:#667085; text-transform:uppercase; letter-spacing:.6px; border-bottom:2px solid #e5e7eb; white-space:nowrap; }
.cl-table tbody td { padding:14px 16px; border-bottom:1px solid #f1f5f9; color:#374151; vertical-align:middle; }
.cl-table tbody tr:hover td { background:#fafbff; }
.cl-table tbody tr:last-child td { border-bottom:none; }
.cl-table .actions-col { white-space: nowrap; text-align: right; }
.filter-bar { background:#fff; border-radius:14px; padding:16px 20px; border:1px solid #e5e7eb; margin-bottom:20px; display:flex; gap:12px; flex-wrap:wrap; }
.cl-pagination { display:flex; align-items:center; gap:6px; justify-content:center; margin-top:24px; }
.cl-pagination .page-btn { width:36px; height:36px; border-radius:8px; border:1px solid #e5e7eb; background:#fff; color:#374151; font-size:14px; font-weight:500; cursor:pointer; transition:all .2s; }
.cl-pagination .page-btn:hover { border-color:var(--primary); color:var(--primary); background:#f0f0ff; }
.cl-pagination .page-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.cl-pagination .page-info { font-size:13px; color:#667085; margin:0 12px; }
.cl-alert { border-radius:12px; padding:14px 18px; margin-bottom:16px; display:flex; align-items:flex-start; gap:12px; font-size:14px; }
.cl-alert-info { background:#eff6ff; color:#1d4ed8; border-left:4px solid #3b82f6; }
.cl-alert-success { background:#dcfce7; color:#15803d; border-left:4px solid #22c55e; }
.cl-alert-warning { background:#fef3c7; color:#d97706; border-left:4px solid #f59e0b; }
.cl-alert-danger { background:#fee2e2; color:#dc2626; border-left:4px solid #ef4444; }
.cl-empty-state { text-align:center; padding:60px 20px; }
.empty-icon { font-size:48px; color:#d1d5db; margin-bottom:16px; }
.empty-title { font-size:18px; font-weight:700; color:#374151; margin-bottom:8px; }
.empty-desc { font-size:14px; color:#9ca3af; max-width:320px; margin:auto; }
.cl-spinner { display:inline-block; width:20px; height:20px; border:2.5px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cl-skeleton { background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:8px; }
@keyframes shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
.cl-modal .modal-content { border-radius:20px; border:none; box-shadow:0 24px 80px rgba(16,24,40,.18); }
.cl-modal .modal-header { border-bottom:1px solid #f1f5f9; padding:20px 24px; }
.cl-modal .modal-title { font-size:18px; font-weight:700; }
.cl-modal .modal-body { padding:24px; }
.cl-modal .modal-footer { border-top:1px solid #f1f5f9; padding:16px 24px; gap:10px; }
.cl-stepper { display:flex; margin-bottom:32px; position:relative; }
.cl-stepper::before { content:""; position:absolute; top:18px; left:8%; right:8%; height:2px; background:#e5e7eb; }
.cl-stepper .step { display:flex; flex-direction:column; align-items:center; flex:1; position:relative; }
.cl-stepper .step-circle { width:36px; height:36px; border-radius:50%; display:grid; place-items:center; font-weight:700; font-size:14px; z-index:1; background:#e5e7eb; color:#6b7280; }
.cl-stepper .step.active .step-circle { background:var(--primary); color:#fff; box-shadow:0 0 0 4px rgba(95,45,237,.2); }
.cl-stepper .step.completed .step-circle { background:#22c55e; color:#fff; }
.cl-stepper .step-label { font-size:12px; font-weight:600; color:#9ca3af; margin-top:8px; text-align:center; }
.cl-stepper .step.active .step-label { color:var(--primary); }
.cl-stepper .step.completed .step-label { color:#22c55e; }
/* Slide-in panels: canonical .cl-slideover + legacy .slideover (same behavior) */
.cl-slideover,
.slideover { position:fixed; top:0; right:0; height:100vh; width:420px; max-width:100vw; background:#fff; box-shadow:-8px 0 40px rgba(16,24,40,.12); z-index:9999; transform:translateX(100%); transition:transform .35s cubic-bezier(.22,.8,.25,1); }
.cl-slideover.open,
.slideover.open { transform:translateX(0); }
.cl-slideover-header,
.slideover-header { padding:20px 24px; border-bottom:1px solid #f1f5f9; display:flex; justify-content:space-between; align-items:center; }
.cl-slideover-body,
.slideover-body { padding:24px; overflow-y:auto; height:calc(100vh - 130px); }
.cl-slideover-footer,
.slideover-footer { padding:16px 24px; border-top:1px solid #f1f5f9; position:absolute; bottom:0; width:100%; background:#fff; }
.cl-slideover-overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:9998; opacity:0; pointer-events:none; transition:opacity .3s; }
.cl-slideover-overlay.open { opacity:1; pointer-events:auto; }

/* Button size variants */
.btn-sm { padding: 7px 14px !important; font-size: 12px !important; border-radius: 8px !important; }
.btn-xs { padding: 4px 10px !important; font-size: 11px !important; border-radius: 6px !important; }
.btn-lg { padding: 14px 28px !important; font-size: 15px !important; border-radius: 12px !important; }
.btn-full { width: 100% !important; justify-content: center !important; }

/* Badge base + all variants */
[class^="badge-"], [class*=" badge-"] {
  border-radius: 999px; padding: 4px 12px; font-size: 12px;
  font-weight: 600; display: inline-block; white-space: nowrap;
  font-family: var(--font); line-height: 1.4;
}
.badge-active      { background: #DCFCE7; color: #15803D; }
.badge-completed   { background: #DBEAFE; color: #1D4ED8; }
.badge-expired     { background: #FEE2E2; color: #DC2626; }
.badge-pending     { background: #FEF3C7; color: #D97706; }
.badge-approved    { background: #DCFCE7; color: #15803D; }
.badge-rejected    { background: #FEE2E2; color: #DC2626; }
.badge-on-hold     { background: #FFF7ED; color: #C2410C; }
.badge-paid        { background: #D1FAE5; color: #065F46; }
.badge-free        { background: #EFF6FF; color: #3B82F6; }
.badge-paid-type   { background: #FDF4FF; color: #7C3AED; }
.badge-upcoming    { background: #EFF6FF; color: #2563EB; }
.badge-ongoing     { background: #FFF7ED; color: #EA580C; }
.badge-info        { background: #E0F2FE; color: #0369A1; }
.badge-new         { background: #FCE7F3; color: #BE185D; }

/* Table utilities */
.cl-table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.cl-table .col-amount  { text-align: right; }
.cl-table .col-status  { width: 1%; white-space: nowrap; }
.table-responsive-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive-wrap::-webkit-scrollbar { height: 4px; }
.table-responsive-wrap::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 999px; }

/* Progress bar */
.cl-progress { height: 6px; background: #F1F5F9; border-radius: 999px; overflow: hidden; }
.cl-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary-light), var(--primary)); transition: width .4s ease; }

/* Toggle switch */
.cl-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cl-toggle input[type="checkbox"] { width: 40px; height: 22px; border-radius: 999px; appearance: none; -webkit-appearance: none; background: #E5E7EB; transition: background .2s; position: relative; cursor: pointer; flex-shrink: 0; }
.cl-toggle input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cl-toggle input[type="checkbox"]:checked { background: var(--primary); }
.cl-toggle input[type="checkbox"]:checked::after { transform: translateX(18px); }
.cl-toggle-label { font-size: 14px; font-weight: 500; color: #374151; }

/* Input with prefix (+91) */
.input-with-prefix { display: flex; align-items: stretch; }
.input-with-prefix .prefix { background: #F5F7FB; border: 1.5px solid #E5E7EB; border-right: none; border-radius: 10px 0 0 10px; padding: 0 12px; display: flex; align-items: center; font-size: 14px; color: #667085; font-weight: 600; white-space: nowrap; }
.input-with-prefix input { border-radius: 0 10px 10px 0; flex: 1; }

/* Accordion */
.cl-accordion .accordion-button:focus { box-shadow: none; }
.cl-accordion .accordion-button:not(.collapsed) { background: #FAFBFF; color: var(--primary); }
.cl-accordion .accordion-item { border: 1px solid #F1F5F9; border-radius: 12px !important; overflow: hidden; margin-bottom: 8px; }

/* Slideover width variants */
.cl-slideover.wide, .slideover.wide { width: 560px; }
.cl-slideover.narrow, .slideover.narrow { width: 340px; }

/* Drop zone dragging state */
.drop-zone.dragging { border-color: var(--primary) !important; background: #F0F0FF !important; }

/* Form layout helpers */
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; min-width: 0; }

/* Page section */
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-heading h3, .section-heading h4 { font-size: 16px; font-weight: 700; color: #101828; margin: 0; }

/* Stale lead row highlight */
tr.stale-lead td { border-left: 3px solid #F59E0B; }

/* Vimeo thumbnail preview */
.vimeo-thumb-preview { margin-top: 10px; }
.vimeo-thumb-preview img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid #E5E7EB; }

/* —— Premium EdTech layouts (public + shared) —— */
.cl-ease { transition-timing-function: var(--ease-premium); }
.section-pad { padding: 80px 0; }
.cl-gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cl-hero-public {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4f27d4 0%, var(--primary) 42%, #6b3df0 100%);
  color: #fff;
  padding: 72px 0 88px;
  border-radius: 0 0 32px 32px;
  margin-bottom: 0;
}
.cl-hero-public::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.9) 0, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.5) 0, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='2' cy='2' r='1' fill='white' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cl-hero-public-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.cl-hero-public h1 { color: #fff; letter-spacing: -1.5px; }
.cl-hero-public .lead-hero {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}
.cl-filter-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.cl-filter-pills .pill {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .22s var(--ease-premium);
  font-family: var(--font);
}
.cl-filter-pills .pill:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cl-filter-pills .pill.active { background: #fff; color: var(--primary); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.cl-filter-pills-light .pill {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--body);
}
.cl-filter-pills-light .pill:hover { border-color: #c7d2fe; background: #f8faff; color: var(--heading); }
.cl-filter-pills-light .pill.active {
  border-color: var(--primary);
  background: rgba(95, 45, 237, 0.08);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(95, 45, 237, 0.12);
}

.cl-web-media {
  position: relative;
  height: 160px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, #5a32e8 100%);
}
.cl-web-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease-premium);
}
.cl-web-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 24, 40, 0.55), transparent 55%);
  z-index: 1;
  transition: opacity .25s ease;
}
.cl-web-card { border-radius: 20px !important; padding: 0 !important; overflow: hidden; }
.cl-web-card .cl-web-body { padding: 22px 24px 20px; }
.cl-web-card .cl-web-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.cl-web-card:hover .cl-web-media img { transform: scale(1.05); }
.cl-web-card:hover .cl-web-media::before { opacity: 0.75; }

.cl-nav-public {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
  padding-block: 12px !important;
}
.cl-nav-public .navbar-brand { font-size: 22px !important; font-weight: 800 !important; letter-spacing: -0.5px !important; color: var(--heading) !important; }
.cl-nav-public .nav-link {
  font-weight: 600;
  font-size: 14px;
  color: #475467 !important;
  padding: 10px 14px !important;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.cl-nav-public .nav-link:hover { background: rgba(95, 45, 237, 0.08); color: var(--primary) !important; }
.cl-nav-public .dropdown-menu { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); padding: 10px 0; }
.cl-nav-public .dropdown-item { border-radius: 8px; margin: 0 8px; font-size: 14px; font-weight: 500; padding: 8px 14px !important; }
.cl-btn-pill-gradient {
  border-radius: 999px !important;
  padding: 12px 24px !important;
  box-shadow: 0 8px 24px rgba(91, 95, 247, 0.3);
}
.cl-btn-pill-outline {
  border-radius: 999px !important;
  border-width: 2px !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
}

.cl-foot-premium {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-top: 1px solid var(--border);
  padding-top: 64px !important;
}
.cl-foot-premium .foot-link {
  display: block;
  color: #667085 !important;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s ease, transform .2s ease;
}
.cl-foot-premium .foot-link:hover { color: var(--primary) !important; transform: translateX(2px); }

.cl-learn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
}
.cl-learn-bullet {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(95, 45, 237, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.cl-prose-blog { font-size: 16px; line-height: 1.75; color: #475467; }
.cl-prose-blog h2 {
  margin-top: 2.25rem;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--heading);
}
.cl-prose-blog h3 {
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--heading);
}
.cl-prose-blog blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--muted);
  background: #fafbff;
  padding: 20px 24px;
  border-radius: 12px;
}
.cl-prose-blog img { border-radius: 16px; max-width: 100%; margin: 24px 0; }
.cl-ratio-16 {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.cl-auth-shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.cl-auth-visual {
  flex: 1;
  min-width: 340px;
  background: linear-gradient(145deg, var(--primary) 0%, #4a22c4 42%, var(--primary-light) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.cl-auth-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.15;
  background: radial-gradient(circle at 30% 20%, #fff 0, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='1' cy='1' r='1' fill='white' opacity='0.35'/%3E%3C/svg%3E");
}
.cl-auth-visual > * { position: relative; z-index: 1; }
.cl-auth-visual .stat-mini {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.cl-auth-panel {
  flex: 1;
  min-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.cl-auth-panel-inner {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.cl-register-panel { max-width: 680px; }
.cl-register-header { text-align: center; margin-bottom: 24px; }
.cl-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cl-mobile-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cl-mobile-row .input-with-prefix { flex: 1; }
.cl-mobile-row .btn-cl-outline,
.cl-mobile-row .btn-cl-primary,
.cl-mobile-row .btn-cl-ghost {
  white-space: nowrap;
  padding: 11px 16px;
}
.cl-field-error {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}
.cl-form-error {
  background: #fee2e2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.cl-otp-panel {
  display: none;
  background: #fafbff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 14px;
}
.cl-otp-verified {
  display: none;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
@media (max-width: 991.98px) {
  .cl-auth-visual { min-height: 220px; padding: 36px 24px 28px; }
  .cl-register-panel { max-width: 560px; }
}
@media (max-width: 767.98px) {
  .cl-hero-public { border-radius: 0 0 24px 24px; padding-top: 48px; }
  .cl-register-grid { grid-template-columns: 1fr; gap: 0; }
  .cl-mobile-row { flex-direction: column; }
  .cl-mobile-row .btn-cl-outline,
  .cl-mobile-row .btn-cl-primary,
  .cl-mobile-row .btn-cl-ghost { width: 100%; }
}

.cl-badge-pulse { position: relative; }
.cl-badge-pulse::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  right: -2px;
  top: -2px;
  animation: cl-pulse 1.8s infinite;
}
@keyframes cl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 12px transparent; }
}
