* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--site-ink); }
body.account-page { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; color: var(--site-copy); background: radial-gradient(circle at 80% 10%,rgba(215,173,89,.1),transparent 27%),linear-gradient(150deg,#0d1119,#07090e 60%); font-family: "Microsoft YaHei UI","PingFang SC",sans-serif; }
.account-grid { position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(125deg,#000,transparent 72%); }
.account-topbar { width: min(1440px,calc(100% - 40px)); min-height: 84px; margin: 0 auto; position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--site-line); }
.account-brand { display: flex; align-items: center; gap: 12px; color: var(--site-copy); text-decoration: none; }
.account-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--site-gold); border: 1px solid rgba(215,173,89,.4); background: rgba(215,173,89,.08); }
.account-brand-mark svg { width: 23px; }.account-brand > span:last-child { display: grid; gap: 3px; }.account-brand strong { font-size: 14px; }.account-brand small { color: var(--site-muted); font: 700 8px ui-monospace,Consolas,monospace; letter-spacing: .15em; }
.account-top-links { display: flex; gap: 22px; }.account-top-links a { color: var(--site-muted); text-decoration: none; font-size: 11px; }.account-top-links a:hover { color: var(--site-gold-bright); }
.auth-stage { width: min(1180px,calc(100% - 40px)); min-height: calc(100vh - 84px); min-height: calc(100dvh - 84px); margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); align-items: center; gap: clamp(35px,8vw,120px); padding: clamp(28px,5vh,55px) 0; }
.auth-editorial { min-width: 0; position: relative; }.auth-editorial::before { content: ''; position: absolute; left: -120px; top: -90px; width: 320px; height: 320px; border: 1px solid rgba(215,173,89,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(215,173,89,.025),0 0 0 110px rgba(215,173,89,.018); z-index: -1; }
.auth-index,.account-kicker { color: var(--site-gold); font: 750 9px ui-monospace,Consolas,monospace; letter-spacing: .17em; }
.auth-editorial h1 { margin: 24px 0; font-size: clamp(48px,6vw,78px); line-height: 1.06; letter-spacing: -.065em; }.auth-editorial p { max-width: 560px; margin: 0; color: var(--site-muted); font-size: 13px; line-height: 1.9; }.auth-features { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 35px; }.auth-features span { display: flex; align-items: center; gap: 8px; color: #bbc3cf; font-size: 10px; }.auth-features span::before { content:''; width:5px;height:5px;border-radius:50%;background:var(--site-gold); }
.auth-box { width: min(100%, 480px); min-width: 0; height: min(540px, calc(100dvh - 124px)); max-height: calc(100vh - 124px); max-height: calc(100dvh - 124px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid var(--site-line); background: rgba(16,21,31,.92); box-shadow: 0 35px 90px rgba(0,0,0,.35); backdrop-filter: blur(18px); }.auth-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-bottom: 1px solid var(--site-line); background: rgba(16,21,31,.98); }.auth-tabs button { min-height: 43px; border: 0; color: var(--site-muted); background: transparent; cursor: pointer; font-weight: 750; }.auth-tabs button.active { color: #1a1309; background: var(--site-gold); }
.account-form { display: grid; gap: 18px; min-height: calc(100% - 53px); padding: 32px; }.account-form[hidden] { display: none!important; }.account-form h2 { margin: 8px 0 5px; font-size: 30px; letter-spacing: -.04em; }.account-form p { margin: 0; color: var(--site-muted); font-size: 11px; }.account-form label { display: grid; gap: 8px; color: #d7dce5; font-size: 11px; font-weight: 700; }.account-form input { width: 100%; height: 49px; border: 1px solid var(--site-line); border-radius: 9px; outline: 0; color: white; background: rgba(255,255,255,.045); padding: 0 14px; }.account-form input:focus { border-color: var(--site-gold); box-shadow: 0 0 0 4px rgba(215,173,89,.1); }.account-form .account-primary { margin-top: auto; }.account-code-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }.account-code-button { min-width:112px; justify-content:center; padding:0 12px; }
.account-primary,.account-secondary { min-height: 47px; border: 1px solid var(--site-gold); border-radius: 9px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 17px; color: #171108; background: var(--site-gold); font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }.account-primary:hover { background: var(--site-gold-bright); }.account-primary.compact { min-height: 42px; }.account-secondary { min-height: 40px; color: var(--site-gold-bright); background: transparent; border-color: rgba(215,173,89,.35); }
.account-error,.account-global-error { padding: 11px 13px; border: 1px solid rgba(255,117,106,.35); border-radius: 9px; color: #ffaaa2; background: rgba(255,117,106,.08); font-size: 11px; line-height: 1.5; }
.customer-stage { width: min(1440px,calc(100% - 40px)); margin: 30px auto 70px; position: relative; z-index: 1; display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 26px; align-items: start; }
.account-sidebar { position: sticky; top: 24px; border: 1px solid var(--site-line); background: rgba(14,18,27,.92); }.account-identity { display: flex; align-items: center; gap: 11px; padding: 20px; border-bottom: 1px solid var(--site-line); }.account-identity > span { width: 42px;height:42px;display:grid;place-items:center;background:var(--site-gold);color:#171108;font:850 15px ui-monospace,monospace; }.account-identity > div { min-width:0;display:grid;gap:4px; }.account-identity strong { overflow:hidden;text-overflow:ellipsis;font-size:12px; }.account-identity small { overflow:hidden;text-overflow:ellipsis;color:var(--site-muted);font-size:9px; }
.account-nav { display: grid; padding: 12px; gap: 4px; }.account-nav button { height: 46px; border: 0; border-left: 2px solid transparent; display:flex;align-items:center;gap:12px;padding:0 12px;color:var(--site-muted);background:transparent;cursor:pointer;text-align:left;font-size:11px;font-weight:700; }.account-nav button span { color:#657082;font:700 9px ui-monospace,monospace; }.account-nav button.active { color:white;border-left-color:var(--site-gold);background:rgba(215,173,89,.08); }.account-nav button.active span { color:var(--site-gold); }.account-redeem-link { margin: 4px 12px 12px;min-height:43px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;color:#171108;background:var(--site-gold);text-decoration:none;font-size:11px;font-weight:800; }.account-logout { width:100%;height:45px;border:0;border-top:1px solid var(--site-line);color:#7f8998;background:transparent;cursor:pointer;font-size:10px; }
.account-content { min-width:0; }.account-loading { min-height:350px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--site-muted);font-size:11px; }.account-loading[hidden] { display:none !important; }.account-loading i { width:22px;height:22px;border:2px solid rgba(255,255,255,.14);border-top-color:var(--site-gold);border-radius:50%;animation:siteSpin .7s linear infinite; }.account-global-error { margin-bottom:15px; }.account-heading { min-height:110px;display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:24px; }.account-heading h1 { margin:10px 0 7px;font-size:clamp(35px,4vw,52px);line-height:1;letter-spacing:-.055em; }.account-heading p { margin:0;color:var(--site-muted);font-size:11px; }
.account-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:30px; }.account-stats article { min-height:160px;padding:20px;border:1px solid var(--site-line);display:flex;flex-direction:column;background:linear-gradient(145deg,#171d28,#0c1018); }.account-stats article.is-gold { color:#171108;background:var(--site-gold);border-color:#e0ba68; }.account-stats small { color:inherit;opacity:.65;font-size:10px; }.account-stats strong { margin:auto 0 12px;font:850 39px ui-monospace,Consolas,monospace;letter-spacing:-.05em; }.account-stats span { color:inherit;opacity:.62;font-size:9px; }
.account-section-head { display:flex;align-items:end;justify-content:space-between;gap:20px;margin:27px 0 12px; }.account-section-head h2 { margin:6px 0 0;font-size:19px; }.account-section-head button { border:0;border-bottom:1px solid #77808e;background:transparent;color:#aeb7c4;font-size:10px;cursor:pointer; }
.account-order-list,.ledger-list { border:1px solid var(--site-line);background:rgba(12,16,24,.7); }.account-order { display:grid;grid-template-columns:minmax(150px,1.2fr) .6fr .65fr auto auto;gap:15px;align-items:center;padding:17px 19px;border-bottom:1px solid var(--site-line);transition:background 160ms ease; }.account-order:last-child { border-bottom:0; }.account-order:hover { outline:0;background:rgba(215,173,89,.055); }.account-order > div { display:grid;gap:5px; }.account-order small { color:var(--site-muted);font-size:8px;text-transform:uppercase;letter-spacing:.08em; }.account-order b { font-size:11px; }.account-order-number { font:750 11px ui-monospace,Consolas,monospace!important; }.account-order-download { min-height:34px;padding:0 11px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(215,173,89,.42);border-radius:8px;color:var(--site-gold-bright);background:rgba(215,173,89,.06);font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap; }.account-order-download:hover { border-color:var(--site-gold);background:rgba(215,173,89,.14); }.account-order-download.is-disabled { border-color:var(--site-line);color:var(--site-muted);background:transparent;cursor:not-allowed; }.account-empty { min-height:190px;padding:30px;display:grid;place-items:center;text-align:center;color:var(--site-muted);font-size:11px; }.account-empty strong { display:block;color:var(--site-copy);font-size:13px;margin-bottom:6px; }
.account-filter { display:flex;gap:7px;overflow-x:auto;margin-bottom:12px; }.account-filter button { min-height:36px;padding:0 13px;white-space:nowrap;border:1px solid var(--site-line);border-radius:8px;color:var(--site-muted);background:transparent;cursor:pointer;font-size:10px; }.account-filter button.active { color:#171108;border-color:var(--site-gold);background:var(--site-gold); }
.ledger-item { display:grid;grid-template-columns:42px minmax(140px,1fr) auto;gap:15px;align-items:center;padding:16px 19px;border-bottom:1px solid var(--site-line); }.ledger-item:last-child{border-bottom:0}.ledger-icon{width:38px;height:38px;display:grid;place-items:center;color:var(--site-gold);border:1px solid rgba(215,173,89,.3);font:750 12px ui-monospace,monospace}.ledger-main{min-width:0}.ledger-main div{display:flex;align-items:center;gap:12px}.ledger-main b{font-size:11px}.ledger-main time{color:var(--site-muted);font-size:9px}.ledger-main p{margin:5px 0 0;color:#7f8998;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-delta{text-align:right}.ledger-delta strong{font:800 14px ui-monospace,monospace}.ledger-delta strong.positive{color:var(--site-success)}.ledger-delta strong.negative{color:var(--site-danger)}.ledger-delta small{display:block;color:var(--site-muted);font-size:8px;margin-top:4px}
.order-dialog-backdrop { position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(2,4,8,.78);backdrop-filter:blur(8px); }.order-dialog { width:min(100%,780px);max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(215,173,89,.28);background:#10151f;box-shadow:0 35px 100px rgba(0,0,0,.55); }.order-dialog > header { position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--site-line);background:#10151f; }.order-dialog h2{margin:5px 0 0;font-size:21px}.order-dialog > header button{width:38px;height:38px;border:1px solid var(--site-line);color:#c6ced9;background:transparent;cursor:pointer;font-size:23px}.order-detail-body{padding:22px}.order-detail-hero{display:flex;justify-content:space-between;gap:20px;padding:20px;background:linear-gradient(135deg,rgba(215,173,89,.12),rgba(255,255,255,.025));border:1px solid rgba(215,173,89,.2)}.order-detail-hero h3{font:800 16px ui-monospace,monospace;margin:10px 0 5px}.order-detail-hero p{margin:0;color:var(--site-muted);font-size:10px}.order-detail-quantity{text-align:right}.order-detail-quantity small{display:block;color:var(--site-muted);font-size:8px}.order-detail-quantity strong{font:850 37px ui-monospace,monospace;color:var(--site-gold-bright)}.order-fields{display:grid;grid-template-columns:1fr 1fr;margin-top:15px;border:1px solid var(--site-line)}.order-field{display:flex;justify-content:space-between;gap:15px;padding:13px 15px;border-right:1px solid var(--site-line);border-bottom:1px solid var(--site-line);font-size:10px}.order-field:nth-child(2n){border-right:0}.order-field span{color:var(--site-muted)}.order-field b{text-align:right;overflow-wrap:anywhere}.delivery-block{margin-top:18px}.delivery-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:10px}.delivery-head h3{margin:5px 0 0;font-size:15px}.delivery-list{border:1px solid var(--site-line)}.delivery-row{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--site-line)}.delivery-row:last-child{border-bottom:0}.delivery-row>span{color:var(--site-muted);font:700 9px ui-monospace,monospace}.delivery-row>div{display:grid;gap:5px;min-width:0}.delivery-row code{white-space:pre-wrap;overflow-wrap:anywhere;color:#e6eaf1;font:600 10px ui-monospace,Consolas,monospace}.delivery-row button{border:0;background:transparent;color:var(--site-gold);cursor:pointer;font-size:9px}.order-dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.order-dialog-actions a,.order-dialog-actions button{flex:1;min-width:150px}.account-view[hidden],#authStage[hidden],#customerStage[hidden],.order-dialog-backdrop[hidden]{display:none!important}
@media(max-width:850px){.auth-stage{grid-template-columns:minmax(0,1fr);align-content:center;padding:24px 0}.auth-editorial{display:none}.auth-box{width:min(100%,520px);height:min(540px,calc(100dvh - 132px));max-height:calc(100vh - 132px);max-height:calc(100dvh - 132px);margin:0 auto;overflow-y:auto}.customer-stage{grid-template-columns:1fr}.account-sidebar{position:static}.account-nav{grid-template-columns:repeat(3,1fr)}.account-nav button{justify-content:center}.account-redeem-link{justify-content:center;gap:12px}.account-order{grid-template-columns:1fr .6fr .7fr auto}.account-order>div:nth-child(3){display:none}}
@media(max-width:580px){.account-topbar{width:calc(100% - 28px);min-height:70px}.account-top-links a:not(:last-child){display:none}.auth-stage,.customer-stage{width:calc(100% - 28px)}.auth-stage{min-height:calc(100vh - 70px);min-height:calc(100dvh - 70px);padding:20px 0}.auth-box{height:min(540px,calc(100dvh - 110px));max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px)}.account-form{gap:15px;padding:22px}.account-form h2{font-size:27px}.account-form input{height:46px}.account-nav button{padding:0 6px;font-size:9px}.account-nav button span{display:none}.account-content{min-width:0}.account-heading{display:grid;min-height:auto;margin:30px 0 22px}.account-stats{grid-template-columns:1fr 1fr}.account-stats article:last-child{grid-column:1/-1}.account-order{grid-template-columns:1fr auto}.account-order>div:not(:first-child),.account-order>.site-status{display:none}.account-order-arrow{display:block}.ledger-item{grid-template-columns:36px 1fr}.ledger-delta{grid-column:2;text-align:left}.order-fields{grid-template-columns:1fr}.order-field{border-right:0}.order-detail-hero{display:grid}.order-detail-quantity{text-align:left}}
@media(min-width:851px){.auth-stage{height:calc(100vh - 84px);height:calc(100dvh - 84px);min-height:0;overflow:hidden}}
@media(min-width:851px) and (max-height:720px){.auth-stage{gap:clamp(28px,6vw,80px);padding:20px 0}.auth-editorial h1{margin:16px 0;font-size:clamp(42px,5vw,62px)}.auth-features{margin-top:22px}.auth-box{max-height:100%}.account-form{gap:14px;padding:24px}.account-form h2{font-size:27px}.account-form input{height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
