.portal-public{min-height:100vh;background:radial-gradient(ellipse at 80% 0,#1c3d56,transparent 60%),#13283d;padding:36px 20px 60px;color:#303744}
.portal-brand{display:flex;align-items:center;justify-content:center;gap:12px;color:#e9e5d6;margin:0 auto 24px;text-decoration:none;font-size:20px}
.portal-brand .brand-mark{border-radius:50%;color:#c9ae68;border-color:#ab945c}
.portal-public-card{max-width:650px;margin:0 auto;background:#fff;border:1px solid #c5ac6555;border-radius:12px;overflow:hidden;box-shadow:0 16px 48px #07162444}
.portal-public-card>header{background:#1b3046;border-bottom:2px solid #baa363;padding:22px 32px;color:#fff}
.portal-public-card h1{margin:0;font-size:22px;font-weight:500}
.portal-public-body{padding:28px 32px 24px}
.portal-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.portal-public .field{margin-bottom:18px}
.portal-public .input{height:40px}
.portal-public a{color:#a38438}
.portal-public .portal-brand{color:#eee6d0}
.portal-public .primary{background:#1a354e;border-color:#1a354e;color:#fff}
.portal-public .agreement-check{font-size:14px}
.portal-public .agreement-check a{margin:0 3px}
.portal-login-link{text-align:center;margin:22px 0 0;font-size:14px;color:#909399}
.portal-policy{font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.portal-policy p{margin:0 0 18px}
.portal-success{text-align:center;padding:15px 0 24px}.portal-success>span{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;margin:0 auto 16px;background:#eff8eb;color:#5b9c37;font-size:32px}.portal-success h2{font-size:20px;margin:0}.portal-success p{margin:14px 0 22px}
.portal-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.portal-admin h2{margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #e8ebef;font-size:16px;font-weight:500}
.portal-switch{display:flex;align-items:center;gap:8px;margin-bottom:20px;font-size:14px}.portal-switch input{accent-color:#263c55}
.portal-address{display:flex;gap:8px}.portal-address input{min-width:0;flex:1}.portal-address .btn{flex:none}
.portal-legal-editor{margin-top:24px}.portal-legal-editor summary{font-size:14px;cursor:pointer;padding:12px 0;border-top:1px solid #e8ebef}.portal-legal-editor .field{margin-top:18px}
.portal-settings-actions{display:flex;gap:12px;margin-top:20px}
.portal-upload{position:relative;overflow:hidden;margin-right:12px}.portal-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
#portal-qr-preview img{display:block;max-height:180px;max-width:100%;object-fit:contain;margin:0 0 15px}
#portal-upload-status{font-size:13px;color:#708096}
.portal-checkout{text-align:center;max-width:360px;margin:auto}.portal-checkout-name{font-size:16px;margin:0 0 10px}.portal-checkout-price{font-size:28px;display:block;color:#e49c38}.portal-checkout img{display:block;max-width:240px;max-height:260px;width:100%;object-fit:contain;margin:20px auto}.portal-checkout p{font-size:14px;line-height:1.7}.portal-checkout .btn{margin-top:8px}
.reference-login-register{display:block;text-align:center;color:#8d752e;margin:18px 0 0;font-size:14px;text-decoration:none}
.portal-operator-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.portal-dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px}.portal-dashboard-actions .btn{height:54px;display:flex;justify-content:center;color:#44546b;background:#f9fafc;border:1px solid #e4e7ed}
.h5-page{background:#eef1f5}.h5-page .card{border-radius:12px;border-color:#e3e7ec;overflow:hidden}.h5-page .h5-header{background:linear-gradient(120deg,#19253a,#23324b);border-bottom:2px solid #baa363}.h5-page .h5-header p{font-size:14px}.h5-page .h5-brand .brand-mark{border-radius:50%;color:#bda465;border-color:#baa363}.h5-page .section-title{font-size:15px}.h5-page .agreement-box{background:#fafbfc;border-color:#e3e7ec;border-radius:6px;color:#526070}.h5-page .btn.primary{background:#20364d;border-color:#20364d}.h5-page .auth-scope-list li{font-size:14px;background:#f7f8fa;border-color:#e3e7ec}.h5-page .agreement-check{font-size:14px;line-height:1.8}
@media(max-width:800px){.portal-settings-grid{grid-template-columns:1fr}.portal-form-pair{grid-template-columns:1fr;gap:0}.portal-public{padding:24px 12px}.portal-public-body{padding:22px 20px}.portal-public-card>header{padding:20px}.portal-address{flex-wrap:wrap}.portal-address .input{flex-basis:100%}}
@media(max-width:600px){.portal-dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:15px}}
@media print{.portal-public{background:white;padding:0}.portal-brand{display:none}.portal-public-card{box-shadow:none;border:0}.portal-public-card>header{color:#111;background:white}.portal-public-body>.btn{display:none}}
