:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-dark: #cbd5e1;
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --primary-light: #eff6ff;
  --ok: #10b981;
  --ok-light: #ecfdf5;
  --bad: #ef4444;
  --bad-light: #fef2f2;
  --warn: #f59e0b;
  --editor: #0f172a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
pre.code {
  background: var(--editor);
  color: #f8fafc;
  padding: 16px 20px;
  border-radius: 10px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 14px 0;
  border: 1px solid #1e293b;
}
pre.code code { background: none; padding: 0; color: inherit; border: none; }
.hidden { display: none !important; }

/* Topbar */
.topbar {
  height: 68px;
  min-height: 68px;
  flex-shrink: 0;
  background: #1b2744;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .logo {
  font-family: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.topbar .logo span span { color: #fbbf24; }
.topbar .logo svg { flex-shrink: 0; }
.topbar .title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar a.home {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s, color 0.15s;
}
.topbar a.home:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Buttons */
.btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { background: #f8fafc; border-color: var(--line-dark); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.warn { background: var(--warn); color: #fff; border-color: var(--warn); }
.btn.big { padding: 11px 26px; font-size: 15px; }

/* Container & Layout */
.container { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }

/* Course Header Hero (Sleek Dark Slate Developer Theme) */
.hero {
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 30px 32px;
  margin-bottom: 28px;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.1);
}
.hero h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.hero .hero-sub {
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.5;
}
.hero .hero-meta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #cbd5e1;
}
.hero .bar {
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
}
.hero .bar div {
  background: #3b82f6;
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* Stage Divider (Zero Childish Colored Dots) */
.stage-divider {
  margin: 36px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stage-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #e2e8f0;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
}
.stage-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.stage-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Group Cards (Clean, Modern, No Rainbow Left Borders) */
.group {
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.group:hover {
  border-color: var(--line-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.group.locked { opacity: 0.55; }
.group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.group-head:hover { background: #fafcff; }
.group-num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.group-head .info { flex: 1; }
.group-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.group-head .status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.mini-bar {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
  max-width: 140px;
}
.mini-bar div {
  height: 100%;
  background: var(--ok);
  border-radius: 99px;
}

/* Accordion Items List */
.group-items {
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 4px 0;
}
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px 11px 70px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s, color 0.15s;
}
.item:last-child { border-bottom: none; }
.item:hover { background: #f8fafc; color: var(--primary); }
.item.locked { color: var(--muted); pointer-events: none; }
.item .ic {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.item .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f8fafc;
  color: var(--muted);
  border: 1px solid var(--line);
  margin-left: auto;
}

/* Slides */
.slide-wrap { max-width: 860px; margin: 32px auto; padding: 0 20px; }
.slide {
  background: var(--card);
  border-radius: 14px;
  padding: 36px 42px;
  min-height: 400px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.slide h2 {
  margin-top: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.slide-body { font-size: 15.5px; line-height: 1.7; color: #334155; }
.slide-body p { margin: 14px 0; }
.slide-body ol, .slide-body ul { padding-left: 22px; margin: 14px 0; }
.slide-body li { margin-bottom: 8px; }
.slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.dots { display: flex; gap: 8px; }
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  transition: all 0.2s ease;
}
.dots span.on { background: var(--primary); width: 22px; }

/* Workspace (IDE Layout) */
.ws { display: grid; grid-template-columns: 340px 1fr 390px; height: calc(100vh - 68px); }
.ws > div { display: flex; flex-direction: column; min-height: 0; }
.ws .panel-left { background: var(--card); border-right: 1px solid var(--line); overflow: auto; padding: 22px; }
.ws .panel-left h3 { margin: 6px 0 12px; font-size: 17px; font-weight: 700; color: var(--text); }
.ws .panel-left .instr { line-height: 1.65; font-size: 14.5px; color: #334155; }
.ws .tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.hint-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
}
.ws .panel-mid { background: var(--editor); border-right: 1px solid #1e293b; }
.ws .editor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12.5px;
  border-bottom: 1px solid #334155;
}
.ws .editor-bar .sp { flex: 1; }
.ws .editor-filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #e2e8f0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws .editor-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ws .editor-host .CodeMirror {
  height: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
.ws .panel-right { background: #0f172a; color: #f8fafc; display: flex; flex-direction: column; }
.ws .console-head {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws .console {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  white-space: pre-wrap;
  line-height: 1.55;
}
.ws .console .err { color: #f87171; }
.ws .checks {
  border-top: 1px solid #1e293b;
  padding: 12px 14px;
  max-height: 45%;
  overflow: auto;
  font-size: 13.5px;
  background: rgba(15, 23, 42, 0.6);
}
.check { margin: 6px 0; display: flex; align-items: flex-start; gap: 8px; }
.check .d {
  color: #fbbf24;
  font-size: 12.5px;
  margin: 3px 0 0 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.steps { list-style: none; padding: 0; margin: 0 0 14px; }
.steps li {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid transparent;
}
.steps li.cur {
  background: var(--primary-light);
  color: var(--primary-d);
  font-weight: 600;
  border-color: #bfdbfe;
}
.steps li.done { color: var(--ok); }
.progress-ex { font-size: 13px; color: var(--muted); }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 30px;
  width: min(600px, 92vw);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--line);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.modal h2 { margin-top: 0; font-size: 20px; color: var(--text); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal.success { text-align: center; }

/* Quiz */
.quiz-card {
  background: var(--card);
  border-radius: 14px;
  padding: 34px 40px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.opt:hover { border-color: var(--primary); background: #f8fafc; }
.opt.sel { border-color: var(--primary); background: var(--primary-light); }
.opt.right { border-color: var(--ok); background: var(--ok-light); color: #065f46; font-weight: 600; }
.opt.wrong { border-color: var(--bad); background: var(--bad-light); color: #991b1b; }
.fill-input {
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.fill-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.explain {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  line-height: 1.6;
  font-size: 14px;
}
.quiz-editor { height: 260px; border-radius: 8px; overflow: hidden; margin: 12px 0; border: 1px solid var(--line); }
.quiz-editor .CodeMirror { height: 100%; font-size: 14px; }
.quiz-console {
  background: var(--editor);
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 40px;
}
.score { font-size: 52px; font-weight: 800; margin: 12px 0; }

/* ==========================================================================
   Concept C + Concept A ("Split-Contrast Studio") — RuteKode Design System
   ========================================================================== */

.ca-body-bg {
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 0.85px, transparent 0.85px);
  background-size: 22px 22px;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ca-body-bg main {
  flex: 1 0 auto;
  width: 100%;
}
.ca-footer {
  flex-shrink: 0;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 36px 20px;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.88);
}

.ca-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 36px 56px;
}

/* --- Concept C: Full-Width Dark Navy Hero --- */
.ca-hero {
  background: linear-gradient(135deg, #0b1120 0%, #111c35 55%, #172544 100%);
  color: #f8fafc;
  border-bottom: 1px solid #1e293b;
  position: relative;
  overflow: hidden;
}
.ca-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.ca-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 36px 52px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ca-hero-left {
  min-width: 0;
}
.ca-hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.ca-hero-emblem {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.ca-hero-heading {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
}
.ca-hero-sub {
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 820px;
}

/* Hero Glassmorphic Stat Cards */
.ca-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 780px;
}
.ca-stat-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(8px);
}
.ca-stat-lbl {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.ca-stat-val {
  font-size: 21px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ca-stat-val span {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

/* Floating White Resume Card inside Dark Hero */
.ca-hero-right {
  width: 100%;
}
.ca-resume-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 18px 36px -8px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ca-resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.ca-resume-lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}
.ca-resume-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.38;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ca-resume-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.45;
}
.ca-resume-mod-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 4px 0 14px;
}
.ca-resume-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}
.ca-resume-bar {
  flex: 1;
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.ca-resume-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.ca-resume-pct {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}
.ca-resume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #2563eb;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.22);
}
.ca-resume-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.ca-resume-outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.ca-resume-outline-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

/* --- Home 2-Column Layout (Left Filter Sidebar + Right 2x2 Course Grid) --- */
.ca-home-layout {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 28px;
  align-items: start;
}
.ca-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 78px;
}
.ca-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.ca-search-ic {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  pointer-events: none;
}
.ca-search-input {
  width: 100%;
  padding: 9px 30px 9px 34px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 13px;
  color: #1e293b;
  font-family: inherit;
  transition: all 0.15s ease;
}
.ca-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ca-search-clear {
  position: absolute;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ca-search-clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.ca-side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ca-side-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.ca-side-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.ca-side-btn.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}
.ca-side-count {
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #64748b;
}
.ca-side-btn.active .ca-side-count {
  background: #dbeafe;
  color: #2563eb;
}

.ca-side-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0 14px;
}
.ca-side-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 10px;
}
.ca-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ca-tech-pill {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ca-tech-pill:hover {
  border-color: #cbd5e1;
  color: #1e293b;
  background: #f1f5f9;
}
.ca-tech-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* --- Concept A: Clean White Course Cards --- */
.ca-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}
.ca-course-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ca-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}
.ca-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.ca-card-info {
  flex: 1;
  min-width: 0;
}
.ca-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.38;
}
.ca-card-specs {
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 10px;
}
.ca-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ca-badge-free {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #059669;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2.5px 8px;
  border-radius: 6px;
}
.ca-badge-tech {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2.5px 8px;
  border-radius: 6px;
}
.ca-card-art {
  width: 84px;
  height: 76px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ca-card-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.6;
}
.ca-card-bottom {
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ca-card-progress-wrap {
  flex: 1;
  min-width: 0;
}
.ca-card-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ca-card-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}
.ca-card-pct {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}
.ca-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ca-course-card:hover .ca-card-btn {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
.ca-card-btn.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.ca-course-card:hover .ca-card-btn.primary {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* --- Course Detail / Syllabus Page (course.html) --- */
.ca-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ca-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}
.ca-breadcrumb-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.ca-breadcrumb-sep {
  color: #475569;
}
.ca-breadcrumb-cur {
  color: #e2e8f0;
  font-weight: 500;
}
.ca-eyebrow-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #94a3b8;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 10px;
}
.ca-course-hero-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.28;
}
.ca-course-hero-sub {
  margin: 0 0 18px;
  font-size: 14.5px;
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 660px;
}
.ca-course-hero-progress {
  max-width: 580px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 12px 16px;
  border-radius: 10px;
}
.ca-chp-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ca-chp-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.ca-chp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #cbd5e1;
  gap: 10px;
  flex-wrap: wrap;
}
.ca-chp-meta strong {
  color: #ffffff;
  font-weight: 600;
}

/* 2-Column Syllabus Body */
.ca-syllabus-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}
.ca-sticky-nav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 78px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.ca-nav-head {
  padding: 14px 16px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.ca-nav-list {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ca-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ca-nav-item:hover {
  background: #f1f5f9;
}
.ca-nav-item.active {
  background: #eff6ff;
}
.ca-nav-ic-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.ca-nav-ic-done {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}
.ca-nav-ic-active {
  background: #dbeafe;
  color: #2563eb;
  border-color: #60a5fa;
}
.ca-nav-ic-lock {
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
}
.ca-nav-text {
  min-width: 0;
  flex: 1;
}
.ca-nav-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ca-nav-item.active .ca-nav-title {
  color: #2563eb;
  font-weight: 600;
}
.ca-nav-sub {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.ca-mini-pro {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fef3c7;
  color: #b45309;
}

/* Right Expandable Module Group Cards */
.ca-syllabus-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ca-group-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.15s ease;
}
.ca-group-card.state-done {
  border-color: #d1fae5;
}
.ca-group-card.state-active {
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px -4px rgba(37, 99, 235, 0.1);
}
.ca-group-card.state-locked {
  opacity: 0.72;
}
.ca-group-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: background 0.15s ease;
}
.ca-group-head:hover {
  background: #f8fafc;
}
.ca-group-head-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.ca-group-chev {
  color: #64748b;
  margin-top: 3px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.ca-group-card.collapsed .ca-group-chev {
  transform: rotate(-90deg);
}
.ca-group-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.ca-group-desc {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
}
.ca-group-head-right {
  flex-shrink: 0;
}
.ca-grp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
}
.ca-grp-pill.done {
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
}
.ca-grp-pill.active {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.ca-grp-pill.pro {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  cursor: pointer;
}

.ca-group-body {
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}
.ca-group-card.collapsed .ca-group-body {
  display: none;
}

.ca-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #334155;
  transition: background 0.12s ease;
}
.ca-item-row:last-child {
  border-bottom: none;
}
.ca-item-row:hover {
  background: #f8fafc;
}
.ca-item-row.current {
  background: #eff6ff;
}
.ca-item-row.current:hover {
  background: #dbeafe;
}
.ca-item-row.seq-locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.ca-item-row.pro-locked {
  opacity: 0.78;
}
.ca-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.ca-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.ca-status-icon.done {
  background: #dcfce7;
  color: #15803d;
}
.ca-status-icon.current {
  background: #2563eb;
  color: #ffffff;
}
.ca-status-icon.open {
  background: #f1f5f9;
  color: #64748b;
}
.ca-status-icon.lock {
  background: #f1f5f9;
  color: #94a3b8;
}

.ca-row-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2.5px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.ca-row-pill.done {
  background: #f0fdf4;
  color: #059669;
}
.ca-row-pill.current {
  background: #2563eb;
  color: #ffffff;
}
.ca-row-pill.quiz {
  background: #fef3c7;
  color: #b45309;
}
.ca-row-pill.project {
  background: #f3e8ff;
  color: #6d28d9;
}
.ca-row-pill.lesson {
  background: #f1f5f9;
  color: #475569;
}

.ca-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ca-item-row.current .ca-item-title {
  font-weight: 600;
  color: #1d4ed8;
}
.ca-item-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ca-row-cta-btn {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  background: #2563eb;
  padding: 5px 12px;
  border-radius: 6px;
}
.ca-row-meta {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}
.ca-row-meta.done {
  color: #059669;
}
.ca-row-meta.pro {
  color: #d97706;
}

/* Lesson Slide Topbar & Empty State */
.ca-lesson-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.ca-back-syllabus {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.ca-back-syllabus:hover {
  text-decoration: underline;
}
.ca-slide-step-pill {
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 99px;
}

.empty-state-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
}
.empty-state-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f172a;
}
.empty-state-card p {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

/* Desktop defaults for Mobile Practice Gate & Mobile Tabbed IDE elements */
.ws-mobile-gate,
.ws-mob-header,
.ws-mob-soal-cta,
.ws-mob-code-footer,
.ws-mob-out-footer {
  display: none;
}

/* Responsive Breakpoints (PC, Laptop, Tablet, Mobile HP) */
@media (max-width: 1200px) {
  .ws {
    grid-template-columns: 280px 1fr 310px;
  }
  .ca-container,
  .ca-hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 980px) {
  .ca-hero-inner {
    grid-template-columns: 1fr;
    padding: 34px 20px 38px;
    gap: 24px;
  }
  .ca-container {
    padding: 24px 20px 44px;
  }
  .ca-home-layout,
  .ca-syllabus-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ca-sidebar-card,
  .ca-sticky-nav {
    position: static;
  }
  .ca-side-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ca-side-btn {
    width: auto;
    flex: 1 1 auto;
    padding: 8px 12px;
    gap: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
  }
  .ca-side-btn.active {
    border-color: #bfdbfe;
  }
  .ca-nav-list {
    max-height: 220px;
  }
}

/* Smart Practice Gate & 3-Tab Emergency Mobile IDE (<= 900px) */
@media (max-width: 900px) {
  .ws-mobile-gate {
    display: block;
    max-width: 540px;
    margin: 20px auto 36px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08);
  }
  .ws-wrap {
    padding: 0 14px;
  }
  .ws-wrap.emergency-open {
    padding: 0;
  }
  .ws-wrap.emergency-open .ws-mobile-gate {
    display: none;
  }
  .ws-gate-topbar {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
  }
  .ws-gate-back {
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
  }
  .ws-gate-pill {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
  }
  .ws-gate-body {
    padding: 24px 20px;
    text-align: center;
  }
  .ws-gate-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ws-gate-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
  }
  .ws-gate-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
  }
  .ws-gate-preview {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
  }
  .ws-gate-preview-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
  }
  .ws-gate-ex-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
  }
  .ws-gate-ex-instr {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
  }
  .ws-gate-ex-instr p {
    margin: 0 0 6px;
  }
  .ws-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .ws-gate-btn-main {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }
  .ws-gate-btn-emergency {
    background: transparent;
    border: none;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
  }
  .ws-gate-btn-emergency:hover {
    color: #0f172a;
  }

  /* Hide 3-column IDE until Mode Darurat is opened */
  .ws {
    display: none;
  }
  .ws-wrap.emergency-open .ws {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 56px);
  }
  .ws-mob-header {
    display: block;
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
  }
  .ws-mob-toprow {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
  }
  .ws-mob-backlink {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  .ws-mob-badge {
    color: #fbbf24;
    font-size: 11px;
    font-weight: 600;
  }
  .ws-mob-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px 10px;
    background: #111c33;
  }
  .ws-mob-tab {
    border: none;
    border-radius: 8px;
    padding: 8px 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.55);
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .ws-mob-tab.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  }

  /* Tab Switching Logic */
  .ws[data-mob-tab="soal"] .panel-left {
    display: block;
    border-right: none;
    padding: 18px 16px 28px;
  }
  .ws[data-mob-tab="soal"] .panel-mid,
  .ws[data-mob-tab="soal"] .panel-right {
    display: none;
  }

  .ws[data-mob-tab="kode"] .panel-mid {
    display: flex;
    flex-direction: column;
    border-right: none;
    height: calc(100vh - 148px);
    min-height: 380px;
  }
  .ws[data-mob-tab="kode"] .panel-left,
  .ws[data-mob-tab="kode"] .panel-right {
    display: none;
  }

  .ws[data-mob-tab="output"] .panel-right {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 148px);
  }
  .ws[data-mob-tab="output"] .panel-left,
  .ws[data-mob-tab="output"] .panel-mid {
    display: none;
  }

  .ws-mob-soal-cta {
    display: block;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
  }
  .ws-mob-go-code {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .ws-mob-code-footer {
    display: block;
    background: #11151c;
    border-top: 1px solid #1e293b;
    padding: 10px 12px 12px;
  }
  .ws-quick-symbols {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .ws-sym-lbl {
    font-size: 11.5px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 2px;
  }
  .ws-sym-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #fbbf24;
    border-radius: 6px;
    padding: 4px 10px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
  }
  .ws-sym-btn:active {
    background: #334155;
  }
  .ws-mob-run-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .ws-mob-out-footer {
    display: block;
    padding: 12px 16px;
    background: #0b1120;
    border-top: 1px solid #1e293b;
    margin-top: auto;
  }
  .ws-mob-back-code {
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
  }
}

