:root{color-scheme:dark;--bg:#070c1c;--bg2:#0d1831;--panel:#131d36;--soft:#1a2642;--text:#f5f7ff;--muted:#9faccc;--line:rgba(195,208,255,.12);--purple:#9a7bff;--blue:#64b9ff;--mint:#5be4bb;--amber:#ffce77;--round:20px}
*{box-sizing:border-box}html{height:100%;background:var(--bg)}body{margin:0;color:var(--text);font-family:Inter,"SF Pro Display",system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:15px;line-height:1.42;background:radial-gradient(ellipse 80% 30% at 65% 0,rgba(113,84,240,.24),transparent 75%),var(--bg);min-height:100%;-webkit-tap-highlight-color:transparent}button,a{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.hidden{display:none!important}.shell{min-height:100dvh;max-width:560px;margin:0 auto;padding:18px 17px 116px;background:linear-gradient(180deg,rgba(18,29,62,.6),transparent 32%);position:relative}.shell::before{content:"";position:absolute;z-index:-1;width:230px;height:230px;right:0;top:-100px;background:rgba(106,75,248,.26);filter:blur(90px)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:3px 0 37px}.brand{display:flex;align-items:center;gap:10px}.brand-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(150deg,#775afa,#38a7ff);box-shadow:0 5px 24px #5f76ff5c;font-family:Georgia,serif;font-size:28px}.brand-icon span{transform:translateY(-1px)}.brand-overline{letter-spacing:2.2px;color:#c6ccea;font-weight:720;font-size:9px}.brand-name{font-size:18px;line-height:1.13;letter-spacing:1.1px;font-weight:900}.brand-star{color:#8cecff;font-size:13px}.mini-avatar{border:1px solid #64739d88;background:#1d2949;width:39px;height:39px;display:grid;place-items:center;border-radius:50%;font-weight:800;font-size:17px}.eyebrow,.section-heading{font-size:10px;letter-spacing:2.1px;color:#aebcf1;font-weight:850}.eyebrow{display:flex;gap:8px;align-items:center}.live-dot{height:7px;width:7px;background:#77dcca;border-radius:50%;box-shadow:0 0 15px #68e1cc}.welcome{margin-bottom:27px}.welcome h1{font-size:29px;letter-spacing:-.9px;line-height:1.2;margin:9px 0 8px;font-weight:850}.wave{font-size:24px}.welcome p,.section-desc{margin:0;color:var(--muted);font-size:13px}.section-heading{display:flex;justify-content:space-between;margin:0 0 12px 3px}.heading-spark{color:#bda8ff}.hub-card{border:1px solid rgba(167,179,251,.23);border-radius:24px;padding:11px 14px 13px;background:linear-gradient(145deg,rgba(35,46,88,.93),rgba(17,28,56,.97) 70%);box-shadow:0 12px 40px #02061388,inset 0 1px 0 #ffffff12;position:relative;overflow:hidden}.hub-card::before{content:"";position:absolute;inset:0 0 auto; height:2px;background:linear-gradient(90deg,transparent,#9978fb,#56b1ff,transparent);opacity:.82}.hub-row{border:none;color:inherit;background:transparent;width:100%;display:flex;gap:12px;text-align:left;align-items:center;padding:13px 2px;min-height:74px}.hub-row:not(.no-click):active{transform:scale(.99)}.hub-icon{display:grid;place-items:center;border-radius:13px;height:47px;width:47px;flex-shrink:0;font-weight:900;font-size:24px}.hub-icon.purple{color:#d0beff;background:#8c68ef37}.hub-icon.amber{color:#ffda9a;background:#eaa74824}.hub-icon.mint{color:#78ecd5;background:#25c6aa23}.hub-copy{flex:1;min-width:0;display:grid;gap:4px}.hub-copy strong{font-size:14px;letter-spacing:-.2px}.hub-copy>span{font-size:11px;color:#9dadd1;line-height:1.35;max-width:230px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.hub-line{border-bottom:1px solid var(--line);margin:0 1px}.arrow{color:#8d9dc9;font-size:20px}.hub-count{background:#e9ad5226;color:#ffd48d;font-weight:850;border-radius:9px;font-size:14px;padding:6px 9px}.paid-number{font-size:23px;color:#78efd6;font-weight:900}.price-strip{margin:8px 0 0;background:#070f25ad;border:1px solid #859bd82b;border-radius:13px;display:flex;align-items:center;justify-content:space-between;padding:15px 13px;gap:8px}.price-strip span{color:#aebde0;font-size:12px}.price-strip strong{font-size:20px;letter-spacing:-.4px}.small-gap{margin-top:28px}.preview-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.preview-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:15px;border:1px solid var(--line);background:rgba(21,33,65,.83);padding:16px 13px}.preview-label{color:#a8b7de;font-size:12px}.preview-chip strong{font-size:21px}.home-foot{font-size:12px;color:#889ac2;margin:17px 3px 0}.bottom-bar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,560px);display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px 15px calc(12px + env(safe-area-inset-bottom));z-index:20;background:linear-gradient(180deg,#0d1530ee,#080e21 80%);border-top:1px solid #8da3e224;box-shadow:0 -15px 30px #050b1e99;backdrop-filter:blur(14px)}.nav-button{height:64px;background:none;color:#9daecc;border:1px solid transparent;border-radius:15px;display:grid;align-content:center;justify-items:center;gap:2px;font-weight:730;font-size:12px;transition:.2s}.nav-button .nav-emoji{font-size:24px;line-height:1.1}.nav-button.active{background:linear-gradient(145deg,#6658ba4d,#388dd02e);border-color:#a09dfd53;color:#f6f7ff}.nav-button.main-tab{box-shadow:inset 0 0 0 1px #8c7cff30}.view h2{font-size:25px;letter-spacing:-.7px;margin:7px 0 8px;line-height:1.2}.back{color:#aabaf0;font-size:13px;padding:8px 0 12px;border:0;background:none}.entry-list{display:grid;gap:10px;margin-top:20px}.entry-card{border-radius:16px;background:linear-gradient(140deg,#1a2748,#121c35);border:1px solid var(--line);padding:17px;display:flex;align-items:center;gap:12px}.entry-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;font-size:18px;background:#7a68f335}.entry-main{flex:1;min-width:0}.entry-main strong{display:block;font-size:14px}.entry-main p{margin:4px 0 0;color:#a8b8d9;font-size:12px;overflow-wrap:anywhere}.entry-link{border:1px solid #718fff56;background:#5262a638;color:#d6dfff;border-radius:10px;padding:8px 10px;font-size:12px;text-decoration:none}.empty{padding:30px 17px;text-align:center;color:var(--muted);border:1px dashed #8fa5cf48;border-radius:16px}.tab-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.balance-chip{padding:8px 12px;border:1px solid #e8be6d38;background:#a9803222;border-radius:25px;white-space:nowrap}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.shop-item{border:1px solid #7e8fcb37;background:linear-gradient(145deg,#1c294b,#121d36);border-radius:17px;padding:16px 13px;display:flex;flex-direction:column;min-height:179px;box-shadow:0 4px 15px #00000024}.shop-item .shop-emoji{font-size:30px;margin-bottom:13px}.shop-item h3{font-size:13px;line-height:1.35;margin:0 0 7px}.shop-item small{color:#a2b0d1;font-size:11px}.shop-item .shop-foot{margin-top:auto;padding-top:12px;display:flex;justify-content:space-between;gap:7px;align-items:center}.shop-item .shop-price{font-size:17px;font-weight:850;white-space:nowrap}.shop-item button{background:#7562ef;border:0;border-radius:10px;color:white;padding:9px 10px;font-size:12px;font-weight:750}.shop-item button:disabled{background:#3b4462}.orders-block{margin-top:25px}.orders-block h3{font-size:13px;letter-spacing:.3px;color:#c6d4fa}.order-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #ffffff14;font-size:12px;color:#b9c6e2}.balance-chip b{font-size:15px}.balances{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.balances>div{border:1px solid #8b92cc40;border-radius:15px;background:#17233f;padding:13px 17px;display:grid;gap:4px}.balances span{font-size:12px;color:#a6b7da}.balances strong{font-size:27px}.wheel-stage{height:326px;max-width:326px;margin:29px auto 9px;position:relative;display:grid;place-items:center;filter:drop-shadow(0 18px 28px #382c9a47)}.wheel-disc{height:290px;width:290px;border-radius:50%;border:8px solid #b7a2ff;box-shadow:0 0 0 5px #32436d,0 0 32px #6b5ded66;will-change:transform;position:relative}.wheel-disc svg{display:block;width:100%;height:100%;border-radius:50%}.wheel-pointer{position:absolute;top:2px;left:calc(50% - 12px);font-size:27px;color:#faf4ff;text-shadow:0 2px 9px #ae95ff;z-index:3}.wheel-core{position:absolute;width:76px;height:76px;background:radial-gradient(circle at 25% 23%,#b3a2ff,#5543b3);border-radius:50%;border:7px solid #efe5ff;box-shadow:0 3px 15px #09062299;display:grid;place-items:center;font-size:31px;font-weight:900;color:white;pointer-events:none}.wheel-caption{text-align:center;color:#a7b7d9;font-size:12px;min-height:35px;padding:2px 8px}.primary-cta{width:100%;padding:17px 12px;border:1px solid #baaaff;background:linear-gradient(115deg,#8e67ff,#5e82ef);color:white;border-radius:15px;box-shadow:0 7px 22px #8463ff5b;font-weight:850;letter-spacing:.6px;margin:12px 0}.invites-inline{text-align:center;color:#9fb0d2;font-size:12px;margin-top:10px}.progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:22px}.metric-card{background:linear-gradient(145deg,#1a294b,#111a31);border:1px solid #8d94dc38;border-radius:18px;padding:17px 14px;display:grid;align-content:start;min-height:164px}.metric-icon{font-size:24px}.metric-title{font-size:12px;color:#aebcdd;margin:11px 0 4px}.metric-card strong{font-size:31px;letter-spacing:-.8px}.metric-card small{color:#8295bd;font-size:10px;line-height:1.4;margin-top:4px}.info-note{font-size:12px;color:#a5b3d6;border:1px solid #53618750;background:#1b294b5e;border-radius:14px;padding:15px;margin-top:20px}.demo-warning{background:#e1a64621;border:1px solid #fac67466;border-radius:13px;padding:13px;color:#ffe1a0;font-size:12px;margin-bottom:20px}.modal{position:fixed;inset:0;background:#000b;z-index:40;display:grid;place-items:end center;padding:18px;backdrop-filter:blur(5px)}.modal-panel{width:min(100%,480px);background:#16223d;border:1px solid #a5a6ec71;border-radius:22px;padding:22px;box-shadow:0 25px 70px #000a}.modal-panel h3{margin:0 0 10px;font-size:20px}.modal-panel p{color:#b2c3e1;font-size:14px}.modal-actions{display:flex;gap:10px;margin-top:21px}.modal-actions button{flex:1;padding:13px;border-radius:11px;border:1px solid #a5aedd55;color:white;background:#2e3c5d;font-weight:800}.modal-actions .confirm{background:#7561ec;border-color:#8675fd}.modal-panel textarea{display:block;width:100%;min-height:65px;margin-top:10px;padding:12px;background:#0a1330;color:#fff;border:1px solid #8898de88;border-radius:12px}#toast{position:fixed;left:50%;bottom:calc(91px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;background:#dce4ff;color:#121c3c;font-weight:700;border-radius:11px;padding:12px 17px;box-shadow:0 7px 34px #0006;min-width:160px;text-align:center;max-width:calc(100vw - 40px);font-size:13px;display:none}#toast.show{display:block}@media (min-width:650px){.shell{border-left:1px solid #46518033;border-right:1px solid #46518033}.bottom-bar{border-inline:1px solid #46518033}}@media(max-width:355px){.shell{padding-inline:12px}.hub-icon{height:42px;width:42px}.hub-copy strong{font-size:12px}.wheel-stage{height:292px}.wheel-disc{width:255px;height:255px}.shop-grid{gap:8px}.shop-item{padding:12px 10px}.hub-row{gap:9px}.brand-name{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Step 48: One-tap route from rewards/progress back to student's timetable. */
.schedule-shortcut{
  position:sticky;top:9px;z-index:8;display:flex;align-items:center;gap:10px;
  width:100%;margin:0 0 22px;padding:13px 15px;
  border:1px solid rgba(153,169,245,.36);border-radius:14px;
  color:#e1e9ff;background:rgba(31,44,84,.94);
  box-shadow:0 5px 20px rgba(0,4,25,.32);backdrop-filter:blur(14px);
  font-weight:760;font-size:13px;text-align:left;
}
.schedule-shortcut:active{transform:scale(.99);background:#304474}
.schedule-shortcut:focus-visible{outline:2px solid #a6b9ff;outline-offset:2px}
.schedule-shortcut-arrow{font-size:22px;line-height:1;color:#d7c9ff}
.schedule-shortcut-icon{margin-left:auto;font-size:18px}

/* Step 50 — secure student coin transfer UI */
.transfer-cta{margin:18px 0 4px;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid #a095ff78;border-radius:15px;background:linear-gradient(105deg,#354284,#263d6f);color:#f3efff;font-weight:800;text-align:left;padding:17px 15px}
.transfer-cta span{font-size:23px;line-height:1}
.transfer-card{border:1px solid #8b90db58;background:linear-gradient(145deg,#1b2a4d,#101a34);padding:19px 15px;border-radius:18px;margin:22px 0 25px}
.transfer-stat{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;background:#0b1430;padding:12px;border-radius:12px}
.transfer-stat span{color:#acbce0;font-size:13px}.transfer-stat strong{font-size:21px}
.transfer-card label{display:block;margin:14px 0 7px;color:#bbcaec;font-size:13px;font-weight:700}
.transfer-card input{width:100%;background:#09122b;color:#fff;border:1px solid #7989be86;border-radius:12px;padding:14px;font-size:17px;outline:none}
.transfer-card input:focus-visible{border-color:#b6a1ff;box-shadow:0 0 0 3px #9b79ff44}
.transfer-summary{margin:20px 0 5px;border-top:1px solid #ffffff1b;padding-top:13px;display:grid;gap:11px}
.transfer-summary>div,.confirm-rows>div{display:flex;justify-content:space-between;gap:10px}
.transfer-summary span{color:#acbce0;font-size:13px}
.transfer-summary strong{color:#ebd9ff;font-size:17px}
.transfer-card .primary-cta{margin-top:18px;margin-bottom:0}
.transfer-warning{font-size:11px;color:#a9b5d2;line-height:1.55;margin:14px 0 1px}
.transfer-history-title{margin-top:15px;font-size:16px}.confirm-rows{border:1px solid #ffffff22;background:#0e1a36;padding:13px;border-radius:12px;display:grid;gap:12px;font-size:13px}

.my-student-number{display:inline-flex;gap:6px;align-items:center;border:1px solid #7385cd4d;background:#1b2a50b8;color:#b6c6e9;padding:7px 11px;border-radius:10px;font-size:12px;margin-top:1px}.my-student-number strong{color:#ecf2ff}
