/* FluxCore3D admin — the public site's logo palette (molten orange, steel, graphite), denser. */
@font-face { font-family: "Schibsted"; src: url("/fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/chakra-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/chakra-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/fonts/jbmono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #0d0d0f; --bg-2: #121215; --panel: #18191c; --panel-2: #212328; --line: #2a2c31; --line-2: #3b3e45;
  --text: #eceef1; --text-2: #b4b8bf; --text-3: #868b94; --accent: #ff7a12; --accent-2: #ffa040; --accent-ink: #1a0a02;
  --molten: linear-gradient(180deg, #ffb24d 0%, #ff8a1c 38%, #ff7a12 55%, #d9560b 100%);
  --display: "Chakra Petch", "Schibsted", system-ui, sans-serif;
  --ok: #4fd18b; --warn: #f2c14e; --bad: #ef5b5b;
  --sans: "Schibsted", system-ui, sans-serif; --mono: "JB Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin-top: 1.4em; color: var(--text-2); }
code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--text-3); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; padding: 0 8px; }
.brand small { display: block; font: 500 .72rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.mark { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 7px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: var(--panel); color: var(--text); }
.side-nav a[aria-current] { background: var(--panel-2); color: var(--text); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); box-shadow: inset 0 -2px 0 var(--accent); }
.badge { font: 600 .75rem/1 var(--mono); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 4px 7px; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-3); word-break: break-all; }
.side-foot a { color: var(--text-2); text-decoration: none; }

