/* ============================================================
   Pure Peptides AU — order system
   Direction: laboratory requisition document.
   Montserrat carries language, IBM Plex Mono carries every figure.
   ============================================================ */

:root{
  /* Ink & paper */
  --ink:            #0B0B0C;
  --ink-70:         #3D3D42;
  --muted:          #6B6B70;
  --faint:          #9A9A9F;
  --paper:          #FFFFFF;
  --wash:           #FAF8F3;
  --rule:           #E7E4DC;
  --rule-strong:    #1A1A1C;

  /* Brand gold */
  --gold:           #E4C167;
  --gold-soft:      #F6EDD4;
  --gold-wash:      #FDF9EF;
  --gold-deep:      #96731F;
  --gold-line:      #E8D9A8;

  /* States */
  --ok:             #1B6B41;
  --ok-wash:        #E8F3EC;
  --alert:          #A32017;
  --alert-wash:     #FBEDEC;

  /* Metrics */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;
  --r-pill: 100px;
  --shell: 1080px;
  --read:  620px;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); }

/* Every figure in the interface is mono and tabular. */
.fig, .price, .amount, .ordernum-card .v, .pay-row .v,
.summary-table td.r, .line-total, .stat .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.container { max-width: var(--shell); margin: 0 auto; padding: 0 20px; width: 100%; }

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.hidden { display: none !important; }

/* ============================================================
   Masthead
   ============================================================ */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .inner{
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { flex-shrink: 0; }

.trust-badges{
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  text-align: right;
  text-transform: uppercase;
}

/* ============================================================
   Opening statement
   ============================================================ */

.hero{
  padding: 52px 0 34px;
  max-width: var(--read);
  margin: 0 auto;
  text-align: center;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

h1{
  font-size: clamp(27px, 6vw, 40px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
}

.hero p{
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto;
  max-width: 46ch;
}

/* ============================================================
   Procedure
   ============================================================ */

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}

.step{
  padding: 20px 22px 22px 0;
  border-right: 1px solid var(--rule);
  display: block;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 22px; }

.step-num{
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 7px;
}
.step-num::before { content: "STEP "; }

.step p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-70);
}

/* ============================================================
   Filters
   ============================================================ */

.searchbar { margin-bottom: 14px; }

.searchbar input{
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.searchbar input::placeholder { color: var(--faint); }

.filters{
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.chip{
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 8px 15px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-70);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--gold-line); }
.chip[aria-pressed="true"]{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ============================================================
   Catalogue — a ruled requisition list, not a card grid
   ============================================================ */

/* The list is data, not a landing page: hold it to a scannable measure */
#catalogue, .perks, .notice, .searchbar, .filters, #no-results, .steps{
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cat-section { margin-bottom: 40px; }

.cat-heading{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 2px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--rule-strong);
  display: block;
}

.grid { display: block; }

.card{
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 0 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background .12s ease;
}
.card:hover { background: var(--wash); }

.card.selected{
  background: var(--gold-wash);
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 13px;
  padding-right: 10px;
}

.card .thumb{
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--wash);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-deep);
}

.card h3{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.card .variant{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: 2px 0 0;
}

.card .desc { display: none; }

.card .price{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-align: right;
  min-width: 74px;
}

.card .oos{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--alert);
  text-transform: uppercase;
  margin: 0;
}

.line-total{
  grid-column: 2 / -1;
  font-size: 11.5px;
  color: var(--gold-deep);
  margin: 5px 0 0;
  text-align: right;
}
.line-total:empty { display: none; }