/* Single-Row Clean Topbar & Hamburger Menu on Tablet/Mobile (<= 768px) */
@media (max-width: 768px) {
  .topbar {
    height: 56px;
    min-height: 56px;
    padding: 0 14px;
    gap: 10px;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    z-index: 200;
  }
  .topbar .title,
  .topbar a.home {
    display: none !important;
  }
  .topbar .logo {
    font-size: 18px;
    gap: 8px;
  }
  .topbar .logo svg {
    width: 24px;
    height: 24px;
  }
  .ca-course-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
  }
  .slide-wrap {
    margin: 20px auto;
    padding: 0 14px;
  }
  .slide {
    padding: 24px 20px;
    min-height: auto;
  }
  .quiz-card {
    padding: 24px 20px;
  }
  .container {
    padding: 20px 14px 44px;
  }
}

@media (max-width: 640px) {
  .ca-hero-inner {
    padding: 24px 16px 28px;
    gap: 18px;
  }
  .ca-hero-title-row {
    align-items: flex-start;
    gap: 12px;
  }
  .ca-hero-emblem {
    width: 40px;
    height: 40px;
  }
  .ca-hero-heading {
    font-size: 22px;
  }
  .ca-hero-sub {
    font-size: 13.5px;
    margin-bottom: 18px;
  }
  .ca-hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .ca-stat-card {
    padding: 12px 10px;
  }
  .ca-stat-lbl {
    font-size: 10px;
  }
  .ca-stat-val {
    font-size: 16px;
  }
  .ca-resume-card {
    padding: 16px;
  }
  .ca-container {
    padding: 18px 14px 36px;
  }
  .ca-course-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ca-course-card {
    padding: 18px 16px;
  }
  .ca-card-top {
    flex-direction: row;
    gap: 12px;
  }
  .ca-card-art {
    width: 64px;
    height: 58px;
  }
  .ca-card-title {
    font-size: 16px;
  }
  .ca-card-bottom {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ca-course-hero-title {
    font-size: 21px;
  }
  .ca-course-hero-sub {
    font-size: 13.5px;
  }
  .ca-group-head {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .ca-item-row {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ca-item-title {
    white-space: normal;
    line-height: 1.35;
  }
  .ca-item-right {
    margin-left: auto;
  }
  .slide {
    padding: 20px 16px;
  }
  .slide h2 {
    font-size: 18px;
  }
  .slide-body {
    font-size: 14.5px;
  }
  .slide-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ws .tools .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .modal {
    padding: 20px 16px;
    width: 94vw;
  }
  .modal .actions {
    flex-wrap: wrap;
  }
  .modal .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .ca-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------------- KARTU KURSUS SEGERA HADIR & TOAST ---------------- */
.ca-course-card.is-coming-soon {
  opacity: 0.88;
  cursor: pointer;
  border-style: dashed;
  background: #fcfdff;
}
.ca-course-card.is-coming-soon:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.ca-badge-soon {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
}
.ca-card-soon-note {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.ca-card-btn.is-soon {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.ca-course-card.is-coming-soon:hover .ca-card-btn.is-soon {
  background: #e2e8f0;
  color: #1e293b;
}

.ca-soon-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  padding: 14px 18px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  border: 1px solid #334155;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ca-soon-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ca-soon-toast-ic {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}
.ca-soon-toast-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.45;
}
.ca-soon-toast-body strong {
  color: #fbbf24;
  font-size: 13.5px;
}
.ca-soon-toast-body span {
  color: #cbd5e1;
}
@media (max-width: 600px) {
  .ca-soon-toast {
    left: 14px;
    right: 14px;
    bottom: 16px;
    max-width: none;
  }
}
