@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@1,700&display=swap');
:root{--pink:#ff36b5;--hot:#d90078;--purple:#58216e;--ink:#42143e;--cream:#fff6ff;--gold:#ffd84c}
*{box-sizing:border-box}body{margin:0;font-family:Nunito,system-ui,sans-serif;color:var(--ink);background:linear-gradient(145deg,#44204f,#9b4b91 48%,#f6a2d5);min-height:100vh}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.17;background:radial-gradient(circle at 10% 10%,#fff 0 2px,transparent 3px),radial-gradient(circle at 85% 20%,#fff 0 2px,transparent 3px);background-size:55px 55px}
.app-shell{max-width:760px;min-height:100vh;margin:auto;padding:14px 14px 24px;background:linear-gradient(180deg,rgba(75,30,91,.62),rgba(255,175,222,.22));position:relative;overflow:hidden}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.brand{text-align:center;color:#fff;font-family:"Playfair Display",serif;font-size:clamp(19px,5vw,32px);font-style:italic;text-shadow:0 2px 9px #ff007f;flex:1}.brand small{display:block;font:900 15px Nunito;color:#fff;margin-top:3px;text-shadow:none}.home-pill{border:2px solid #fff;background:linear-gradient(135deg,#ff63c9,#c40072);color:white;border-radius:30px;padding:10px 14px;font-weight:900;box-shadow:0 0 12px #ff65ca;cursor:pointer}.home-pill span{font-size:12px}.spark{color:#ffe879}
main{position:relative;z-index:1}.hero{border:3px solid #ffb5ed;border-radius:30px;background:linear-gradient(110deg,#fbd9f7,#fff7ff 50%,#f5b8ee);padding:17px;text-align:center;box-shadow:0 0 18px #ff36b5,inset 0 0 10px #fff;margin-bottom:18px}.hero .atom{font-size:42px}.hero h1{margin:3px 0;color:#8d0756;font-size:clamp(23px,6vw,34px);font-weight:1000}.ribbon{display:inline-block;background:linear-gradient(90deg,#ffe15a,#ffc82c);padding:7px 16px;border-radius:30px;border:2px solid white;font-weight:1000;box-shadow:0 3px 8px #9d547e}.form-label{margin-top:9px;background:linear-gradient(90deg,#ff47bd,#bb0076);color:white;border-radius:24px;padding:8px 28px;display:inline-block;font-size:21px;font-weight:1000;box-shadow:0 0 12px #ff72d4}
.section-title{text-align:center;color:white;font-size:20px;text-shadow:0 2px 7px #6c174f;margin:18px 0 12px;font-weight:1000}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.chapter{display:flex;align-items:center;gap:10px;text-align:left;border:2px solid #ff5dc6;border-radius:22px;background:linear-gradient(115deg,#fff,#f9d9f4);padding:12px;color:#4d1546;box-shadow:0 5px 0 #b64a9d,0 0 12px #ff73d2;cursor:pointer;min-height:92px}.chapter:active,.action:active{transform:translateY(2px)}.chapter .ico{font-size:29px}.chapter strong{display:block;color:#a10060;font-size:14px}.chapter small{display:block;font-size:12px;font-weight:800}.arrow{margin-left:auto;background:#d40079;color:#fff;border-radius:50%;padding:4px 9px;font-size:19px}
.card{background:linear-gradient(135deg,#fff,#ffe5fa);border:2px solid #ff6bcf;border-radius:24px;padding:18px;box-shadow:0 0 16px #ff57c6;margin:12px 0}.muted{color:#74436e;font-size:13px}.stats{display:flex;gap:8px;justify-content:space-around;text-align:center}.stats div{background:#fff0fc;border-radius:16px;padding:10px;flex:1;font-weight:900}
.question-head{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#fff;font-weight:900;margin:12px 0}.counter,.chapter-tag{background:#fff1fc;border-radius:20px;color:#761054;padding:8px 12px;border:1px solid #ff9ce1}
.question{font-size:19px;font-weight:900;line-height:1.35;margin:8px 0}.translation{font-style:italic;color:#674c68;margin:5px 0 15px}.lang{display:flex;gap:6px;justify-content:flex-end;margin-bottom:8px}.lang button{border:1px solid #d58ac2;border-radius:18px;background:#fff;padding:7px 14px;font-weight:900}.lang button.active{background:var(--gold);border-color:#fff}
.options{display:grid;gap:9px}.option{width:100%;display:flex;gap:10px;align-items:center;text-align:left;border:2px solid #cda5cf;border-radius:18px;background:#fff8ff;padding:11px 13px;font-weight:800;color:#3c2140;cursor:pointer}.letter{border:2px solid #b18ab4;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;flex:none;background:white;font-weight:1000}.option.correct{background:#c8ffc5;border-color:#27b83b;color:#075b16}.option.wrong{background:#ffd0d0;border-color:#e21d2b;color:#8a0010}.feedback{border-radius:18px;padding:13px;margin-top:13px;font-size:14px}.feedback.good{background:#d8ffd4;border:2px solid #39bd48;color:#075b16}.feedback.bad{background:#ffe0e0;border:2px solid #e33b4a;color:#870016}.feedback strong{font-size:17px}.nav{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.action{border:2px solid white;border-radius:25px;padding:11px 20px;color:#fff;background:linear-gradient(135deg,#a00072,#f00091);font-weight:1000;box-shadow:0 4px 0 #7b1d69,0 0 10px #ff68c7;cursor:pointer}.action.secondary{background:linear-gradient(135deg,#54236f,#a441a0)}.action:disabled{opacity:.45;cursor:not-allowed}
.result{text-align:center}.score{font-size:44px;font-weight:1000;color:#a10060}.review-row{padding:10px;border-bottom:1px solid #e5b9dc;font-size:13px}.review-row b{display:block}
footer{text-align:center;color:#fff;font-weight:800;font-size:12px;margin-top:25px;text-shadow:0 1px 4px #67104e}
@media(max-width:520px){.app-shell{padding:10px}.grid{grid-template-columns:1fr}.chapter{min-height:78px}.brand{font-size:19px}.spark{display:none}.hero{padding:13px}.question{font-size:17px}.stats{gap:5px}.stats div{padding:7px 4px;font-size:13px}}

.main-brand{text-align:center;color:white;padding:18px 10px 22px}.crown{font-size:32px}.main-logo{font-family:"Playfair Display",serif;font-size:clamp(25px,7vw,39px);font-style:italic;font-weight:700;text-shadow:0 2px 12px #ff2caf}.main-ribbon{display:inline-block;background:#ff8bd5;color:#4d1247;font-weight:1000;font-size:24px;padding:6px 30px;clip-path:polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%)}.main-brand p{font-weight:800;margin:8px 0}.subject-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.subject-tile{position:relative;display:grid;grid-template-columns:48px 1fr 22px;grid-template-rows:auto auto;align-items:center;column-gap:8px;text-align:left;border:2px solid #ff5dc6;border-radius:22px;background:linear-gradient(115deg,#fff,#f9d9f4);padding:12px;color:#4d1546;box-shadow:0 5px 0 #b64a9d,0 0 12px #ff73d2;cursor:pointer;min-height:94px}.subject-icon{grid-row:1/3;font-size:34px;text-align:center}.subject-name{font-weight:1000;color:#a10060;font-size:22px}.subject-tile small{font-weight:800;font-size:11px}.subject-arrow{grid-column:3;grid-row:1/3;background:#d40079;color:white;border-radius:50%;font-size:20px;text-align:center}.subject-tile em{grid-column:2/4;color:#593b09;background:#ffdb50;border-radius:15px;padding:2px 5px;font-style:normal;font-size:9px;font-weight:1000;margin-top:4px;text-align:center}
@media(max-width:520px){.subject-grid{gap:9px}.subject-tile{padding:9px 7px;grid-template-columns:37px 1fr 18px;min-height:83px}.subject-icon{font-size:27px}.subject-name{font-size:19px}.subject-tile small{font-size:10px}}


/* Physics module menu: same approved neon pink/purple visual language */
.physics-menu{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 3px 20px}
.physics-menu-btn{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:112px;padding:13px 30px 13px 12px;border:2px solid #ff5dc6;border-radius:22px;background:linear-gradient(115deg,#fff,#f9d9f4);color:#4d1546;font-family:Nunito,system-ui,sans-serif;font-size:18px;font-weight:1000;text-align:center;box-shadow:0 5px 0 #b64a9d,0 0 12px #ff73d2;cursor:pointer}
.physics-menu-btn:active{transform:translateY(2px)}
.physics-menu-icon{font-size:30px;line-height:1.1}
.physics-menu-btn strong{color:#a10060;font-size:18px;line-height:1.1}
.physics-menu-btn small{font-size:11px;color:#63375e;font-weight:800;line-height:1.2}
.physics-menu-btn .menu-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#d40079;color:white;font-size:21px;box-shadow:0 0 7px #ff70ce}
.physics-menu-wide{grid-column:1/-1;width:68%;justify-self:center;min-height:100px;flex-direction:row;gap:12px}
.physics-menu-wide .physics-menu-icon{font-size:31px}
.physics-menu-wide .menu-arrow{right:12px}
@media(max-width:520px){.physics-menu{gap:10px}.physics-menu-btn{min-height:102px;font-size:16px;padding:10px 29px 10px 8px}.physics-menu-btn strong{font-size:16px}.physics-menu-icon{font-size:27px}.physics-menu-wide{width:74%;min-height:90px;flex-direction:row}}

/* BM / EN single-language selector */
.lang{display:flex;justify-content:center;gap:8px;margin:12px auto 18px}
.lang button{min-width:76px;padding:9px 20px;border:2px solid #ed65c6;border-radius:999px;background:#fff1fb;color:#7b155b;font-weight:900;cursor:pointer}
.lang button.active{background:linear-gradient(135deg,#e60091,#9d1a8b);color:#fff;border-color:#fff;box-shadow:0 0 12px #ff7bd6}

/* Umi's editable homepage note and Settings screen */
.settings-shortcut{display:block;margin:0 auto 12px auto;border:2px solid #fff;border-radius:22px;padding:8px 18px;background:linear-gradient(135deg,#ff63c9,#c40072);color:#fff;font:900 14px Nunito,system-ui,sans-serif;box-shadow:0 0 12px #ff65ca;cursor:pointer}
.umi-note-card{text-align:center;padding:18px 16px;background:linear-gradient(135deg,#fff,#ffe5fa)}
.umi-note-card>b{font-size:21px;color:#751052}
.umi-note-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.5;color:#55214d;margin:12px 0}
.note-edit-link{border:1px solid #e65ab9;border-radius:22px;padding:8px 15px;background:#fff1fb;color:#8d0756;font-weight:900;cursor:pointer}
.settings-hero .atom{font-size:36px}
.settings-card h2{margin:0 0 8px;color:#8d0756;text-align:center}
.umi-note-input{width:100%;min-height:150px;resize:vertical;border:2px solid #ed65c6;border-radius:17px;padding:13px;background:#fffaff;color:#42143e;font:700 15px/1.5 Nunito,system-ui,sans-serif;outline:none}
.umi-note-input:focus{box-shadow:0 0 0 3px #ffc4eb}
.note-count{display:flex;justify-content:space-between;gap:8px;margin-top:7px;color:#805078;font-size:11px;font-weight:800}
.settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.settings-actions .action{padding:11px 8px}
.settings-info{text-align:center}
.settings-info .action{margin-top:5px}
@media(max-width:520px){.umi-note-text{font-size:14px}.settings-card{padding:15px}.note-count{font-size:10px}}

/* Sejarah module additions; existing approved theme retained */
.history-menu .physics-menu-btn { min-height: 92px; }
.history-pending { opacity: .62; cursor: not-allowed; }
.history-pending .arrow { color: #9b7b9a; }
.chapter:disabled { pointer-events: none; }

/* SPM Trial navigation and source-question visuals */
.trial-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.provider-banner{display:flex;align-items:center;gap:16px;margin:18px 0;padding:18px 20px;border:2px solid #ff42bd;border-radius:24px;background:linear-gradient(120deg,#f000a9,#9c006f);color:#fff;box-shadow:0 0 18px #ff4fc688}
.provider-icon{font-size:42px}.provider-banner strong{display:block;font-size:28px}.provider-banner small{display:block;font-size:14px;margin-top:3px}
.trial-note{margin-top:14px}.question-stimulus{display:block;max-width:100%;max-height:340px;object-fit:contain;margin:14px auto 18px;border-radius:12px;border:1px solid #ead6e8;background:#fff}
.physics-menu-btn:disabled{opacity:.56;filter:saturate(.55);cursor:not-allowed}
@media(max-width:520px){.trial-grid{grid-template-columns:1fr}.provider-banner{padding:15px}.provider-banner strong{font-size:25px}}


/* MRSM 2026 Kertas 2 styles integrated from Stage 26 */
.subjective-intro{background:linear-gradient(135deg,#fff,#ffe5fa);border:2px solid #ff6bcf;border-radius:24px;padding:18px;box-shadow:0 0 16px #ff57c6;margin:12px 0}.part-card{background:linear-gradient(135deg,#fff,#fff0fc);border:2px solid #ff85d7;border-radius:20px;padding:15px;margin:13px 0}.part-card h3{color:#92005e;margin:0 0 8px}.part-card textarea{width:100%;min-height:125px;border:2px solid #e7a5d4;border-radius:14px;padding:12px;font:600 14px/1.5 system-ui;color:#42143e;background:#fffaff;box-sizing:border-box}.rubric{background:#fff;border-radius:14px;padding:12px;margin-top:12px}.rubric label{display:flex;gap:9px;align-items:flex-start;padding:7px 0;border-bottom:1px solid #f0d7e9;color:#55214d;font-size:13px}.rubric input{width:18px;height:18px;flex:none;accent-color:#d40079}.source-page{width:100%;max-height:430px;object-fit:contain;background:#fff;border-radius:12px;border:1px solid #e4c6df;margin:10px 0}.mark-pill{display:inline-block;background:#ffdc55;color:#55214d;padding:5px 12px;border-radius:20px;font-weight:900}.exam-toolbar{position:sticky;top:0;z-index:5;background:#6d1c62;color:white;padding:9px;border-radius:14px;margin:8px 0;display:flex;justify-content:space-between;align-items:center}.self-score{background:#e4ffe4;border:1px solid #83d883;padding:10px;border-radius:12px;color:#155d24;margin-top:10px}.holistic-box{background:#fff6d8;border:1px solid #edce67;border-radius:12px;padding:12px;margin-top:10px;color:#563d08}.exam-choice{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.exam-choice button{flex:1;min-width:80px}.sub-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}

/* Approved ZARA home layout refresh */
body{font-family:Arial,Helvetica,sans-serif}
.top{justify-content:flex-end}
.top .home-pill{order:3;margin-left:auto}
.top .brand,.top .spark{display:none}
.main-brand{position:relative;padding:10px 8px 15px}
.settings-shortcut{position:absolute;left:0;top:0;margin:0;padding:7px 12px;font:700 12px Arial,Helvetica,sans-serif}
.crown{font-size:25px;margin-top:23px}
.main-logo{font-family:"Trebuchet MS",Arial,sans-serif;font-style:normal;font-weight:900;letter-spacing:2px;font-size:clamp(38px,10vw,54px);line-height:1.05;text-shadow:0 3px 12px #ff2caf}
.main-tagline{font-family:Arial,Helvetica,sans-serif;font-size:15px;font-weight:700;letter-spacing:.4px;color:#ffe6fa;margin:2px 0 9px;text-shadow:0 1px 5px #541044}
.main-ribbon{font-family:Arial,Helvetica,sans-serif;font-size:17px;padding:5px 25px}
.main-brand p{font-family:Arial,Helvetica,sans-serif;font-size:10px;font-weight:500;margin:6px 0 0}
.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.subject-tile{grid-template-columns:1fr 17px;grid-template-rows:auto auto auto;text-align:center;min-height:112px;padding:10px 6px;gap:3px}
.subject-icon{grid-row:1;grid-column:1/-1;font-size:28px}
.subject-name{grid-row:2;grid-column:1/-1;font-size:19px}
.subject-tile small{grid-row:3;grid-column:1/-1;font-size:10px}
.subject-arrow{position:absolute;right:6px;top:6px;grid-column:auto;grid-row:auto;font-size:14px;width:18px;height:18px;line-height:18px}
.subject-tile em{grid-column:1/-1}
.school-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.school-tile{position:relative;display:flex;align-items:center;gap:9px;min-height:68px;text-align:left;border:2px solid #ff5dc6;border-radius:18px;background:linear-gradient(115deg,#fff,#f9d9f4);padding:10px 28px 10px 10px;color:#4d1546;box-shadow:0 4px 0 #b64a9d,0 0 10px #ff73d2;font:700 12px Arial,Helvetica,sans-serif;cursor:pointer}
.school-flag{font-size:23px;flex:none}.school-tile strong{line-height:1.25}.school-arrow{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#d40079;color:white;font-size:17px}
@media(max-width:520px){.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.subject-tile{min-height:96px;padding:7px 4px}.subject-icon{font-size:24px}.subject-name{font-size:16px}.subject-tile small{font-size:9px}.school-grid{gap:8px}.school-tile{min-height:62px;font-size:10px;padding:8px 25px 8px 8px}.main-brand p{font-size:9px}}
