/* Corteno Admin & Reseller panel — brand identity matches the app. */
:root{
  --brand:#D4AF37;--brand-2:#B8932B;--bg-deep:#070707;--bg:#0E0E0E;
  --card:#141312;--card-2:#1B1A17;--line:rgba(212,175,55,.16);
  --text:#F3ECDB;--muted:#A9966B;--warning:#E6A93B;--success:#34D399;--danger:#F87171;
  --radius:14px;--shadow:0 18px 50px rgba(0,0,0,.55);
}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:'Inter',system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);
  background:radial-gradient(1100px 560px at 85% -10%,rgba(212,175,55,.16),transparent 60%),var(--bg-deep);min-height:100vh}
a{color:inherit;text-decoration:none}

/* Login */
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}
.login-card{width:100%;max-width:400px;background:linear-gradient(180deg,var(--card-2),var(--card));
  border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:var(--shadow)}
.login-card .brand{display:flex;align-items:center;gap:12px;justify-content:center;margin-bottom:6px;font-weight:800;font-size:20px}
.login-card .brand img{width:40px;height:40px;border-radius:11px}
.login-card .brand b{color:var(--brand)}
.login-card .tag{text-align:center;color:var(--muted);font-size:14px;margin-bottom:22px}

/* Layout with sidebar */
.shell{display:flex;min-height:100vh}
.sidebar{width:248px;flex:0 0 248px;background:rgba(9,9,9,.85);border-right:1px solid var(--line);
  padding:22px 16px;position:sticky;top:0;height:100vh}
.sidebar .brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:18px;padding:6px 8px 18px}
.sidebar .brand img{width:34px;height:34px;border-radius:9px}
.sidebar .brand b{color:var(--brand)}
.side-link{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:11px;color:var(--muted);
  font-weight:600;font-size:15px;margin-bottom:4px;transition:.18s}
.side-link:hover{background:rgba(212,175,55,.08);color:#fff}
.side-link.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 8px 20px rgba(212,175,55,.35)}
.side-foot{position:absolute;bottom:20px;left:16px;right:16px;color:var(--muted);font-size:12px}
.content{flex:1;padding:30px 34px;min-width:0}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.topbar h1{font-size:24px;margin:0}
.who{color:var(--muted);font-size:14px}.who b{color:#fff}

/* Cards / stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}
.stat{background:linear-gradient(180deg,var(--card),var(--bg));border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.stat .l{color:var(--muted);font-size:13px;font-weight:600}
.stat .v{font-size:30px;font-weight:800;margin-top:6px}
.stat .v.brand{color:var(--brand)}.stat .v.warn{color:var(--warning)}.stat .v.ok{color:var(--success)}
.panel{background:linear-gradient(180deg,var(--card),var(--bg));border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);margin-bottom:22px}
.panel h3{margin:0 0 16px;font-size:17px}

/* Table */
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);font-size:14px}
th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.4px}
tr:hover td{background:rgba(212,175,55,.04)}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}
.badge{display:inline-block;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid}
.badge.trial{color:var(--warning);background:rgba(251,191,36,.10);border-color:rgba(251,191,36,.35)}
.badge.active{color:var(--success);background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.35)}
.badge.expired{color:var(--danger);background:rgba(248,113,113,.10);border-color:rgba(248,113,113,.35)}
.badge.disabled{color:var(--muted);background:rgba(169,150,107,.08);border-color:var(--line)}

/* Forms / buttons */
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}
label{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-bottom:6px}
input,select{padding:11px 13px;border-radius:11px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:#fff;font-size:14px;outline:none}
input:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(212,175,55,.18)}
.btn{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;font-weight:700;padding:11px 18px;border-radius:11px;font-size:14px;transition:.18s}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 10px 24px rgba(212,175,55,.32)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{background:transparent;color:#fff;border:1px solid var(--line)}
.btn-sm{padding:8px 12px;font-size:13px}
.btn-danger{background:rgba(248,113,113,.14);color:#fecaca;border:1px solid rgba(248,113,113,.4)}
.alert{padding:12px 15px;border-radius:11px;margin-bottom:18px;font-size:14px;border:1px solid}
.alert-ok{background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.4);color:#bbf7d0}
.alert-error{background:rgba(248,113,113,.10);border-color:rgba(248,113,113,.4);color:#fecaca}
.err{background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.4);color:#fecaca;padding:11px 14px;border-radius:11px;margin-bottom:14px;font-size:14px}
.search-bar{margin-bottom:16px}.search-bar input{width:280px;max-width:100%}
.muted{color:var(--muted)}
@media(max-width:820px){.stats{grid-template-columns:repeat(2,1fr)}}

/* ===== Added: appbar, action icons, modals, device detail ===== */
.appbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-6px 0 22px;
  padding:12px 16px;border:1px solid var(--line);border-radius:14px;
  background:linear-gradient(180deg,rgba(27,26,23,.7),rgba(14,14,14,.7))}
.appbar-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:16px}
.appbar-brand img{width:30px;height:30px;border-radius:8px}
.appbar-user{display:flex;flex-direction:column;align-items:flex-end;line-height:1.3}
.appbar-user .u-name{font-size:13px;color:var(--text)}
.appbar-user .u-credits{font-size:13px;color:var(--muted)}
.appbar-user .u-credits b{color:var(--brand)}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-bottom:16px}

