/* Yulivan_AI · кабінет. Стиль бренду: #0A0A0C, сливове сяйво в куті, один рожевий акцент,
   Merriweather великими літерами для заголовків, Manrope для решти. Без курсиву і підкреслень. */
:root {
  --bg: #0A0A0C;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .86);
  --text-3: rgba(255, 255, 255, .74);
  --accent: #F03EA3;
  --on-accent: #0C0F10;
  --grad: linear-gradient(135deg, #CC0C84, #A80C6C 55%, #6C003C);
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; z-index: -1; pointer-events: none;
  top: -30vmax; right: -24vmax; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, #5A1340 0%, #22091A 70%);
  filter: blur(120px); opacity: .75;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* типографіка */
.h1 { margin: 0; font: 400 clamp(46px, 7.4vw, 92px)/1.02 var(--serif); text-transform: uppercase; letter-spacing: -.03em; }
.h1--lesson { font-size: clamp(34px, 4.8vw, 62px); line-height: 1.08; max-width: 18ch; }
.h1--mid { font-size: clamp(40px, 5.6vw, 72px); }
.h2 { margin: 0; font: 400 clamp(26px, 3vw, 38px)/1.12 var(--serif); text-transform: uppercase; letter-spacing: -.03em; }
.pink { color: var(--accent); }
.label { margin: 0; font: 700 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); margin: 0; }
.small { font-size: 14px; color: var(--text-3); font-weight: 500; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border: 0; border-radius: 100px; cursor: pointer;
  font: 700 16px/1 var(--sans); white-space: nowrap;
  transition: filter .2s, background-color .2s, box-shadow .2s, opacity .2s;
}
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 12px 32px rgba(204, 12, 132, .28); }
.btn--grad:hover { filter: brightness(1.12); }
.btn--light { background: #fff; color: #0C0F10; }
.btn--light:hover { background: #ECEAEC; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--panel-2); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.text-btn { background: none; border: 0; padding: 8px 0; cursor: pointer; font: 600 14px var(--sans); color: var(--text-3); transition: color .2s; }
.text-btn:hover { color: #fff; }
.text-btn--danger:hover { color: #FF9BCF; }

/* поля */
.input, .textarea {
  width: 100%; padding: 16px 22px; border-radius: 16px;
  background: var(--panel); border: 1.5px solid var(--line); color: #fff;
  font: 500 17px/1.5 var(--sans); transition: border-color .2s, background-color .2s;
}
.input { height: 56px; border-radius: 100px; }
.textarea { resize: vertical; min-height: 140px; }
.input::placeholder, .textarea::placeholder { color: rgba(255, 255, 255, .5); }
.input:focus, .textarea:focus { outline: none; border-color: rgba(240, 62, 163, .65); background: var(--panel-2); }
.field { display: grid; gap: 12px; margin: 0 0 28px; }

/* шапка */
.top {
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font: 800 13px/1 var(--sans); letter-spacing: .2em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--text-3); transition: color .2s; }
.nav a:hover, .nav a.on { color: #fff; }
.who { color: var(--text-3); font-weight: 500; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 160px; }
.boot { min-height: 100vh; }

/* вхід */
.login { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; }
.login__box { width: 100%; max-width: 440px; }
.login .h1 { font-size: clamp(50px, 11vw, 76px); margin: 32px 0 24px; }
.lead { margin: 0 0 44px; color: var(--text-2); font-size: 18px; }
.or { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-3); font-size: 14px; font-weight: 600; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stack { display: grid; gap: 12px; }
.msg { margin: 24px 0 0; color: var(--text-2); font-size: 15px; min-height: 24px; }
.msg--err { color: #FF9BCF; }
.msg a { color: #fff; font-weight: 700; }

/* головна */
.hero { padding: 72px 0 88px; }
.hero .label { margin-bottom: 24px; }
.course { padding: 56px 0 24px; }
.course + .course { margin-top: 48px; }
.course__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.course__head .muted { margin-top: 16px; max-width: 560px; }
.course__side { flex: none; width: 280px; display: grid; gap: 14px; }
.course__side .btn { margin-top: 10px; justify-self: start; }
.progress { height: 4px; width: 100%; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .5s ease; }

.lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lessons > li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 24px;
  padding: 28px 16px; margin: 0 -16px; border-radius: 18px; transition: background-color .2s;
}
a.row:hover { background: var(--panel); }
.row__n { font: 400 22px/1 var(--serif); color: var(--text-3); }
.row__t { display: grid; gap: 6px; font: 600 20px/1.35 var(--sans); }
.row__meta { font: 500 14px/1.4 var(--sans); color: var(--text-3); }
.tick { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: transparent; }
.tick svg { width: 16px; height: 16px; }
.is-done .tick { background: #fff; color: #0C0F10; box-shadow: none; }

.empty { padding: 72px 0; }
.empty .muted { margin-top: 28px; max-width: 520px; font-size: 18px; }

/* урок */
.back { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 56px; color: var(--text-3); font-weight: 600; font-size: 15px; transition: color .2s; }
.back:hover { color: #fff; }
.lesson-head { margin-bottom: 56px; }
.lesson-head .label { margin-bottom: 24px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.player video { display: block; width: 100%; height: 100%; }
.prose { max-width: 720px; margin: 64px 0 0; color: var(--text-2); font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--accent); font-weight: 600; word-break: break-word; }
.files { max-width: 720px; margin: 72px 0 0; display: grid; gap: 12px; }
.files > .label { margin-bottom: 12px; }
.file {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px;
  padding: 16px 24px 16px 16px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); transition: background-color .2s, border-color .2s;
}
a.file:hover { background: var(--panel-2); border-color: var(--line-2); }
.file__ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); font: 800 11px/1 var(--sans); letter-spacing: .1em; }
.file__n { display: grid; gap: 2px; font-weight: 600; word-break: break-word; }
.file__go { font-weight: 700; font-size: 15px; }
.lesson-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--line); }
.lesson-foot .spacer { flex: 1; }

/* адмінка */
.tabs { display: flex; gap: 8px; margin: 8px 0 64px; }
.tab { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 100px; font-weight: 700; font-size: 15px; color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--line); transition: color .2s, background-color .2s; }
.tab:hover { color: #fff; }
.tab.on { background: #fff; color: #0C0F10; box-shadow: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.card { padding: 40px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .chip-btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 100px; border: 0; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 15px/1 var(--sans); color: #fff;
  transition: background-color .2s, color .2s;
}
.chip input:checked + span, .chip-btn.on { background: #fff; color: #0C0F10; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.check { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 32px; cursor: pointer; color: var(--text-2); font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.section-title { margin: 96px 0 8px; }
.st { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.st__email { margin: 0 0 4px; font-weight: 600; word-break: break-all; }
.adm-row { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 24px; padding: 22px 0; }
.adm-row__t { display: grid; gap: 6px; font: 600 19px/1.35 var(--sans); }
.adm-row__t a:hover { color: var(--accent); }
.icons { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--line); transition: color .2s, background-color .2s; }
.icon-btn:hover:not(:disabled) { color: #fff; background: var(--panel-2); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn svg { width: 16px; height: 16px; }
.inline-add { display: flex; gap: 12px; margin-top: 24px; }
.inline-add .input { flex: 1; }
.adm-course { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.adm-course:first-of-type { border-top: 0; padding-top: 0; }
.adm-course__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.adm-course .lessons { border-top: 0; }
.adm-course .lessons > li:last-child { border-bottom: 0; }
.block { margin-top: 72px; }
.block > .label { margin-bottom: 20px; }
.block .file { margin-bottom: 12px; }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 44px 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 20px; transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(240, 62, 163, .05); }
.drop b { font-weight: 700; }
.up { margin-top: 16px; display: grid; gap: 10px; }
.danger-zone { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* повідомлення */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 20; max-width: calc(100% - 32px);
  padding: 14px 24px; border-radius: 100px; background: #fff; color: #0C0F10; font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { height: 60vh; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 20px 16px; }
  .nav { gap: 20px; }
  .who { display: none; }
  .wrap { padding: 16px 16px 120px; }
  .hero { padding: 40px 0 56px; }
  .course__head, .page-head { flex-direction: column; align-items: stretch; gap: 28px; }
  .course__side { width: 100%; }
  .course__side .btn { width: 100%; }
  .row, .adm-row { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 22px 12px; margin: 0 -12px; }
  .adm-row { padding: 20px 0; margin: 0; }
  .row__t { font-size: 17px; }
  .adm-row__t { font-size: 17px; }
  .row__n { font-size: 18px; }
  .back { margin-bottom: 36px; }
  .lesson-head { margin-bottom: 36px; }
  .player { border-radius: 16px; margin: 0 -4px; }
  .prose { margin-top: 44px; font-size: 17px; }
  .files { margin-top: 52px; }
  .file { grid-template-columns: 48px 1fr; padding: 14px 18px 14px 14px; }
  .file__ic { width: 48px; height: 48px; }
  .file__go, .file > .text-btn { grid-column: 2; justify-self: start; }
  .lesson-foot { margin-top: 56px; }
  .lesson-foot .btn { width: 100%; }
  .lesson-foot .spacer { display: none; }
  .card { padding: 24px; border-radius: 22px; }
  .st { grid-template-columns: 1fr; gap: 16px; }
  .inline-add { flex-direction: column; }
  .tabs { margin-bottom: 44px; }
  .block { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
