:root {
  --blue: #1e40af;
  --green: #059669;
  --orange: #f97316;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --red: #e11d48;
  --ink: #0f172a;
  --muted: #64748b;
  --glass: rgba(255, 255, 255, 0.68);
  --border: rgba(255, 255, 255, 0.78);
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.26), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.20), transparent 34%),
    linear-gradient(135deg, #eef2ff 0%, #f8fafc 48%, #ecfeff 100%);
}

.bg-orb { position: fixed; border-radius: 999px; filter: blur(25px); opacity: .45; pointer-events: none; }
.orb-1 { width: 260px; height: 260px; background: var(--cyan); top: 60px; right: 10%; }
.orb-2 { width: 320px; height: 320px; background: var(--violet); bottom: 8%; left: 6%; }
.shell { width: min(1400px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 42px; position: relative; }
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(32px, 5vw, 58px); color: var(--blue); }
h2 { font-size: 25px; }
h3 { font-size: 19px; }
.subtitle { margin: 10px 0 0; max-width: 790px; color: #334155; font-size: 17px; line-height: 1.6; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.muted { color: var(--muted); line-height: 1.55; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 15px;
  padding: 11px 14px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform .17s ease, box-shadow .17s ease, opacity .17s ease;
  font-size: 14px;
}
.btn:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; box-shadow: 0 14px 32px rgba(30, 64, 175, .22); }
.ghost { background: rgba(255,255,255,.72); color: var(--blue); }
.outline { border: 1px solid rgba(30,64,175,.22); background: rgba(255,255,255,.42); color: var(--blue); }
.success { background: linear-gradient(135deg, var(--green), #22c55e); color: white; }
.warn { background: linear-gradient(135deg, var(--orange), #f59e0b); color: white; }
.full { width: 100%; margin-top: 12px; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.kpi { padding: 20px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 800; }
.kpi strong { display: block; margin: 8px 0 5px; font-size: 23px; color: var(--blue); }
.kpi small { color: #475569; line-height: 1.4; }
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.panel { padding: 24px; position: sticky; top: 16px; }
.panel label { display: block; margin-top: 14px; font-size: 13px; color: #334155; font-weight: 800; }
input {
  width: 100%; margin-top: 7px; border: 1px solid rgba(148,163,184,.32); border-radius: 14px; padding: 12px 13px;
  background: rgba(255,255,255,.72); color: var(--ink); outline: none; font-weight: 650;
}
hr { border: 0; height: 1px; background: rgba(148,163,184,.28); margin: 22px 0; }
.note { background: rgba(30,64,175,.08); border: 1px solid rgba(30,64,175,.12); padding: 13px; border-radius: 16px; color: #334155; line-height: 1.55; font-size: 14px; }
.user-box { margin-top: 16px; padding: 14px; background: rgba(5,150,105,.10); border: 1px solid rgba(5,150,105,.16); border-radius: 18px; color: #065f46; font-weight: 800; }
.section-card { padding: 24px; margin-bottom: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.course-card, .module-card, .lesson-card, .quiz-card, .document-card {
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(255,255,255,.56);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 50px rgba(15,23,42,.08);
}
.course-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(30,64,175,.10); color: var(--blue); font-size: 12px; font-weight: 900; }
.pill.green { background: rgba(5,150,105,.12); color: #047857; }
.pill.orange { background: rgba(249,115,22,.14); color: #c2410c; }
.pill.violet { background: rgba(124,58,237,.12); color: #6d28d9; }
.duration { color: var(--muted); font-size: 13px; font-weight: 800; }
.course-card p { color: #475569; line-height: 1.55; }
.course-meta { color: var(--muted); font-size: 13px; margin: 12px 0 16px; }
.hidden { display: none !important; }
.detail-header { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; margin-bottom: 18px; }
.access-box { min-width: 260px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.58); border: 1px solid rgba(148,163,184,.22); }
.progress-wrap { height: 11px; border-radius: 999px; overflow: hidden; background: rgba(148,163,184,.22); margin: 10px 0 8px; }
.progress-bar { height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .25s ease; }
.modules-grid { display: grid; gap: 14px; margin-top: 18px; }
.module-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.lessons-list { display: grid; gap: 10px; }
.lesson-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.lesson-card p { margin: 5px 0 0; color: #475569; line-height: 1.45; font-size: 14px; }
.quiz-grid { display: grid; gap: 13px; margin-top: 14px; }
.quiz-card label { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.50); margin-top: 8px; cursor: pointer; }
.message { margin-top: 14px; padding: 13px; border-radius: 16px; background: rgba(6,182,212,.10); border: 1px solid rgba(6,182,212,.18); color: #155e75; font-weight: 750; }
.message.error { background: rgba(225,29,72,.10); border-color: rgba(225,29,72,.18); color: #9f1239; }
.message.ok { background: rgba(5,150,105,.12); border-color: rgba(5,150,105,.18); color: #065f46; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .status-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .detail-header { grid-template-columns: 1fr; }
}