/* Quantity stepper */
.qty{
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--paper);
  width: 112px;
}
.qty button{
  flex: 0 0 34px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .12s ease;
}
.qty button:hover { background: var(--gold-soft); }
.qty input{
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
  padding: 0;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#no-results{
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ============================================================
   Standing terms
   ============================================================ */

.perks{
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 34px 0;
}
.perks h4{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.perks p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.notice{
  border-top: 1px solid var(--rule);
  padding: 24px 0 0;
  margin: 34px 0;
}
.notice h4{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.notice ul{
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.notice li::marker { color: var(--gold-line); }

/* ============================================================
   SIGNATURE — running total as an instrument readout
   ============================================================ */

.cartbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .24s cubic-bezier(.22,.61,.36,1);
  border-top: 2px solid var(--gold);
}
.cartbar.show { transform: translateY(0); }

.cartbar .inner{
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cartbar .label{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
}

.cartbar .amount{
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
}

.cartbar .sub{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn{
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .14s ease, border-color .14s ease, opacity .14s ease;
}
.btn:hover { background: #D9B451; border-color: #D9B451; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }
.btn.lg { padding: 17px 28px; font-size: 14.5px; }
.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: var(--paper);
}
.btn.quiet{
  background: var(--paper);
  border-color: var(--rule);
  color: var(--ink);
}
.btn.quiet:hover { background: var(--wash); border-color: var(--gold-line); }

/* ============================================================
   Checkout
   ============================================================ */

.checkout{
  max-width: var(--read);
  margin: 0 auto;
  padding: 38px 20px 120px;
}

.progress{
  display: flex;
  gap: 5px;
  margin-bottom: 26px;
}
.progress span{
  flex: 1;
  height: 2px;
  background: var(--rule);
}
.progress span.on { background: var(--gold); }

.step-label{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

h2{
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 22px;
}

.field { margin-bottom: 16px; }

.field label{
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.field .opt { color: var(--faint); font-weight: 400; }

.field input, .field select, .field textarea{
  width: 100%;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color .12s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold-line); }
.field textarea { min-height: 84px; resize: vertical; }

.field.err input, .field.err select, .field.err textarea { border-color: var(--alert); }
.field .msg{
  display: none;
  font-size: 12px;
  color: var(--alert);
  margin-top: 5px;
}
.field.err .msg { display: block; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.checkbox{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
}
.checkbox input{
  width: 20px; height: 20px; flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.checkbox label{
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70);
}

.error-summary{
  display: none;
  background: var(--alert-wash);
  border-left: 3px solid var(--alert);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  margin-bottom: 20px;
}
.error-summary.show { display: block; }
.error-summary h4{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--alert);
}
.error-summary ul { margin: 0; padding-left: 18px; font-size: 13px; }
.error-summary a { color: var(--alert); }

/* Review */

.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td{
  padding: 11px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-70);
}
.summary-table td.r { text-align: right; white-space: nowrap; }
.summary-table tr.disc td { color: var(--gold-deep); }
.summary-table tr.tot td{
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 0;
  border-top: 1.5px solid var(--rule-strong);
  padding-top: 14px;
}

.review-block{
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.review-block h4{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.review-block p { margin: 0; font-size: 13.5px; line-height: 1.65; }
.review-block .edit{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: 0;
  color: var(--gold-deep);
  cursor: pointer;
  padding: 0 0 0 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Confirmation & transfer instructions
   ============================================================ */

.success{
  max-width: var(--read);
  margin: 0 auto;
  padding: 40px 20px 90px;
}

.success-badge{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ok-wash);
  border: 1px solid var(--ok);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 20px;
}

.ordernum-card{
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  text-align: center;
  margin-bottom: 26px;
}
.ordernum-card .k{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.ordernum-card .v{
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin: 8px 0 6px;
  word-break: break-all;
}
.ordernum-card .n{
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
}

.pay-list{
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.pay-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
}
.pay-row:last-child { border-bottom: 0; }
.pay-row.total { background: var(--gold-wash); }

.pay-row .k{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pay-row .v{
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-all;
}
.pay-row.total .v { font-size: 19px; color: var(--gold-deep); }

.copy-btn{
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.copy-btn:hover { border-color: var(--gold); background: var(--gold-wash); }
.copy-btn.done{
  background: var(--ok-wash);
  border-color: var(--ok);
  color: var(--ok);
}

.copyall { margin-bottom: 26px; }

.pay-note{
  background: var(--wash);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 26px;
  color: var(--ink-70);
}
.pay-note strong { color: var(--ink); }

.fallback{
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.fallback textarea{
  width: 100%;
  min-height: 160px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 14px;
  resize: vertical;
}

/* ============================================================
   Footer matter
   ============================================================ */

.disclaimer{
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.disclaimer strong { color: var(--muted); font-weight: 600; }

.site-footer{
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin-top: 14px;
  padding: 0 0 40px;
}
.site-footer a { color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px){
  .steps { grid-template-columns: 1fr; }
  .step{
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 16px 0;
  }
  .step:last-child { border-bottom: 0; }
  .step:not(:first-child) { padding-left: 0; }
}

@media (max-width: 620px){
  .container, .shell { padding: 0 16px; }
  .site-header .inner { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 13.5px; gap: 8px; }
  .brand svg { width: 21px; height: 21px; }
  .trust-badges { font-size: 8.5px; letter-spacing: 0; }

  .hero { padding: 34px 0 24px; }
  .hero p { font-size: 14px; }

  .card{
    grid-template-columns: 40px 1fr auto;
    gap: 0 13px;
    padding: 14px 0;
  }
  .card .thumb { width: 40px; height: 40px; }
  .card h3 { font-size: 14px; }
  .card .price{
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-top: 4px;
    font-size: 13.5px;
    min-width: 0;
  }
  .card .qty { grid-column: 3; grid-row: 1 / span 2; }
  .card .oos { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .line-total { grid-column: 2 / 3; text-align: left; margin-top: 5px; }

  .checkout { padding: 30px 16px 130px; }
  .success { padding: 30px 16px 70px; }
  h2 { font-size: 21px; }
  .row2 { grid-template-columns: 1fr; }

  .cartbar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cartbar .inner { gap: 12px; }
  .cartbar .amount { font-size: 21px; }
  .cartbar .btn { padding: 13px 20px; font-size: 12.5px; white-space: nowrap; }

  .pay-row { padding: 14px 15px; gap: 10px; }
  .pay-row .v { font-size: 15px; }
  .copy-btn { min-width: 62px; padding: 10px 11px; font-size: 12px; }
}

#view-catalogue { padding-bottom: 130px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .cartbar { transition: none; }
}

/* ============================================================
   Admin — same system, denser
   ============================================================ */

.admin-body { background: var(--wash); }

.admin-nav{
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
}
.admin-nav .inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.admin-nav a{
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .12s ease;
}
.admin-nav a:hover { color: var(--paper); }
.admin-nav a.on { color: var(--gold); }

.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 70px; }

.panel{
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 18px;
}
.panel h3{
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 780px){ .stats { grid-template-columns: repeat(4, 1fr); } }

.stat{
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px;
}
.stat .k{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat .v{
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td{
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
table.data th{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
table.data tr:hover td { background: var(--wash); }

.badge{
  display: inline-block;
  font-family: var(--mono);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.await   { background: var(--gold-wash); color: var(--gold-deep); }
.badge.paid    { background: var(--ok-wash);   color: var(--ok); }
.badge.cancel  { background: var(--alert-wash);color: var(--alert); }
.badge.neutral { background: #EFEFEC;          color: var(--muted); }

.flash{
  padding: 13px 16px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  font-size: 13.5px;
}
.flash.ok  { background: var(--ok-wash);    color: var(--ok);    border-left: 3px solid var(--ok); }
.flash.err { background: var(--alert-wash); color: var(--alert); border-left: 3px solid var(--alert); }

.login-wrap { max-width: 380px; margin: 80px auto; padding: 0 20px; }

@media (max-width: 720px){
  .admin-nav .inner { gap: 12px; font-size: 12px; }
  .admin-wrap { padding: 18px 14px 60px; }
  .panel { padding: 15px; }
  table.data { font-size: 12px; }
  table.data th, table.data td { padding: 8px 6px; }
}

@media print{
  .admin-nav, .no-print { display: none !important; }
  body { background: var(--paper); }
}

/* ---------------- kits (10-vial boxes) ----------------
   The card is a 4-column grid and the single-vial stepper already wraps to
   row 2 column 1, where its 112px pill overflows into the empty cells to
   its right. The kit strip therefore has to span the FULL width on its own
   row (1 / -1), not 2 / -1: anything sitting in row 2 columns 2-4 collides
   with that overflowing pill. */
.card .kit-box{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 9px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--gold-wash);
}

.kit-info { min-width: 0; }

.kit-head{
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.kit-tag{
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.kit-prices{
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.25;
}
.kit-now{
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.kit-per{
  font-size: 11.5px;
  color: var(--muted);
  margin-left: -4px;
}
.kit-was{
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.kit-dot { color: var(--rule); }
.kit-total{
  font-size: 12.5px;
  color: var(--ink-70);
}

.kit-note{
  margin: 3px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.card .kit-box .qty{
  flex: 0 0 auto;
  width: 100px;
  background: var(--paper);
}
.card .kit-box .qty button{ flex: 0 0 30px; height: 34px; font-size: 15px; }
.card .kit-box .qty input{ font-size: 13px; }

.line-total.kit-line{ grid-column: 2 / -1; }

@media (max-width: 620px){
  .card .kit-box{
    padding: 9px 10px;
    gap: 10px;
  }
  .card .kit-box .qty{ width: 96px; }
  .line-total.kit-line{ grid-column: 1 / -1; text-align: left; }
}
