:root{--navy:#10234f;--blue:#23479b;--teal:#178d88;--gold:#f3c94a;--ink:#172033;--muted:#677389;--line:#d9e1eb;--paper:#fff;--soft:#f4f7fb;--danger:#c9364f;--shadow:0 18px 48px rgba(20,44,104,.12);--radius:18px}
    *{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(145deg,#fff9e7,#f8fbff 45%,#eef6f6);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button{font:inherit}.shell{width:min(1160px,calc(100% - 28px));margin:auto;padding:22px 0 64px}
    header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.brand{display:flex;align-items:center;gap:12px}.mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#d69e10,#f3c94a);display:grid;place-items:center;color:var(--navy);font-weight:1000;box-shadow:0 12px 25px rgba(214,158,16,.22)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.5rem,4vw,2.35rem);margin-bottom:2px;color:var(--navy)}.eyebrow{margin:0;color:#997006;font-size:.77rem;font-weight:1000;text-transform:uppercase;letter-spacing:.13em}.classroom{margin:4px 0 0;color:var(--muted);font-size:.9rem;font-weight:700}
    .top-links{display:flex;gap:9px;flex-wrap:wrap}.link,.button{min-height:42px;border-radius:12px;border:1px solid var(--line);padding:0 14px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;cursor:pointer}.link{background:#fff;color:var(--navy)}.link.primary,.button{background:var(--blue);color:#fff;border-color:var(--blue)}.link:hover,.button:hover{transform:translateY(-1px);box-shadow:0 9px 20px rgba(35,71,155,.14)}
    .wallet{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;border-radius:var(--radius);background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;box-shadow:var(--shadow);margin-bottom:22px}.wallet-name{font-weight:850;opacity:.8}.wallet-balance{font-size:2rem;font-weight:1000}.status{margin:0;font-weight:800;opacity:.8}
    .section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:24px 0 12px}.section-head h2{margin:0;color:var(--navy)}.section-head p{margin:0;color:var(--muted);font-weight:750}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{display:flex;flex-direction:column;border:1px solid rgba(201,213,225,.9);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.product-image{aspect-ratio:16/10;background:linear-gradient(135deg,#ecf3ff,#fff4c9);display:grid;place-items:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.placeholder{font-size:3rem}.product-body{padding:18px;display:flex;flex-direction:column;flex:1}.product h3{color:var(--navy);margin-bottom:7px}.description{color:#526078;line-height:1.45;min-height:64px}.product-foot{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:auto;padding-top:15px}.price{font-size:1.55rem;font-weight:1000;color:var(--blue)}.stock{min-height:1em;font-size:.78rem;color:var(--muted);font-weight:900}.buy{border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:950;min-height:42px;padding:0 15px;cursor:pointer}.buy:disabled{background:#a9b2c1;cursor:not-allowed}
    .orders{border:1px solid var(--line);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:auto}.orders table{width:100%;border-collapse:collapse;min-width:680px}th,td{text-align:left;padding:13px;border-bottom:1px solid #e9eef4;font-size:.88rem}th{background:#f8fafc;color:var(--muted);text-transform:uppercase;font-size:.72rem;letter-spacing:.06em}.pill{display:inline-flex;border-radius:999px;padding:5px 9px;background:#fff3c4;color:#735300;font-size:.75rem;font-weight:1000;text-transform:capitalize}.pill.fulfilled{background:#dff7ef;color:#166e55}.pill.cancelled,.pill.refunded{background:#f4eaf0;color:#7f4055}.empty,.loading{padding:32px;text-align:center;color:var(--muted);font-weight:850}.loading{min-height:60vh;display:grid;place-items:center}
    dialog{border:0;border-radius:20px;padding:0;width:min(480px,calc(100% - 24px));box-shadow:0 32px 90px rgba(16,35,79,.32)}dialog::backdrop{background:rgba(16,35,79,.6);backdrop-filter:blur(4px)}.dialog-body{padding:24px}.dialog-body h2{color:var(--navy)}.confirm-summary{padding:15px;border-radius:13px;background:var(--soft);margin:15px 0}.dialog-actions{display:flex;gap:9px;justify-content:flex-end}.cancel{background:#fff;color:var(--navy);border:1px solid var(--line)}
    @media(max-width:880px){.products{grid-template-columns:1fr 1fr}}@media(max-width:600px){header,.wallet,.section-head{align-items:flex-start;flex-direction:column}.top-links{width:100%}.top-links .link{flex:1}.products{grid-template-columns:1fr}.wallet{padding:18px}.shell{width:min(100% - 20px,1160px)}}