/* Action icon buttons in the table */
.acts{display:flex;gap:10px;align-items:center}
.iconbtn{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:10px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);cursor:pointer;color:var(--text);transition:.16s;font-size:17px;line-height:1}
.iconbtn:hover{transform:translateY(-1px);background:rgba(212,175,55,.10);border-color:var(--brand)}
.iconbtn.info{color:#7dd3fc}.iconbtn.activate{color:var(--success)}
.iconbtn.recover{color:var(--warning)}.iconbtn.edit{color:#c4b5fd}
.iconbtn[disabled]{opacity:.35;cursor:not-allowed;transform:none}

.paid-pill{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:700;
  color:#062b1c;background:var(--success)}
.unpaid-pill{display:inline-block;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:700;
  color:var(--muted);background:rgba(169,150,107,.12);border:1px solid var(--line)}

/* Modal */
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.66);backdrop-filter:blur(2px);
  display:none;align-items:center;justify-content:center;z-index:50;padding:18px}
.modal-bg.show{display:flex}
.modal{width:100%;max-width:560px;background:linear-gradient(180deg,var(--card-2),var(--card));
  border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}
.modal-head h3{margin:0;font-size:20px;font-weight:700}
.modal-x{background:none;border:0;color:var(--muted);font-size:24px;cursor:pointer;line-height:1}
.modal-x:hover{color:#fff}
.modal-body{padding:22px 24px}
.modal-body .fld{margin-bottom:16px}
.modal-body label{margin-bottom:7px}
.modal-body input,.modal-body select,.modal-body textarea{width:100%}
.modal-body textarea{padding:11px 13px;border-radius:11px;border:1px solid var(--line);
  background:rgba(255,255,255,.04);color:#fff;font-size:14px;outline:none;font-family:inherit;min-height:84px;resize:vertical}
.modal-body .hint{font-size:12px;color:var(--brand);margin-top:6px}
.modal-body .ro{color:var(--text);font-size:16px;padding:4px 0 2px}
.modal-foot{display:flex;gap:12px;justify-content:flex-end;padding:18px 24px 24px}
.req{color:var(--danger)}

/* Device detail */
.dev-status{display:grid;grid-template-columns:1fr 1fr;gap:22px 40px;margin:6px 0 8px}
.dev-status .k{color:var(--muted);font-size:13px;margin-bottom:6px}
.dev-status .v{font-size:17px}
.detail-actions{display:flex;justify-content:space-between;align-items:center;margin:20px 0}
.crumb{color:var(--muted);font-size:14px;font-weight:600}
.crumb b{color:var(--text)}
@media(max-width:680px){.dev-status{grid-template-columns:1fr}}

/* ===== Professional toast notification (auto-dismiss 5s) ===== */
.toast-wrap{position:fixed;top:22px;right:22px;z-index:1000;animation:toastIn .35s cubic-bezier(.22,1,.36,1)}
.toast-wrap.hide{animation:toastOut .4s ease forwards}
@keyframes toastIn{from{opacity:0;transform:translateX(40px) scale(.96)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateX(40px) scale(.96)}}
.toast{position:relative;display:flex;align-items:flex-start;gap:14px;width:360px;max-width:calc(100vw - 44px);
  padding:16px 16px 18px;border-radius:14px;overflow:hidden;
  background:linear-gradient(180deg,var(--card-2),var(--card));border:1px solid var(--line);
  box-shadow:0 20px 50px rgba(0,0,0,.6)}
.toast.ok{border-color:rgba(52,211,153,.45)}
.toast.err{border-color:rgba(248,113,113,.45)}
.toast-ico{flex:0 0 34px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:18px;font-weight:800}
.toast.ok .toast-ico{color:#062b1c;background:var(--success)}
.toast.err .toast-ico{color:#3b0a0a;background:var(--danger)}
.toast-body{flex:1;min-width:0}
.toast-title{font-weight:800;font-size:14px;margin-bottom:2px}
.toast.ok .toast-title{color:var(--success)}
.toast.err .toast-title{color:#fca5a5}
.toast-text{font-size:13px;color:var(--text);line-height:1.4;word-break:break-word}
.toast-x{position:absolute;top:8px;right:10px;background:none;border:0;color:var(--muted);font-size:20px;cursor:pointer;line-height:1}
.toast-x:hover{color:#fff}
.toast-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;transform-origin:left;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));animation:toastBar 5s linear forwards}
.toast.err .toast-bar{background:linear-gradient(90deg,var(--danger),#b91c1c)}
@keyframes toastBar{from{transform:scaleX(1)}to{transform:scaleX(0)}}

/* ===== Centered success/error modal (auto-close 5s) ===== */
.flash-bg{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;
  background:rgba(4,6,12,.72);backdrop-filter:blur(3px);animation:flashFade .2s ease}
.flash-bg.hide{animation:flashFade .25s ease reverse forwards}
@keyframes flashFade{from{opacity:0}to{opacity:1}}
.flash-card{position:relative;width:380px;max-width:calc(100vw - 36px);text-align:center;
  background:linear-gradient(180deg,#141f33,#0e1626);border:1px solid rgba(212,175,55,.18);
  border-radius:20px;padding:34px 30px 0;box-shadow:0 30px 80px rgba(0,0,0,.6);overflow:hidden;
  animation:flashPop .3s cubic-bezier(.22,1.2,.36,1)}
@keyframes flashPop{from{opacity:0;transform:translateY(12px) scale(.94)}to{opacity:1;transform:none}}
.flash-x{position:absolute;top:14px;right:16px;background:none;border:0;color:#9fb0c9;font-size:24px;cursor:pointer;line-height:1}
.flash-x:hover{color:#fff}
.flash-circle{width:96px;height:96px;margin:6px auto 18px}
.flash-circle svg{width:100%;height:100%}
.flash-circle circle{stroke-width:3}
.flash-circle path{stroke-width:4;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:60;stroke-dashoffset:60;animation:flashDraw .5s .15s ease forwards}
@keyframes flashDraw{to{stroke-dashoffset:0}}
.flash-card.ok .flash-circle circle{stroke:rgba(52,211,153,.45)}
.flash-card.ok .flash-circle path{stroke:var(--success)}
.flash-card.err .flash-circle circle{stroke:rgba(248,113,113,.45)}
.flash-card.err .flash-circle path{stroke:var(--danger)}
.flash-title{font-size:26px;font-weight:800;letter-spacing:.3px;margin-bottom:8px}
.flash-card.ok .flash-title{color:#eaf3ff}
.flash-card.err .flash-title{color:#fee2e2}
.flash-msg{font-size:15px;color:#c4d2e6;line-height:1.5;margin-bottom:22px;word-break:break-word;padding:0 6px}
.flash-ok{display:inline-flex;align-items:center;gap:8px;border:0;cursor:pointer;font-weight:700;font-size:15px;
  color:#fff;background:linear-gradient(135deg,#8b7bf0,#6d5dd3);padding:12px 30px;border-radius:12px;margin-bottom:30px;
  box-shadow:0 10px 26px rgba(109,93,211,.4);transition:.15s}
.flash-card.ok .flash-ok{background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 10px 26px rgba(212,175,55,.4)}
.flash-card.err .flash-ok{background:linear-gradient(135deg,#ef6a6a,#c83a3a);box-shadow:0 10px 26px rgba(248,113,113,.35)}
.flash-ok:hover{transform:translateY(-1px)}
.flash-bar{position:absolute;left:0;bottom:0;height:4px;width:100%;background:rgba(255,255,255,.06)}
.flash-bar span{display:block;height:100%;width:100%;transform-origin:left;transform:scaleX(0);
  background:var(--success);animation:flashGrow 5s linear forwards}
.flash-card.err .flash-bar span{background:var(--danger)}
@keyframes flashGrow{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* Action icons (SVG) sizing inside .iconbtn */
.iconbtn svg{width:19px;height:19px;display:block;stroke:currentColor;fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}

/* ===== Footer ===== */
.appfoot{display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:40px 2px 6px;padding-top:16px;border-top:1px solid var(--line);
  color:var(--muted);font-size:12.5px}
.appfoot .ver{color:var(--brand);font-weight:700}

/* ===== Reseller Rules page ===== */
.rules h2{font-size:18px;margin:0 0 6px;color:var(--brand)}
.rules p{font-size:14px;line-height:1.65;color:var(--text);margin:0 0 12px}
.rules .warn-box{border:1px solid rgba(248,113,113,.4);background:rgba(248,113,113,.08);
  border-radius:12px;padding:14px 16px;margin:14px 0;color:#fecaca;font-size:14px;line-height:1.6}
.rules ul{margin:0 0 14px;padding-left:20px}.rules li{font-size:14px;line-height:1.7}
.price-table td,.price-table th{padding:12px 14px}
.price-table tr:hover td{background:rgba(212,175,55,.05)}
.price-table .cr{font-weight:800;color:var(--brand)}
.price-table .eur{font-weight:700}
.price-table .usd{color:var(--muted)}

/* ===== Sidebar SVG icons ===== */
.side-link svg{width:21px;height:21px;flex:0 0 21px;stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:.18s}
.side-link span{line-height:1}
.side-link.active svg{stroke:#fff}

/* Hamburger + mobile drawer (hidden on desktop) */
.menu-btn{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;
  background:rgba(255,255,255,.03);color:var(--text);cursor:pointer;place-items:center;flex:0 0 42px}
.menu-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.menu-btn:hover{border-color:var(--brand);color:var(--brand)}
.side-overlay{display:none}

/* ===== Responsive: professional mobile menu + layout ===== */
@media(max-width:820px){
  .menu-btn{display:inline-grid}
  /* sidebar becomes an off-canvas drawer */
  .sidebar{position:fixed;top:0;left:0;height:100dvh;width:270px;z-index:60;
    transform:translateX(-100%);transition:transform .26s cubic-bezier(.4,0,.2,1);
    background:#0b0b0b;border-right:1px solid var(--line);overflow-y:auto}
  .sidebar.open{transform:none;box-shadow:24px 0 60px rgba(0,0,0,.6)}
  .side-overlay{position:fixed;inset:0;z-index:55;background:rgba(0,0,0,.55);
    backdrop-filter:blur(2px);opacity:0;transition:opacity .2s}
  .side-overlay.show{display:block;opacity:1}
  .content{padding:16px 14px}
  .appbar{position:sticky;top:0;z-index:40;gap:10px;
    background:linear-gradient(180deg,rgba(14,14,14,.96),rgba(14,14,14,.9));backdrop-filter:blur(6px)}
  .appbar-brand img{width:26px;height:26px}
  .appbar-brand span{display:inline;font-size:15px}
  .appbar-user .u-name{font-size:12px}
  .topbar h1{font-size:21px}
  .toolbar{justify-content:stretch;flex-direction:column}
  .toolbar .btn{width:100%;justify-content:center}
  .toolbar .search-bar,.toolbar .search-bar input{width:100%}
  .panel{padding:16px 14px}
  th,td{padding:11px 9px;font-size:13px}
  .modal{max-width:100%}
  .flash-card{width:340px}
}
@media(max-width:480px){
  .stats{grid-template-columns:1fr}
  .acts{gap:7px}
  .iconbtn{width:36px;height:36px;font-size:16px}
}

/* ===== Fixes: readable native dropdown + icon polish ===== */
select{color:var(--text);background-color:var(--card-2);
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9966B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}
select option{background:#15140f;color:#f3ecdb}
.modal-body select{width:100%}

/* sidebar icon never balloons / never fills */
.side-link svg,.menu-btn svg{fill:none}
.side-link svg *{fill:none}

/* Sidebar brand: logo only, larger, centered */
.sidebar .brand.brand-logo{justify-content:center;padding:10px 8px 22px}
.sidebar .brand.brand-logo img{width:88px;height:88px;border-radius:18px}
@media(max-width:820px){ .sidebar .brand.brand-logo img{width:72px;height:72px} }

/* ── Caret & cursor: writing indicator only inside real input fields ── */
*{caret-color:transparent}
input,textarea,select,[contenteditable="true"]{caret-color:auto}
input,textarea,[contenteditable="true"]{cursor:text}
body{cursor:default}
a,button,.btn,label,summary,select,[role="button"],.side-link,.action-ico{cursor:pointer}
/* Corteno Console light interface — layout only, no data or action logic changed. */
:root{--gold:#bd8a24;--brand:#bd8a24;--bg:#f6f8fb;--panel:#fff;--panel2:#f0f3f7;--line:#dfe5ec;--text:#182131;--muted:#6e7a8b;--green:#16804e;--red:#c74848;--shadow:0 12px 34px rgba(32,47,66,.08)}
*{box-sizing:border-box}body{background:var(--bg)!important;color:var(--text)!important;font-family:Inter,Arial,sans-serif}.shell{background:var(--bg)}.sidebar{background:#16202d!important;border-right:1px solid #273546!important;box-shadow:none!important}.brand-logo{height:84px!important;border-bottom:1px solid #2b3949!important;padding:18px!important}.brand-logo img{max-height:48px!important;width:auto!important}.side-link{color:#acb7c7!important;border-radius:7px!important;margin:4px 12px!important;padding:12px 14px!important}.side-link:hover{background:#213043!important;color:#fff!important}.side-link.active{background:#f8e3ae!important;color:#5f4207!important;box-shadow:none!important}.side-link.active:before{display:none!important}.side-foot{color:#9ca9b9!important;border-top:1px solid #2b3949!important;padding:18px!important}.side-foot b{color:#fff!important}.content{background:var(--bg)!important}.appbar{height:74px!important;background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;padding:0 30px!important}.appbar-brand{color:var(--text)!important;font-weight:800!important}.appbar-brand img{height:30px!important}.appbar-user{gap:10px!important}.u-name{color:var(--text)!important}.u-credits{background:#fff3d9!important;color:#8d6516!important;border:1px solid #edcf88!important;border-radius:20px!important;padding:5px 10px!important}.menu-btn{color:var(--text)!important}.topbar{padding:34px 38px 18px!important;background:transparent!important;border:0!important}.topbar h1{color:var(--text)!important;font-size:28px!important;letter-spacing:-.6px!important}.panel,.stat,.login-card,.modal,.modal-body,.flash-card{background:var(--panel)!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;border-radius:12px!important}.stats{gap:16px!important}.stat{padding:22px!important}.stat .num,.stat .val{color:var(--text)!important}.stat .lbl,.muted,.hint{color:var(--muted)!important}.btn{border-radius:7px!important;box-shadow:none!important}.btn-primary{background:var(--gold)!important;color:#2e210a!important;border-color:var(--gold)!important}.btn-primary:hover{background:#a97818!important;color:#fff!important}.btn-ghost{background:#fff!important;color:var(--text)!important;border-color:var(--line)!important}.btn-danger{background:#fff4f4!important;color:var(--red)!important;border-color:#f2c5c5!important}.toolbar,.search-bar{background:transparent!important}.search-bar input,.fld input,.fld select,.fld textarea,input,select,textarea{background:#fff!important;border-color:var(--line)!important;color:var(--text)!important;border-radius:7px!important}.row{background:var(--panel)!important;border-color:var(--line)!important}.row:hover{background:#fffaf0!important}.badge,.tag{border-radius:20px!important}.badge.active,.tag.ok,.paid-pill{background:#e8f8ef!important;color:#147047!important;border-color:#bae8cd!important}.trial,.warn{background:#fff3da!important;color:#8a6010!important}.expired,.err,.unpaid-pill{background:#fff0f0!important;color:#ad3d3d!important}.login-wrap{background:var(--bg)!important}.login-card{padding:34px!important}.appfoot{background:transparent!important;border-top:1px solid var(--line)!important;color:var(--muted)!important}.modal-bg{background:rgba(18,29,43,.45)!important}.modal-head,.modal-foot{background:var(--panel)!important;border-color:var(--line)!important}.modal-x,.iconbtn{color:var(--muted)!important}.flash-bg{background:rgba(18,29,43,.45)!important}
@media(max-width:760px){.appbar{padding:0 18px!important}.topbar{padding:26px 20px 14px!important}}
/* Partner workspace navigation and overview. */
.brand-logo{display:flex!important;align-items:center!important;gap:10px!important;text-decoration:none!important;color:#fff!important}.brand-logo span{font-size:15px;line-height:1.05}.brand-logo small{display:block;color:#d7a736;font-size:8px;letter-spacing:1.3px;margin-top:4px}.side-label{margin:20px 26px 7px;color:#758398;font-size:9px;letter-spacing:1.4px;font-weight:800}.side-link{display:flex!important;align-items:center!important;gap:11px!important}.side-link span{font-size:18px;width:20px;text-align:center;font-weight:400}.side-link b{font-weight:700}.side-logout{margin-top:20px!important}.appbar-brand{display:flex!important;flex-direction:column!important;line-height:1.1}.appbar-brand small{font-size:11px;color:var(--muted);font-weight:500;margin-top:4px}.avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#16202d;color:#fff;font-size:12px;font-weight:800}.topbar{display:flex;align-items:end;justify-content:space-between;gap:20px}.topbar p{color:var(--muted);margin:7px 0 0}.topbar h1{margin:0!important}.panel-kicker{display:block;color:#a67517;font-size:10px;letter-spacing:1.4px;font-weight:800;margin-bottom:8px}.partner-stats .stat{min-height:155px}.partner-stats .stat .l{font-size:10px;letter-spacing:1.1px}.partner-stats .stat .v{font-size:36px;margin:12px 0 5px}.partner-stats .stat span{font-size:12px;color:var(--muted)}.partner-stats .stat a{font-size:12px;color:#8d6516;font-weight:700}.workspace-grid,.profile-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:16px;margin:20px 38px 36px}.quick-panel,.workspace-tip,.profile-card,.profile-note,.credit-hero,.info-grid .panel,.check-panel{padding:26px!important}.quick-panel h2,.workspace-tip h3,.profile-card h2,.profile-note h2{margin:0 0 16px;font-size:22px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-actions a{border:1px solid var(--line);border-radius:9px;padding:15px;background:#fff}.quick-actions a:hover{border-color:#d0a34b;background:#fffaf0}.quick-actions b,.quick-actions span{display:block}.quick-actions b{font-size:14px;color:var(--text);margin-bottom:5px}.quick-actions span{font-size:12px;color:var(--muted)}.workspace-tip p,.profile-note p{font-size:14px;color:var(--muted);line-height:1.7}.profile-grid{margin-top:0}.profile-initial{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:#f8e3ae;color:#6e4a08;font-size:24px;font-weight:800;margin-bottom:15px}.profile-role,.status-pill{display:inline-flex;border-radius:20px;padding:4px 9px;background:#e8f8ef;color:#147047;font-size:11px;font-weight:800}.profile-card dl{border-top:1px solid var(--line);margin:22px 0 0;padding-top:13px}.profile-card dl div{display:flex;justify-content:space-between;padding:8px 0;font-size:13px}.profile-card dt{color:var(--muted)}.profile-card dd{margin:0;font-weight:700}.credit-hero{display:flex;align-items:center;justify-content:space-between;margin:0 38px 16px}.credit-hero span{font-size:10px;letter-spacing:1.3px;color:var(--muted);font-weight:800;display:block}.credit-hero strong{font-size:52px;line-height:1.1;color:var(--text);display:block}.credit-hero p{color:var(--muted);margin:5px 0 0}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 38px 36px}.info-grid h3{font-size:20px;margin:0 0 8px}.info-grid p{font-size:13px;color:var(--muted);line-height:1.7}.check-panel{margin:0 38px 36px}.check-form{display:flex;align-items:end;gap:12px}.check-form label{flex:1;font-size:12px;color:var(--muted);font-weight:800}.check-form input{display:block;width:100%;margin-top:6px;padding:12px}.check-result{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.check-result p{margin:3px 0;color:var(--muted);font-size:13px}.check-result .btn{margin-left:auto}.not-found{color:var(--red)}
@media(max-width:850px){.workspace-grid,.profile-grid{grid-template-columns:1fr;margin:20px}.credit-hero,.info-grid,.check-panel{margin-left:20px;margin-right:20px}.topbar{padding:26px 20px 14px!important}.info-grid{grid-template-columns:1fr}.partner-stats{padding:0 20px}.quick-actions{grid-template-columns:1fr}}@media(max-width:560px){.credit-hero,.check-result,.check-form{align-items:flex-start;flex-direction:column}.check-result .btn{margin-left:0}}
