:root{--accent:#8b5cf6;--pink:#ed3c91;--bg:#090b12;--panel:#121621;--line:#252c3e;--muted:#9ca9c0}*{box-sizing:border-box}body{margin:0;color:#f4f6fc;background:radial-gradient(ellipse at 0 0,#231d43,transparent 55%),var(--bg);font:15px/1.5 system-ui,sans-serif}a{color:#b5a0ff;text-decoration:none}a:hover{text-decoration:underline}.brand{font-size:30px;font-weight:850;letter-spacing:-1px;color:white}.brand b{color:#bd9aff}.eyebrow{font-size:11px;letter-spacing:2px;color:#af9ad2}h1{line-height:1.15;font-size:34px;letter-spacing:-1px}h2{font-size:21px}p,.muted{color:var(--muted)}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--accent);color:white;border:0;border-radius:12px;padding:12px 19px;font:600 14px system-ui;cursor:pointer;text-decoration:none}button:hover,.button:hover{filter:brightness(1.12);text-decoration:none}button:disabled{opacity:.5;cursor:wait}.secondary{background:#252d42}.danger{background:#7c253a}input,textarea,select{display:block;width:100%;background:#0b101b;border:1px solid #34405a;border-radius:10px;color:#fff;font:inherit;padding:12px;margin-top:6px}input[type=checkbox]{width:auto;display:inline;margin-right:8px}input[type=color]{height:48px}textarea{min-height:100px;resize:vertical}label{display:block;font-size:13px;font-weight:600;color:#bec9dc;margin:14px 0}input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:1px}.setup,.login{max-width:650px;margin:60px auto;padding:30px}.login{max-width:470px;margin:10vh auto}.login button{width:100%;margin-top:12px}.notice{padding:14px 16px;border-radius:10px;background:#24314a;margin:15px 0}.success{background:#153a2e;color:#9cf0c9}.error{background:#4b1d2e;color:#ffc4d4}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.app-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{padding:28px 18px;background:#0b0e18;border-right:1px solid var(--line);position:sticky;top:0;height:100vh}.sidebar .brand{display:block;padding:0 12px;margin-bottom:28px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{text-align:left;justify-content:flex-start;background:transparent;color:#a7b3c9;padding:13px 14px}.nav button.active{background:#292040;color:#ddceff}.sidebar-footer{position:absolute;bottom:24px;left:30px;right:22px;font-size:12px}.main{padding:35px 40px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px}.topbar h1{margin:0}.actions{display:flex;gap:10px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.stat,.panel{background:linear-gradient(145deg,#191d2c,#111620);border:1px solid var(--line);border-radius:18px;padding:22px}.stat b{display:block;font-size:36px;margin-top:8px}.stat small{color:var(--muted)}.panel{margin:24px 0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:#9aacc9;font-size:11px;text-transform:uppercase;letter-spacing:1px}th,td{padding:15px 12px;border-bottom:1px solid var(--line)}td img{width:40px;height:54px;object-fit:cover;border-radius:7px}td button{padding:8px 11px;font-size:12px;margin:3px}.badge{padding:4px 9px;border-radius:99px;background:#262e45;display:inline-block;font-size:11px}.badge.ok{background:#163d30;color:#a0efc9}.badge.no{background:#4a2334;color:#ffa8bd}.toolbar{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.toolbar input{max-width:330px;margin:0}.empty{padding:45px;text-align:center;color:var(--muted)}dialog{background:#121725;border:1px solid #3c4560;border-radius:20px;color:white;width:min(720px,95vw);max-height:90vh;padding:25px}dialog::backdrop{background:#000a;backdrop-filter:blur(6px)}dialog h2{margin-top:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.upload-row{display:flex;align-items:center;gap:10px}.upload-row input{flex:1}.upload-row button{margin-top:6px}.help{font-size:12px;color:#899ab8;margin-top:5px}.cover-preview{max-width:130px;max-height:90px;border-radius:8px}.section-tag{color:#a897ca;font-size:11px;font-weight:bold;letter-spacing:1.5px}.toast{position:fixed;bottom:25px;right:25px;z-index:1000;max-width:400px;padding:16px 24px;border-radius:14px;background:#2f2451;box-shadow:0 15px 50px #0008}.line{height:1px;background:var(--line);margin:24px 0}.account-bar{display:flex;gap:8px;justify-content:flex-end;padding:10px 16px;background:#0a0d17;border-bottom:1px solid #25243c}.account-bar a,.account-bar button{font-size:12px;padding:7px 12px}.bar{height:8px;background:#252a41;border-radius:4px;overflow:hidden}.bar span{display:block;height:100%;background:var(--accent)}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;padding:18px}.sidebar .brand{margin:0 0 16px}.nav{flex-direction:row;overflow:auto}.nav button{white-space:nowrap}.sidebar-footer{display:none}.main{padding:24px 16px}.stats{grid-template-columns:1fr 1fr}.topbar{align-items:flex-start}.topbar h1{font-size:28px}.grid2{grid-template-columns:1fr}.setup,.login{padding:20px;margin-top:35px}}@media(max-width:420px){.stats{gap:10px}.stat{padding:15px}.stat b{font-size:29px}.toolbar{flex-wrap:wrap}.toolbar input{max-width:none}.topbar{flex-direction:column}}
.app-shell{grid-template-columns:240px minmax(0,1fr)}.sidebar{min-width:0}.nav{max-width:100%}.table-wrap{max-width:100%}.toast{max-width:calc(100vw - 32px)}@media(max-width:900px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{width:100%}.nav button{flex-shrink:0}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.portal{max-width:1080px;margin:0 auto;padding:28px 20px 80px}.portal-nav{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.portal-nav a{background:#21182f;border:1px solid #45305c;border-radius:10px;padding:10px 14px;color:#e6d9ff;text-decoration:none}.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.portal .panel{margin:16px 0}.portal small,.portal .muted{color:#a99bb8}.portal input,.portal select,.portal textarea{width:100%;box-sizing:border-box}.portal label input[type=checkbox]{width:auto}.portal-list{list-style:none;padding:0}.portal-list li{padding:14px 0;border-bottom:1px solid #392c47}.portal-price{font-size:30px;font-weight:bold}.portal-code{font-size:24px;letter-spacing:2px;overflow-wrap:anywhere}.portal-banner{background:linear-gradient(130deg,#342046,#151322);border:1px solid #8b5cf6;border-radius:18px;padding:24px;margin:16px 0}.portal-flex{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.portal .actions{flex-wrap:wrap}.portal button{margin:4px 0}.commerce-table td{vertical-align:top}.commerce-table td:first-child{max-width:300px;overflow-wrap:anywhere}
