:root{--blue:#1675f2;--blue-dark:#09295d;--blue-soft:#eef6ff;--blue-pale:#f7fbff;--text:#12233f;--muted:#66758c;--border:#d9e3ef;--success:#168653;--locked:#7c899b;--white:#fff;--shadow:0 12px 36px rgba(35,75,120,.08);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--text);background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#fff}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--blue);color:#fff;font-size:22px;font-weight:800;box-shadow:0 8px 20px rgba(22,117,242,.22)}.brand-mark.small{width:36px;height:36px;border-radius:11px;font-size:17px}.primary{min-height:48px;border:0;border-radius:10px;padding:0 24px;background:var(--blue);color:#fff;font-weight:700;box-shadow:0 7px 16px rgba(22,117,242,.18)}.primary:hover{background:#0c66db}.primary:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid rgba(22,117,242,.27);outline-offset:2px}.primary:disabled{cursor:not-allowed;opacity:.55}.full{width:100%}.toast{position:fixed;left:50%;top:24px;z-index:20;transform:translate(-50%,-18px);padding:12px 18px;border-radius:10px;background:var(--text);color:#fff;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#a9303a}.toast.success{background:#11794a}
.auth-view{min-height:100vh;padding:34px 5vw;background:linear-gradient(90deg,#fff 0 57%,var(--blue-pale) 57%)}.auth-brand{display:flex;align-items:center;gap:14px;font-size:21px;color:var(--blue-dark)}.auth-layout{max-width:1160px;margin:9vh auto 0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.72fr);gap:10vw;align-items:center}.auth-copy h1{max-width:620px;margin:0 0 24px;font-size:clamp(38px,4.5vw,62px);line-height:1.12;letter-spacing:-.04em;color:var(--blue-dark)}.auth-copy>p{max-width:610px;font-size:18px;line-height:1.85;color:var(--muted)}.auth-rule{margin-top:44px;padding-left:18px;border-left:3px solid var(--blue);display:grid;gap:6px}.auth-rule span{color:var(--muted);line-height:1.7}.auth-panel{padding:36px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border);margin-bottom:28px}.auth-tabs button{border:0;background:none;padding:13px;color:var(--muted);font-weight:650;border-bottom:2px solid transparent}.auth-tabs button.active{color:var(--blue);border-color:var(--blue)}.auth-panel h2{margin:0 0 8px;font-size:28px;color:var(--blue-dark)}.auth-panel>p{margin:0 0 26px;color:var(--muted)}.auth-panel form{display:grid;gap:18px}.auth-panel label{display:grid;gap:8px;font-size:14px;font-weight:650}.auth-panel input,.redeem-form input{width:100%;height:50px;border:1px solid #c9d6e5;border-radius:10px;padding:0 15px;color:var(--text);background:#fff}.auth-panel input:focus,.redeem-form input:focus{border-color:var(--blue)}.demo-help{margin-top:18px;color:var(--muted);font-size:13px}.demo-help summary{cursor:pointer}.demo-help code{color:var(--blue-dark);font-weight:700}
.dashboard{min-height:100vh}.topbar{height:68px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 30px 0 34px;background:#fff;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:var(--blue-dark);text-decoration:none;font-size:19px}.account-menu{display:flex;align-items:center;gap:9px;border:0;background:none;color:var(--text);padding:8px}.account-menu span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e7f1ff;color:var(--blue);font-weight:750}.dashboard-grid{display:grid;grid-template-columns:268px minmax(0,1fr);min-height:calc(100vh - 68px)}.sidebar{background:#f1f7ff;border-right:1px solid #e0eaf5;padding:30px 20px 24px;display:flex;flex-direction:column;position:sticky;top:68px;height:calc(100vh - 68px)}.identity{text-align:center;padding:0 8px 24px}.avatar{display:grid;place-items:center;width:70px;height:70px;border-radius:24px;margin:0 auto 14px;background:var(--blue);color:#fff;font-size:27px;font-weight:800}.identity h2{margin:0 0 13px;font-size:20px;color:var(--blue-dark)}.identity p{margin:0 0 6px;font-size:12px;color:var(--muted)}.identity code{display:block;font-size:11px;overflow-wrap:anywhere;color:#3e506a}.identity small{display:block;margin-top:8px;color:var(--muted)}.sidebar nav{display:grid;gap:7px;margin-top:12px}.sidebar nav button{min-height:48px;text-align:left;border:0;border-radius:10px;background:transparent;color:#40516a;padding:0 16px;font-weight:650}.sidebar nav button.active,.sidebar nav button:hover{background:#dcecff;color:var(--blue)}.logout{margin-top:auto;min-height:48px;border:0;border-top:1px solid #d7e2ee;background:transparent;text-align:left;padding:16px;color:#263b59}.main-content{padding:24px clamp(24px,4vw,58px) 60px;max-width:1320px;width:100%;margin:0 auto}.redeem-section{padding:28px;border:1px solid #dce8f5;background:var(--blue-soft);border-radius:14px}.redeem-section h1{margin:0 0 6px;font-size:27px;color:var(--blue-dark)}.redeem-section>div>p{margin:0;color:var(--muted)}.redeem-form{display:grid;grid-template-columns:minmax(0,1fr) 156px;gap:14px;margin-top:22px}.rule-note{display:flex;gap:12px;margin-top:15px;padding:13px 15px;border:1px solid #c9ddf6;border-radius:9px;background:#f7fbff;color:#52647d}.rule-note>span{display:grid;place-items:center;flex:0 0 23px;height:23px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800}.rule-note p{margin:0;font-size:13px;line-height:1.65}.demo-codes{margin-top:13px;color:var(--muted);font-size:13px}.demo-codes summary{cursor:pointer}.demo-codes div{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.demo-codes button{border:1px solid #bad4f4;background:#fff;color:#2764ad;border-radius:8px;padding:7px 10px}.products-section{margin-top:28px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:15px}.section-heading h2,.identity-section h2{margin:0 0 5px;font-size:25px;color:var(--blue-dark)}.section-heading p{margin:0;color:var(--muted)}.text-button{border:0;background:none;color:var(--blue);font-weight:650;padding:9px}.product-list{display:grid;gap:16px}.product{border:1px solid var(--border);border-radius:13px;overflow:hidden;background:#fff}.product-head{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:15px;padding:20px 22px}.product-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;background:#e9f3ff;color:var(--blue)}.product-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8}.product-head h3{margin:0 0 4px;font-size:20px;color:var(--blue-dark)}.product-head p{margin:0;color:var(--muted);font-size:13px}.enter-button{min-height:42px;border:1px solid var(--blue);border-radius:9px;padding:0 18px;background:#fff;color:var(--blue);font-weight:700;text-decoration:none;display:inline-flex;align-items:center}.enter-button:hover{background:var(--blue);color:#fff}.module-table{margin:0 22px 20px;border-top:1px solid var(--border)}.module-row{display:grid;grid-template-columns:minmax(180px,1fr) 160px 190px;gap:16px;align-items:center;min-height:44px;border-bottom:1px solid #e8eef5;font-size:14px}.module-row:last-child{border-bottom:0}.status{display:flex;align-items:center;gap:8px;font-weight:650}.status::before{content:"";width:9px;height:9px;border-radius:50%;background:currentColor}.status.active{color:var(--success)}.status.locked{color:var(--locked)}.expiry{color:var(--muted)}.empty-state{padding:32px;border:1px dashed #cbd8e6;border-radius:12px;color:var(--muted);text-align:center}.identity-section{margin-top:34px;padding-top:26px;border-top:1px solid var(--border)}.identity-section dl{margin:18px 0 0;display:grid;gap:0}.identity-section dl div{display:grid;grid-template-columns:120px 1fr;padding:14px 0;border-bottom:1px solid #edf1f6}.identity-section dt{font-weight:700}.identity-section dd{margin:0;color:var(--muted);line-height:1.6}
@media(max-width:820px){.auth-view{background:#fff;padding:22px}.auth-layout{grid-template-columns:1fr;margin-top:7vh;gap:42px}.auth-copy h1{font-size:38px}.auth-copy>p{font-size:16px}.auth-rule{margin-top:28px}.auth-panel{padding:26px}.dashboard-grid{display:block}.sidebar{position:static;height:auto;border-right:0;padding:20px;display:grid;grid-template-columns:1fr auto;align-items:center}.identity{text-align:left;padding:0;display:grid;grid-template-columns:52px 1fr;column-gap:12px}.avatar{grid-row:1/5;width:52px;height:52px;border-radius:17px;margin:0;font-size:20px}.identity h2,.identity p,.identity code,.identity small{grid-column:2}.identity h2{margin:0}.sidebar nav{display:none}.logout{margin:0;border:0;padding:12px}.main-content{padding:20px}.redeem-section{padding:20px}.redeem-form{grid-template-columns:1fr}.product-head{grid-template-columns:46px 1fr}.product-icon{width:44px;height:44px}.enter-button{grid-column:1/3;justify-content:center}.module-row{grid-template-columns:1fr auto;padding:10px 0}.module-row .expiry{grid-column:1/3}.topbar{padding:0 18px}.topbar .brand strong{font-size:16px}}
@media(max-width:480px){.auth-brand .brand-mark{width:39px;height:39px;border-radius:12px}.auth-copy h1{font-size:31px}.auth-layout{margin-top:44px}.auth-copy>p{line-height:1.65}.auth-panel{border-radius:14px;padding:22px}.account-menu b{display:none}.main-content{padding:16px}.redeem-section{border-radius:12px}.section-heading{align-items:center}.section-heading p{display:none}.product-head{padding:17px}.module-table{margin:0 17px 16px}.identity-section dl div{grid-template-columns:1fr;gap:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
