/* forgot password + parent sign-in + parent report */
.ax-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 14px 8px 12px; border: 0; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 600 .82rem var(--f-body); cursor: pointer; transition: transform .3s var(--ease), color .3s; }
.ax-back:hover { color: var(--ink); transform: translateX(3px); } [dir="rtl"] .ax-back:hover, html[lang="ar"] .ax-back:hover { transform: translateX(-3px); }
.ax-back .nv-i { width: 16px; height: 16px; }
html[lang="ar"] .ax-back .nv-i { transform: scaleX(-1); }
.ax-steps { display: flex; gap: 6px; margin: 0 0 20px; } .ax-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .5s var(--ease); } .ax-steps i.on { background: var(--grad, linear-gradient(90deg, var(--cy), var(--lime))); }
.ax-st { display: none; } .ax-st.on { display: block; animation: nvPageIn .6s var(--ease) backwards; }
.ax-code input { text-align: center; letter-spacing: .5em; font-size: 1.3rem; font-weight: 700; padding-inline-start: 0 !important; }
.ax-code input::placeholder { letter-spacing: 0; }
.ax-done { text-align: center; padding: 18px 0 8px; } .ax-done > span { width: 76px; height: 76px; border-radius: 26px; margin: 0 auto 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); animation: axPop .7s var(--ease) backwards; } .ax-done .nv-i { width: 36px; height: 36px; }
@keyframes axPop { from { transform: scale(.5) rotate(-12deg); opacity: 0; } }
.ax-badge { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; margin: 0 0 14px; background: color-mix(in srgb, var(--cy) 16%, transparent); color: var(--cy); } .ax-badge .nv-i { width: 26px; height: 26px; }
.ax-help { margin: -6px 0 6px; color: var(--ink-3); font-size: .78rem; line-height: 1.7; }
#panel-reset .btn.full, #panel-parent .btn.full { margin-top: 8px; }

