
/* Premium RTL course style – Nova Edition */
:root{
  --bg:#0B0E14; --panel:#0E111A; --card:#121624; --ink:#EAF0F6; --muted:#9AA4B2; --brand:#7CFFB2; --brand-2:#6AB8FF;
  --danger:#FF6B6B; --ok:#7CFFB2; --accent:#FFD166; --line:rgba(255,255,255,.08);
  --radius:18px; --rsm:12px;
  --shadow: 0 10px 35px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.03) inset;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: 'Heebo', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin:0; background: radial-gradient(900px 600px at 90% -10%, rgba(122,255,210,.2), transparent 60%), var(--bg);
  color:var(--ink); direction: rtl;
}
a{color:var(--brand-2); text-decoration:none}
a:hover{text-decoration:underline}
.header{
  display:flex; align-items:center; gap:14px; padding:16px 22px; position:sticky; top:0; z-index:100;
  background: rgba(14,17,26,.65); border-bottom:1px solid var(--line); backdrop-filter: blur(12px);
}
.logo{
  width:44px; height:44px; border-radius:13px; background: conic-gradient(from 210deg, var(--brand) 10%, var(--brand-2) 50%, var(--accent) 90%);
  box-shadow: var(--shadow);
}
.hbrand{font-size:18px; font-weight:800; letter-spacing:.2px}
.tag{font-size:12px; color:var(--muted)}
.container{max-width:1280px; margin:0 auto; padding:22px}
.layout{display:grid; grid-template-columns:300px 1fr; gap:22px}
@media (max-width: 980px){ .layout{grid-template-columns:1fr} .sidebar{order:2} }
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sidebar{padding:16px; position:sticky; top:86px; height: calc(100dvh - 110px); overflow:auto}
.sidebar h3{margin:6px 0 10px; font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.2px}
.nav-item{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius: var(--rsm); cursor:pointer; border:1px solid transparent}
.nav-item:hover{background:rgba(255,255,255,.06); border-color: var(--line)}
.nav-item.active{background:linear-gradient(90deg, rgba(122,255,210,.12), rgba(106,184,255,.10)); border-color: rgba(122,255,210,.45)}
.badge{padding:3px 9px; border-radius:999px; font-size:12px; color:#081016; background: var(--accent); font-weight:800}
.progress{width:100%; height:10px; background: rgba(255,255,255,.06); border-radius:999px; overflow:hidden}
.progress .bar{height:100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s ease}
.kpi{display:grid; grid-template-columns: repeat(4,1fr); gap:12px}
.k{padding:14px; border-radius: var(--rsm); background: rgba(255,255,255,.04); border:1px solid var(--line)}
.k .t{font-size:12px; color:var(--muted)}
.k .v{font-size:22px; font-weight:800}
.toolbar{display:flex; gap:10px; flex-wrap:wrap}
input[type="text"], input[type="number"], select, button, textarea{
  padding:10px 12px; border-radius: 12px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.03); color:var(--ink);
}
button.primary{background: linear-gradient(90deg, var(--brand), var(--brand-2)); color:#081016; font-weight:800; border:none}
button.ghost{background: transparent; border:1px solid rgba(255,255,255,.15)}
.small{font-size:12px; color:var(--muted)}

.chapter{padding:22px}
.chapter h2{margin:0 0 6px 0}
.section{padding:14px 16px; border-radius:14px; background: rgba(255,255,255,.04); border:1px solid var(--line); margin:12px 0}
.section h3{margin:0 0 8px 0}
.law{white-space:pre-wrap; line-height:1.6; background: rgba(255,255,255,.02); padding:12px; border-radius:12px; border:1px dashed rgba(255,255,255,.12)}
.law .src{font-size:12px; color:var(--muted); margin-bottom:6px}
.quiz{display:grid; gap:12px}
.qcard{padding:14px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background: rgba(2,4,8,.4)}
.qcard.correct{border-color: rgba(124,255,178,.7); background: rgba(124,255,178,.08)}
.qcard.incorrect{border-color: rgba(255,107,107,.7); background: rgba(255,107,107,.06)}

.search-res{display:flex; flex-direction:column; gap:10px}
.search-hit{padding:10px; border-radius:10px; background:rgba(255,255,255,.04); border:1px solid var(--line)}

hr.sep{border:0; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); margin:20px 0}
footer{margin-top:40px; padding:24px; text-align:center; color:var(--muted)}

.timer{font-variant-numeric: tabular-nums; font-weight:800}
.mark{background: rgba(255,255,0,.15); padding:0 4px; border-radius:6px}
