/* ============================================================
   MRD — Make Ready Discard Module
   ============================================================ */

/* MRD home tile override — black surface + gold accent */
.tile.mrd-tile { background: var(--kfc-black); border-color: #2a2a2a; }
.tile.mrd-tile .top { background: linear-gradient(180deg, #1f1f1f, #0d0d0d); }
.tile.mrd-tile .top .icon-block {
  background: linear-gradient(135deg, var(--kfc-gold), var(--kfc-gold-deep));
  box-shadow: 0 6px 0 #8a5d00, inset 0 -3px 0 rgba(0,0,0,0.2);
}
.tile.mrd-tile .top .icon-block .material-symbols-rounded { color: var(--kfc-black); }
.tile.mrd-tile .meta { color: rgba(255,255,255,0.55); }
.tile.mrd-tile .meta strong { color: var(--kfc-gold); }
.tile.mrd-tile .bottom { background: var(--kfc-ink); border-top: 1px solid #333; }
.tile.mrd-tile .bottom::before { background: var(--kfc-gold); }
.tile.mrd-tile .bottom .label .en { color: var(--kfc-gold); }
.tile.mrd-tile .bottom .label .hi { color: white; }
.tile.mrd-tile .bottom .arrow {
  background: var(--kfc-gold); box-shadow: 0 4px 0 var(--kfc-gold-deep);
}
.tile.mrd-tile .bottom .arrow .material-symbols-rounded { color: var(--kfc-black); }

.tile-badge.mrd-amber {
  background: var(--kfc-gold); color: var(--kfc-black);
  box-shadow: 0 0 0 0 rgba(240,165,0,0.7);
  animation: amberPulse 1.6s var(--ease) infinite;
}
@keyframes amberPulse {
  0%   { box-shadow: 0 0 0 0 rgba(240,165,0,0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(240,165,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,165,0,0); }
}

/* shared MRD page background */
.mrd-page {
  flex: 1; display: flex; flex-direction: column;
  min-height: 0;
  background: var(--kfc-bone);
  overflow: hidden;
}

/* persistent 30-min banner */
.mrd-banner {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--kfc-gold), #ffba2e);
  border-bottom: 2px solid var(--kfc-gold-deep);
  font-family: var(--tile);
  font-weight: 700;
  color: var(--kfc-black);
}
.mrd-banner.warn { background: linear-gradient(90deg, #FF8B00, #FFA32E); border-bottom-color: #b35e00; color: white; }
.mrd-banner.danger {
  background: linear-gradient(90deg, var(--kfc-red), var(--kfc-red-dark));
  color: white; border-bottom-color: var(--kfc-red-deep);
  animation: bannerPulse 1.4s ease-in-out infinite;
}
@keyframes bannerPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.mrd-banner .ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,0,0,0.15);
  display: grid; place-items: center;
}
.mrd-banner.danger .ic { background: rgba(255,255,255,0.2); }
.mrd-banner .lbl {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700;
}
.mrd-banner .lbl small { display: block; font-family: var(--hi); font-weight: 600; opacity: 0.8; font-size: 11px; }
.mrd-banner .clock {
  margin-left: auto;
  font-family: var(--mono); font-weight: 700;
  font-size: 28px; letter-spacing: 2px;
  font-feature-settings: 'tnum';
  background: rgba(0,0,0,0.15); padding: 4px 14px; border-radius: 8px;
}
.mrd-banner.danger .clock { background: rgba(0,0,0,0.3); }

/* MRD-1: category grid */
.mrd-cat-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
}
.mrd-cat {
  background: white;
  border-radius: 16px;
  border: 1px solid #e6dfd2;
  border-top: 6px solid var(--kfc-red);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 24px;
  transition: all 0.18s var(--ease);
  box-shadow: 0 6px 0 rgba(0,0,0,0.05);
  position: relative;
}
.mrd-cat:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(0,0,0,0.08); }
.mrd-cat:active { transform: translateY(2px); }
.mrd-cat .ic-big {
  width: 120px; height: 120px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fbf6ed 100%);
  border: 2px solid #e6dfd2;
  display: grid; place-items: center;
}
.mrd-cat .ic-big .material-symbols-rounded { font-size: 76px; color: var(--kfc-red); }
.mrd-cat .en {
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: 1.5px;
  color: var(--kfc-black);
  text-align: center; line-height: 0.95;
}
.mrd-cat .hi {
  font-family: var(--hi); font-weight: 600;
  font-size: 22px; color: var(--kfc-red);
  text-align: center;
}

/* MRD-2A: produce type */
.mrd-2a {
  flex: 1;
  min-height: 0;
  padding: 32px 80px;
  display: flex; flex-direction: column; gap: 24px;
  justify-content: flex-start;
  overflow-y: auto;
}
.produce-card {
  background: white;
  border-radius: 18px;
  border: 1px solid #e6dfd2;
  padding: 36px 40px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 28px; align-items: center;
  box-shadow: 0 8px 0 rgba(0,0,0,0.05);
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.produce-card.fresh { border-top: 8px solid var(--kfc-red); }
.produce-card.marinated { border-top: 8px solid var(--kfc-gold); }
.produce-card:hover { transform: translateY(-4px); box-shadow: 0 12px 0 rgba(0,0,0,0.08); }
.produce-card .ic {
  width: 140px; height: 140px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbf6ed 100%);
  border: 2px solid #e6dfd2;
  display: grid; place-items: center;
}
.produce-card.fresh .ic .material-symbols-rounded { font-size: 88px; color: var(--kfc-red); }
.produce-card.marinated .ic .material-symbols-rounded { font-size: 88px; color: var(--kfc-gold-deep); }
.produce-card .info .en {
  font-family: var(--display); font-size: 56px; letter-spacing: 2px;
  color: var(--kfc-black); line-height: 0.95;
}
.produce-card .info .hi {
  font-family: var(--hi); font-weight: 600;
  font-size: 28px; color: var(--kfc-red); margin-top: 6px;
}
.produce-card .info .sub {
  font-family: var(--tile); font-weight: 600;
  font-size: 16px; letter-spacing: 1px; color: #666;
  margin-top: 12px; text-transform: uppercase;
}
.produce-card .info .sub small {
  display: block; font-family: var(--hi); font-weight: 500; color: #999;
  letter-spacing: 0; text-transform: none; margin-top: 2px;
}
.produce-card .arrow {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: var(--kfc-black); color: white;
  display: grid; place-items: center;
  box-shadow: 0 5px 0 #000;
}
.produce-card .arrow .material-symbols-rounded { font-size: 44px; }

/* MRD-2B: machine state cards */
.mrd-2b {
  flex: 1;
  min-height: 0;
  padding: 24px;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
}
.machine-card {
  background: white;
  border-radius: 20px;
  padding: 40px 60px;
  border: 1px solid #e6dfd2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
  max-width: 720px;
  width: 100%;
  position: relative;
}
.machine-card.locked { background: linear-gradient(180deg, #fbf6ed 0%, #f0e8da 100%); }
.machine-card.expired { background: #efe9dd; opacity: 0.95; }
.machine-card .pulse-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--kfc-red);
  display: grid; place-items: center;
  position: relative;
  box-shadow: inset 0 -8px 0 var(--kfc-red-deep);
}
.machine-card .pulse-ring::before,
.machine-card .pulse-ring::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 4px solid var(--kfc-red);
  animation: drumRing 2s var(--ease) infinite;
}
.machine-card .pulse-ring::after { animation-delay: 1s; }
@keyframes drumRing {
  0%   { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.machine-card .pulse-ring .drum {
  font-size: 120px;
  color: white;
  animation: spinDrum 2s linear infinite;
}
@keyframes spinDrum {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.machine-card .check-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--state-ready);
  display: grid; place-items: center;
  box-shadow: inset 0 -8px 0 var(--state-ready-deep);
}
.machine-card .check-ring .material-symbols-rounded { font-size: 120px; color: white; }
.machine-card h2 {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: 2px;
  line-height: 0.95;
  color: var(--kfc-red);
}
.machine-card.expired h2 { color: #555; }
.machine-card .machine-hi {
  font-family: var(--hi); font-weight: 600;
  font-size: 28px; color: var(--kfc-red);
}
.machine-card .machine-sub {
  font-size: 16px; color: #555; max-width: 480px;
  line-height: 1.5;
}
.machine-card .signal-strip {
  margin-top: 8px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 1.5px; color: #888;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(0,0,0,0.05); border: 1px solid #e0d8c8;
}
.machine-card .signal-strip .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--state-ready);
  animation: pulse 1.4s var(--ease) infinite;
}
.machine-card .lock-overlay {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--kfc-red); color: white;
  border-radius: 20px;
  font-family: var(--tile); font-weight: 800;
  font-size: 11px; letter-spacing: 1.5px;
}
.machine-card .lock-overlay .material-symbols-rounded { font-size: 16px; }

