
:root {
  --bg: #0b0d0f;
  --panel: #111417;
  --panel2: #161a1e;
  --border: #252a2f;
  --text: #f2efe7;
  --dim: #92989f;
  --amber: #c9a96e;
  --danger: #e5685f;
  --warn: #e8a33d;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg); color: var(--text);
  font-family: 'Zain', 'Segoe UI', Tahoma, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
.mono { font-family: 'Doppio One', Consolas, monospace; direction: ltr; }
.dim { color: var(--dim); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,15,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-text {
  font-weight: 700; font-size: 18px; color: var(--text);
  line-height: 1.25; display: flex; flex-direction: column; justify-content: center;
}
.brand-text span { font-size: 10.5px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav-links > a {
  color: var(--dim); text-decoration: none; font-weight: 500; font-size: 14px;
  transition: color .18s; white-space: nowrap;
}
.nav-links > a:hover { color: var(--text); }
.nav-links > a.active { color: var(--text); font-weight: 600; }
.nav-links > a.active::after { content:''; display:block; height:1px; margin-top:7px; background:var(--amber); }

.user-area { display: flex; align-items: center; gap: 8px; margin-inline-start: 8px; }
.user-pill {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; padding: 4px 12px 4px 5px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .18s;
}
.user-pill:hover { border-color: #3d3d45; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--amber); font-weight: 600; font-size: 13px;
}
.uname { color: var(--text); font-size: 13.5px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 9px;
  color: var(--dim); cursor: pointer; transition: all .18s;
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

.burger {
  display: none; margin-inline-start: auto; background: none; border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 10px; cursor: pointer; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14.5px;
  padding: 11px 26px; border-radius: 6px; cursor: pointer;
  text-decoration: none; transition: all .18s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: #101214; }
.btn-primary:hover { background: #dbc08f; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #4a4a52; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* PAGE */
.page-head {
  max-width: 1180px; margin: 0 auto; padding: 58px 28px 12px;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.hello-kicker {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--dim);
}
.page-head h1 { font-size: 34px; font-weight: 600; line-height: 1.35; letter-spacing:-.02em; }
.page-head p { color: var(--dim); margin-top: 4px; font-size: 14px; }
.quick-links { display: flex; gap: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* AUTH */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: min(420px, 100%);
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 32px;
}
.auth-logo { width: 52px; height: 52px; display: block; margin: 0 auto 16px; }
.auth-card h2 { text-align: center; font-size: 21px; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--dim); font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--dim); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; font-family: inherit; font-size: 14.5px;
  outline: none; transition: border-color .18s;
}
.field input:focus { border-color: #4a4a52; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--dim); }
.auth-alt a { color: var(--amber); text-decoration: none; }
.form-error {
  display: none; background: rgba(229,104,95,.08); border: 1px solid rgba(229,104,95,.35);
  color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.form-error.show { display: block; }

/* CHIPS / FILTERS */
.filters { max-width: 1080px; margin: 22px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.f-label { color: var(--dim); font-size: 12.5px; font-weight: 500; margin-inline-start: 10px; }
.chip {
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  background: transparent; color: var(--dim);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 15px; cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--text); border-color: #4a4a52; }
.chip.on { color: var(--text); border-color: var(--text); background: rgba(255,255,255,.05); }

/* CHALLENGES GRID */
.ch-grid {
  max-width: 1080px; margin: 22px auto 80px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.ch-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .2s ease; overflow: hidden;
}
.ch-card::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 2px;
  background: var(--cat-c); opacity: .9;
}
.ch-card:hover { transform: translateY(-3px); border-color: #3d3d45; }
.ch-card.solved { border-color: rgba(232,163,61,.45); }
.solved-check {
  position: absolute; top: 14px; inset-inline-end: 14px;
  color: var(--amber); font-weight: 600; font-size: 11.5px;
  border: 1px solid rgba(232,163,61,.4);
  padding: 2px 10px; border-radius: 99px;
}
.ch-top { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.ic-svg { width: 22px; height: 22px; color: var(--cat-c); flex-shrink: 0; }
.ch-cat { font-size: 12px; font-weight: 600; color: var(--cat-c); }
.ch-diff {
  margin-inline-start: auto; font-size: 11px; font-weight: 600;
  color: var(--diff-c); border: 1px solid var(--diff-c);
  padding: 1px 9px; border-radius: 99px; opacity: .9;
}
.ch-title { font-size: 17px; font-weight: 600; margin-bottom: 7px; }
.ch-desc {
  color: var(--dim); font-size: 13px; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-foot { display: flex; align-items: center; margin-top: 16px; gap: 10px; }
.ch-points { font-family: 'Doppio One', monospace; font-weight: 500; font-size: 13px; color: var(--text); }
.ch-solves { color: var(--dim); font-size: 12px; margin-inline-start: auto; }
.fb-tag { color: var(--danger); font-weight: 600; }

.empty-state {
  grid-column: 1/-1; text-align: center; color: var(--dim);
  padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--radius);
}

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0,0,0,.72); backdrop-filter: blur(5px);
  align-items: flex-start; justify-content: center; padding: 60px 20px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(600px, 100%); max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  float: left; background: none; border: none; color: var(--dim);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--danger); }
.modal .ch-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.modal h3 { font-size: 21px; margin-bottom: 12px; }
.modal .desc { color: #c9c5bc; font-size: 14px; line-height: 2.05; margin-bottom: 18px; }
.hint-toggle {
  background: none; border: none; color: var(--amber); cursor: pointer;
  font-family: inherit; font-weight: 500; font-size: 13px; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.hint-box {
  background: rgba(232,163,61,.06); border: 1px dashed rgba(232,163,61,.35);
  border-radius: 10px; padding: 12px 15px; font-size: 13px; color: #ecd9b0;
  margin-top: 10px; margin-bottom: 16px; line-height: 1.9;
}
.flag-row { display: flex; gap: 8px; }
.flag-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font-family: 'Doppio One', monospace;
  font-size: 13.5px; outline: none; direction: ltr; text-align: left;
}
.flag-row input:focus { border-color: #4a4a52; }
.attach-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
}
.attach-link:hover { border-bottom-color: var(--text); }
.fb-note { margin-top: 13px; font-size: 12.5px; color: var(--dim); }
.fb-note b { color: var(--danger); font-weight: 600; }

/* SCOREBOARD */
.sb-table-wrap { max-width: 900px; margin: 22px auto 80px; padding: 0 24px; overflow-x: auto; }
.sb-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; min-width: 520px; }
.sb-table th { text-align: right; color: var(--dim); font-size: 12px; font-weight: 500; padding: 0 18px 4px; }
.sb-row { background: var(--panel); transition: transform .15s; }
.sb-row td { padding: 14px 18px; }
.sb-row td:first-child { border-radius: 0 12px 12px 0; }
.sb-row td:last-child { border-radius: 12px 0 0 12px; }
.rank-cell { font-weight: 500; font-family: 'Doppio One', monospace; font-size: 14px; }
.r1 { color: #e8b93d; } .r2 { color: #b8bcc6; } .r3 { color: #cd8757; }
.sb-user { font-weight: 600; font-size: 14.5px; }
.me-tag {
  color: var(--amber); font-size: 10.5px; font-weight: 600;
  border: 1px solid rgba(232,163,61,.4); border-radius: 99px; padding: 1px 8px; margin-inline-start: 6px;
}

/* DASHBOARD */
.dash-stats {
  max-width: 1080px; margin: 24px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stat-tile {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px;
}
.stat-tile b { display: block; font-size: 26px; font-weight: 700; color: var(--text); font-family: 'Doppio One', monospace; }
.stat-tile span { font-size: 12px; color: var(--dim); margin-top: 4px; display: block; }
.stat-tile small { font-size: 11px; color: var(--amber); font-family: 'Doppio One', monospace; }

.dash-grid2 {
  max-width: 1080px; margin: 14px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel h3.panel-title { margin-bottom: 16px; font-size: 15px; font-weight: 600; }

.cont-path-name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.cont-path-meta { color: var(--dim); font-size: 13px; margin-bottom: 14px; line-height: 1.8; }
.prog-row { margin-bottom: 14px; }
.prog-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; align-items: center; gap: 8px; }
.prog-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.prog-track { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px; background: var(--amber); transition: width .5s ease; }
.prog-count { color: var(--dim); font-family: 'Doppio One', monospace; font-size: 11.5px; }

.next-ch {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: border-color .18s; margin-bottom: 14px;
}
.next-ch:hover { border-color: #3d3d45; }
.next-ch b { font-size: 14.5px; display: block; }
.next-ch small { color: var(--dim); font-size: 12px; display: block; margin-top: 3px; }
.next-ch .go {
  margin-inline-start: auto; color: var(--amber); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}

.solve-list { display: flex; flex-direction: column; gap: 8px; }
.solve-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 14px;
}
.solve-item .ic-svg { width: 18px; height: 18px; }
.solve-item b { font-size: 13.5px; font-weight: 600; }
.solve-item small { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.solve-item .p {
  margin-inline-start: auto; color: var(--text); font-weight: 500;
  font-family: 'Doppio One', monospace; font-size: 12.5px; white-space: nowrap;
}
.fb-mini { color: var(--danger); font-size: 11px; font-weight: 600; margin-inline-start: 6px; }

/* ROOMS (challenges by category) */
.rooms-grid {
  max-width: 1080px; margin: 24px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px;
}
.room-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 14px 16px; cursor: pointer; text-align: center;
  transition: all .2s ease; aspect-ratio: 1 / .78;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.room-card:hover { transform: translateY(-3px); border-color: #3d3d45; }
.room-card.active { border-color: var(--rc); }
.room-card.active b { color: var(--rc); }
.room-card .ic-svg { width: 27px; height: 27px; color: var(--rc); margin-bottom: 11px; }
.room-card b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.room-card span {
  display: block; margin-top: 5px; color: var(--dim);
  font-family: 'Doppio One', monospace; font-size: 11.5px;
}

/* PATHS */
.paths-grid {
  max-width: 1080px; margin: 22px auto 80px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px;
}
.path-room { background: var(--panel); border: 1px solid var(--border); border-top: 2px solid var(--path-c); border-radius: var(--radius); padding: 22px; }
.path-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.path-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--path-c); flex-shrink: 0; }
.path-title { font-size: 19px; font-weight: 700; }
.path-progress { margin-inline-start: auto; color: var(--dim); font-size: 12.5px; font-family: 'Doppio One', monospace; }
.path-desc { color: var(--dim); font-size: 13.5px; line-height: 1.95; margin-bottom: 20px; max-width: 640px; }
.path-track { position: relative; padding-inline-start: 26px; }
.path-step {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 11px; margin-bottom: 10px; cursor: pointer; transition: border-color .18s;
}
.path-step:last-child { margin-bottom: 0; }
.path-step:hover { border-color: #3d3d45; }
.path-track::before {
  content: ''; position: absolute; inset-inline-start: 8px; top: 18px; bottom: 18px;
  width: 1px; background: var(--border);
}
.step-marker {
  position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-inline-start: -26px;
}
.path-step.done .step-marker { background: var(--path-c); border-color: var(--path-c); }
.step-marker svg { width: 10px; height: 10px; color: #121214; }
.step-num-mono { color: var(--dim); font-size: 11px; }
.path-step.done b { color: var(--text); }
.path-step b { font-size: 14px; font-weight: 600; }
.path-step small { color: var(--dim); font-size: 11.5px; display: block; margin-top: 2px; }
.step-pts { margin-inline-start: auto; font-family: 'Doppio One', monospace; font-size: 12px; color: var(--dim); }
.path-step.done .step-pts { color: var(--amber); }

/* TOASTS */
.toasts { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel2); border: 1px solid var(--border); border-inline-start: 3px solid var(--amber);
  color: var(--text); border-radius: 10px; padding: 13px 18px; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 44px rgba(0,0,0,.5); animation: toastIn .22s ease; min-width: 250px; max-width: 340px;
}
.toast.err { border-inline-start-color: var(--danger); }
.toast.hide { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(-20px); opacity: 0; } }

/* ROOM BAR */
.room-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 1080px; margin: 14px auto 0; padding: 12px 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
}
.room-bar b { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.room-bar .chip { font-size: 12px; }
.room-bar .f-label { font-size: 12.5px; font-weight: 500; color: var(--dim); }

/* PATH DETAIL */
.pd-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--dim); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: color .18s; margin-bottom: 8px;
}
.pd-back:hover { color: var(--text); }
.pstep {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
  cursor: pointer; transition: border-color .18s, box-shadow .18s;
}
.pstep::before {
  content: ''; position: absolute; inset-inline-start: 16px;
  top: 52px; bottom: 0; width: 2px; background: var(--border);
}
.pstep:last-child::before { display: none; }
.marker {
  position: absolute; inset-inline-start: -8px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Doppio One', monospace; font-size: 12.5px; font-weight: 700;
  color: var(--dim); flex-shrink: 0;
}
.pstep.done .marker {
  background: var(--pc); border-color: var(--pc); color: #121214;
}
.pstep.next { border-color: rgba(232,163,61,.5); }
.pstep-content { margin-inline-start: 44px; }
.pstep-content b { font-size: 15px; }
.fb-mini {
  display: inline-block; color: var(--amber); font-size: 11px;
  font-weight: 600; border: 1px solid rgba(232,163,61,.4);
  border-radius: 99px; padding: 1px 8px; margin-inline-start: 6px;
}

@media (max-width: 900px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid2 { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; inset-inline: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 20px 24px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .user-area { margin-inline-start: 0; justify-content: space-between; }
  .page-head { padding-top: 34px; }
}

/* COMMAND CENTER — redesigned dashboard, paths, and category navigation */
.command-center { max-width:1080px; margin:0 auto; padding:34px 24px 0; }
.eyebrow { display:block; color:var(--amber); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.command-hero { min-height:244px; position:relative; overflow:hidden; display:flex; align-items:flex-end; justify-content:space-between; gap:28px; padding:32px; border:1px solid #34333b; border-radius:22px; background:linear-gradient(130deg,#1c1c22,#111217 68%); isolation:isolate; }
.command-hero::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(105deg,transparent 45%,rgba(224,179,77,.1)); }
.hero-orbit { position:absolute; z-index:-1; border:1px solid rgba(224,179,77,.15); border-radius:50%; }
.hero-orbit-a { width:360px; height:360px; inset-inline-start:-135px; bottom:-230px; }.hero-orbit-b { width:540px; height:540px; inset-inline-start:-180px; bottom:-390px; }
.hero-copy h1 { max-width:640px; margin:8px 0 8px; font-size:32px; line-height:1.35; }.hero-copy h1 span { color:#a6a3ac; font-weight:500; }.hero-copy p { color:var(--dim); font-size:14px; }
.hero-rank { min-width:150px; padding:18px 20px; text-align:center; border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(8,8,11,.45); backdrop-filter:blur(10px); }.hero-rank span,.hero-rank small { display:block; color:var(--dim); font-size:11px; }.hero-rank strong { display:block; margin:3px 0; font:700 36px 'Doppio One',monospace; color:var(--amber); }.hero-rank a,.text-action { display:inline-block; margin-top:11px; color:var(--text); font-size:12px; font-weight:600; text-decoration:none; }
.mission-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:12px 0; }.mission-stat { padding:16px 18px; background:var(--panel); border:1px solid var(--border); border-radius:14px; }.mission-stat span { color:var(--dim); font-size:11.5px; }.mission-stat b { display:block; margin-top:4px; font:700 23px 'Doppio One',monospace; }.mission-stat small { color:var(--dim); font-size:12px; }
.dash-missions { display:grid; grid-template-columns:1.4fr 1fr; gap:12px; }.featured-mission,.next-mission { min-height:190px; padding:24px; border:1px solid var(--border); border-radius:18px; background:var(--panel); }.featured-mission { position:relative; overflow:hidden; background:linear-gradient(125deg,rgba(224,179,77,.1),var(--panel) 50%); }.featured-mission::before { content:''; position:absolute; width:190px; height:190px; border:25px solid var(--mission-c); opacity:.12; border-radius:50%; inset-inline-end:-65px; top:-75px; }.featured-mission h2 { margin:8px 0 6px; font-size:22px; }.featured-mission p { max-width:510px; color:var(--dim); line-height:1.8; font-size:13px; }.mission-progress { max-width:420px; margin:18px 0; }.mission-progress span { display:block; margin-bottom:7px; color:var(--dim); font-size:12px; }.prog-track { height:6px; overflow:hidden; border-radius:20px; background:#0c0c10; }.prog-track i { display:block; height:100%; border-radius:inherit; background:var(--mission-c,var(--path-c,var(--amber))); }.next-mission { display:flex; flex-direction:column; }.modern-next { flex:1; margin:11px 0 0; background:#131319; }.challenge-icon,.room-icon { display:inline-flex; align-items:center; justify-content:center; color:var(--icon-c,var(--rc)); }.challenge-icon .ic-svg { width:28px; height:28px; }.modern-next em { margin-inline-start:auto; color:var(--amber); font:500 11px 'Doppio One',monospace; font-style:normal; }.command-lower { padding:0; margin-top:12px; }.command-lower .panel { padding:20px; }

.mission-map { grid-template-columns:repeat(3,1fr); gap:16px; }.path-room { position:relative; min-height:330px; overflow:hidden; cursor:pointer; border-top:1px solid var(--border); padding:24px; transition:transform .2s,border-color .2s,box-shadow .2s; }.path-room:hover { transform:translateY(-5px); border-color:var(--path-c); box-shadow:0 18px 38px rgba(0,0,0,.24); }.path-card-glow { position:absolute; width:150px; height:150px; inset-inline-end:-50px; top:-55px; border-radius:50%; background:var(--path-c); opacity:.1; filter:blur(18px); }.path-card-top { position:relative; display:flex; justify-content:space-between; align-items:center; }.path-number { color:var(--path-c); font:700 13px 'Doppio One',monospace; }.path-progress { padding:4px 8px; color:var(--dim); border:1px solid var(--border); border-radius:99px; font-size:10px; }.path-emblem { display:flex; align-items:center; justify-content:center; width:52px; height:52px; margin:28px 0 14px; border:1px solid color-mix(in srgb,var(--path-c) 45%,transparent); border-radius:14px; color:var(--path-c); background:color-mix(in srgb,var(--path-c) 10%,transparent); }.path-emblem .ic-svg { width:27px; height:27px; }.path-title { font-size:20px; }.path-desc { min-height:75px; font-size:13px; }.path-card-progress { margin-top:16px; }.path-card-progress>div:first-child { display:flex; justify-content:space-between; margin-bottom:8px; color:var(--dim); font-size:11px; }.path-card-progress b { color:var(--text); }.path-enter { display:block; margin-top:20px; color:var(--path-c); font-size:13px; font-weight:700; }.path-enter b { margin-inline-start:5px; }
.path-welcome { max-width:1080px; margin:32px auto 0; padding:0 24px; }.path-welcome-grid { display:grid; grid-template-columns:1fr 210px; gap:30px; padding:28px 32px; border:1px solid color-mix(in srgb,var(--path-c) 45%,var(--border)); border-radius:20px; background:linear-gradient(120deg,color-mix(in srgb,var(--path-c) 14%,var(--panel)),var(--panel) 65%); }.path-welcome h1 { margin:7px 0; font-size:30px; }.path-welcome p { max-width:630px; color:var(--dim); line-height:1.9; }.welcome-meta { display:flex; gap:18px; margin-top:18px; color:var(--text); font-size:12px; }.welcome-meta span::before { content:'◈'; color:var(--path-c); margin-inline-end:6px; }.path-score { padding:18px; align-self:center; border-radius:14px; background:rgba(0,0,0,.22); }.path-score span { color:var(--dim); font-size:12px; }.path-score b { display:block; margin:5px 0 12px; color:var(--path-c); font:700 30px 'Doppio One',monospace; }.path-run { margin-top:26px; padding-bottom:70px; max-width:860px; }.path-run-head { display:flex; justify-content:space-between; margin-bottom:14px; }.path-run-head span { font-size:16px; font-weight:700; }.path-run-head small { color:var(--dim); font-size:12px; }.pstep { padding:20px 22px; }.pstep.next { border-color:var(--pc); box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 10%,transparent); }.pstep.locked { cursor:not-allowed; opacity:.48; }.locked-label { color:var(--dim); font-size:11px; }.pstep .marker { background:var(--panel2); }.pstep.next .marker { color:var(--pc); border-color:var(--pc); }.pstep.next .marker span { color:var(--pc); }

.category-launcher { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin-top:26px; }.category-launcher .room-card { min-height:210px; aspect-ratio:auto; position:relative; overflow:hidden; padding:22px; text-align:right; align-items:flex-start; justify-content:flex-end; border-radius:17px; }.category-launcher .room-card::after { content:''; position:absolute; width:125px; height:125px; border-radius:50%; background:var(--rc); opacity:.1; inset-inline-end:-38px; top:-38px; }.category-launcher .room-card:hover { border-color:var(--rc); }.room-icon { position:relative; z-index:1; width:52px; height:52px; margin-bottom:auto; border:1px solid color-mix(in srgb,var(--rc) 42%,transparent); border-radius:14px; background:color-mix(in srgb,var(--rc) 9%,transparent); }.room-icon .ic-svg { width:27px; height:27px; }.category-launcher b { font-size:16px; }.category-launcher span:not(.room-icon) { margin-top:4px; }.category-launcher em { margin-top:12px; color:var(--rc); font-size:12px; font-style:normal; font-weight:700; }
.category-hero { max-width:1080px; margin:32px auto 0; padding:0 24px; }.category-hero-main { display:flex; align-items:center; gap:18px; padding:28px 30px; border:1px solid color-mix(in srgb,var(--cat-c) 40%,var(--border)); border-radius:20px; background:linear-gradient(115deg,color-mix(in srgb,var(--cat-c) 12%,var(--panel)),var(--panel) 70%); }.category-hero-icon { display:inline-flex; align-items:center; justify-content:center; width:68px; height:68px; border:1px solid color-mix(in srgb,var(--cat-c) 48%,transparent); border-radius:17px; color:var(--cat-c); }.category-hero-icon .ic-svg { width:34px; height:34px; }.category-hero h1 { margin:5px 0; font-size:30px; }.category-hero p { color:var(--dim); font-size:13px; }.category-count { margin-inline-start:auto; min-width:100px; text-align:center; }.category-count b { display:block; color:var(--cat-c); font:700 26px 'Doppio One',monospace; }.category-count small,.category-count span { color:var(--dim); font-size:11px; }.category-tools { max-width:1032px; margin:16px auto 0; display:flex; align-items:center; gap:14px; color:var(--dim); font-size:12px; }.category-tools #roomBar { flex:1; }.category-tools .room-bar { max-width:none; margin:0; padding:8px 12px; }.category-filters { margin-top:14px; }
@media (max-width:900px) { .mission-map{grid-template-columns:repeat(2,1fr)}.command-hero{align-items:flex-start;flex-direction:column}.hero-rank{display:flex;align-items:center;gap:10px;text-align:right;width:100%}.hero-rank strong{margin:0}.hero-rank a{margin-inline-start:auto;margin-top:0}.dash-missions{grid-template-columns:1fr}.path-welcome-grid{grid-template-columns:1fr}.path-score{max-width:280px}.category-hero-main{flex-wrap:wrap}.category-count{margin-inline-start:0}.category-tools{padding:0 24px}.category-tools>span{display:none} }
@media (max-width:560px) { .command-center{padding:22px 16px 0}.command-hero{padding:24px;min-height:220px}.hero-copy h1{font-size:25px}.mission-stats{grid-template-columns:repeat(2,1fr)}.mission-map{grid-template-columns:1fr}.path-welcome,.category-hero{padding:0 16px}.path-welcome-grid,.category-hero-main{padding:22px}.category-hero-icon{width:55px;height:55px}.category-hero h1,.path-welcome h1{font-size:25px}.path-run{padding:0 16px 50px}.path-run-head small{display:none}.pstep-content{margin-inline-start:28px}.pstep{padding:17px 14px}.category-tools{padding:0 16px}.category-tools .room-bar b{display:none}.category-tools .room-bar{justify-content:flex-end}.category-filters{padding:0 16px}.category-launcher .room-card{min-height:175px} }

/* ADMIN */
.admin-stats { margin-bottom:12px; }
.admin-grid { max-width:1080px; margin:0 auto; padding:0 24px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.admin-panel-wide { grid-column:1 / -1; }
.admin-table-scroll { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:720px; }
.admin-table th,.admin-table td { padding:12px 10px; text-align:right; border-bottom:1px solid var(--border); font-size:13px; }
.admin-table th { color:var(--dim); font-weight:500; font-size:11.5px; }
.role-select { color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:7px 10px; font:inherit; }
.role-select:disabled { opacity:.55; }
.admin-challenges,.admin-activity { display:flex; flex-direction:column; gap:8px; }
.admin-challenge,.activity-row { display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg); }
.admin-challenge b,.activity-row b { font-size:13px; }
.admin-challenge small,.activity-row small { display:block; margin-top:2px; color:var(--dim); font-size:11px; }
.admin-challenge>span { margin-inline-start:auto; color:var(--amber); font:500 11px 'Doppio One',monospace; }
.activity-status { flex-shrink:0; padding:3px 7px; border-radius:99px; font-size:10px; }
.activity-status.ok { color:#d8d8d8; background:rgba(255,255,255,.06); }
.activity-status.bad { color:#ef8098; background:rgba(239,128,152,.1); }
@media (max-width:760px) { .admin-grid{grid-template-columns:1fr;padding:0 16px}.admin-panel-wide{grid-column:auto} }

/* PROGRESSION DASHBOARD */
.pro-dashboard { padding-bottom:70px; }
.level-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:1fr 1.15fr; gap:44px; align-items:center; min-height:280px; padding:38px; border:1px solid #35343d; border-radius:24px; background:radial-gradient(circle at 10% 120%,rgba(224,179,77,.2),transparent 43%),linear-gradient(135deg,#202027,#111217 72%); }
.level-hero::after { content:'LOGIC'; position:absolute; inset-inline-end:-25px; top:-38px; color:rgba(255,255,255,.025); font:900 150px 'Doppio One'; letter-spacing:-12px; pointer-events:none; }
.level-title { display:flex; align-items:center; gap:18px; margin-top:16px; }.level-title h1{margin:2px 0 5px;font-size:29px}.level-title p{color:var(--dim);font-size:13px}.level-title small{color:var(--amber);font:700 11px 'Doppio One';letter-spacing:.12em}
.level-emblem { display:flex;align-items:center;justify-content:center;width:76px;height:76px;flex-shrink:0;border:1px solid rgba(224,179,77,.55);border-radius:22px;color:#17171b;background:linear-gradient(145deg,#f2cf7a,#c99231);box-shadow:0 14px 42px rgba(224,179,77,.18);font:800 28px 'Doppio One'; }
.level-progress-card { position:relative;z-index:1;padding:22px 24px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(7,7,10,.48);backdrop-filter:blur(12px) }.level-progress-head,.level-meta{display:flex;justify-content:space-between;gap:12px}.level-progress-head{margin-bottom:12px;font-size:12px;color:var(--dim)}.level-progress-head b{color:var(--text);font-family:'Doppio One'}.level-bar{height:11px;padding:2px;overflow:hidden;border:1px solid rgba(255,255,255,.08);border-radius:99px;background:#09090c}.level-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#bd842e,#f0ce77);box-shadow:0 0 18px rgba(224,179,77,.45)}.level-meta{margin-top:16px}.level-meta span{font-size:11px;color:var(--dim)}.level-meta b{display:block;margin-top:3px;color:var(--text);font:600 13px 'Doppio One'}
.dashboard-actions{display:grid;grid-template-columns:1.55fr .8fr;gap:12px;margin-top:12px}.continue-card,.challenge-spotlight{position:relative;overflow:hidden;padding:27px;border:1px solid var(--border);border-radius:19px;background:var(--panel)}.continue-card{background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 13%,var(--panel)),var(--panel) 60%)}.continue-card h2{margin:8px 0;font-size:22px}.continue-card p,.challenge-spotlight p{color:var(--dim);font-size:13px;line-height:1.8}.compact-progress{height:6px;margin:20px 0 12px;overflow:hidden;border-radius:99px;background:#09090d}.compact-progress i{display:block;height:100%;background:var(--accent)}.card-action-row{display:flex;justify-content:space-between;align-items:center;color:var(--dim);font-size:12px}.challenge-spotlight{display:grid;grid-template-columns:auto 1fr;column-gap:13px;align-items:center}.challenge-spotlight>.eyebrow,.challenge-spotlight>p,.challenge-spotlight>.reward-pills{grid-column:1/-1}.challenge-spotlight h3{font-size:18px}.challenge-spotlight .btn{grid-column:1/-1;justify-self:start;margin-top:13px}.spot-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;color:var(--spot);border:1px solid color-mix(in srgb,var(--spot) 40%,transparent);border-radius:13px;background:color-mix(in srgb,var(--spot) 9%,transparent)}.spot-icon svg{width:24px}.reward-pills{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.reward-pills span{padding:5px 9px;border:1px solid var(--border);border-radius:99px;color:var(--text);background:rgba(255,255,255,.025);font:600 10px 'Doppio One'}
.dashboard-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.dashboard-strip a{padding:17px 19px;text-decoration:none;border:1px solid var(--border);border-radius:13px;background:var(--panel);transition:.2s}.dashboard-strip a:hover{border-color:#4c4a54;transform:translateY(-2px)}.dashboard-strip small{display:block;color:var(--dim);font-size:11px}.dashboard-strip b{display:block;margin-top:4px;color:var(--text);font:700 19px 'Doppio One'}

/* LEARNING EXPERIENCE */
.vertical-curriculum{max-width:900px}.curriculum-line{position:relative;padding-inline-start:42px}.curriculum-line::before{content:'';position:absolute;inset-inline-start:15px;top:24px;bottom:30px;width:2px;background:linear-gradient(var(--pc),var(--border))}.curriculum-step{min-height:180px;margin-bottom:18px;padding:25px 28px;cursor:pointer}.curriculum-step .marker{inset-inline-start:-59px;top:26px;width:42px;height:42px;border-color:color-mix(in srgb,var(--pc) 60%,var(--border));color:var(--pc);background:var(--bg);font-size:11px}.curriculum-step::before{display:none}.curriculum-step:hover{border-color:var(--pc);transform:translateX(-3px)}.curriculum-step h3{margin:7px 0;font-size:19px}.curriculum-step p{max-width:680px;color:var(--dim);font-size:13px;line-height:1.85}.lesson-kind{color:var(--pc);font-size:11px;font-weight:600}.curriculum-rewards{display:flex;gap:8px;align-items:center;margin-top:16px}.curriculum-rewards span,.curriculum-rewards b{padding:5px 9px;border:1px solid var(--border);border-radius:99px;font:500 10px 'Doppio One'}.curriculum-rewards b{margin-inline-start:auto;color:var(--pc);border-color:color-mix(in srgb,var(--pc) 42%,transparent)}
.lesson-shell{max-width:1080px;margin:32px auto 80px;padding:0 24px}.lesson-hero{display:grid;grid-template-columns:1fr 230px;gap:35px;align-items:center;padding:38px;border:1px solid color-mix(in srgb,var(--lesson-c) 42%,var(--border));border-radius:24px;background:linear-gradient(125deg,color-mix(in srgb,var(--lesson-c) 14%,var(--panel)),var(--panel) 65%)}.lesson-hero h1{margin:8px 0;font-size:34px}.lesson-hero p{max-width:660px;color:#bbb8c1;line-height:1.9}.lesson-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--lesson-c) 45%,transparent);border-radius:28px;color:var(--lesson-c);background:radial-gradient(circle,color-mix(in srgb,var(--lesson-c) 17%,transparent),transparent 67%)}.lesson-visual svg{width:68px;height:68px}.lesson-visual small{margin-top:15px;font:600 9px 'Doppio One';letter-spacing:.18em}.lesson-layout{display:grid;grid-template-columns:1fr 220px;gap:18px;align-items:start;margin-top:18px}.lesson-content{display:flex;flex-direction:column;gap:12px}.theory-block,.lab-launch{position:relative;padding:28px 30px;border:1px solid var(--border);border-radius:17px;background:var(--panel)}.block-number{position:absolute;inset-inline-end:23px;top:20px;color:rgba(255,255,255,.06);font:800 31px 'Doppio One'}.theory-block h2,.lab-launch h2{margin-bottom:12px;font-size:20px}.theory-block p,.theory-block li,.lab-launch p{color:#b4b0ba;font-size:13.5px;line-height:2}.theory-block ul{padding-inline-start:20px}.theory-block li::marker{color:var(--lesson-c)}.lesson-aside{position:sticky;top:88px;display:flex;flex-direction:column;padding:20px;border:1px solid var(--border);border-radius:15px;background:var(--panel)}.lesson-aside b{margin-bottom:12px;font-size:13px}.lesson-aside span{padding:9px 0;border-bottom:1px solid var(--border);color:var(--dim);font-size:11.5px}.lab-launch{display:flex;align-items:center;justify-content:space-between;gap:25px;border-color:color-mix(in srgb,var(--lesson-c) 45%,var(--border));background:linear-gradient(120deg,color-mix(in srgb,var(--lesson-c) 10%,var(--panel)),var(--panel))}.lab-launch p{max-width:580px}

/* SCOREBOARD */
.scoreboard-hero{max-width:1080px;margin:34px auto 0;padding:32px 36px;display:flex;justify-content:space-between;align-items:end;border:1px solid #36343e;border-radius:22px;background:linear-gradient(130deg,#201d25,#111217)}.scoreboard-hero h1{margin:6px 0;font-size:32px}.scoreboard-hero p{color:var(--dim)}.score-legend{display:flex;gap:14px;color:var(--dim);font-size:11px}.dot{display:inline-block;width:7px;height:7px;margin-inline-end:5px;border-radius:50%}.dot.points{background:var(--amber)}.dot.xp{background:#8f82e8}.podium{max-width:900px;margin:16px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.podium-card{display:flex;flex-direction:column;align-items:center;padding:22px;border:1px solid var(--border);border-radius:17px;background:var(--panel)}.podium-card.place-1{order:2;border-color:rgba(224,179,77,.5);transform:translateY(-7px);background:linear-gradient(rgba(224,179,77,.08),var(--panel))}.podium-card.place-2{order:1}.podium-card.place-3{order:3}.podium-rank{color:var(--amber);font:600 11px 'Doppio One'}.podium-avatar{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:13px;border-radius:16px;background:#282730;font:700 20px 'Doppio One'}.podium-card h3{font-size:15px}.podium-card>span:not(.podium-rank){margin:5px;color:var(--dim);font:500 10px 'Doppio One'}.podium-card>b{color:var(--amber);font:600 12px 'Doppio One'}.table-level{padding:4px 7px;border:1px solid rgba(143,130,232,.3);border-radius:7px;color:#aaa0f1;font:600 10px 'Doppio One'}
@media(max-width:800px){.level-hero,.lesson-hero{grid-template-columns:1fr}.level-hero{gap:24px}.dashboard-actions,.lesson-layout{grid-template-columns:1fr}.lesson-visual{display:none}.lesson-aside{display:none}.dashboard-strip{grid-template-columns:repeat(2,1fr)}.podium{padding:0 16px}.scoreboard-hero{margin:20px 16px 0;align-items:flex-start;flex-direction:column;gap:16px}.lab-launch{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.level-hero{padding:24px}.level-title{align-items:flex-start}.level-emblem{width:58px;height:58px}.level-title h1{font-size:22px}.level-meta{flex-wrap:wrap}.dashboard-actions{grid-template-columns:1fr}.podium{grid-template-columns:1fr}.podium-card,.podium-card.place-1{order:initial;transform:none}.curriculum-line{padding-inline-start:24px}.curriculum-step .marker{inset-inline-start:-43px;width:34px;height:34px}.curriculum-step{padding:20px 18px}.lesson-shell{padding:0 16px}.lesson-hero{padding:25px}.lesson-hero h1{font-size:27px}.theory-block,.lab-launch{padding:22px}.score-legend{flex-direction:column}}

/* LOGIC ACADEMY — restrained academic design system */
body { font-family:'Zain',Tahoma,'Segoe UI',Arial,sans-serif; background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px); background-size:100% 32px; }
.btn,input,textarea,select,button { font-family:'Zain',Tahoma,'Segoe UI',Arial,sans-serif; }
.mono { font-family: Consolas, 'Courier New', monospace; }
.command-center,.page-head,.profile-hero,.admin-grid,.ch-grid,.filters,.rooms-grid,.paths-grid,.scoreboard-hero,.sb-table-wrap { max-width:1180px; }
.eyebrow,.hello-kicker { display:inline-flex; align-items:center; width:max-content; padding:4px 9px; color:#a5abb0; letter-spacing:0; font-family:'Zain',Tahoma,sans-serif; font-size:11px; font-weight:600; text-transform:none; border:1px solid #2d3338; border-radius:4px; background:#0d1012; }
.panel,.auth-card,.ch-card,.path-room,.continue-card,.challenge-spotlight,.level-hero,.scoreboard-hero,.podium-card,.theory-block,.lesson-hero { border-radius:8px; box-shadow:none; }
.level-hero { margin-top:40px; border-color:#30363c; background:linear-gradient(135deg,#15191d,#101315); }
.level-emblem { border-radius:5px; background:transparent; border:1px solid var(--amber); color:var(--amber); }
.level-title h1,.page-head h1,.profile-hero h1 { font-weight:600; }
.level-bar,.prog-track,.compact-progress { height:4px; background:#080a0c; }
.dashboard-actions { margin-top:14px; }
.continue-card,.challenge-spotlight { border-color:var(--border); background:var(--panel); }
.continue-card::before,.challenge-spotlight::before { display:none; }
.ch-card { padding:24px; min-height:230px; }
.ch-card::before { width:1px; }
.ch-card::before,.room-card::before { background:var(--amber)!important; }
.ic-svg,.ch-cat,.room-icon,.path-emblem,.category-hero-icon { color:var(--amber)!important; }
.ch-card:hover { transform:translateY(-2px); border-color:#444b52; background:#14181c; }
.ch-card.solved { border-color:#4d4739; }
.ch-diff { color:#aeb3b8!important; border-color:#343a3f!important; background:#0d1012; border-radius:4px; }
.chip { border-radius:5px; }
.chip.on { border-color:#6f6552; background:#191814; color:#e8ddc7; }
.modal { border-radius:8px; border-color:#373d43; background:#111417; }
.field input,.field textarea,.field select,.role-select { width:100%; background:#0b0d0f; color:var(--text); border:1px solid var(--border); border-radius:5px; padding:11px 12px; font:inherit; outline:none; }
.field textarea { resize:vertical; line-height:1.7; }
.field input:focus,.field textarea:focus,.field select:focus { border-color:#75694f; }
.field small { display:block; color:var(--dim); margin-top:5px; font-size:11px; }
.avatar img,.profile-avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.profile-hero { margin:42px auto 14px; padding:32px 28px; display:flex; align-items:center; gap:20px; border:1px solid var(--border); background:var(--panel); }
.profile-hero>div { flex:1; }
.profile-hero h1 { margin:4px 0; font-size:30px; }
.profile-hero p,.profile-bio { color:var(--dim); }
.profile-bio { margin-top:10px; max-width:650px; line-height:1.7; }
.profile-avatar { width:82px; height:82px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex:none; border:1px solid #4d4739; background:#17191b; color:var(--amber); font-size:26px; font-weight:600; overflow:hidden; }
.profile-avatar.small { width:62px; height:62px; font-size:20px; }
.profile-form { margin-top:24px; }
.avatar-upload { display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.text-button { background:none; border:0; color:var(--dim); cursor:pointer; font:inherit; font-size:12px; }
.text-button:hover { color:var(--danger); }
.admin-head { border-bottom:1px solid var(--border); padding-bottom:26px; margin-bottom:18px; }
.admin-grid { grid-template-columns:1fr 1fr; gap:14px; }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:1px solid var(--border); padding-bottom:16px; margin-bottom:12px; }
.panel-heading>span { color:var(--dim); font-size:12px; }
.panel-title { margin-top:3px; }
.admin-table th { text-transform:uppercase; letter-spacing:.05em; }
.admin-table td { padding-block:15px; }
.row-sub { display:block; color:var(--dim); margin-top:3px; font-size:10px; direction:ltr; text-align:right; }
.row-actions { text-align:left!important; white-space:nowrap; }
.row-actions button { background:none; border:0; color:var(--amber); cursor:pointer; font:inherit; font-size:12px; margin-inline-start:12px; }
.row-actions .danger-link { color:var(--danger); }
.publish-state { display:inline-block; color:#c1c1c1; border:1px solid #4a4a4a; border-radius:4px; padding:3px 8px; font-size:11px; }
.publish-state.draft { color:var(--dim); border-color:var(--border); }
.challenge-form { margin-top:22px; max-height:70vh; overflow:auto; padding-inline-end:5px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.check-field { display:flex; gap:9px; align-items:center; min-height:44px; color:var(--dim); font-size:13px; }
.check-field input { accent-color:var(--amber); }
.challenge-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.lab-open { font:inherit; cursor:pointer; }
.web-terminal { margin-top:18px; border:1px solid #333a40; border-radius:6px; overflow:hidden; direction:ltr; background:#07090a; }
.terminal-bar { height:38px; display:flex; align-items:center; gap:6px; padding:0 12px; background:#15191c; border-bottom:1px solid #2b3035; }
.terminal-bar>span { width:8px; height:8px; border-radius:50%; background:#4c5359; }
.terminal-bar b { margin-left:8px; color:#858d94; font:10px Consolas,monospace; letter-spacing:.12em; }
.terminal-bar button { margin-left:auto; background:none; border:0; color:#92989f; cursor:pointer; font:11px Tahoma,sans-serif; }
.terminal-output { height:210px; padding:14px; white-space:pre-wrap; overflow:auto; color:#dcdcdc; font:12px/1.7 Consolas,monospace; }
.terminal-dim { color:#6f777d; }.terminal-prompt { color:#c9a96e; }.terminal-error,.lab-error { color:#e5685f; }
.terminal-input { display:flex; align-items:center; gap:8px; border-top:1px solid #22272b; padding:9px 12px; font-family:Consolas,monospace; color:var(--amber); }
.terminal-input input { flex:1; background:transparent; color:#ebebeb; border:0; outline:0; font:12px Consolas,monospace; direction:ltr; }
.terminal-input button { background:#242a2e; color:#d8d8d8; border:0; border-radius:3px; padding:5px 10px; cursor:pointer; }
.lab-loading,.lab-error { margin-top:14px; padding:12px; border:1px solid var(--border); background:#0b0d0f; font-size:12px; }
@media(max-width:700px){.profile-hero{margin:24px 16px 10px;padding:22px 18px;flex-wrap:wrap}.profile-hero .btn{width:100%}.form-grid{grid-template-columns:1fr}.admin-grid{padding:0 16px}.level-hero{margin:22px 16px 0}.nav-inner{padding:0 16px}.page-head{padding-inline:16px}}

/* Separate learning curriculum from competitive challenges */
.mission-map { grid-template-columns:repeat(3,1fr); gap:18px; }
.path-room { min-height:390px; padding:28px; border:1px solid var(--border); background:#111417; }
.path-room:hover { transform:translateY(-3px); border-color:#454c51; box-shadow:none; }
.path-card-glow { display:none; }
.path-number { color:#a5abb0; font-family:'Zain',Tahoma,sans-serif; font-weight:600; }
.path-progress { border-radius:4px; }
.path-emblem { width:58px; height:58px; margin:34px 0 18px; border-radius:6px; border-color:#3d3930; background:#171611; }
.path-title { font-size:22px; line-height:1.5; }
.path-desc { min-height:120px; margin-top:8px; color:#9ca2a7; line-height:1.9; }
.path-curriculum-meta { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0 4px; }
.path-curriculum-meta span { padding:5px 9px; color:#aab0b5; border:1px solid var(--border); border-radius:4px; font-size:11px; }
.path-enter { color:#d7c096; }
.path-welcome-grid { border-color:#30363b; border-radius:8px; background:#111417; }
.path-score { border-radius:6px; background:#0b0d0f; border:1px solid var(--border); }
.path-score b { color:var(--text); }
.welcome-meta span::before { color:#858b90; }
.curriculum-line::before { width:1px; background:var(--border); }
.curriculum-step { min-height:210px; border-radius:7px; }
.curriculum-step:hover,.curriculum-step.next { border-color:#4a5157; box-shadow:none; }
.curriculum-step .marker,.curriculum-step.next .marker { color:#d2bd94; border-color:#4c4537; border-radius:5px; }
.lesson-kind { color:#9fa5aa; font-weight:600; }
.curriculum-rewards span,.curriculum-rewards b { border-radius:4px; font-family:'Zain',Tahoma,sans-serif; }
.curriculum-rewards b { color:#d7c096; border-color:#514936; }
.lesson-hero { border-color:#30363b; border-radius:8px; background:#111417; }
.lesson-visual { border-color:#3e3930; border-radius:7px; color:var(--amber); background:#0e1113; }
.learning-meta { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.learning-meta span { padding:6px 10px; color:#b0b5b9; border:1px solid var(--border); border-radius:4px; font-size:11px; }
.lesson-setup { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lesson-setup>div { min-height:120px; padding:20px; border:1px solid var(--border); border-radius:7px; background:var(--panel); }
.lesson-setup span { display:block; margin-bottom:12px; color:#8e959a; font-size:11px; font-weight:600; }
.lesson-setup b { display:block; margin-top:7px; color:#d4d4d4; font-size:12px; font-weight:400; }
.lesson-setup b::before { content:'—'; margin-inline-end:7px; color:#6f767b; }
.tool-list { display:flex; gap:7px; flex-wrap:wrap; }
.tool-list code { padding:5px 8px; color:#d9c59e; border:1px solid #403a2e; border-radius:4px; background:#0c0e10; font:11px Consolas,monospace; }
.mindset-block { padding:24px 28px; border:1px solid #3b4247; border-inline-start:3px solid #7b8388; border-radius:7px; background:#101417; }
.mindset-block span { color:#a6adb2; font-size:11px; font-weight:600; }
.mindset-block p { margin-top:8px; color:#d2d2d2; line-height:1.9; font-size:14px; }
.theory-block,.lab-launch { border-radius:7px; }
.block-number { color:rgba(255,255,255,.045); }
.lab-launch { border-color:#484231; background:#15140f; }
.practice-checklist { display:flex; gap:8px; flex-wrap:wrap; margin-top:15px; padding:0; list-style:none; }
.practice-checklist li { padding:5px 9px; color:#bdb7aa; border:1px solid #3c392f; border-radius:4px; font-size:11px; }

/* Larger, balanced challenge category directory */
.category-launcher { grid-template-columns:repeat(6,1fr); gap:16px; }
.category-launcher .room-card { grid-column:span 2; min-height:260px; padding:28px; justify-content:flex-start; border-radius:7px; border-color:var(--border); background:#111417; }
.category-launcher .room-card:nth-last-child(-n+2) { grid-column:span 3; }
.category-launcher .room-card::after { display:none; }
.category-launcher .room-card:hover { transform:translateY(-3px); border-color:#464d52; }
.room-card-head { width:100%; display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:32px; }
.room-icon { width:58px; height:58px; margin:0; border-radius:6px; border-color:#3d3930; background:#171611; }
.room-index { color:#596168; font-size:12px; }
.category-launcher b { font-size:21px; }
.category-launcher .room-card p { margin-top:9px; min-height:52px; color:#959ca1; font-size:13px; line-height:1.8; }
.room-card-foot { width:100%; display:flex; justify-content:space-between; gap:12px; margin-top:auto; padding-top:20px; border-top:1px solid var(--border); }
.category-launcher .room-card-foot span { margin:0; color:#868d92; font-size:11px; }
.category-launcher .room-card-foot em { margin:0; color:#d3bc91; }
.level-title small,.level-progress-head b { color:#aeb3b7; font-family:'Zain',Tahoma,sans-serif; letter-spacing:0; }
@media(max-width:900px){.category-launcher{grid-template-columns:repeat(2,1fr)}.category-launcher .room-card,.category-launcher .room-card:nth-last-child(-n+2){grid-column:span 1}.mission-map{grid-template-columns:1fr 1fr}.lesson-setup{grid-template-columns:1fr}}
@media(max-width:580px){.category-launcher{grid-template-columns:1fr}.mission-map{grid-template-columns:1fr}.category-launcher .room-card{min-height:230px}.path-desc{min-height:auto}}

/* Icon treatment: large line icons without colored tiles */
.category-launcher .room-icon,
.path-emblem,
.spot-icon,
.category-hero-icon {
  width:auto; height:auto; margin:0; padding:0;
  border:0!important; border-radius:0!important;
  background:transparent!important; box-shadow:none!important;
}
.category-launcher .room-icon .ic-svg { width:48px; height:48px; color:#d9d7d0!important; stroke-width:1.35; }
.category-hero-icon .ic-svg { width:52px; height:52px; color:#d9d7d0!important; stroke-width:1.3; }
.spot-icon .ic-svg { width:34px; height:34px; color:#d9d7d0!important; }

/* Academy path directory */
.paths-intro { max-width:1180px; margin:0 auto; padding:76px 28px 42px; border-bottom:1px solid var(--border); }
.paths-intro h1 { max-width:760px; margin:15px 0 12px; font-size:clamp(34px,5vw,56px); line-height:1.3; font-weight:600; letter-spacing:-.035em; }
.paths-intro p { max-width:760px; color:#a2a8ad; font-size:16px; line-height:2; }
.learning-paths-list { max-width:1180px; margin:0 auto; padding:30px 28px 90px; }
.learning-path-feature { display:grid; grid-template-columns:1fr 260px; gap:54px; padding:42px 0; cursor:pointer; border-bottom:1px solid var(--border); }
.learning-path-feature:first-child { border-top:1px solid var(--border); }
.learning-path-feature:hover h2,.learning-path-feature:hover .learning-path-progress>b { color:#dfc99f; }
.learning-path-copy .path-number { display:block; margin-bottom:17px; color:#858d93; font-size:11px; }
.learning-path-copy h2 { font-size:32px; line-height:1.35; transition:color .18s; }
.learning-path-copy h3 { margin-top:5px; color:#8f969b; font-size:15px; font-weight:400; }
.learning-path-copy>p { max-width:730px; margin-top:20px; color:#a5abb0; line-height:1.95; }
.learning-path-progress { align-self:center; padding-inline-start:28px; border-inline-start:1px solid var(--border); }
.learning-path-progress strong { display:block; color:var(--text); font:600 42px Consolas,monospace; }
.learning-path-progress span { display:block; margin:5px 0 17px; color:#858c92; font-size:11px; }
.learning-path-progress>b { display:block; margin-top:18px; color:#c8b58e; font-size:12px; transition:color .18s; }

/* Path syllabus */
.academy-path-hero { max-width:980px; margin:0 auto; padding:54px 28px 36px; }
.academy-path-hero .pd-back { display:block; margin-bottom:40px; }
.academy-path-hero h1 { margin:14px 0 8px; font-size:clamp(38px,6vw,62px); line-height:1.25; font-weight:600; letter-spacing:-.04em; }
.academy-path-hero>p { max-width:780px; color:#a5abb0; font-size:16px; line-height:2; }
.academy-path-meta { display:flex; align-items:center; gap:20px; margin:28px 0 15px; color:#8f969b; font-size:12px; }
.academy-path-meta b { margin-inline-start:auto; color:#d6d6d6; }
.academy-syllabus { max-width:980px; margin:0 auto; padding:20px 28px 100px; }
.academy-syllabus>header { display:grid; grid-template-columns:210px 1fr; gap:34px; padding:28px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.academy-syllabus>header span { font-size:18px; font-weight:600; }
.academy-syllabus>header p { color:#969da2; font-size:13px; line-height:1.9; }
.academy-module { padding:45px 0 8px; border-bottom:1px solid var(--border); }
.academy-module-title { display:grid; grid-template-columns:52px 1fr auto; gap:20px; align-items:start; margin-bottom:24px; }
.academy-module-title>span { color:#656d73; font:500 15px Consolas,monospace; }
.academy-module-title h2 { font-size:25px; font-weight:600; }
.academy-module-title p { max-width:650px; margin-top:6px; color:#92999e; font-size:13px; line-height:1.8; }
.academy-module-title>b { padding:5px 9px; color:#a9afb3; border:1px solid var(--border); border-radius:4px; font-size:10px; font-weight:500; }
.academy-lesson-list { margin-inline-start:72px; }
.academy-lesson-row { display:grid; grid-template-columns:40px 1fr 70px 75px; gap:16px; align-items:center; min-height:92px; color:inherit; text-decoration:none; border-top:1px solid #20252a; transition:background .18s,padding .18s; }
.academy-lesson-row:hover { padding-inline:12px; background:#0f1214; }
.academy-lesson-row>span { color:#60686e; font:11px Consolas,monospace; }
.academy-lesson-row h3 { font-size:15px; font-weight:600; }
.academy-lesson-row p { margin-top:3px; color:#858d92; font-size:11.5px; }
.academy-lesson-row small { color:#737b81; font-size:10px; }
.academy-lesson-row>b { color:#c4b28e; font-size:10px; font-weight:500; }
.academy-lesson-row.completed h3 { color:#cfcfcf; }
.academy-lesson-row.disabled { opacity:.43; cursor:not-allowed; }
.academy-lesson-row.disabled:hover { padding-inline:0; background:transparent; }

/* Full-screen lesson reader */
.academy-reader { min-height:calc(100vh - 72px); background:#0b0d0f; }
.academy-reader-head { position:sticky; top:72px; z-index:20; display:grid; grid-template-columns:1fr auto; max-width:1180px; margin:0 auto; padding:15px 28px 13px; background:rgba(11,13,15,.95); border-bottom:1px solid var(--border); backdrop-filter:blur(12px); }
.academy-reader-head>a { color:#9aa1a6; text-decoration:none; font-size:11px; }
.academy-reader-head>div { display:flex; gap:20px; color:#777f85; font-size:10px; }
.academy-reader-head strong { color:#b9b9b9; font-family:Consolas,monospace; }
.reader-progress { grid-column:1/-1; height:2px; margin-top:12px; background:#1b2024; }
.reader-progress i { display:block; height:100%; background:#9d8a64; }
.academy-article { max-width:820px; margin:0 auto; padding:72px 28px 110px; }
.academy-article-intro { padding-bottom:58px; border-bottom:1px solid var(--border); }
.academy-article-intro h1 { max-width:760px; margin:17px 0 14px; font-size:clamp(38px,7vw,68px); line-height:1.25; font-weight:600; letter-spacing:-.045em; }
.academy-article-intro>p { max-width:680px; color:#9fa6ab; font-size:17px; line-height:2; }
.academy-reading-section { position:relative; padding:58px 0 54px; border-bottom:1px solid var(--border); }
.reading-number { display:block; margin-bottom:18px; color:#626a70; font:11px Consolas,monospace; }
.academy-reading-section h2 { margin-bottom:20px; font-size:28px; font-weight:600; }
.academy-reading-section p { margin:0 0 18px; color:#c3c3c3; font-size:16px; line-height:2.15; }
.academy-reading-section pre { position:relative; margin:30px 0 8px; padding:24px; direction:ltr; text-align:left; overflow:auto; border:1px solid #282e33; border-radius:6px; background:#07090a; }
.academy-reading-section pre code { color:#d6d6d6; font:13px/1.9 Consolas,monospace; }
.academy-reading-section pre button { position:absolute; top:10px; right:10px; padding:5px 9px; color:#8f979d; border:1px solid #30363b; border-radius:3px; background:#111519; cursor:pointer; font-size:10px; }
.academy-reading-section aside { margin-top:28px; padding:20px 22px; color:#c4c4c4; border-inline-start:2px solid #777f84; background:#0f1214; font-size:13px; line-height:1.9; }
.embedded-lab-section { margin:64px -60px 20px; padding:46px 60px 55px; border:1px solid #30363b; border-radius:8px; background:#101315; }
.embedded-lab-copy h2 { margin:14px 0 8px; font-size:30px; }
.embedded-lab-copy>p { color:#969da2; line-height:1.9; }
.machine-preview { min-height:390px; margin:30px 0 26px; display:grid; place-items:center; overflow:hidden; border:1px solid #30373c; border-radius:7px; background:radial-gradient(circle at 50% 45%,#151a1d,#07090a 70%); }
.machine-preview-idle { text-align:center; padding:34px; }
.machine-glyph { display:block; margin-bottom:22px; color:#d5d5d5; font:500 56px Consolas,monospace; }
.machine-preview-idle h3 { font-size:19px; }
.machine-preview-idle p { margin:7px 0 24px; color:#828a90; font-size:12px; }
.machine-preview .web-terminal { width:100%; height:100%; min-height:390px; margin:0; border:0; border-radius:0; }
.machine-preview .terminal-output { height:300px; }
.learning-question { padding-top:28px; border-top:1px solid var(--border); }
.learning-question label { display:block; margin-bottom:13px; color:#e2e1dc; font-size:15px; font-weight:600; }
.learning-question>div { display:grid; grid-template-columns:1fr auto; gap:9px; }
.learning-question input { min-width:0; padding:12px 14px; color:var(--text); border:1px solid #30373c; border-radius:5px; background:#080a0b; outline:0; direction:ltr; }
.learning-question input:focus { border-color:#73684f; }
.learning-question>p { margin-top:10px; font-size:12px; }
.learning-question>p.ok { color:#d8d8d8; }.learning-question>p.bad { color:#df8178; }
.learning-question>p a { margin-inline-start:10px; color:#dac397; }
.lesson-takeaway { margin-top:58px; padding:30px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.lesson-takeaway>span { color:#858d92; font-size:11px; }
.lesson-takeaway ul { display:grid; gap:10px; margin-top:17px; padding:0; list-style:none; }
.lesson-takeaway li { color:#c9c9c9; font-size:14px; }
.lesson-takeaway li::before { content:'✓'; margin-inline-end:9px; color:#989898; }
.academy-reader-nav { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:42px; }
.academy-reader-nav>a,.academy-reader-nav>button { padding:20px 0; color:inherit; text-align:right; text-decoration:none; border:0; border-bottom:1px solid var(--border); background:transparent; cursor:pointer; }
.academy-reader-nav span { display:block; color:#767e84; font-size:10px; }
.academy-reader-nav b { display:block; margin-top:5px; font-size:13px; font-weight:600; }
.reader-next { text-align:left!important; }.completion-hint { align-self:center; text-align:left; }
@media(max-width:850px){.learning-path-feature{grid-template-columns:1fr;gap:24px}.learning-path-progress{padding:0;border:0}.academy-syllabus>header{grid-template-columns:1fr}.academy-module-title{grid-template-columns:40px 1fr}.academy-module-title>b{grid-column:2}.academy-lesson-list{margin-inline-start:0}.academy-lesson-row{grid-template-columns:32px 1fr 60px}.academy-lesson-row>b{display:none}.embedded-lab-section{margin-inline:0;padding:32px 24px}}
@media(max-width:560px){.paths-intro{padding-top:48px}.learning-path-feature{padding:30px 0}.learning-path-copy h2{font-size:27px}.academy-path-meta{flex-wrap:wrap}.academy-path-meta b{width:100%;margin:0}.academy-module-title{grid-template-columns:30px 1fr}.academy-lesson-row{grid-template-columns:28px 1fr}.academy-lesson-row small{display:none}.academy-reader-head{top:72px}.academy-article{padding-top:48px}.academy-reading-section p{font-size:15px}.machine-preview{min-height:330px}.learning-question>div{grid-template-columns:1fr}.academy-reader-nav{grid-template-columns:1fr}.reader-next{text-align:right!important}}
.lesson-media{margin:20px 0 0;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--bg)}.lesson-media img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:9px}.lesson-media figcaption{margin-top:9px;color:var(--dim);font-size:10px;text-align:center}

/* Clear, solid academy hierarchy */
.learning-paths-list { display:grid; gap:22px; }
.learning-path-feature {
  padding:40px 42px; border:1px solid #30363b!important; border-radius:12px;
  background:#13171a; box-shadow:0 20px 60px rgba(0,0,0,.18);
  transition:transform .2s,border-color .2s,background .2s;
}
.learning-path-feature:hover { transform:translateY(-3px); border-color:#50585e!important; background:#161a1d; }
.learning-path-progress { min-width:260px; padding:24px; border:1px solid #2d3338; border-radius:9px; background:#0b0e10; }
.learning-path-progress>b {
  min-height:52px; display:flex; align-items:center; justify-content:center; margin-top:22px;
  padding:0 18px; color:#17130d!important; border:1px solid #d0b277; border-radius:6px;
  background:#d7bd88; font-size:14px; font-weight:700;
}
.learning-path-feature:hover .learning-path-progress>b { background:#e1c995; }

.academy-syllabus { display:grid; gap:16px; }
.academy-module-entry {
  display:grid; grid-template-columns:72px 1fr auto; gap:28px; align-items:center;
  min-height:190px; padding:32px 36px; color:inherit; text-decoration:none;
  border:1px solid #343a3f; border-radius:10px; background:#13171a;
  transition:transform .2s,border-color .2s,background .2s;
}
.academy-module-entry:hover { transform:translateY(-2px); border-color:#596168; background:#171b1e; }
.academy-module-entry>span { color:#7f878d; font:500 20px Consolas,monospace; }
.academy-module-entry small { color:#bda979; font-size:11px; font-weight:700; }
.academy-module-entry h2 { margin:7px 0 5px; font-size:29px; font-weight:600; }
.academy-module-entry p { max-width:650px; color:#9da4a9; font-size:14px; line-height:1.85; }
.academy-module-entry div>b { display:block; margin-top:13px; color:#858d92; font-size:11px; font-weight:500; }
.academy-module-entry>strong { min-width:150px; padding:15px 18px; text-align:center; color:#17130d; border-radius:6px; background:#d7bd88; font-size:13px; }
.academy-module-entry.planned { opacity:.55; cursor:default; background:#101316; }
.academy-module-entry.planned:hover { transform:none; border-color:#343a3f; }

.academy-module-page { max-width:980px; margin:0 auto; padding:54px 28px 100px; }
.academy-module-page>header { padding:0 0 42px; border-bottom:1px solid var(--border); }
.academy-module-page>header h1 { margin:14px 0 9px; font-size:clamp(40px,6vw,62px); line-height:1.25; font-weight:600; }
.academy-module-page>header>p { max-width:720px; color:#9fa6ab; font-size:16px; line-height:2; }
.academy-module-page>header>div { display:flex; gap:12px; align-items:center; margin-top:24px; }
.academy-module-page>header>div span,.academy-module-page>header>div b { padding:7px 11px; border:1px solid #30363b; border-radius:5px; color:#aab0b4; font-size:11px; }
.academy-module-page>header>div b { color:#d7c095; }
.academy-module-page>main { padding-top:34px; }
.module-page-heading { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; margin-bottom:18px; }
.module-page-heading span { font-size:19px; font-weight:600; }
.module-page-heading p { max-width:520px; color:#8f979c; font-size:12px; line-height:1.8; }
.module-lesson-link {
  display:grid; grid-template-columns:58px 1fr auto; gap:22px; align-items:center;
  min-height:132px; margin-bottom:12px; padding:24px 26px; color:inherit; text-decoration:none;
  border:1px solid #30363b; border-radius:8px; background:#121619;
  transition:border-color .18s,transform .18s,background .18s;
}
.module-lesson-link:hover { transform:translateX(-3px); border-color:#50585e; background:#161a1d; }
.module-lesson-link>span { color:#697177; font:500 14px Consolas,monospace; }
.module-lesson-link small { color:#8d959a; font-size:10px; }
.module-lesson-link h2 { margin:5px 0 3px; font-size:20px; font-weight:600; }
.module-lesson-link p { color:#858d92; font-size:12px; }
.module-lesson-link>strong { min-width:112px; color:#d2bd94; font-size:12px; text-align:left; }
.module-lesson-link.completed { border-color:#3a3a3a; }
.module-lesson-link.completed>strong { color:#cfcfcf; }

.academy-reader-nav { gap:14px; }
.academy-reader-nav>a,.academy-reader-nav>button {
  min-height:108px; padding:22px 24px; border:1px solid #343a3f; border-radius:8px;
  background:#13171a; transition:border-color .18s,background .18s,transform .18s;
}
.academy-reader-nav>a:hover,.academy-reader-nav>button:hover { transform:translateY(-2px); border-color:#596168; background:#181c1f; }
.academy-reader-nav span { font-size:11px; }
.academy-reader-nav b { margin-top:9px; font-size:15px; }
.reader-next { border-color:#4d4637!important; background:#17150f!important; }

.desktop-loading,.desktop-stopped { width:100%; padding:34px; text-align:center; color:#a4abb0; }
.desktop-loading b { display:block; margin-bottom:8px; color:#e1e0da; font-size:17px; }
.desktop-lab { width:100%; height:100%; min-height:610px; display:flex; flex-direction:column; background:#080a0b; }
.desktop-lab-bar { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:8px 13px; border-bottom:1px solid #30363b; background:#171b1e; }
.desktop-lab-bar>div { display:flex; align-items:center; gap:9px; }
.desktop-lab-bar i { width:8px; height:8px; border-radius:50%; background:#9b9b9b; box-shadow:0 0 0 4px rgba(143,167,127,.1); }
.desktop-lab-bar b { font-size:12px; }.desktop-lab-bar span { color:#7d858b; font-size:10px; }
.desktop-lab-bar button { padding:6px 9px; color:#aeb4b8; border:1px solid #343a3f; border-radius:4px; background:#0f1214; cursor:pointer; font:11px 'Zain',Tahoma,sans-serif; }
.desktop-lab-bar button:hover { color:#fff; border-color:#555e64; }
.desktop-lab-bar .desktop-stop { color:#d78b83; border-color:#503835; }
.desktop-lab iframe { width:100%; min-height:560px; flex:1; border:0; background:#111; }
.desktop-lab:fullscreen { height:100vh; }
.desktop-lab:fullscreen iframe { min-height:0; }

@media(max-width:850px){
  .learning-path-feature{padding:30px}.learning-path-progress{min-width:0}
  .academy-module-entry{grid-template-columns:44px 1fr;padding:26px}.academy-module-entry>strong{grid-column:2;width:100%;margin-top:8px}
  .module-lesson-link{grid-template-columns:40px 1fr}.module-lesson-link>strong{grid-column:2;text-align:right}
  .desktop-lab-bar{align-items:flex-start;flex-direction:column}.desktop-lab-bar>div:last-child{width:100%;flex-wrap:wrap}
}
@media(max-width:560px){
  .learning-paths-list{padding-inline:16px}.learning-path-feature{padding:24px 20px}
  .academy-module-entry{grid-template-columns:1fr;gap:12px;padding:23px 20px}.academy-module-entry>strong{grid-column:1}
  .academy-module-page{padding-inline:16px}.module-page-heading{display:block}.module-page-heading p{margin-top:7px}
  .module-lesson-link{grid-template-columns:1fr;padding:20px}.module-lesson-link>strong{grid-column:1}
  .academy-reader-nav{grid-template-columns:1fr}.academy-reader-nav>span:empty{display:none}
  .desktop-lab{min-height:520px}.desktop-lab iframe{min-height:450px}
}
/* Bilingual control and localized course media */
.language-switch{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;color:var(--text);border:1px solid var(--border);border-radius:5px;background:transparent;cursor:pointer;font:inherit;white-space:nowrap}
.language-switch span{color:var(--amber);font:700 10px Consolas,monospace;letter-spacing:.08em}.language-switch b{font-size:11px;font-weight:600}.language-switch:hover{border-color:#6a6257;background:#171a1d}
.module-source-note{margin-top:20px;padding:14px 16px;color:#a6adb1;border-inline-start:2px solid #9d895f;background:#111518;font-size:12px;line-height:1.8}
.lesson-media{margin:28px 0 8px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#0c0f11}.lesson-media img{display:block;width:100%;max-height:440px;object-fit:contain;border-radius:5px}.lesson-media figcaption{margin-top:10px;color:#8e969b;font-size:11px;line-height:1.7;text-align:center}
.knowledge-check-section{margin:56px 0 0;padding:32px;border:1px solid #3e3e3e;border-radius:8px;background:linear-gradient(145deg,#171717,#101315)}.knowledge-check-head h2{margin:8px 0 7px;font-size:25px}.knowledge-check-head p{color:#9b9b9b;font-size:13px}.knowledge-check-section form{display:grid;gap:14px;margin-top:26px}.knowledge-check-item{display:grid;grid-template-columns:34px 1fr;gap:7px 14px;padding:20px;border:1px solid #30363a;border-radius:6px;background:#0d1012;transition:border-color .2s,background .2s}.knowledge-check-item>span{grid-row:1/3;color:#747c81;font:600 11px Consolas,monospace}.knowledge-check-item>b{font-size:14px;line-height:1.7}.knowledge-check-item input{min-height:42px;padding:0 12px;color:#e1e1e1;border:1px solid #353b40;border-radius:4px;outline:0;background:#090b0d;font:13px inherit}.knowledge-check-item input:focus{border-color:#8e7b55}.knowledge-check-item small{grid-column:2;min-height:3px}.knowledge-check-item.correct{border-color:#525252;background:#141414}.knowledge-check-item.correct small::after{content:'✓';color:#a0a0a0}.knowledge-check-item.incorrect{border-color:#70494b;background:#181112}.knowledge-check-item.incorrect small::after{content:'×';color:#d58e91}.knowledge-check-section form>.btn{justify-self:start;margin-top:4px}.knowledge-check-status{min-height:24px;font-size:13px}.knowledge-check-status.ok{color:#ababab}.knowledge-check-status.bad{color:#d39a9c}.knowledge-check-status a{margin-inline-start:8px;color:#d7bd88}
html[dir="ltr"] .academy-reader-nav>a,html[dir="ltr"] .academy-reader-nav>button{text-align:left}html[dir="ltr"] .module-lesson-link>strong{text-align:right}
@media(max-width:560px){.knowledge-check-section{padding:24px 18px}.knowledge-check-item{grid-template-columns:1fr}.knowledge-check-item>span{grid-row:auto}.knowledge-check-item small{grid-column:1}}
