/* ============================================================
   07 — ADMIN
   The console is deliberately not the same colour as the product.
   A rose stripe, a rose brand mark and a permanent "admin" chip,
   so nobody ever confuses the two at a glance.
   ============================================================ */

body.is-admin{position:relative}
body.is-admin::before{
  content:"";position:fixed;left:0;right:0;top:0;height:3px;z-index:120;pointer-events:none;
  background:linear-gradient(90deg,var(--rose),var(--gold) 45%,var(--rose));
}
body.is-admin .brand .mk{background:linear-gradient(135deg,var(--rose),var(--gold))}
body.is-admin .side a.on{background:rgba(255,90,110,.14);color:var(--text)}
body.is-admin .side a.on::before{background:linear-gradient(180deg,var(--rose),var(--gold))}
body.is-admin .page-hd{border-bottom-color:rgba(255,90,110,.28)}

.adminflag{
  margin:0 12px 16px;padding:9px 11px;border-radius:10px;
  border:1px solid rgba(255,90,110,.32);background:rgba(255,90,110,.09);
  font:500 10.5px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--rose);
}
@media(max-width:900px){.adminflag{display:none}}

/* the admin console never gets the aurora — it should feel like a back office */
body.is-admin .aurora{display:none}

/* ============================================================
   FORM VALIDATION — used across signup, admin and the builder
   ============================================================ */
.fieldmsg{margin-top:6px;font:400 12px/1.4 var(--ui);color:var(--dim);min-height:0}
.fieldmsg.bad{color:var(--rose)}
.fld input.invalid,.fld select.invalid,.fld textarea.invalid{
  border-color:var(--rose);box-shadow:0 0 0 3px rgba(255,90,110,.18);
}

/* sortable table headings */
table.tbl th[data-sort]{cursor:pointer;user-select:none;position:sticky}
table.tbl th[data-sort]:hover{color:var(--text)}
table.tbl th[data-sort]::after{content:"↕";margin-left:7px;opacity:.35;font-size:10px}
table.tbl th[aria-sort="ascending"]::after{content:"↑";opacity:1;color:var(--cyan)}
table.tbl th[aria-sort="descending"]::after{content:"↓";opacity:1;color:var(--cyan)}

/* rows hidden by paging must not leave a gap */
table.tbl tbody tr[style*="display: none"]{border:0}

/* provider rows reuse .rule but need room for the note line */
.rule .txt .small{display:block;margin-top:3px}

/* payment method marks in the checkout */
.methods{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px}
.method{
  display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:var(--r);cursor:pointer;
  border:1px solid var(--line);background:var(--glass);transition:border-color .15s,background .15s;
}
.method:hover{border-color:rgba(46,107,255,.5)}
.method[aria-checked="true"]{border-color:var(--blue);background:rgba(46,107,255,.12)}
.method .mk{
  width:30px;height:30px;border-radius:8px;flex:0 0 auto;display:grid;place-items:center;
  background:var(--spectrum-soft);color:var(--cyan);font:600 11px/1 var(--mono);
}
.method b{font-size:13px;display:block}
.method span{font-size:11.5px;color:var(--faint)}

/* order summary */
.summary{display:grid;gap:10px;font-size:13.5px}
.summary .row{display:flex;justify-content:space-between;gap:16px}
.summary .row.total{
  border-top:1px solid var(--line);padding-top:12px;margin-top:4px;
  font-size:16px;font-weight:600;
}
.summary .row span:last-child{font-family:var(--mono)}

/* trust strip under the pay button */
.trust{display:flex;gap:16px;flex-wrap:wrap;margin-top:14px}
.trust span{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--faint)}
.trust svg{opacity:.8}

@media(max-width:560px){
  .methods{grid-template-columns:1fr 1fr}
}