/* big circular timer */
.big-timer {
  width: 280px; height: 280px;
  position: relative;
}
.big-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-timer circle.bg { fill: none; stroke: #eee2cb; stroke-width: 12; }
.big-timer circle.fg {
  fill: none; stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.4s var(--ease);
}
.big-timer .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.big-timer .time {
  font-family: var(--mono); font-weight: 700;
  font-size: 64px; letter-spacing: 2px;
  font-feature-settings: 'tnum';
  color: var(--kfc-black); line-height: 1;
}
.big-timer .time-lbl {
  font-family: var(--tile); font-weight: 700;
  font-size: 11px; letter-spacing: 2px; color: #888;
  text-transform: uppercase; margin-top: 6px;
}
.big-timer .time-lbl small { display: block; font-family: var(--hi); font-weight: 500; color: var(--kfc-red); letter-spacing: 0; text-transform: none; }

.mrd-cta {
  width: 100%;
  height: 96px;
  border-radius: 14px;
  background: var(--kfc-red); color: white;
  font-family: var(--display); font-size: 36px;
  letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  box-shadow: 0 7px 0 var(--kfc-red-deep);
  transition: transform 0.12s var(--ease);
  margin-top: 14px;
}
.mrd-cta:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 4px 0 var(--kfc-red-deep); }
.mrd-cta:disabled {
  background: #aaa; box-shadow: 0 7px 0 #888;
  cursor: not-allowed; color: rgba(255,255,255,0.85);
}
.mrd-cta .hi { font-family: var(--hi); font-weight: 600; font-size: 20px; }

