/* JamiaPrep — Practice Reels: immersive full-screen swipe feed. Green/gold. */
.reels { position: relative; }
.reels-feed {
  height: 100dvh; overflow-y: scroll; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; background: #0e3d20;
}
.reels-feed::-webkit-scrollbar { display: none; }

.reels-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 12px 14px 26px;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(14,61,32,.92), rgba(14,61,32,0));
  pointer-events: none;
}
.reels-head > * { pointer-events: auto; }
.reels-back {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.reels-chips { display: flex; gap: 7px; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; }
.reels-chips::-webkit-scrollbar { display: none; }
.reels-chip {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #dfeee5; border: none; cursor: pointer; white-space: nowrap;
}
.reels-chip.is-on { background: #d4a017; color: #3a2c00; }
.reels-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.reels-session { color: #dfeee5; font-weight: 700; font-size: 13px; white-space: nowrap; }
.reels-saved {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; white-space: nowrap;
  background: rgba(255,255,255,.14); padding: 6px 11px; border-radius: 999px;
}
.reels-saved:hover { background: rgba(255,255,255,.24); }
.reels-streak { flex: 0 0 auto; color: #d4a017; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ---------- Saved shelf (#/saved) ---------- */
.saved { min-height: 100dvh; background: #0e3d20; color: #fff; }
.saved-head {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #12502b; border-bottom: 1px solid rgba(255,255,255,.12);
}
.saved-title { font-weight: 800; font-size: 17px; flex: 1 1 auto; }
.saved-head__count { color: #d4a017; font-weight: 700; font-size: 13px; }
.saved-list { max-width: 720px; margin: 0 auto; padding: 18px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
.saved-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.saved-card__q { font-size: 17px; font-weight: 700; line-height: 1.45; margin: 12px 0 14px; }
.saved-card__opts { display: flex; flex-direction: column; gap: 8px; }
.saved-opt {
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px 13px; font-size: 14px;
  color: #dfeee5; display: flex; gap: 9px; align-items: center;
}
.saved-opt.is-correct { background: rgba(62,196,109,.3); border-color: #3ec46d; color: #fff; font-weight: 700; }
.saved-card__expl {
  background: rgba(255,255,255,.08); border-left: 3px solid #d4a017; border-radius: 9px;
  padding: 11px 13px; font-size: 13.5px; line-height: 1.5; margin-top: 14px; color: #eaf4ed;
}
.saved-card__unsave {
  margin-top: 14px; background: none; border: 1px solid rgba(255,255,255,.28); color: #dfeee5;
  border-radius: 9px; padding: 9px 14px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.saved-card__unsave:hover { background: rgba(214,90,90,.25); border-color: #d65a5a; color: #fff; }
.saved-empty { text-align: center; padding: 60px 20px; }
.saved-empty__big { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.saved-empty__sub { color: #cfe6d7; font-size: 14px; line-height: 1.55; margin: 0 auto 20px; max-width: 360px; }

.reel-card {
  height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; box-sizing: border-box;
  padding: 84px 64px 78px 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(165deg, #1b6e3c, #0e3d20);
}
.reel-card:nth-child(even) { background: linear-gradient(165deg, #186436, #0c3a1f); }
.reel-tag {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; background: rgba(212,160,23,.25); color: #d4a017;
  padding: 4px 9px; border-radius: 6px;
}
.reel-q { font-size: 21px; font-weight: 800; line-height: 1.4; margin: 16px 0 18px; }
.reel-opts { display: flex; flex-direction: column; gap: 10px; }
.reel-opt {
  text-align: left; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 13px 15px; font-size: 15px; color: #fff; cursor: pointer;
  display: flex; gap: 10px; align-items: center; font-family: inherit;
  transition: background .12s, border-color .12s;
}
.reel-opt:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.reel-opt:disabled { cursor: default; }
.reel-opt__k { font-weight: 800; opacity: .7; }
.reel-opt.is-correct { background: rgba(62,196,109,.35); border-color: #3ec46d; }
.reel-opt.is-wrong { background: rgba(214,90,90,.35); border-color: #d65a5a; }
.reel-expl {
  background: rgba(255,255,255,.1); border-radius: 11px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.5; margin-top: 14px;
}
.reel-foot { margin-top: 16px; font-size: 13px; color: #dfeee5; min-height: 20px; }
.reel-foot b { color: #fff; }

.reel-rail {
  position: absolute; right: 10px; bottom: 92px; z-index: 5;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.reel-rail button {
  border: none; background: none; cursor: pointer; color: #dfeee5;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit;
}
.reel-rail__ico {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.reel-rail__cap { font-size: 9px; }
.reel-rail .is-saved .reel-rail__ico { background: #d4a017; color: #3a2c00; }

.reel-hint {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,.6); animation: reelBob 1.5s infinite;
}
@keyframes reelBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (min-width: 760px) {
  .reels-feed { max-width: 460px; margin: 0 auto; }
  .reel-card { border-radius: 0; }
}