.main { padding: 26px 34px 60px; min-width: 0; max-width: 1400px; }
.main-head { margin-bottom: 18px; }
.flash { padding: 11px 15px; border-radius: 8px; margin: 0 0 18px; }
.flash.ok { background: rgba(79, 209, 139, .1); border: 1px solid rgba(79, 209, 139, .4); color: #c6f2da; }
.flash.err { background: rgba(239, 91, 91, .1); border: 1px solid rgba(239, 91, 91, .45); color: #ffc9c9; }
.hint { color: var(--text-3); font-size: .9rem; max-width: 80ch; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.btns form { margin: 0; }

.btn { display: inline-flex; align-items: center; gap: .4em; padding: 9px 16px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 650 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: var(--text-3); }
.btn-danger { background: transparent; color: #ff9d9d; border-color: rgba(239, 91, 91, .5); }
.btn-danger:hover { background: rgba(239, 91, 91, .15); color: #ffd0d0; border-color: var(--bad); }
.btn-sm { padding: 6px 11px; font-size: .86rem; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 18px; text-decoration: none; color: var(--text); display: grid; gap: 2px; }
.stat:hover { border-color: var(--line-2); color: var(--text); }
.stat b { font: 650 2rem/1.1 var(--mono); color: var(--accent-2); }
.stat i { font-style: normal; color: var(--ok); }
.stat span { color: var(--text-2); font-size: .9rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: start; }
.cols-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 20px 22px; margin-bottom: 18px; min-width: 0; }
.cols .box { margin-bottom: 0; }
.checklist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); }
.checklist li.done a { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }

.t { border-collapse: collapse; width: 100%; font-size: .93rem; }
.t th { text-align: left; font: 500 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t-full { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; display: table; }
.box .t-full { border: 0; background: none; }
.t a { text-decoration: none; }
.t a:hover { text-decoration: underline; }
.pill { display: inline-block; font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 5px 8px; border-radius: 5px; background: var(--panel-2); color: var(--text-2); }
.pill-new, .pill-paid, .pill-featured { background: rgba(255, 106, 19, .16); color: var(--accent-2); }
.pill-quoted, .pill-reviewing, .pill-printing { background: rgba(242, 193, 78, .14); color: var(--warn); }
.pill-published, .pill-clean, .pill-confirmed, .pill-active, .pill-ready, .pill-shipped, .pill-done { background: rgba(79, 209, 139, .12); color: var(--ok); }
.pill-infected, .pill-error, .pill-rejected, .pill-lapsed, .pill-none, .pill-refunded { background: rgba(239, 91, 91, .14); color: #ff9d9d; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: .9rem; }
.tabs a:hover { background: var(--panel); color: var(--text); }
.tabs a[aria-current] { background: var(--text); color: var(--bg); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.kv div { padding: 10px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.kv dt { font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.kv dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.prose { color: var(--text-2); white-space: normal; }
.row-actions { display: flex; gap: 10px; margin-top: 12px; }
.row-actions form { margin: 0; }

.form { display: grid; gap: 14px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.span2 { grid-column: 1 / -1; }
.form label, .form fieldset { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; min-width: 0; }
.form label small, legend small { font-weight: 400; color: var(--text-3); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.form-inline { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 240px; }
input, select, textarea { width: 100%; font: 400 .95rem/1.4 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 19, .18); }
input[type="file"] { border-style: dashed; padding: 14px; background: var(--bg-2); }
input[type="file"]::file-selector-button { font: 600 .88rem var(--sans); background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 12px; margin-right: 12px; }
.form .check, .check { display: flex; gap: 9px; align-items: center; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; margin: 0; }
input.mini, .mini input { width: 76px; }
.mini { display: flex !important; gap: 6px; align-items: center; font-weight: 500; }
textarea { resize: vertical; }

.warn { list-style: none; margin: 6px 0 0; padding: 0; font-size: .84rem; color: var(--warn); }
.warn li::before { content: "▲ "; font-size: .7em; }
.warn-box { background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .35); border-radius: 9px; padding: 12px 16px; margin: 0 0 18px; font-size: .92rem; }
.ok-line { color: var(--ok); } .warn-line { color: var(--warn); }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); display: block; background: var(--panel-2); }
.thumb-missing { display: block; }
.imgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.img-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.img-row .thumb { width: 96px; height: 96px; }
.img-form { gap: 8px; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cand { position: relative; display: block !important; cursor: pointer; }
.cand img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.cand input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--accent); }
.cand input:checked + img { border-color: var(--accent); }
.plain { margin: 8px 0; padding-left: 1.2em; }
details summary { cursor: pointer; color: var(--text-2); }
.pr-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--line-2); }
.pr-dot.pr-busy { background: var(--accent); } .pr-dot.pr-idle { background: var(--ok); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: column; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .main { padding: 20px 16px 50px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cols, .cols-wide, .form-grid { grid-template-columns: 1fr; }
  .t-full { display: block; overflow-x: auto; }
}
.form-grid > label:not(.check) { align-content: end; }
.filters { margin-bottom: 14px; }
.filters label { display: grid; gap: 5px; font-weight: 600; font-size: .85rem; }
.filters .check { display: flex; align-self: center; margin-top: 18px; }
.pager { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.pricing-box { border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; display: grid; gap: 12px; }
.form-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .form-grid.three { grid-template-columns: 1fr; } }
.msg-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 10px; }
.msg .btns { margin: 12px 0 0; }
.charge { border-color: var(--accent); }
.extra-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.msg-staff { border-color: rgba(255, 122, 18, .45); background: #1d1712; }
.pill-verified { background: rgba(79, 209, 139, .12); color: var(--ok); }
.pill-unverified, .pill-disabled { background: rgba(239, 91, 91, .14); color: #ff9d9d; }
.pill-open { background: rgba(255, 106, 19, .16); color: var(--accent-2); }
.pill-answered { background: rgba(242, 193, 78, .14); color: var(--warn); }
td.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.banner-preview { padding: 9px 14px; border-radius: 8px; text-align: center; font-size: .92rem; margin-bottom: 18px; }
.banner-preview a { color: inherit; font-weight: 600; text-decoration: underline; }
.site-banner-info { background: var(--panel-2); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
.site-banner-sale { background: var(--accent); color: var(--accent-ink); }
.site-banner-success { background: #133a26; color: #c6f2da; }
.site-banner-warning { background: #3d3112; color: #fbe6ad; }
.ready-box { border-color: var(--warn); }

/* Seller badge panel */
.badge-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.badge-shot { width: 112px; height: 112px; border-radius: 12px; flex: 0 0 auto; }
.badge-empty { display: grid; place-items: center; text-align: center; border: 2px dashed var(--line, #444);
  color: var(--text-3, #8a8a8a); font: 500 .72rem/1.3 var(--mono, monospace); text-transform: uppercase; letter-spacing: .04em; }
.badge-form { flex: 1 1 320px; }

/* Sign-in page */
.login-body { display: grid; place-items: center; min-height: 100vh; margin: 0; padding: 24px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 1.25rem; margin: 0 0 18px; }
.login-err, .login-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.login-err { background: #3a1c1c; color: #ffc9c9; }
.login-note { background: #1c2a3a; color: #c9dcff; }
.btn-wide { width: 100%; }
.side-foot .signout { margin: 0; }
.side-foot .signout button { background: none; border: 0; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline; }

/* Security page */
.tfa-setup { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.tfa-setup svg { background: #fff; padding: 10px; border-radius: 10px; flex: 0 0 auto; }
.tfa-setup > div { flex: 1 1 280px; }
ul.codes { list-style: none; padding: 0; margin: 12px 0 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
ul.codes li { background: var(--panel-2, #1b1b1b); padding: 8px 10px; border-radius: 6px; letter-spacing: .06em; }

/* A state word in the sidebar ("live"), not a count of things to deal with. */
.badge-state { background: none; color: var(--text-3, #8a8a8a); border: 1px solid var(--line, #444);
  font: 500 .66rem/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 6px; border-radius: 4px; }

/* ------------------------------------------------------------------ logo language (see public site.css) */
/* A hairline of light steel around the logo: its graphite corner vanishes on the black page without it.
   Four 1px offsets trace the outline; the soft orange glow sits outside that. */
.logo { display: block; flex: none;
  filter: drop-shadow(1px 0 0 rgba(214, 218, 224, .55)) drop-shadow(-1px 0 0 rgba(214, 218, 224, .55))
          drop-shadow(0 1px 0 rgba(214, 218, 224, .55)) drop-shadow(0 -1px 0 rgba(214, 218, 224, .55))
          drop-shadow(0 0 10px rgba(255, 122, 18, .25)); }
.wm { display: block; font: 700 1.05rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: #e6e9ed; }
.wm b { color: var(--accent); font-weight: 700; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.btn { border: 0; border-radius: 0; background: var(--molten); font: 700 .88rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn:hover { background: linear-gradient(180deg, #ffc56e 0%, #ff9a30 40%, #ff8418 58%, #e2600f 100%); }
.btn-ghost { background: var(--panel-2); color: var(--text); }
.btn-ghost:hover { background: #2c2f35; color: var(--text); }
.btn-danger { background: #2a1416; color: #ffb3b3; }
.btn-danger:hover { background: #3a1a1d; color: #ffd0d0; }
.badge { border-radius: 0; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 5px 100%, 0 50%); padding: 4px 9px; }