/* MRD-3: products */
.mrd-products {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.mrd-prod-grid {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 20px 24px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-content: start;
}
.prod-card {
  background: white; border-radius: 14px;
  border: 2px solid #e6dfd2;
  overflow: hidden; cursor: pointer;
  transition: all 0.16s var(--ease);
  box-shadow: 0 4px 0 rgba(0,0,0,0.04);
  position: relative;
}
.prod-card:hover { transform: translateY(-2px); }
.prod-card.selected {
  border-color: var(--kfc-red);
  box-shadow: 0 4px 0 var(--kfc-red-deep), 0 0 0 4px rgba(228,0,43,0.15);
}
.prod-card.selected::after {
  content: '';
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--kfc-red);
  background-image: linear-gradient(0deg, var(--kfc-red), var(--kfc-red));
  box-shadow: inset 0 0 0 2px white;
  z-index: 2;
}
.prod-card.selected::before {
  content: 'check';
  font-family: 'Material Symbols Rounded';
  font-size: 24px;
  position: absolute; top: 18px; right: 18px;
  color: white;
  z-index: 3;
  font-variation-settings: 'FILL' 1, 'wght' 700;
}
.prod-card .photo { height: 110px; }
.prod-card .info { padding: 12px 14px; }
.prod-card .name {
  font-family: var(--display); font-size: 24px;
  letter-spacing: 1px; color: var(--kfc-black); line-height: 1;
}
.prod-card .name-hi {
  font-family: var(--hi); font-weight: 600;
  font-size: 14px; color: var(--kfc-red); margin-top: 4px;
}
.prod-card .default-batch {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--kfc-bone);
  border: 1px solid #e6dfd2;
  font-family: var(--mono); font-weight: 700;
  font-size: 12px; letter-spacing: 0.5px;
}