/* parent report */
html.pr-lock, html.pr-lock body { overflow: hidden; }
#parent-screen { position: fixed; inset: 0; z-index: 400; overflow-y: auto; background: var(--bg); background-image: radial-gradient(60% 40% at 80% 0%, rgba(123,92,255,.22), transparent 70%), radial-gradient(50% 35% at 0% 20%, rgba(24,224,255,.12), transparent 70%); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
#parent-screen.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pr-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; margin: 10px auto 0; width: min(920px, calc(100% - 24px)); border-radius: 22px; background: color-mix(in srgb, var(--bg-2) 78%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line); }
.pr-top img { height: 30px; width: auto; }
.pr-main { width: min(920px, calc(100% - 24px)); margin: 16px auto 40px; display: grid; gap: 14px; }
.pr-main > * { animation: nvPageIn .7s var(--ease) backwards; }
.pr-main > *:nth-child(2) { animation-delay: .06s } .pr-main > *:nth-child(3) { animation-delay: .12s } .pr-main > *:nth-child(4) { animation-delay: .18s } .pr-main > *:nth-child(5) { animation-delay: .24s }
.pr-hero { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 28px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.pr-hero > div:nth-child(2) { flex: 1; min-width: 0; } .pr-hero small { color: var(--ink-3); font-size: .78rem; } .pr-hero h1 { margin: 2px 0 6px; font: 800 1.5rem var(--f-head); }
.pr-av { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font: 800 1.4rem var(--f-head); color: #fff; background: var(--grad); flex-shrink: 0; }
.pr-grade { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .78rem; background: color-mix(in srgb, var(--cy) 14%, transparent); color: var(--cy); }
.pr-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; } .pr-ring svg { display: block; transform: rotate(-90deg); }
.pr-arc { stroke-dashoffset: var(--o); animation: prArc 1.5s var(--ease) .3s backwards; } @keyframes prArc { from { stroke-dashoffset: 314; } }
.pr-ring b { position: absolute; inset: 0; display: grid; place-content: center; font: 800 1.35rem var(--f-head); padding-bottom: 12px; }
.pr-ring small { position: absolute; inset-inline: 0; bottom: 20px; text-align: center; font-size: .62rem; color: var(--ink-3); }
.pr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pr-tiles > div { padding: 16px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); animation: nvPageIn .6s var(--ease) backwards; animation-delay: calc(.2s + var(--i) * .07s); transition: transform .35s var(--ease); } .pr-tiles > div:hover { transform: translateY(-4px); }
.pr-tiles small { display: block; margin: 10px 0 2px; color: var(--ink-3); font-size: .74rem; } .pr-tiles b { font: 800 1.4rem var(--f-head); } .pr-tiles s { text-decoration: none; color: var(--ink-3); font-size: .9rem; margin-inline-start: 2px; }
.pi { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--cy) 15%, transparent); color: var(--cy); flex-shrink: 0; } .pi .nv-i { width: 20px; height: 20px; } .pi.am { background: rgba(255,178,61,.16); color: var(--amber); } .pi.mt { background: color-mix(in srgb, var(--mint) 15%, transparent); color: var(--mint); }
.pr-card { padding: 20px; border-radius: 28px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.pr-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; } .pr-h h2 { margin: 0; font: 700 1.05rem var(--f-head); } .pr-h small { color: var(--ink-3); font-size: .76rem; }
.pr-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; }
.pr-day { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; } .pr-day i { width: 100%; max-width: 38px; height: var(--h); border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, var(--cy), #7b5cff); transform-origin: bottom; animation: prGrow .9s var(--ease) backwards; animation-delay: calc(.35s + var(--i) * .07s); } .pr-day span { font-size: .74rem; color: var(--ink-3); }
@keyframes prGrow { from { transform: scaleY(0); } }
.pr-ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .pr-ex li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, transparent); animation: nvPageIn .6s var(--ease) backwards; animation-delay: calc(.35s + var(--i) * .08s); }
.pr-ex b { display: block; font-size: .92rem; } .pr-ex small { color: var(--ink-3); font-size: .74rem; } .pr-sc { display: flex; align-items: center; gap: 10px; flex-shrink: 0; } .pr-sc em { font: 800 .95rem var(--f-head); font-style: normal; min-width: 44px; text-align: end; }
.pr-bar { display: block; width: 110px; height: 9px; border-radius: 9px; background: var(--line); overflow: hidden; } .pr-bar i { display: block; height: 100%; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, var(--cy), var(--lime)); animation: egGrow 1.2s var(--ease) .5s backwards; }
.pr-games { display: flex; gap: 14px; align-items: flex-start; } .pr-games h2 { margin: 0 0 4px; font: 700 1rem var(--f-head); } .pr-games p { margin: 0 0 10px; color: var(--ink-2); font-size: .85rem; } .pr-games .pr-bar { width: 100%; max-width: 260px; }
.pr-note { text-align: center; color: var(--ink-3); font-size: .78rem; margin: 4px 0 0; }
@media (max-width: 640px) { .pr-tiles { grid-template-columns: repeat(2, 1fr); } .pr-hero { flex-wrap: wrap; } .pr-ring { margin-inline-start: auto; } .pr-sc .pr-bar { width: 64px; } .pr-bars { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .pr-main > *, .pr-tiles > div, .pr-day i, .pr-ex li, .pr-arc, .pr-bar i, .ax-st.on { animation: none; } }
html.no-anim .pr-main > *, html.no-anim .pr-tiles > div, html.no-anim .pr-day i, html.no-anim .pr-ex li, html.no-anim .pr-arc, html.no-anim .pr-bar i, html.no-anim .ax-st.on { animation: none; }
.au-card.ax-sub .auth-tabs { display: none; }
[data-theme="light"] .pr-grade, [data-theme="light"] .pi:not(.am):not(.mt), [data-theme="light"] .ax-badge { color: #0a6a84; }
[data-theme="light"] .pi.mt { color: #0b7a54; } [data-theme="light"] .pi.am { color: #b86a00; }
[data-theme="light"] .au-parent a, [data-theme="light"] .au-forgot { color: #0a6a84; }
html.no-anim .nv-lens, html.no-anim .nv-link, html.no-anim .nv-link span { transition: none !important; }
html.no-anim #parent-screen { transition: none !important; }
.pr-empty { justify-content: center !important; color: var(--ink-3); }
.pc-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.pc-body { flex: 1; min-width: 0; } .pc-body h2 { margin: 0 0 4px; font: 700 1rem var(--f-head); } .pc-body p { margin: 0 0 12px; color: var(--ink-2); font-size: .82rem; line-height: 1.7; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#pc-code { font: 800 1.35rem var(--f-head); letter-spacing: .28em; color: var(--ink-3); } #pc-code.on { color: var(--lime); animation: axPop .6s var(--ease) backwards; }
[data-theme="light"] #pc-code.on { color: #0c0c24; }
.pc-row .btn { min-height: 44px; }
@media (max-width: 640px) { .pr-hero { gap: 12px; padding: 16px; } .pr-hero h1 { font-size: 1.2rem; } .pr-grade { font-size: .72rem; padding: 3px 10px; white-space: nowrap; } .pr-av { width: 50px; height: 50px; } .pr-ring { width: 84px; height: 84px; } .pr-ring b { font-size: 1.15rem; padding-bottom: 10px; } .pr-ring small { bottom: 14px; } }
@keyframes egBob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
.eg-lv { animation: egBob 5s ease-in-out infinite; }

/* tap targets: 44px minimum */
.nv-ic, .nv-cta-sm, .nv-link, .nav-item.nv-link, .auth-lang-btn, .eye, .btn-sm, .filter-chip, .rs-chip, .ax-back, .chat-attach-btn, .otp-resend { min-height: 44px; }
.nv-ic, .auth-lang-btn, .eye, .chat-attach-btn { min-width: 44px; }
@media (max-width: 900px) {
  .nv-ic { width: 44px; height: 44px; } .nv-cta-sm { height: 44px; } .nv-link, .nav-item.nv-link { height: 44px; padding: 0 14px; }
  .nv-links .nv-lens { top: 3px; height: 44px; }
}
.section-link, .au-forgot, .au-alt a, .au-parent a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; margin-inline: -6px; }
.au-forgot { margin-block: -8px 6px; }
.chat-header > button, .modal > button[onclick*="Modal.close"] { min-width: 44px; min-height: 44px; justify-content: center !important; align-items: center !important; display: inline-flex !important; }
.modal > button[onclick*="Modal.close"] { top: 12px !important; inset-inline-end: 12px !important; }
.section-link { min-width: 44px; justify-content: center; } .chat-header > button, .modal > button[onclick*="Modal.close"] { min-width: 44px; min-height: 44px; }
@media (max-width: 400px) {
  .nv-link, .nav-item.nv-link { padding: 0 11px; gap: 6px; min-width: 44px; justify-content: center; }
  #app-nav { gap: 6px; padding-inline: 6px; } #app-nav .nv-tools { gap: 4px; }
  .nv-ic { width: 44px; }
}
@media (max-width: 400px) { .nv-link.active, .nav-item.nv-link.active { padding: 0 9px; gap: 5px; } .nv-link:not(.active) { padding: 0; width: 44px; } .nv-links { padding: 2px; } .nv-nav { gap: 4px; padding: 0 4px; } .nv-tools { gap: 4px !important; } }
@media (max-width: 340px) { .nv-link.active span { display: none; } .nv-link.active { width: 44px; padding: 0; } }

/* light theme contrast: coloured text on tinted chips */
[data-theme="light"] .course-badge.subscribed, [data-theme="light"] .badge-green { color: #0f6b34; }
[data-theme="light"] .course-badge.locked, [data-theme="light"] .badge-gold { color: #7a5a00; }
[data-theme="light"] .badge-red { color: #b42318; }
[data-theme="light"] .badge-blue { color: #0b5f94; }
[data-theme="light"] .sidebar-link[onclick*="handleLogout"], [data-theme="light"] .sidebar-link[onclick*="handleLogout"] span, [data-theme="light"] .wl-err, [data-theme="light"] .otp-err { color: #b42318 !important; }
