:root {
  --brand: #ff4760;
  --ink: #0e0e0f;
  --muted: #6b6f78;
  --line: #ececef;
  --bg: #f7f7f8;
  --card: #fff;
  --ok: #198754;
  --warn: #b26a00;
  --danger: #d6293e;
  --radius: 14px;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-dark: color-mix(in srgb, var(--brand) 80%, #000);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 14px 0 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.grow { flex: 1; min-width: 0; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap, .wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.hp { position: absolute; left: -9999px; }

/* Forme */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.label { font-weight: 500; font-size: 14px; margin-bottom: 6px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid #dcdce0; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
input[type=color] { padding: 2px; height: 40px; }
input[type=file] { padding: 7px; background: var(--bg); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
textarea { resize: vertical; }
.checks-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #dcdce0; }
.btn-ghost:hover { background: var(--bg); }
.btn-done { background: var(--ok); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.danger { color: var(--danger) !important; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; cursor: pointer; font-size: 14px; color: var(--muted); text-decoration: none !important; }
.icon-btn:hover:not(:disabled) { background: var(--bg); border-color: var(--line); }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* Pilule i obavijesti */
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.pill-brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill-ok { background: #e7f6ee; color: var(--ok); }
.pill-warn { background: #fff4e0; color: var(--warn); }
.pill-muted { background: #efeff1; color: var(--muted); }
.badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.flash { padding: 12px 16px; border-radius: 12px; background: #eef4ff; color: #1d3c78; margin-bottom: 16px; }
.flash-ok { background: #e7f6ee; color: #11552f; }
.flash-err { background: #fdecee; color: #8a1424; }
.card .flash { margin: 12px 0 0; }

/* Raspored aplikacije */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 272px; flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.community { padding: 12px 12px 4px; }
.banner { height: 86px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand) 55%, var(--brand-dark)); }
.community-logo { display: block; width: 64px; height: 64px; margin: -32px 0 0 12px; background: #fff; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); overflow: hidden; }
.community-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px 2px; }
.community-name { font-weight: 700; font-size: 16px; padding: 8px 12px 0; }
nav { padding: 8px 8px 16px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none !important; }
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-item .ico { width: 20px; text-align: center; flex: none; }
.nav-group { margin-top: 14px; }
.nav-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; }
.nav-empty { font-size: 13px; color: var(--muted); padding: 4px 12px; }
.me { border-top: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.me-link { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--ink); font-weight: 500; }
.me .link-btn { color: var(--muted); font-size: 13px; }
.main { flex: 1; min-width: 0; padding: 24px 28px 60px; }
.topbar { display: none; }
.backdrop { display: none; }
.page { max-width: 1080px; margin: 0 auto; }
.page.narrow { max-width: 760px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.section-head:first-child { margin-top: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,16,20,.03); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.empty { text-align: center; padding: 36px 20px; }
.empty.small { padding: 18px; }
.empty-ico { font-size: 40px; margin-bottom: 6px; }

/* Avatari */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; object-fit: cover; }
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }

/* Početna */
.welcome { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; background: linear-gradient(120deg, var(--brand-soft), #fff 70%); }
.course-row { display: flex; gap: 14px; align-items: center; color: var(--ink); text-decoration: none !important; padding: 14px; }
.course-row:hover, .feed-item:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.thumb { width: 72px; height: 50px; border-radius: 10px; background: var(--brand-soft) center/cover; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.progress { height: 6px; background: #efeff1; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.progress.big { height: 8px; max-width: 380px; }
.feed-item { display: block; color: var(--ink); text-decoration: none !important; padding: 14px 16px; }
.feed-title { font-weight: 600; margin-top: 6px; }
.feed-body { color: #3b3d44; margin: 4px 0 6px; font-size: 14px; }
.event-row { display: flex; gap: 14px; align-items: center; padding: 14px; }
.event-row.past { opacity: .65; }
.date-box { width: 52px; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 6px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; flex: none; }
.date-box span { display: block; font-size: 20px; line-height: 1.1; }

/* Tečajevi */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 30%, #fff)) center/cover; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.course-body { padding: 16px 18px 18px; }
.course-body h3 { margin: 6px 0; }
.course-body h3 a { color: var(--ink); }
.admin-bar { display: flex; gap: 6px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.course-hero { position: relative; overflow: hidden; padding: 28px; }
.course-hero::before { content: ""; position: absolute; inset: 0; background: var(--cover, none) center/cover; opacity: .12; }
.course-hero-body { position: relative; }
.module h2 { font-size: 16px; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-list li:first-child { border-top: 0; }
.lesson-list a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--ink); text-decoration: none !important; }
.lesson-list a:hover { color: var(--brand-dark); }
.lesson-list.edit li { padding: 4px 0; }
.lesson-list.edit a { padding: 4px; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d6d6db; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; color: #fff; }
.done .tick { background: var(--ok); border-color: var(--ok); }
.module-edit { padding: 14px 16px; }
.cover-preview { width: 120px; border-radius: 8px; }

/* Lekcija */
.lesson-layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; max-width: 1240px; margin: 0 auto; align-items: start; }
.outline { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 16px; }
.outline-title { font-weight: 700; color: var(--ink); display: block; }
.outline-module { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 4px; }
.outline-item { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; color: var(--ink); font-size: 14px; text-decoration: none !important; }
.outline-item:hover { background: var(--bg); }
.outline-item.current { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.outline-item .tick { width: 18px; height: 18px; font-size: 10px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin: 12px 0 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content { font-size: 16px; line-height: 1.7; }
.content img { border-radius: 10px; }
.content blockquote { border-left: 3px solid var(--brand); margin: 12px 0; padding: 4px 16px; color: #3b3d44; background: var(--bg); border-radius: 0 8px 8px 0; }
.content pre { background: #16171b; color: #f2f2f4; padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
.files { list-style: none; padding: 0; margin: 0; }
.files li { padding: 8px 12px; background: var(--bg); border-radius: 10px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.editor { min-height: 320px; font-size: 15px; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; border-color: #dcdce0; }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; border-color: #dcdce0; font: inherit; font-size: 15px; }

/* Objave i komentari */
.composer textarea { border: 0; padding: 8px 0; min-height: 44px; }
.composer textarea:focus { outline: 0; }
.composer-row { display: flex; gap: 12px; align-items: flex-start; }
.composer-extra { display: flex; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post h1, .post h3 { margin: 12px 0 4px; }
.post h3 a { color: var(--ink); }
.post-body { margin-top: 10px; white-space: normal; overflow-wrap: anywhere; }
.post.pinned { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.post-foot { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-comment { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 6px 10px; background: var(--bg); border-radius: 10px; }
.comment { display: flex; gap: 10px; margin: 12px 0; }
.comment-bubble { background: var(--bg); border-radius: 12px; padding: 8px 12px; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }

/* Liste i tablice */
.list { padding: 6px 16px; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.file-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.clickable { cursor: pointer; }
.clickable:hover td { background: #fafafb; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.member p { margin: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 99px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.tabs a.active { background: var(--ink); color: #fff; }
.tabs a.active .muted { color: #bbb; }
.order { padding: 16px 18px; }
.order.status-placeno { border-left: 4px solid var(--ok); }
.order.status-nova, .order.status-ceka_uplatu { border-left: 4px solid #f0a020; }
.order.status-otkazano { opacity: .6; }
.order .amount { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.order .note { background: var(--bg); padding: 8px 12px; border-radius: 10px; margin-top: 10px; }
.order-actions { margin-top: 12px; gap: 14px; }
.amount-input { width: 110px; padding: 6px 10px; }
.emoji-input { width: 54px; text-align: center; flex: none; }
.channel-edit { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 14px; }

/* Javni dio */
body.public { background: #fff; position: relative; overflow-x: hidden; }
.glow { position: fixed; right: -20vw; bottom: -30vh; width: 80vw; height: 90vh; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); filter: blur(30px); opacity: .45; pointer-events: none; z-index: 0; }
.public-header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; max-width: 1180px; margin: 0 auto; }
.public-header nav { display: flex; gap: 18px; align-items: center; padding: 0; flex: none; }
.public-header nav a:not(.btn) { color: var(--ink); font-weight: 500; }
.public-brand img { height: 46px; display: block; }
.public-main { position: relative; z-index: 1; max-width: 520px; margin: 24px auto 60px; padding: 0 16px; }
.public-main.wide { max-width: 1180px; }
.public-footer { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
.auth-card { padding: 34px; box-shadow: 0 20px 60px rgba(16,16,20,.08); border-radius: 22px; }
.form-card { max-width: 620px; margin: 0 auto; padding: 30px; box-shadow: 0 20px 60px rgba(16,16,20,.08); border-radius: 22px; }
.hero { text-align: center; max-width: 720px; margin: 20px auto 34px; }
.hero h1 { font-size: 36px; }
.lead { font-size: 17px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 20px; box-shadow: 0 12px 40px rgba(16,16,20,.06); }
.offer h2 { font-size: 21px; margin: 8px 0 0; }
.offer .btn { margin-top: auto; }
.price { font-size: 26px; font-weight: 700; color: var(--brand-dark); margin: 4px 0; }
.checks { list-style: none; padding: 0; margin: 6px 0 18px; font-size: 14px; }
.checks li { padding-left: 26px; position: relative; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.payment { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; background: var(--bg); padding: 16px 18px; border-radius: 14px; }
.payment dt { color: var(--muted); font-size: 14px; }
.payment dd { margin: 0; }
.barcode { text-align: center; margin: 20px 0 6px; }
.barcode canvas { max-width: 100%; }

@media (max-width: 960px) {
  .lesson-layout { grid-template-columns: 1fr; }
  .outline { position: static; max-height: none; order: 2; }
}
@media (max-width: 820px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .sidebar.open { transform: none; }
  .backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 20; }
  .topbar { display: flex; align-items: center; gap: 12px; margin: -24px -16px 16px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .topbar-logo { height: 30px; }
  .menu-btn { font-size: 22px; background: none; border: 0; cursor: pointer; padding: 0 4px; }
  .main { padding: 24px 16px 50px; }
  .grid-2 { grid-template-columns: 1fr; }
  .welcome { flex-direction: column; }
  .hero h1 { font-size: 27px; }
  .payment { grid-template-columns: 1fr; gap: 2px; }
  .payment dd { margin-bottom: 8px; }
  .inline-form { flex-wrap: wrap; }
  .public-header { padding: 12px 16px; }
  .auth-card, .form-card { padding: 22px; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }
}
@media print {
  .public-header, .public-footer, .no-print, .glow { display: none; }
  .form-card { box-shadow: none; border: 0; }
}

/* Studentski tok: sljedeći korak, prvi koraci, karta modula */
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.next-step { display: flex; gap: 22px; align-items: stretch; padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 12px 34px color-mix(in srgb, var(--brand) 14%, transparent); }
.next-cover { width: 240px; flex: none; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 35%, #fff)) center/cover; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.next-body { padding: 22px 24px 24px 0; flex: 1; min-width: 0; }
.next-body h2 { font-size: 22px; margin: 4px 0 2px; }
.next-body .progress { max-width: 420px; }
.next-body .btn-lg { margin-top: 14px; }
.done-state { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); box-shadow: 0 12px 34px rgba(25,135,84,.12); }
.done-state .next-cover { background: linear-gradient(135deg, #e7f6ee, #c9ecd9); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; margin-top: 4px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { color: var(--muted); font-size: 13px; text-decoration: none !important; padding: 14px 16px; margin: 0; }
.stat-num { display: block; font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.checklist .progress { margin: 0 0 8px; }
.check-item { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.check-item:hover { background: var(--bg); }
.check-item strong { display: block; font-size: 14px; }
.check-item.ok strong { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.check-item.ok .tick, .is-done .tick, .tick.big { background: var(--ok); border-color: var(--ok); }
.check-item.next { background: var(--brand-soft); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: flex; gap: 14px; align-items: center; padding: 10px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 42px; bottom: -10px; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::after { background: var(--ok); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #fff; border: 2px solid #d6d6db; color: var(--muted); position: relative; z-index: 1; }
.timeline .done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline .current .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline .todo strong { color: var(--muted); font-weight: 500; }
.roadmap h2 a { color: var(--ink); }
.event-mini, .feed-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.event-mini:first-of-type, .feed-mini:first-of-type { border-top: 0; }
.event-mini .date-box { width: 44px; font-size: 10px; padding: 4px 0; }
.event-mini .date-box span { font-size: 16px; }
.feed-mini .feed-body { display: block; color: #3b3d44; margin: 2px 0 0; }
.module-current { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.module-done h2 { color: var(--muted); }
.ok-text { color: var(--ok); font-weight: 600; }
.lesson-list li.is-next a { background: var(--brand-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; font-weight: 600; }
.lesson-crumb a { color: var(--muted); }
.complete-box { display: flex; gap: 16px; align-items: center; margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); flex-wrap: wrap; }
.complete-box.is-done { background: #eef8f2; border-color: #cbead8; }
.tick.big { width: 36px; height: 36px; font-size: 16px; color: #fff; }
.lesson-nav { margin-top: 12px; padding-top: 0; border-top: 0; }
@media (max-width: 960px) { .grid-main { grid-template-columns: 1fr; } .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .next-step { flex-direction: column; gap: 0; }
  .next-cover { width: auto; height: 120px; }
  .next-body { padding: 18px; }
  .complete-box .btn-lg, .next-body .btn-lg { width: 100%; }
}