.batch-row {
  grid-column: 1 / -1;
  background: white;
  border: 2px solid var(--kfc-red);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  animation: viewEnter 0.28s var(--ease);
}
.batch-row .label {
  font-family: var(--tile); font-weight: 800;
  font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--kfc-black);
  margin-right: 8px;
}
.batch-row .label small {
  display: block; font-family: var(--hi);
  font-weight: 500; color: var(--kfc-red); letter-spacing: 0;
  text-transform: none; margin-top: 2px;
}
.batch-tile {
  flex: 1; min-width: 120px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid #e6dfd2;
  background: white;
  font-family: var(--display); font-size: 28px;
  letter-spacing: 1px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all 0.14s var(--ease);
  color: var(--kfc-black);
}
.batch-tile small { font-family: var(--hi); font-weight: 500; font-size: 11px; color: #888; letter-spacing: 0; }
.batch-tile.active {
  background: var(--kfc-red); color: white; border-color: var(--kfc-red);
  box-shadow: 0 4px 0 var(--kfc-red-deep);
}
.batch-tile.active small { color: rgba(255,255,255,0.7); }
.batch-tile.custom { background: var(--kfc-black); color: white; border-color: var(--kfc-black); }
.batch-tile.custom .material-symbols-rounded { font-size: 22px; margin-bottom: 2px; }

.mrd-foot {
  flex-shrink: 0;
  padding: 14px 24px;
  background: white;
  border-top: 1px solid #e6dfd2;
}

/* keypad sheet */
.keypad-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: white;
  border-top: 4px solid var(--kfc-red);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  z-index: 60;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  animation: sheetUp 0.3s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.keypad-sheet .kp-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.keypad-sheet .kp-head .title {
  font-family: var(--display); font-size: 32px; letter-spacing: 1.5px;
}
.keypad-sheet .unit-toggle {
  display: flex; background: var(--kfc-bone);
  border-radius: 10px; padding: 4px; gap: 4px;
}
.keypad-sheet .unit-toggle button {
  height: 48px; padding: 0 20px;
  border-radius: 8px;
  font-family: var(--tile); font-weight: 800;
  font-size: 14px; letter-spacing: 1px;
}
.keypad-sheet .unit-toggle button.active {
  background: var(--kfc-black); color: white;
}
.keypad-input {
  background: var(--kfc-bone);
  border: 2px solid #e6dfd2; border-radius: 12px;
  padding: 18px 24px;
  font-family: var(--mono); font-weight: 700;
  font-size: 56px; text-align: center;
  font-feature-settings: 'tnum';
  color: var(--kfc-black);
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.keypad-grid button {
  height: 76px;
  border-radius: 12px;
  background: var(--kfc-bone);
  border: 1px solid #e6dfd2;
  font-family: var(--display); font-size: 36px;
  color: var(--kfc-black);
  transition: all 0.1s var(--ease);
}
.keypad-grid button:active { transform: scale(0.96); background: #e8dfcd; }
.keypad-grid button.clear { background: var(--kfc-red); color: white; border-color: var(--kfc-red); font-size: 18px; font-family: var(--tile); font-weight: 800; letter-spacing: 1px; }
.keypad-grid button.confirm { background: var(--state-ready); color: white; border-color: var(--state-ready); font-size: 18px; font-family: var(--tile); font-weight: 800; letter-spacing: 1px; }

/* MRD-4: 2FA */
.mrd-2fa {
  flex: 1;
  min-height: 0;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(228,0,43,0.06), transparent 60%),
    linear-gradient(180deg, #ece5d7 0%, #d8cfb8 100%);
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}
.review-card {
  background: white;
  border-left: 8px solid var(--kfc-red);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.review-card .review-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}
.review-card .review-row.full { grid-column: 1 / -1; }
.review-card .review-row .lbl {
  font-family: var(--tile); font-weight: 800;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: #888;
}
.review-card .review-row .val {
  font-family: var(--display); font-size: 24px; letter-spacing: 0.8px;
  color: var(--kfc-black);
}
.review-card .review-row .val.urgent { color: var(--kfc-red); }
.review-card .review-row .val small {
  font-family: var(--hi); font-weight: 600;
  font-size: 14px; color: var(--kfc-red); margin-left: 8px;
  letter-spacing: 0;
}
.review-card .review-row .val.urgent small { color: var(--kfc-red); }

.confirm-input-card {
  background: var(--kfc-black);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  color: white;
  border: 2px solid #333;
  position: relative;
}
.confirm-input-card .lbl-en {
  font-family: var(--display); font-size: 30px;
  letter-spacing: 2px; line-height: 1;
}
.confirm-input-card .lbl-hi {
  font-family: var(--hi); font-weight: 600;
  font-size: 18px; color: var(--kfc-gold);
  margin-top: 6px;
}
.yes-input {
  width: 100%;
  height: 88px;
  border-radius: 12px;
  background: white;
  border: 3px solid white;
  margin-top: 18px;
  text-align: center;
  font-family: var(--display); font-size: 60px;
  letter-spacing: 8px;
  color: var(--kfc-black);
  font-feature-settings: 'tnum';
  outline: none;
  transition: border-color 0.18s var(--ease);
}
.yes-input::placeholder { color: #ccc; letter-spacing: 4px; }
.yes-input.ok { border-color: var(--state-ready); }
.yes-input.bad { border-color: var(--kfc-red); animation: shake 0.4s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.confirm-input-card .err {
  margin-top: 10px;
  font-family: var(--tile); font-weight: 700;
  font-size: 14px; color: var(--kfc-red);
  letter-spacing: 1px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 22px;
}

/* MRD-5: sticker preview */
.mrd-5 {
  flex: 1;
  min-height: 0;
  padding: 24px;
  background: linear-gradient(180deg, #ece5d7 0%, #c8c0aa 100%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  overflow-y: auto;
}
.sticker-shadow {
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3));
  animation: stickerIn 0.5s var(--ease);
}
@keyframes stickerIn {
  from { transform: translateY(20px) rotate(-2deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.sticker {
  width: 720px;
  background: white;
  border: 1px dashed #999;
  border-radius: 4px;
  padding: 24px 28px;
  font-family: 'Courier New', monospace;
  color: #000;
  position: relative;
}
.sticker::before {
  /* perforated edges */
  content: '';
  position: absolute; left: -8px; top: 12px; bottom: 12px;
  width: 16px;
  background-image: radial-gradient(circle, #ece5d7 4px, transparent 4px);
  background-size: 16px 16px;
  background-repeat: repeat-y;
}
.sticker::after {
  content: '';
  position: absolute; right: -8px; top: 12px; bottom: 12px;
  width: 16px;
  background-image: radial-gradient(circle, #ece5d7 4px, transparent 4px);
  background-size: 16px 16px;
  background-repeat: repeat-y;
}
.sticker .st-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px dashed #000;
  padding-bottom: 10px; margin-bottom: 12px;
}
.sticker .st-head .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 2px;
  background: #000; color: white;
  padding: 2px 10px;
}
.sticker .st-head .tag {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 3px;
  border: 2px solid #000;
  padding: 2px 12px;
}
.sticker .st-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; letter-spacing: 2px; line-height: 1;
}
.sticker .st-name-hi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 700; font-size: 22px;
  margin-top: 4px;
}
.sticker .st-batch {
  font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; margin-top: 6px;
  font-weight: 700;
}
.sticker .st-times {
  display: flex; justify-content: space-between;
  border-top: 1px dashed #000; border-bottom: 1px dashed #000;
  padding: 10px 0; margin: 14px 0;
  font-size: 14px;
}
.sticker .st-times .t {
  display: flex; flex-direction: column; gap: 2px;
}
.sticker .st-times .t .t-lbl {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px; font-size: 13px;
}
.sticker .st-times .t .t-val {
  font-family: 'Courier New', monospace;
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
}
.sticker .st-times .t.use { color: #000; font-weight: 800; }
.sticker .st-times .t.use .t-lbl::before { content: '⚠️ '; }
.sticker .st-qr-row {
  display: flex; gap: 18px; align-items: center;
}
.sticker .qr {
  width: 200px; height: 200px;
  background:
    linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%) 0 0/14px 14px,
    linear-gradient(-45deg, #000 25%, transparent 25%, transparent 75%, #000 75%) 0 0/12px 12px,
    repeating-linear-gradient(0deg, #000 0 4px, white 4px 8px),
    repeating-linear-gradient(90deg, #000 0 5px, white 5px 9px);
  background-blend-mode: difference, difference, normal, multiply;
  flex-shrink: 0;
  position: relative;
  border: 6px solid white;
  outline: 3px solid #000;
}
.sticker .qr::before, .sticker .qr::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border: 6px solid #000;
  background: white;
}
.sticker .qr::before { top: 6px; left: 6px; box-shadow: inset 0 0 0 6px white, inset 0 0 0 12px #000; }
.sticker .qr::after { top: 6px; right: 6px; box-shadow: inset 0 0 0 6px white, inset 0 0 0 12px #000; }
.sticker .qr-meta-extra {
  position: absolute;
  bottom: 6px; left: 6px;
  width: 36px; height: 36px;
  border: 6px solid #000;
  background: white;
  box-shadow: inset 0 0 0 6px white, inset 0 0 0 12px #000;
}
.sticker .st-qr-info {
  flex: 1;
  font-size: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.sticker .st-qr-info .scan {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px; font-size: 16px;
}
.sticker .st-foot {
  margin-top: 12px;
  border-top: 2px dashed #000;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  display: flex; justify-content: space-between;
}

.print-status {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e6dfd2;
  font-family: var(--tile); font-weight: 700;
  font-size: 18px; color: var(--kfc-black);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
}
.print-status.success {
  background: var(--state-ready); color: white;
  border-color: var(--state-ready-deep);
  font-family: var(--display); font-size: 26px; letter-spacing: 1.5px;
}
.print-status .spinner {
  width: 20px; height: 20px;
  border: 3px solid #ddd; border-top-color: var(--kfc-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mrd-5 .actions {
  display: flex; gap: 14px; width: 720px;
}
.mrd-5 .actions button {
  flex: 1;
  height: 88px;
  border-radius: 12px;
  font-family: var(--display); font-size: 30px;
  letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: transform 0.12s var(--ease);
}
.mrd-5 .actions button.home {
  background: white; color: var(--kfc-black);
  box-shadow: inset 0 0 0 2px var(--kfc-black);
}
.mrd-5 .actions button.again {
  background: var(--kfc-red); color: white;
  box-shadow: 0 5px 0 var(--kfc-red-deep);
}
.mrd-5 .actions button:active { transform: scale(0.97); }

/* expired state */
.expired-screen {
  flex: 1;
  min-height: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ddd 0%, #b8b8b8 100%);
  filter: saturate(0.6);
  padding: 24px;
}
.expired-screen .core {
  background: white;
  border-radius: 20px;
  padding: 40px 60px;
  text-align: center;
  border: 2px dashed #999;
  max-width: 600px;
}
.expired-screen .core .ic {
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  background: var(--kfc-red); color: white;
  border-radius: 50%;
  display: grid; place-items: center;
}
.expired-screen .core .ic .material-symbols-rounded { font-size: 88px; }
.expired-screen .core h2 {
  font-family: var(--display); font-size: 48px;
  letter-spacing: 2px; color: var(--kfc-black);
  line-height: 1;
}
.expired-screen .core .hi {
  font-family: var(--hi); font-weight: 600;
  font-size: 24px; color: var(--kfc-red); margin-top: 6px;
}
.expired-screen .core p { color: #555; margin-top: 14px; line-height: 1.5; }

@media (min-height: 860px) {
  .mrd-2a {
    justify-content: center;
  }
  .mrd-2b {
    align-items: center;
  }
}

@media (max-height: 820px) and (min-width: 980px) {
  .mrd-cat-grid {
    padding: 18px 24px;
    gap: 14px;
  }
  .mrd-cat {
    padding: 18px;
    gap: 10px;
  }
  .mrd-cat .ic-big {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }
  .mrd-cat .ic-big .material-symbols-rounded {
    font-size: 58px;
  }
  .mrd-cat .en {
    font-size: 30px;
  }
  .mrd-cat .hi {
    font-size: 18px;
  }
  .mrd-2a {
    padding: 20px 56px 96px;
    gap: 16px;
  }
  .produce-card {
    padding: 24px 28px;
    grid-template-columns: 104px 1fr 64px;
    gap: 20px;
  }
  .produce-card .ic {
    width: 104px;
    height: 104px;
  }
  .produce-card.fresh .ic .material-symbols-rounded,
  .produce-card.marinated .ic .material-symbols-rounded {
    font-size: 66px;
  }
  .produce-card .info .en {
    font-size: 42px;
  }
  .produce-card .info .hi {
    font-size: 22px;
  }
  .produce-card .info .sub {
    margin-top: 8px;
    font-size: 14px;
  }
  .produce-card .arrow {
    width: 64px;
    height: 64px;
  }
  .mrd-2b {
    padding: 18px 24px 96px;
  }
  .machine-card {
    max-width: 680px;
    padding: 28px 46px;
    gap: 12px;
  }
  .machine-card .pulse-ring {
    width: 168px;
    height: 168px;
  }
  .machine-card .pulse-ring .drum {
    font-size: 94px;
  }
  .machine-card .check-ring {
    width: 160px;
    height: 160px;
  }
  .machine-card .check-ring .material-symbols-rounded {
    font-size: 94px;
  }
  .machine-card h2 {
    font-size: 44px;
  }
  .machine-card .machine-hi {
    font-size: 22px;
  }
  .big-timer {
    width: 220px;
    height: 220px;
  }
  .big-timer .time {
    font-size: 48px;
  }
  .mrd-cta {
    height: 76px;
    font-size: 30px;
  }
}
