:root{--red:#a9141e;--red2:#d33a36;--deep:#611018;--gold:#dcae55;--cream:#fffaf2;--ink:#241a1b;--muted:#786b6d;--line:#eadfdf;--ok:#16835c;--warn:#b87308;--bad:#c93737;--shadow:0 14px 38px rgba(73,20,25,.12);--radius:22px}
    *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:radial-gradient(circle at 10% 0,#ffe9dc 0,transparent 31%),linear-gradient(135deg,#f8f2ee,#f5e9e7);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
    .app{min-height:100vh}
    .auth-shell{width:min(540px,100%);min-height:calc(100vh - 31px);margin:0 auto;background:#faf7f5;box-shadow:0 0 80px #65111918;display:block}.brand-side{display:none!important}
    .auth-side{min-height:calc(100vh - 31px);display:grid;place-items:center;padding:24px 18px}.auth-card{width:100%;padding:28px 22px;border:1px solid #ffffffb0;border-radius:26px;background:#fffdfbf2;backdrop-filter:blur(18px);box-shadow:var(--shadow)}.auth-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:25px}.auth-title h2{margin:0 0 7px;font-size:27px}.auth-title p{margin:0;color:var(--muted);font-size:13px}.mini-logo{width:44px;height:44px;border-radius:15px;background:var(--red);color:white;display:grid;place-items:center;font-weight:900}.field{margin-bottom:16px}.field label{display:block;font-size:13px;font-weight:700;margin:0 0 8px}.input{width:100%;padding:13px 14px;border:1px solid var(--line);background:#fff;border-radius:14px;outline:none;transition:.2s}.input:focus{border-color:#c96c6c;box-shadow:0 0 0 4px #a9141e10}.field-row{display:grid;grid-template-columns:1fr;gap:0}.primary,.secondary,.ghost,.danger{min-height:46px;border:0;border-radius:14px;padding:12px 16px;font-weight:800;transition:.2s}.primary{background:linear-gradient(135deg,var(--red),var(--red2));color:white;box-shadow:0 10px 24px #a9141e2f}.primary:hover{transform:translateY(-1px);box-shadow:0 13px 28px #a9141e3b}.secondary{background:#fff0e8;color:var(--red)}.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.danger{background:#fff0f0;color:var(--bad)}.wide{width:100%}.auth-actions{display:grid;gap:10px}.link-line{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:13px}.text-btn{min-height:44px;padding:0;border:0;background:none;color:var(--red);font-weight:800}.checkline{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--muted);line-height:1.55;margin:5px 0 15px}
    .user-shell{max-width:540px;min-height:100vh;margin:0 auto;background:#faf7f5;box-shadow:0 0 80px #65111918;position:relative;padding-bottom:92px}.mobile-head{position:sticky;top:31px;z-index:20;padding:14px 20px;background:#faf7f5e8;backdrop-filter:blur(15px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee4e3}.mobile-head strong{font-size:16px}.icon-btn{width:38px;height:38px;border-radius:13px;border:1px solid var(--line);background:white;display:grid;place-items:center;position:relative}.badge-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border:2px solid white;background:#df3131;border-radius:50%}.page{padding:18px 18px 8px}.hero{position:relative;overflow:hidden;background:linear-gradient(140deg,#74101a,#b51e27 58%,#d94835);color:white;border-radius:26px;padding:24px;box-shadow:0 18px 35px #8b16252d}.hero:after{content:"";position:absolute;width:180px;height:180px;border:35px solid #ffffff0e;border-radius:50%;right:-90px;top:-65px}.eyebrow{font-size:12px;opacity:.78;letter-spacing:.08em}.balance{font-size:42px;font-weight:900;letter-spacing:-.04em;margin:7px 0 20px}.balance small{font-size:14px;font-weight:600;letter-spacing:0}.hero-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hero-meta div{padding:12px;border-radius:15px;background:#ffffff14;border:1px solid #ffffff18}.hero-meta span{display:block;font-size:11px;opacity:.75}.hero-meta strong{display:block;margin-top:4px;font-size:15px}.status{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}.s-approved{color:#0e7650;background:#e7f8f0}.s-pending{color:#a66100;background:#fff3d8}.s-rejected{color:#b52c2c;background:#ffeded}.s-unsubmitted{color:#6c6263;background:#f1eeee}.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.welcome{display:flex;align-items:center;justify-content:space-between;margin:3px 3px 15px}.welcome h2{font-size:21px;margin:0 0 4px}.welcome p{font-size:12px;color:var(--muted);margin:0}.quick{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.quick button{border:0;padding:15px;border-radius:17px;background:white;box-shadow:0 8px 22px #4a17170b;text-align:left}.quick button b{display:block;font-size:14px;margin-top:10px}.quick button span{font-size:11px;color:var(--muted)}.q-icon{width:37px;height:37px;border-radius:13px;display:grid;place-items:center;font-size:19px}.q1{background:#fff0e2}.q2{background:#f4eaff}.section{margin-top:22px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.section-head h3{margin:0;font-size:16px}.section-head button{border:0;background:none;color:var(--red);font-size:12px;font-weight:800}.card{background:white;border:1px solid #efe6e4;border-radius:20px;padding:17px;box-shadow:0 8px 28px #4f111109}.notice{display:flex;gap:12px;align-items:flex-start}.notice-icon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;border-radius:12px;background:#fff2df}.notice b{font-size:13px}.notice p{font-size:11px;line-height:1.6;color:var(--muted);margin:4px 0 0}.ledger-item{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #f1ebea}.ledger-item:last-child{border-bottom:0}.type-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:13px;background:#f7f2ef;font-size:17px}.ledger-main{flex:1;min-width:0}.ledger-main b{font-size:13px}.ledger-main p{margin:4px 0 0;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delta{text-align:right;font-weight:900;font-size:14px}.delta.plus{color:var(--ok)}.delta.minus{color:var(--red)}.delta small{display:block;font-weight:500;color:var(--muted);font-size:9px;margin-top:4px}.empty{text-align:center;padding:35px 10px;color:var(--muted);font-size:13px}.empty span{display:block;font-size:30px;margin-bottom:8px}
    .bottom-nav{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(540px,100%);display:grid;grid-template-columns:repeat(4,1fr);padding:9px 10px max(9px,env(safe-area-inset-bottom));background:#fffefdf2;backdrop-filter:blur(18px);border-top:1px solid #eadfdd}.nav-btn{border:0;background:none;color:#938586;font-size:10px;padding:5px}.nav-btn span{display:block;font-size:20px;line-height:1.2;margin-bottom:3px}.nav-btn.active{color:var(--red);font-weight:800}
    .promo-banner{position:relative;overflow:hidden;margin:0 0 14px;border-radius:22px;background:#8a111a;box-shadow:0 12px 28px #65111920;aspect-ratio:12/5}.promo-banner img{width:100%;height:100%;display:block;object-fit:cover}.promo-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#3b070b99 0,transparent 58%);pointer-events:none}.promo-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:16px;color:white;text-shadow:0 2px 10px #4a0a0d55}.promo-copy b{display:block;font-size:18px;line-height:1.25}.promo-copy span{display:block;margin-top:5px;font-size:10px;opacity:.88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .form-card h3{margin:0 0 5px}.form-card>p{font-size:12px;color:var(--muted);margin:0 0 19px;line-height:1.55}.summary-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #f1eaea;font-size:13px}.summary-row:last-child{border-bottom:0}.summary-row span{color:var(--muted)}.form-note{padding:12px 13px;border-radius:14px;background:#fff7e8;color:#8d5e10;font-size:11px;line-height:1.6;margin-bottom:15px}.tab-row{display:flex;gap:7px;overflow:auto;padding:2px 0 8px;scrollbar-width:none}.tab-row button{white-space:nowrap;border:1px solid var(--line);background:white;border-radius:999px;padding:8px 13px;color:var(--muted);font-size:11px}.tab-row button.active{background:var(--red);color:white;border-color:var(--red)}.profile-head{display:flex;align-items:center;gap:14px}.avatar{width:60px;height:60px;border-radius:20px;background:linear-gradient(145deg,#8c111b,#dd4235);color:white;display:grid;place-items:center;font-size:22px;font-weight:900}.profile-head h3{margin:0 0 5px}.profile-head p{margin:0;color:var(--muted);font-size:11px}.menu{margin-top:13px}.menu button{width:100%;padding:15px 4px;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid #f0e9e8;background:white;text-align:left;font-size:13px}.menu button:last-child{border:0}.menu button span:first-child{display:flex;gap:10px;align-items:center}.menu button i{font-style:normal;color:#b0a4a5}.agreement{max-height:220px;overflow:auto;font-size:12px;color:var(--muted);line-height:1.8;background:#faf7f5;padding:13px;border-radius:14px}
    .admin-shell{min-height:calc(100vh - 31px);display:grid;grid-template-columns:250px 1fr;background:#f6f4f3}.sidebar{background:#4b1117;color:white;padding:25px 18px;display:flex;flex-direction:column;position:sticky;top:31px;height:calc(100vh - 31px)}.admin-brand{display:flex;gap:10px;align-items:center;padding:4px 7px 25px}.admin-brand .mini-logo{background:linear-gradient(145deg,#f2c97b,#b9781f);color:#66121a}.admin-brand b{font-size:15px}.admin-brand span{display:block;font-size:10px;color:#d9bfc1;margin-top:3px}.side-nav{display:grid;gap:7px}.side-nav button{padding:12px 14px;border:0;border-radius:13px;background:transparent;color:#d9c8ca;text-align:left}.side-nav button.active,.side-nav button:hover{background:#ffffff12;color:white}.sidebar-foot{margin-top:auto;display:grid;gap:9px}.sidebar-foot button{border:1px solid #ffffff20;background:#ffffff0b;color:white;padding:10px;border-radius:12px}.admin-main{padding:28px;min-width:0}.admin-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.admin-top h1{margin:0 0 5px;font-size:25px}.admin-top p{margin:0;color:var(--muted);font-size:12px}.admin-user{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:15px;padding:8px 12px}.admin-user .avatar{width:34px;height:34px;border-radius:11px;font-size:12px}.admin-user b{font-size:12px}.admin-user span{font-size:10px;color:var(--muted);display:block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{padding:18px;border-radius:18px;background:white;border:1px solid var(--line);box-shadow:0 8px 24px #4d161607}.stat span{font-size:11px;color:var(--muted)}.stat strong{display:block;font-size:27px;margin:8px 0 4px}.stat small{font-size:10px;color:var(--ok)}.admin-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:16px;margin-top:16px}.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:19px;box-shadow:0 8px 24px #4d161607;min-width:0}.panel h3{margin:0;font-size:15px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel-head p{margin:3px 0 0;color:var(--muted);font-size:10px}.activity{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid #f1ebea}.activity:last-child{border:0}.activity .dot{width:9px;height:9px;border-radius:50%;background:var(--red);margin-top:4px}.activity b{font-size:11px}.activity p{font-size:10px;color:var(--muted);margin:4px 0 0}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:11px}.table th{text-align:left;color:var(--muted);font-weight:700;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:12px 10px;border-bottom:1px solid #f3eceb;white-space:nowrap}.table tr:last-child td{border-bottom:0}.row-actions{display:flex;gap:6px}.sm{border:0;border-radius:9px;padding:6px 9px;font-size:10px;font-weight:800;background:#f5efed;color:#655}.sm.ok{background:#e8f8f1;color:var(--ok)}.sm.bad{background:#ffeded;color:var(--bad)}.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.toolbar .input{width:auto;min-width:180px;padding:9px 11px;font-size:11px}.toolbar .primary{padding:9px 12px;font-size:11px}
    .modal-layer{position:fixed;inset:0;z-index:100;background:#25070a8a;backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px}.modal{width:min(480px,100%);max-height:90vh;overflow:auto;background:white;border-radius:24px;padding:23px;box-shadow:0 25px 70px #28080c55}.modal.wide-modal{width:min(690px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.modal-head h3{margin:0 0 5px}.modal-head p{margin:0;color:var(--muted);font-size:11px}.close{width:34px;height:34px;border-radius:11px;border:0;background:#f4efed}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:19px}.toast-wrap{position:fixed;z-index:200;top:50px;left:50%;transform:translateX(-50%);display:grid;gap:8px;width:min(390px,calc(100% - 30px))}.toast{padding:13px 15px;border-radius:14px;background:#271719;color:white;box-shadow:0 15px 35px #20080b40;font-size:12px;animation:toastin .25s ease}.toast.ok{background:#146e50}.toast.bad{background:#a82029}@keyframes toastin{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
    @media(max-width:520px){body{background:#faf7f5}.auth-shell,.user-shell{box-shadow:none}.auth-side{align-items:center;padding:18px}.auth-card{padding:24px 20px;border:0;box-shadow:none;background:transparent}.page{padding-left:15px;padding-right:15px}.hero{padding:21px}.balance{font-size:38px}.quick{gap:10px}.bottom-nav{padding-left:5px;padding-right:5px}}
button:disabled{cursor:not-allowed;opacity:.55}.code-row{display:grid;grid-template-columns:1fr auto;gap:9px}.code-btn{border:1px solid var(--line);background:#fff;color:var(--red);border-radius:14px;padding:0 14px;font-weight:800}.loading{opacity:.65;pointer-events:none}.server-badge{font-size:10px;color:#fff6e5;background:#371014;padding:4px 9px;border-radius:999px}
.mobile-head{top:0}.auth-shell{min-height:100vh}.auth-side{min-height:100vh}
