:root{--purple:#6a3df0;--purple2:#8b5cf6;--purple3:#c4b5fd;--lav:#ede9fe;--soft:#f8f6ff;--ink:#17133b;--muted:#6f6a88;--white:#fff;--line:#e7e1f7;--shadow:0 16px 44px rgba(73,45,150,.11);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Manrope,Arial,sans-serif;background:linear-gradient(135deg,#f8f6ff 0%,#eee8ff 50%,#faf9ff 100%);color:var(--ink);font-size:16px;min-height:100vh}button{font:inherit;color:inherit}.svg-sprite{display:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:rgba(255,255,255,.84);backdrop-filter:blur(18px);border-right:1px solid var(--line);padding:28px 20px;z-index:20;display:flex;flex-direction:column}.brand{border:0;background:transparent;display:flex;align-items:center;gap:11px;font-size:20px;font-weight:800;letter-spacing:.04em;cursor:pointer;padding:0}.brand-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,var(--purple2),var(--purple));color:#fff;box-shadow:0 8px 20px rgba(106,61,240,.25)}.brand-icon svg{width:26px}.user-mini{display:flex;align-items:center;gap:12px;background:#f4f0ff;border:1px solid #e4dcff;padding:12px;border-radius:17px;margin:32px 0 24px}.avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#d9ccff,#7c4dff);color:#fff;font-weight:800}.user-mini b,.user-mini small{display:block}.user-mini small{font-size:12px;color:var(--muted);margin-top:2px}.side-nav{display:grid;gap:8px}.nav-item{border:0;background:transparent;display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:14px;font-weight:700;cursor:pointer;color:#5f5978}.nav-item:hover,.nav-item.active{background:linear-gradient(135deg,#eee8ff,#e8ddff);color:var(--purple)}.nav-item svg{width:21px}.sidebar-progress{margin-top:auto;border-radius:18px;padding:14px;background:linear-gradient(135deg,#f3efff,#e8ddff);display:flex;align-items:center;gap:12px}.sidebar-progress b,.sidebar-progress small{display:block}.sidebar-progress>div:last-child>b{font-size:13px}.sidebar-progress small{color:var(--muted);font-size:11px;margin-top:3px}.main-area{margin-left:248px;width:calc(100% - 248px);min-height:100vh}.topbar{height:76px;position:sticky;top:0;z-index:15;display:flex;align-items:center;justify-content:flex-end;padding:0 40px;background:rgba(248,246,255,.76);backdrop-filter:blur(16px);border-bottom:1px solid rgba(225,217,248,.75)}.mobile-brand{display:none}.top-actions{display:flex;align-items:center;gap:12px}.icon-btn{width:42px;height:42px;border-radius:13px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;position:relative;cursor:pointer}.icon-btn svg{width:20px}.icon-btn i{position:absolute;right:8px;top:8px;width:7px;height:7px;background:#ff4d73;border:2px solid #fff;border-radius:50%}.profile-chip{border:1px solid var(--line);background:#fff;border-radius:14px;padding:5px 11px 5px 5px;display:flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}.avatar.tiny{width:31px;height:31px;font-size:12px}.screen{display:none;max-width:1180px;margin:0 auto;padding:36px 42px 70px;animation:screenIn .35s ease}.screen.active{display:block}@keyframes screenIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.welcome-card{min-height:300px;border-radius:30px;padding:42px 46px;position:relative;overflow:hidden;background:linear-gradient(120deg,#fff 0%,#f6f0ff 52%,#ded2ff 100%);box-shadow:var(--shadow);display:flex;align-items:center}.welcome-card:before,.welcome-card:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.44)}.welcome-card:before{width:360px;height:360px;right:-100px;top:-150px}.welcome-card:after{width:210px;height:210px;right:210px;bottom:-155px}.welcome-card>div:first-child{position:relative;z-index:2}.welcome-card span,.section-title span,.page-head>div>span,.topic-hero>div>span,.quiz-side>span,.final-test>span,.motivation-card span{font-size:12px;letter-spacing:.14em;font-weight:800;color:var(--purple)}h1,h2,h3,p{margin-top:0}.welcome-card h1{font-size:clamp(34px,4vw,52px);line-height:1.08;letter-spacing:-.04em;margin:13px 0}.welcome-card p{color:var(--muted);margin-bottom:25px}.primary-btn,.light-btn{border:0;border-radius:13px;padding:13px 20px;font-weight:800;cursor:pointer}.primary-btn{background:linear-gradient(135deg,var(--purple2),#5522d4);color:#fff;box-shadow:0 10px 24px rgba(106,61,240,.25)}.primary-btn:hover{transform:translateY(-1px)}.hero-art{position:absolute;right:7%;bottom:22px;width:300px;height:250px;display:grid;place-items:center;z-index:2}.cap-art{width:158px;height:128px;color:#5d2ddb;filter:drop-shadow(0 15px 14px rgba(62,33,141,.25));transform:rotate(-4deg) translateY(-23px);z-index:2}.cap-art svg{width:100%;height:100%;stroke-width:1.3;fill:#7b48f6;stroke:#3e1f99}.book-stack{position:absolute;bottom:18px;display:grid;width:230px;gap:6px;transform:rotate(-3deg)}.book-stack i{height:29px;border-radius:7px;background:linear-gradient(90deg,#8e65f7,#d9ccff);box-shadow:0 4px 8px rgba(70,42,140,.18)}.book-stack i:nth-child(2){transform:translateX(15px);background:linear-gradient(90deg,#fff,#d8cff4)}.book-stack i:nth-child(3){transform:translateX(-8px);background:linear-gradient(90deg,#7242e8,#b39afa)}.section-title{margin:42px 0 18px;display:flex;justify-content:space-between;align-items:flex-end}.section-title h2,.page-head h1{font-size:26px;letter-spacing:-.03em;margin:4px 0 0}.section-title button{border:0;background:transparent;color:var(--purple);font-weight:800;cursor:pointer}.subject-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.subject-card{border:1px solid rgba(219,210,243,.8);background:rgba(255,255,255,.88);border-radius:20px;padding:20px;display:flex;align-items:center;gap:15px;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(52,31,107,.06);transition:.2s}.subject-card:hover,.prep-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d4c3ff}.subject-icon{width:55px;height:55px;flex:0 0 auto;border-radius:16px;background:linear-gradient(145deg,#e9e0ff,#f8f5ff);color:var(--purple);display:grid;place-items:center}.subject-icon svg{width:29px;height:29px}.subject-icon.letters{font-size:23px;font-weight:800}.subject-card div:nth-child(2){flex:1}.subject-card h3,.prep-card h3,.test-card h3{font-size:17px;margin:0 0 5px}.subject-card p,.prep-card p,.test-card p{font-size:13px;color:var(--muted);margin:0}.card-arrow{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f4f0ff;color:var(--purple)}.card-arrow svg{width:18px}.dashboard-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.progress-card,.plan-card,.profile-progress{background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 8px 25px rgba(52,31,107,.06)}.section-title.compact{margin:0 0 18px;align-items:center}.section-title.compact h2{font-size:18px}.purple{color:var(--purple);font-size:22px}.progress-content{display:flex;align-items:center;gap:28px}.ring{width:112px;height:112px;border-radius:50%;background:conic-gradient(var(--purple) 0 68%,#e8e1f7 68%);display:grid;place-items:center;position:relative;flex:0 0 auto}.ring:before{content:"";position:absolute;inset:11px;background:#fff;border-radius:50%}.ring b,.ring small{position:relative;z-index:2;grid-column:1;grid-row:1}.ring b{font-size:24px}.ring small{font-size:10px;color:var(--muted);transform:translateY(22px)}.ring.small-ring{width:54px;height:54px}.ring.small-ring:before{inset:6px}.ring.small-ring b{font-size:12px}.stats{display:grid;gap:12px;flex:1}.stats>div{display:flex;align-items:center;gap:10px}.stats svg{color:var(--purple);width:21px}.stats b,.stats small{display:block}.stats small{font-size:11px;color:var(--muted)}.plan-card>.section-title svg{color:var(--purple)}.plan-card ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}.plan-card li{display:flex;gap:10px;align-items:center}.plan-card li>i{width:22px;height:22px;border:2px solid #d7cdef;border-radius:7px;display:grid;place-items:center;font-size:11px;font-style:normal}.plan-card li.done>i{background:var(--purple);border-color:var(--purple);color:#fff}.plan-card li span b,.plan-card li span small{display:block}.plan-card li span b{font-size:13px}.plan-card li span small{font-size:11px;color:var(--muted)}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.page-head h1{font-size:36px}.page-head p{color:var(--muted);margin:7px 0 0}.head-badge{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:11px 16px}.head-badge svg{color:var(--purple)}.head-badge b,.head-badge small{display:block}.head-badge small{font-size:11px;color:var(--muted)}.prep-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.prep-card{border:1px solid var(--line);background:rgba(255,255,255,.92);border-radius:21px;padding:20px;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:15px;text-align:left;cursor:pointer;transition:.2s}.prep-card>div:nth-child(2){min-width:0}.prep-card>b{font-size:13px;color:var(--purple)}.prep-card>svg{width:18px;color:var(--muted)}.mini-progress{height:5px;background:#eee8f8;border-radius:5px;margin-top:12px;overflow:hidden}.mini-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--purple2),var(--purple));border-radius:5px}.motivation-card{margin-top:18px;min-height:190px;background:linear-gradient(130deg,#5626d3,#8f5cf8);color:#fff;border-radius:25px;padding:28px 32px;display:flex;align-items:center;gap:24px;position:relative;overflow:hidden}.motivation-card:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.1);right:-70px;top:-80px}.motivation-card span{color:#dcd1ff}.motivation-card h2{font-size:22px;margin:6px 0}.motivation-card p{color:#e9e3ff;margin:0}.motivation-card>b{margin-left:auto;white-space:nowrap;background:rgba(255,255,255,.17);padding:10px 14px;border-radius:99px;z-index:2}.open-book{width:80px;height:80px;border-radius:20px;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:0 0 auto}.open-book svg{width:48px;height:48px}.back-btn{border:0;background:transparent;color:var(--purple);display:flex;align-items:center;gap:5px;padding:0;font-weight:800;cursor:pointer;margin-bottom:22px}.back-btn svg{width:18px}.topic-hero{display:flex;align-items:center;gap:20px;background:linear-gradient(120deg,#fff,#e9ddff);border:1px solid #dfd2ff;border-radius:25px;padding:26px;box-shadow:var(--shadow)}.topic-hero>div:nth-child(2){flex:1}.topic-hero h1{font-size:29px;margin:3px 0}.topic-hero p{margin:0;color:var(--muted)}.topics-head{display:flex;justify-content:space-between;align-items:flex-end;margin:30px 0 14px}.topics-head h2{margin:0;font-size:22px}.topics-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.topics-head>span{font-size:12px;color:var(--purple);font-weight:800}.topic-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.topic-item{border:1px solid var(--line);background:#fff;border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:11px}.topic-item>span{width:28px;height:28px;border-radius:8px;background:#eee8ff;color:var(--purple);display:grid;place-items:center;font-size:11px;font-weight:800}.topic-item b{font-size:14px;flex:1}.topic-item svg{width:17px;color:var(--muted)}.topic-item.done{background:#f8f5ff}.topic-item.done>span{background:var(--purple);color:#fff}.primary-btn.wide{width:100%;margin-top:16px}.test-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.test-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;display:flex;align-items:center;gap:14px}.test-card>div:nth-child(2){flex:1}.test-card p{display:flex;align-items:center;gap:6px}.test-card p svg{width:14px}.test-card>button{border:0;background:linear-gradient(135deg,var(--purple2),var(--purple));color:#fff;border-radius:10px;padding:9px 13px;font-size:12px;font-weight:800;cursor:pointer}.test-card.muted{opacity:.62}.test-card button:disabled{background:#d8d1e7}.final-test{margin-top:17px;border-radius:25px;padding:32px;text-align:center;color:#fff;background:linear-gradient(135deg,#9b68ff,#5421ce);position:relative;overflow:hidden}.final-test:before,.final-test:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.09)}.final-test:before{width:230px;height:230px;right:-80px;top:-110px}.final-test:after{width:160px;height:160px;left:-60px;bottom:-90px}.final-test>div{width:58px;height:58px;margin:0 auto 13px;border-radius:17px;background:rgba(255,255,255,.17);display:grid;place-items:center}.final-test>div svg{width:31px}.final-test>span{color:#e5dcff}.final-test h2{margin:7px 0;font-size:25px}.final-test p{color:#e6dcff}.light-btn{background:#fff;color:var(--purple);min-width:180px}.profile-card{background:linear-gradient(120deg,#fff,#eee6ff);border:1px solid var(--line);border-radius:23px;padding:22px;display:flex;align-items:center;gap:17px}.avatar.large{width:70px;height:70px;font-size:22px}.profile-card div:nth-child(2){flex:1}.profile-card h2{margin:0 0 3px}.profile-card p{color:var(--muted);font-size:13px;margin:0 0 6px}.profile-card span{color:var(--purple);font-size:12px;font-weight:800}.profile-card>button{border:1px solid var(--purple);color:var(--purple);background:#fff;border-radius:10px;padding:8px 13px;font-weight:800}.profile-progress{margin-top:15px}.profile-progress .stats{grid-template-columns:repeat(3,1fr);gap:18px}.profile-progress .progress-content{justify-content:center}.profile-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.profile-menu button{border:1px solid var(--line);background:#fff;border-radius:15px;padding:15px;display:flex;align-items:center;gap:12px;text-align:left;font-weight:700;cursor:pointer}.profile-menu button svg:first-child{color:var(--purple)}.profile-menu button span{flex:1}.profile-menu button svg:last-child{width:17px;color:var(--muted)}.quiz-layout{display:grid;grid-template-columns:260px 1fr;gap:20px}.quiz-side{border-radius:24px;padding:28px;background:linear-gradient(145deg,#5f2bdc,#8b5cf6);color:#fff;min-height:430px}.quiz-side>span{color:#ddd1ff}.quiz-side h1{font-size:29px;margin:8px 0}.quiz-side p{color:#e8e0ff;font-size:13px}.quiz-score{margin-top:150px}.quiz-score b,.quiz-score small{display:block}.quiz-score b{font-size:42px}.quiz-score small{color:#ded3ff}.quiz-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;min-height:520px;display:flex;flex-direction:column;box-shadow:var(--shadow)}.quiz-meta{display:flex;align-items:center;gap:14px;font-size:12px;font-weight:800}.quiz-progress{height:5px;background:#ece6f7;border-radius:6px;flex:1;overflow:hidden}.quiz-progress i{display:block;width:16.6%;height:100%;background:linear-gradient(90deg,var(--purple2),var(--purple));transition:.3s}.question-tag{align-self:flex-start;margin-top:30px;border-radius:99px;background:#eee8ff;color:var(--purple);font-size:11px;font-weight:800;padding:6px 10px}.quiz-card h2{font-size:22px;line-height:1.45;margin:17px 0}.options{display:grid;gap:9px}.option{border:1px solid var(--line);background:#faf9fd;border-radius:13px;padding:13px 15px;text-align:left;cursor:pointer;font-weight:650}.option:hover{border-color:#a98afa}.option.correct{background:#e4f8ed;border-color:#56b881}.option.wrong{background:#fff0ef;border-color:#e4756b}.option:disabled{color:inherit}.quiz-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:auto;display:flex;align-items:center;justify-content:space-between}.quiz-actions span{font-size:12px;color:var(--muted)}.quiz-actions button{border:0;border-radius:11px;background:var(--purple);color:#fff;padding:10px 19px;font-weight:800}.quiz-actions button:disabled{opacity:.35}.result-box{text-align:center;margin:auto}.result-box .ring{margin:0 auto 20px}.result-box h2{font-size:28px}.bottom-nav{display:none}
@media(max-width:900px){.sidebar{display:none}.main-area{margin-left:0;width:100%;padding-bottom:78px}.topbar{height:66px;padding:0 18px;justify-content:space-between}.mobile-brand{display:flex;font-size:17px}.brand-icon{width:36px;height:36px}.top-actions .profile-chip span:last-child{display:none}.screen{padding:24px 18px 40px}.bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);z-index:30;left:12px;right:12px;bottom:10px;padding:7px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:19px;box-shadow:0 10px 35px rgba(45,25,100,.2);backdrop-filter:blur(16px)}.bottom-nav .nav-item{display:grid;justify-items:center;gap:2px;padding:5px 2px;border-radius:11px;font-size:10px}.bottom-nav .nav-item svg{width:20px}.welcome-card{min-height:270px;padding:30px}.hero-art{opacity:.46;right:-30px}.welcome-card>div:first-child{max-width:65%}.welcome-card h1{font-size:33px}.subject-grid,.dashboard-row,.prep-list,.test-grid{grid-template-columns:1fr}.topic-list{grid-template-columns:1fr}.quiz-layout{grid-template-columns:1fr}.quiz-side{min-height:auto;padding:22px}.quiz-score{margin-top:35px}.profile-progress .stats{grid-template-columns:1fr}.profile-menu{grid-template-columns:1fr}}
@media(max-width:560px){body{background:#f7f5fc}.topbar{background:rgba(247,245,252,.88)}.screen{padding:20px 14px 35px}.welcome-card{padding:25px 20px;min-height:260px;border-radius:23px}.welcome-card>div:first-child{max-width:78%}.welcome-card h1{font-size:27px}.welcome-card p{font-size:13px}.hero-art{width:190px;height:180px;right:-60px}.cap-art{width:105px;height:90px}.book-stack{width:150px}.subject-card{padding:14px}.subject-icon{width:48px;height:48px}.section-title{margin-top:30px}.section-title h2{font-size:21px}.progress-content{gap:18px}.plan-card,.progress-card{padding:18px}.page-head{align-items:flex-start}.page-head h1{font-size:29px}.head-badge{display:none}.prep-card{padding:14px;grid-template-columns:auto 1fr auto}.prep-card>b{display:none}.prep-card>svg{display:none}.motivation-card{display:block;padding:23px}.motivation-card .open-book{margin-bottom:18px}.motivation-card>b{display:inline-block;margin:18px 0 0}.topic-hero{padding:18px}.topic-hero .ring{display:none}.test-card{padding:14px}.final-test{padding:26px 17px}.profile-card{align-items:flex-start}.profile-card>button{font-size:11px;padding:7px}.profile-progress .progress-content{align-items:flex-start}.quiz-card{padding:20px;min-height:540px}.quiz-card h2{font-size:19px}.option{padding:12px}.quiz-actions span{max-width:55%}}
