:root {
  --bg: #050507;
  --bg-2: #0a0a0f;
  --panel: #0e0e14;
  --panel-2: #13131b;
  --line: #1f1f2b;
  --line-2: #2a2a3a;
  --text: #ececf4;
  --muted: #8a8a9e;
  --dim: #5c5c70;
  --accent: #7c3aed;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, .12);
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #262634; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- futuristic backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--accent-deep) 14%, transparent), transparent 60%), var(--bg); }
.backdrop::before { content: ''; position: absolute; inset: -50%; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); transform: perspective(900px) rotateX(55deg) translateY(-8%); animation: gridmove 30s linear infinite; }
.backdrop::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
@keyframes gridmove { to { background-position: 0 56px, 56px 0; } }

/* ---------- type ---------- */
.label { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.label.accent { color: var(--accent-3); }
.h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin: 0; line-height: 1.1; }
.h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }

/* ---------- buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: .2s; white-space: nowrap; }
.btn:hover { border-color: #3a3a4e; background: #181822; }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 13px; box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 14px 40px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.ghost { background: transparent; }
.btn.danger { color: #fca5a5; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }
.btn.success { color: #86efac; border-color: rgba(34,197,94,.35); background: var(--green-dim); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--muted); display: inline-grid; place-items: center; transition: .2s; }
.icon-btn:hover { color: #fff; border-color: #444458; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent); color: var(--accent-3); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid; }
.badge.ok { color: #4ade80; border-color: rgba(74,222,128,.45); background: rgba(34,197,94,.1); }
.badge.lock { color: #7a7a8c; border-color: #34343f; background: rgba(255,255,255,.03); }
.badge.warn { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.badge.err { color: #f87171; border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }
.badge.info { color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dot-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; margin-left: auto; box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- surfaces ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.card.glow { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(14,14,20,.9) 45%); box-shadow: 0 20px 60px -30px var(--accent-glow); }
.card-pad { padding: 28px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-3); flex: none; }
.icon-box.white { background: #fff; color: #111; border-color: #fff; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.input, .field input, .field textarea, .field select { width: 100%; background: #09090e; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; outline: none; transition: .2s; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--dim); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.error-msg { color: #fca5a5; font-size: 13px; margin: 6px 0 12px; min-height: 1em; }

/* ---------- toast / modal ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #15151e; border: 1px solid var(--line-2); padding: 14px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: tin .25s ease; max-width: 360px; }
.toast.ok { border-color: rgba(34,197,94,.4); }
.toast.err { border-color: rgba(239,68,68,.45); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); z-index: 900; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #0d0d13; border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.modal.wide { width: min(860px, 100%); }
.modal h3 { margin: 0 0 6px; font-size: 20px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: rgba(5,5,8,.75); backdrop-filter: blur(12px); display: flex; flex-direction: column; }
.side-user { text-align: center; padding: 32px 16px 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent-deep)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent), 0 0 30px var(--accent-glow); }
.side-user .email { font-size: 13px; font-weight: 600; word-break: break-all; }
.nav { padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: #b4b4c4; font-size: 15px; transition: .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.03); }
.nav a.active { color: var(--accent-3); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 5%, transparent)); box-shadow: inset 2px 0 0 var(--accent-2); }
.nav-foot { padding: 16px 12px; border-top: 1px solid var(--line); }
.main { min-width: 0; padding: 48px clamp(18px, 4vw, 48px) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.mobile-bar { display: none; }

/* ---------- home ---------- */
.hero { padding: 34px; margin-bottom: 44px; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 65%); filter: blur(10px); }
.hero h1 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 6px; letter-spacing: -.02em; }
.hero .stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 24px; }
.hero .stat span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.row { margin-bottom: 48px; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 240px; aspect-ratio: 2/3; border-radius: 16px; overflow: hidden; position: relative; background: #0c0c12; border: 1px solid var(--line); scroll-snap-align: start; transition: transform .3s, box-shadow .3s, border-color .3s; cursor: pointer; }
.pcard:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); box-shadow: 0 24px 60px -20px var(--accent-glow); }
.pcard img, .pcard .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.92)); }
.pcard .info { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.pcard .info h4 { margin: 10px 0 0; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.pcard.locked img, .pcard.locked .art { filter: grayscale(1) brightness(.45); }
.pcard.locked h4 { color: #8d8d9c; }
.pcard .lockico { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; color: #9a9aac; border: 1px solid #333; }
.pbar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); box-shadow: 0 0 10px var(--accent-glow); }
.art { container-type: inline-size; display: grid; place-items: center; text-align: center; padding: 20px; overflow: hidden; }
.art .bigword { font-size: 54px; font-weight: 900; line-height: .9; text-transform: uppercase; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, var(--accent-3) 55%, var(--accent-pop)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; position: relative; }
.art .ghost { position: absolute; inset: 0; font-size: 80px; font-weight: 900; line-height: .85; color: rgba(255,255,255,.04); text-transform: uppercase; word-break: break-all; overflow: hidden; }
.ccard { flex: none; width: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: .2s; scroll-snap-align: start; }
.ccard:hover { border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.ccard .thumb { height: 120px; position: relative; overflow: hidden; background: #0c0c12; }
.ccard .thumb img, .ccard .thumb .art { width: 100%; height: 100%; object-fit: cover; }
.ccard .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); }
.ccard .body { padding: 14px 16px; }
.ccard .body b { font-size: 14px; display: block; margin-top: 4px; }

/* ---------- course page ---------- */
.course-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: #fff; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 32px; align-items: start; }
.lesson-head { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.lesson-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -40px var(--accent-glow); }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); text-align: center; padding: 20px; }
.lesson-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.desc { color: #c5c5d3; line-height: 1.75; font-size: 15px; white-space: pre-line; }
.desc a { color: var(--accent-3); text-decoration: underline; }
.files { display: grid; gap: 10px; margin-top: 18px; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.file:hover { border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.navbtns { display: flex; justify-content: space-between; margin: 30px 0 38px; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.012); margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; padding: 20px 22px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: .2s; color: var(--dim); flex: none; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); line-height: 1.7; white-space: pre-line; font-size: 14px; }
.side-col { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.dl-card { padding: 26px; }
.dl-card ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.dl-card ul li::before { content: '• '; }
.toc-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.toc-head .count { color: var(--accent-3); font-size: 11px; font-weight: 700; }
.toc { max-height: 62vh; overflow-y: auto; }
.mod { border-bottom: 1px solid var(--line); }
.mod > summary { list-style: none; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.mod > summary::-webkit-details-marker { display: none; }
.mod > summary svg { transition: .2s; }
.mod[open] > summary svg { transform: rotate(180deg); }
.mod .lessons { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.les { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.018); font-size: 14px; font-weight: 600; color: #a8a8b8; transition: .15s; }
.les:hover { color: #fff; background: rgba(255,255,255,.035); }
.les .n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; color: var(--dim); background: rgba(255,255,255,.05); flex: none; }
.les.active { border-color: var(--accent-2); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 4%, transparent)); color: #fff; box-shadow: 0 0 24px -8px var(--accent-glow); }
.les.active .n { background: var(--accent); color: #fff; }
.les.active .n::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.les.active .n span { display: none; }
.les.done .n { background: rgba(34,197,94,.15); color: #4ade80; }
.les.locked { opacity: .45; cursor: not-allowed; }
.les .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.les .dur { font-size: 11px; color: var(--dim); font-weight: 500; }
.community { padding: 22px; display: flex; gap: 16px; align-items: center; border-color: rgba(34,197,94,.3); background: linear-gradient(150deg, rgba(34,197,94,.12), rgba(14,14,20,.9) 55%); }
.community .icon-box { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.35); color: #4ade80; }
.comments { margin-top: 10px; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { width: 38px; height: 38px; font-size: 14px; margin: 0; flex: none; box-shadow: none; }
.comment.admin .avatar { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.comment .who { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comment .txt { margin-top: 6px; font-size: 14px; color: #c9c9d6; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.comment .replies { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.comment .replies .comment { border-bottom: 0; padding: 12px 0; }
.link-btn { background: none; border: 0; color: var(--dim); font-size: 12px; padding: 0; margin-top: 6px; margin-right: 12px; }
.link-btn:hover { color: var(--accent-3); }

/* ---------- support / chat ---------- */
.list-item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .15s; }
.list-item:hover { background: rgba(255,255,255,.02); }
.list-item:last-child { border-bottom: 0; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 24px; max-height: 60vh; overflow-y: auto; }
.bubble { max-width: 78%; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.bubble.me { align-self: flex-end; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: 10.5px; opacity: .65; margin-top: 6px; }
.composer { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 48px; max-height: 160px; resize: vertical; background: #09090e; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14px; outline: none; }
.ann { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.ann:last-child { border-bottom: 0; }
.ann.unread { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); box-shadow: inset 2px 0 0 var(--accent-2); }
.ann h4 { margin: 6px 0 8px; font-size: 16px; }
.ann p { margin: 0; color: var(--muted); line-height: 1.65; white-space: pre-line; font-size: 14px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.auth-art .orb { position: absolute; width: min(520px, 70%); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent) 35%, var(--accent-deeper) 65%, transparent 72%); filter: blur(2px); animation: float 9s ease-in-out infinite; opacity: .85; }
.auth-art .ring { position: absolute; left: 50%; top: 50%; border: 1px solid color-mix(in srgb, var(--accent-3) 25%, transparent); border-radius: 50%; transform: translate(-50%, -50%) rotateX(70deg); }
.auth-art .ring.r1 { width: 680px; height: 680px; animation: spin 30s linear infinite; }
.auth-art .ring.r2 { width: 820px; height: 820px; border-style: dashed; animation: spin 50s linear infinite reverse; }
@keyframes float { 50% { transform: translate(-50%, -54%) scale(1.03); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); } }
.auth-art .brand, .auth-art .tag { position: relative; z-index: 1; }
.auth-art .tag h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .box { width: min(400px, 100%); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: 13px; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-3), var(--accent)); display: grid; place-items: center; color: #fff; box-shadow: 0 0 24px var(--accent-glow); }

.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(34,197,94,.35); z-index: 50; transition: .2s; }
.wa-float:hover { transform: scale(1.07); }
.skeleton { background: linear-gradient(90deg, #111118 25%, #191922 50%, #111118 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.fadein { animation: up .35s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .course-grid { grid-template-columns: 1fr; }
  .side-col { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(5,5,8,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(8,8,12,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); padding: 6px 10px; position: relative; }
  .mobile-nav a.active { color: var(--accent-3); }
  .mobile-nav .dot-count { position: absolute; top: 0; right: 4px; min-width: 16px; height: 16px; font-size: 9px; }
  .main { padding: 24px 16px 110px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .pcard { width: 168px; }
  .art .bigword { font-size: 34px; }
  .card-pad { padding: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .wa-float { bottom: 84px; }
  .bubble { max-width: 90%; }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }
