:root {
  --brand:#5b5cf0;--brand-hover:#4949d8;--brand-soft:#eeeeff;--page:#f5f7fb;
  --surface:#fff;--surface-subtle:#f8fafc;--text:#111827;--text-soft:#475569;
  --muted:#64748b;--border:#e2e8f0;--border-strong:#cbd5e1;--danger:#b42318;
  --radius-sm:.625rem;--radius-md:.875rem;--radius-lg:1.25rem;--radius-xl:1.75rem;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05),0 4px 14px rgba(15,23,42,.04);
  --shadow-md:0 18px 45px rgba(15,23,42,.1);--header-height:76px;--content-width:1320px;
}
html{color-scheme:light;scroll-behavior:smooth}
body{min-width:320px;margin:0;overflow-x:hidden;background:var(--page);color:var(--text);font-family:"Manrope","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
body,button,input,select,textarea{font-family:"Manrope","Segoe UI",sans-serif}
h1,h2,h3,h4,h5,h6{color:var(--text);font-weight:750;letter-spacing:-.025em}
p,li,td,label{color:inherit}a{color:var(--brand);text-underline-offset:.2em}a:hover{color:var(--brand-hover)}img{max-width:100%}
::selection{background:rgba(91,92,240,.2)}
.page-main{width:min(calc(100% - 2rem),var(--content-width));min-height:calc(100vh - var(--header-height));margin-inline:auto;padding-block:clamp(2rem,4vw,4rem)}

/* App header */
.site-header{position:sticky;z-index:1040;top:0;height:var(--header-height);border-bottom:0;background:transparent;box-shadow:none}
.site-header.is-scrolled{background:transparent;box-shadow:none}
.header-shell{display:flex;width:min(calc(100% - 2rem),var(--content-width));height:100%;margin-inline:auto;align-items:center;justify-content:space-between;gap:clamp(.75rem,2vw,1.5rem)}
.brand{display:inline-flex;min-width:0;flex:0 1 auto;align-items:center;gap:.65rem;color:var(--text);text-decoration:none}.brand:hover{color:var(--text)}
.brand-logo{width:70px;height:70px;padding:4px;flex:0 0 auto;object-fit:contain;border:1px solid rgba(15,23,42,.08);border-radius:14px;background:rgb(200, 233, 227);box-shadow:0 8px 22px rgba(15,23,42,.1)}.brand-copy{display:grid;min-width:0;max-width:250px;line-height:1.1}.brand-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:800}.brand-copy small{display:-webkit-box;overflow:hidden;margin-top:.3rem;color:var(--muted);font-size:.68rem;font-weight:600;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.primary-navigation{display:flex;min-width:0;flex:1;align-items:center;justify-content:flex-end;gap:clamp(.75rem,2vw,1.75rem)}
.nav-links,.nav-actions{display:flex;align-items:center}.nav-links{gap:.25rem}.nav-actions{gap:.625rem}
.nav-link{position:relative;padding:.65rem .8rem;border-radius:.65rem;color:var(--text-soft);font-size:.9rem;font-weight:650;text-decoration:none}.nav-link:hover{background:var(--surface-subtle);color:var(--text)}.nav-link.active{color:var(--brand)}
.nav-link.active::after{position:absolute;right:.8rem;bottom:.2rem;left:.8rem;height:2px;border-radius:99px;background:var(--brand);content:""}
.nav-toggle{display:none;width:44px;height:44px;padding:10px;border:0;border-radius:.75rem;background:transparent}.nav-toggle span{display:block;width:22px;height:2px;margin:4px auto;border-radius:2px;background:var(--text);transition:transform .18s,opacity .18s}.nav-toggle[aria-expanded=true] span:nth-child(1){transform:translateY(6px) rotate(45deg)}.nav-toggle[aria-expanded=true] span:nth-child(2){opacity:0}.nav-toggle[aria-expanded=true] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.icon-button{position:relative;display:inline-grid;width:42px;height:42px;padding:0;place-items:center;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--text-soft)}.icon-button:hover{border-color:var(--border-strong);background:var(--surface-subtle);color:var(--text)}
.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.theme-icon-sun{display:none}
.notification-count{position:absolute;top:-4px;right:-5px;display:grid;min-width:19px;height:19px;padding:0 4px;place-items:center;border:2px solid var(--surface);border-radius:99px;background:#e11d48;color:#fff;font-size:.61rem;font-weight:800}
.notification-menu{width:min(380px,calc(100vw - 2rem));max-height:440px;overflow-y:auto;border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}
.notification-header{position:sticky;z-index:1;top:0;display:flex;padding:.8rem 1rem;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--surface)}.notification-unread{background:var(--brand-soft)}
.account-trigger{display:flex;min-height:46px;padding:.3rem .45rem .3rem .35rem;align-items:center;gap:.6rem;border:1px solid var(--border);border-radius:99px;background:var(--surface);color:var(--text)}
.account-avatar{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:linear-gradient(135deg,var(--brand),#8b5cf6);color:#fff;font-size:.8rem;font-weight:800}.account-copy{display:grid;min-width:88px;max-width:150px;text-align:left;line-height:1.15}.account-copy strong,.account-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-copy strong{font-size:.78rem}.account-copy small{margin-top:.18rem;color:var(--muted);font-size:.65rem}.account-trigger>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.account-dropdown{min-width:190px;padding:.5rem;border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}.dropdown-item{border-radius:.55rem}

/* Shared components */
.btn{min-height:42px;padding:.58rem 1rem;border-radius:.75rem;font-weight:700}.btn-primary{border-color:var(--brand);background:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(91,92,240,.2)}.btn-primary:hover,.btn-primary:focus{border-color:var(--brand-hover);background:var(--brand-hover);color:#fff}.btn-ghost{border-color:transparent;background:transparent;color:var(--text-soft)}.btn-ghost:hover,.btn-ghost.active{background:var(--brand-soft);color:var(--brand)}
.form-control,.form-select{min-height:46px;border-color:var(--border-strong);border-radius:.75rem;color:var(--text);background-color:var(--surface)}.form-control:focus,.form-select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(91,92,240,.14)}
.card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm)}.card:hover{box-shadow:var(--shadow-md)}

/* Footer */
.site-footer{border-top:1px solid rgba(255,255,255,.08);background:#0f172a;color:#cbd5e1}.footer-shell{display:grid;width:min(calc(100% - 2rem),var(--content-width));margin-inline:auto;padding:3.5rem 0 2.5rem;grid-template-columns:minmax(260px,1.8fr) repeat(3,1fr);gap:clamp(2rem,5vw,5rem)}
.footer-shell h2,.footer-shell h3{color:#fff}.footer-shell h2{font-size:1.3rem}.footer-shell h3{margin-bottom:1rem;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase}.footer-shell p{max-width:420px;color:#94a3b8}.footer-shell>div:not(.footer-intro){display:flex;flex-direction:column;align-items:flex-start;gap:.6rem}.footer-shell a,.footer-shell span{color:#cbd5e1;font-size:.88rem;text-decoration:none}.footer-shell a:hover{color:#fff}.footer-bottom{padding:1rem;border-top:1px solid rgba(255,255,255,.08);color:#94a3b8;font-size:.78rem;text-align:center}
.whatsapp-float{position:fixed;z-index:1030;right:20px;bottom:20px;display:grid;width:52px;height:52px;place-items:center;border-radius:50%;background:#16a34a;color:#fff;box-shadow:0 12px 28px rgba(22,163,74,.28);line-height:1}.whatsapp-float svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.whatsapp-float:hover{color:#fff;transform:translateY(-2px)}

/* Focused auth experience */
.auth-page{min-height:100vh;background:#07122f}.auth-page .site-header,.auth-page .site-footer,.auth-page .whatsapp-float{display:none}.auth-page .page-main{width:100%;min-height:100vh;padding:0}
.auth-shell{position:relative;display:grid;min-height:100vh;grid-template-columns:minmax(0,1.18fr) minmax(430px,.82fr);isolation:isolate}.auth-shell::before{position:absolute;z-index:-2;inset:0;background:url("../images/auth-learning-bg.png") center/cover no-repeat;content:""}.auth-shell::after{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(3,9,29,.28),rgba(5,13,39,.3) 47%,rgba(3,8,27,.82) 72%,rgba(3,8,27,.94));content:""}
.auth-story{display:flex;min-height:100vh;padding:clamp(1.5rem,4vw,4.5rem);flex-direction:column;justify-content:space-between;color:#fff}.auth-brand{display:inline-flex;width:fit-content;align-items:center;gap:.75rem;color:#fff;font-size:1.05rem;font-weight:800;text-decoration:none}.auth-brand:hover{color:#fff}.auth-brand img{width:56px;height:56px;padding:5px;object-fit:contain;border:1px solid rgba(255,255,255,.34);border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(0,0,0,.22)}
.auth-story-copy{max-width:660px;padding-bottom:clamp(1rem,5vh,4rem);text-shadow:0 2px 20px rgba(2,6,23,.42)}.eyebrow,.auth-kicker{font-size:.72rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.eyebrow{color:#a5f3fc}.auth-story-copy h1{max-width:610px;margin:1rem 0;color:#fff;font-size:clamp(2.4rem,5vw,5.4rem);font-weight:800;line-height:.98;letter-spacing:-.055em}.auth-story-copy>p{max-width:580px;margin-bottom:1.75rem;color:rgba(255,255,255,.82);font-size:clamp(1rem,1.4vw,1.18rem);line-height:1.75}.auth-proof{display:flex;flex-wrap:wrap;gap:.75rem}.auth-proof span{padding:.65rem .85rem;border:1px solid rgba(255,255,255,.2);border-radius:99px;background:rgba(7,18,47,.35);color:rgba(255,255,255,.78);font-size:.75rem;backdrop-filter:blur(12px)}.auth-proof strong{color:#fff}
.auth-panel-wrap{display:flex;min-height:100vh;padding:clamp(1rem,3vw,3rem);align-items:center;justify-content:center;flex-direction:column}.auth-card{width:min(100%,480px);padding:clamp(1.5rem,3.6vw,3rem);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius-xl);background:rgba(255,255,255,.92);box-shadow:0 32px 90px rgba(0,0,0,.34);backdrop-filter:blur(24px) saturate(130%)}
.auth-heading{margin-bottom:1.8rem}.auth-kicker{color:var(--brand)}.auth-heading h2{margin:.5rem 0 .55rem;font-size:clamp(1.65rem,3vw,2.15rem)}.auth-heading p{margin:0;color:var(--muted);font-size:.9rem}.form-field{margin-bottom:1.1rem}.form-field label,.label-row{font-size:.78rem;font-weight:750}.label-row{display:flex;align-items:center;justify-content:space-between}.label-row a{font-size:.72rem;font-weight:700;text-decoration:none}
.input-shell{display:flex;height:52px;margin-top:.45rem;align-items:center;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:rgba(255,255,255,.88);transition:border-color .15s,box-shadow .15s,background .15s}.input-shell:focus-within{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px rgba(91,92,240,.13)}.input-shell.is-invalid{border-color:var(--danger);box-shadow:0 0 0 3px rgba(180,35,24,.1)}.input-shell>svg{width:19px;height:19px;margin-left:.95rem;flex:0 0 auto;fill:none;stroke:var(--muted);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.input-shell input{min-width:0;height:100%;padding:0 .85rem;flex:1;border:0;outline:0;background:transparent;color:var(--text);font-size:.88rem}.input-shell input::placeholder{color:#94a3b8}
.password-toggle{display:grid;width:48px;height:48px;flex:0 0 auto;place-items:center;border:0;background:transparent;color:var(--muted)}.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.password-toggle .eye-closed{display:none}.password-toggle[aria-pressed=true] .eye-open{display:none}.password-toggle[aria-pressed=true] .eye-closed{display:block}.field-error{display:block;min-height:1rem;margin:.28rem 0 0 .15rem;color:var(--danger);font-size:.68rem}.check-field{display:flex;margin:-.2rem 0 1.15rem;align-items:center;gap:.55rem;color:var(--text-soft);font-size:.76rem;cursor:pointer}.check-field input{width:17px;height:17px;margin:0;accent-color:var(--brand)}
.auth-alert{margin-bottom:1rem;padding:.75rem .85rem;border:1px solid;border-radius:.75rem;font-size:.76rem;line-height:1.5}.auth-alert[hidden]{display:none}.auth-alert-error{border-color:#fecaca;background:#fff1f2;color:#9f1239}.auth-alert-info{border-color:#bae6fd;background:#f0f9ff;color:#075985}.auth-submit{position:relative;width:100%;min-height:50px;border-radius:var(--radius-md)}.button-loader{display:none;width:19px;height:19px;margin:auto;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:auth-spin .7s linear infinite}.auth-submit.is-loading .button-label{display:none}.auth-submit.is-loading .button-loader{display:block}.auth-switch{margin:1.4rem 0 0;color:var(--muted);font-size:.78rem;text-align:center}.auth-switch a{font-weight:800;text-decoration:none}.auth-legal{margin:1rem 0 0;color:rgba(255,255,255,.58);font-size:.66rem;text-align:center}@keyframes auth-spin{to{transform:rotate(360deg)}}

/* Learning and instructor tools */
.learning-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.draggable-lesson{cursor:grab;user-select:none}.draggable-lesson:active{cursor:grabbing}.status-item button.btn-link{text-align:left;text-decoration:none}.tab-content>.tab-pane>.card,.tab-content>.tab-pane>.row{animation:tool-enter .18s ease-out}@keyframes tool-enter{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Theme */
.dark-mode{--page:#090f1d;--surface:#111827;--surface-subtle:#182133;--text:#f1f5f9;--text-soft:#cbd5e1;--muted:#94a3b8;--border:#263347;--border-strong:#3a4960;--brand-soft:#232554;color-scheme:dark;background:var(--page);color:var(--text)}.dark-mode .site-header{border-color:rgba(51,65,85,.8);background:rgba(9,15,29,.9)}.dark-mode .site-header.is-scrolled{background:rgba(9,15,29,.98)}.dark-mode h1,.dark-mode h2,.dark-mode h3,.dark-mode h4,.dark-mode h5,.dark-mode h6{color:var(--text)}.dark-mode .card,.dark-mode .auth-card,.dark-mode .feature-card,.dark-mode .course-card,.dark-mode .featured-course-card,.dark-mode .learning-header,.dark-mode .learning-progress-panel,.dark-mode .lesson-item,.dark-mode .lesson-content,.dark-mode .resource-box,.dark-mode .profile-summary{border-color:var(--border);background:var(--surface);color:var(--text)}.dark-mode .theme-icon-moon{display:none}.dark-mode .theme-icon-sun{display:block}.dark-mode .dropdown-menu,.dark-mode .notification-header{border-color:var(--border);background:var(--surface);color:var(--text)}.dark-mode .dropdown-item{color:var(--text-soft)}.dark-mode .dropdown-item:hover{background:var(--surface-subtle);color:var(--text)}.dark-mode .form-control,.dark-mode .form-select{border-color:var(--border-strong);background-color:var(--surface);color:var(--text)}.dark-mode .text-muted{color:var(--muted)!important}.dark-mode.auth-page .auth-card{background:rgba(11,18,36,.9)}.dark-mode.auth-page .input-shell{background:rgba(17,24,39,.9)}

@media(max-width:1199.98px){.brand-copy small{display:none}.brand-copy{max-width:170px}.nav-link{padding:.55rem .55rem;font-size:.82rem}.nav-links{gap:.05rem}.nav-actions{gap:.45rem}.btn{padding-inline:.8rem}}
@media(max-width:991.98px){.nav-toggle{display:block}.primary-navigation{position:fixed;top:calc(var(--header-height) - 1px);right:0;left:0;display:grid;max-height:0;padding:0 1rem;overflow:hidden;align-items:stretch;border-bottom:1px solid transparent;background:var(--surface);opacity:0;visibility:hidden;transition:max-height .26s,opacity .18s,padding .26s}.primary-navigation.is-open{max-height:calc(100vh - var(--header-height));padding:1rem;overflow-y:auto;border-bottom-color:var(--border);box-shadow:var(--shadow-md);opacity:1;visibility:visible}.nav-links,.nav-actions{align-items:stretch}.nav-links{flex-direction:column}.nav-link{padding:.85rem 1rem;font-size:.9rem}.nav-link.active::after{top:.75rem;right:auto;bottom:.75rem;left:.25rem;width:3px;height:auto}.nav-actions{padding-top:.8rem;justify-content:flex-start;border-top:1px solid var(--border)}.account-menu{margin-left:auto}.auth-shell{grid-template-columns:minmax(0,.78fr) minmax(410px,1fr)}.footer-shell{grid-template-columns:1.5fr 1fr 1fr}.footer-shell>div:last-child{grid-column:2/-1}}
@media(max-width:767.98px){:root{--header-height:68px}.brand-logo{width:44px;height:44px}.brand-copy small{display:none}.page-main{width:min(calc(100% - 1.25rem),var(--content-width));padding-block:1.5rem}.auth-shell{display:flex;min-height:100svh;align-items:center;justify-content:center}.auth-shell::after{background:linear-gradient(180deg,rgba(3,9,29,.45),rgba(3,8,27,.82))}.auth-story{position:absolute;inset:0;min-height:0;padding:1rem;pointer-events:none}.auth-brand{position:relative;z-index:2;pointer-events:auto}.auth-brand img{width:44px;height:44px}.auth-story-copy{display:none}.auth-panel-wrap{width:100%;min-height:100svh;padding:5.5rem 1rem 1.25rem}.auth-card{padding:1.5rem;border-radius:1.35rem}.auth-legal{color:rgba(255,255,255,.75)}.footer-shell{grid-template-columns:1fr 1fr}.footer-intro{grid-column:1/-1}.footer-shell>div:last-child{grid-column:1/-1}.whatsapp-float{right:14px;bottom:14px;width:48px;height:48px}}
@media(max-width:479.98px){.brand-copy{display:none}.nav-actions{flex-wrap:wrap}.account-copy{display:none}.account-trigger{padding-right:.35rem}.account-trigger>svg{display:none}.footer-shell{grid-template-columns:1fr}.footer-intro,.footer-shell>div:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
.dark-mode .site-header,.dark-mode .site-header.is-scrolled{border-color:transparent;background:transparent;box-shadow:none}
.dark-mode .brand-logo{border-color:rgba(255,255,255,.14);background:#e8eee9;box-shadow:0 8px 24px rgba(0,0,0,.28)}
:focus-visible{outline:3px solid rgba(91,92,240,.42);outline-offset:3px}
@media(max-width:767.98px){.learning-tools-grid{grid-template-columns:1fr}.dashboard-heading-actions{flex-wrap:wrap}}
