/* ─────────── iiko RESTAURANT POS DEMO ─────────── */
.pos-section { padding: 90px 32px; }
.pos-wrap { margin-top: 44px; }

/* monitor frame */
.pos-monitor {
  max-width: 1120px; margin: 0 auto;
  background: #0f1113;
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.05);
  border: 1px solid rgba(0,0,0,0.4);
}
.pos-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #23262b;
  aspect-ratio: 16 / 10;
  min-height: 520px;
  color: #e9eaec;
  font-size: 14px;
}
.pos-stand {
  width: 120px; height: 16px; margin: 8px auto 0;
  background: linear-gradient(180deg, #2a2d31, #16181b);
  border-radius: 0 0 8px 8px;
}
.pos-stand-base {
  width: 220px; height: 10px; margin: 0 auto;
  background: linear-gradient(180deg, #1c1e21, #0d0e10);
  border-radius: 6px;
}

/* screen layers */
.pos-view {
  position: absolute; inset: 0;
  display: grid;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.pos-view.on { opacity: 1; pointer-events: auto; }

/* ═══ ORDER VIEW ═══ */
.pos-order { grid-template-columns: 40% 60%; }

/* left: check */
.ord-check { display: flex; flex-direction: column; min-height: 0; background: #2b2f34; border-right: 1px solid #16181b; }
.ord-check-top {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #1f2226; border-bottom: 1px solid #16181b;
  font-size: 12px; color: #9aa0a6;
}
.ord-check-top b { color: #e9eaec; font-weight: 600; }
.ord-check-top .octt { display: flex; flex-direction: column; line-height: 1.25; }
.ord-check-top .spacer { flex: 1; }
.ord-guest {
  background: var(--lime); color: #1a1c1e;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  text-align: center; padding: 7px;
}
.ord-lines { flex: 1; min-height: 0; overflow-y: auto; }
.ord-empty {
  height: 100%; min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #6d7278; font-size: 13px; text-align: center; padding: 24px;
}
.ord-empty svg { width: 34px; height: 34px; opacity: .5; }
.ord-line {
  display: grid; grid-template-columns: 26px 1fr auto;
  align-items: center; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid #23262b;
  animation: ordIn .2s ease; cursor: default;
}
.ord-line.sel { background: #343940; }
@keyframes ordIn { from { opacity: 0; transform: translateX(-6px); } }
.ord-line-q {
  width: 24px; height: 24px; border-radius: 5px;
  background: #1f2226; color: #cfd3d7;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.ord-line-name { font-size: 13.5px; font-weight: 500; }
.ord-line-name small { display: block; font-size: 11px; color: #8b9096; margin-top: 1px; }
.ord-line-sum { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-line-del {
  width: 22px; height: 22px; border: none; background: none; cursor: pointer;
  color: #6d7278; border-radius: 5px; display: none; align-items: center; justify-content: center;
}
.ord-line:hover .ord-line-del { display: flex; }
.ord-line-del:hover { color: var(--acc); background: rgba(224,81,46,0.15); }
.ord-line-del svg { width: 14px; height: 14px; }

.ord-foot { border-top: 1px solid #16181b; background: #1f2226; }
.ord-tot { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ord-tot > div { padding: 10px 16px; border-right: 1px solid #16181b; }
.ord-tot > div:last-child { border-right: none; }
.ord-tot .otl { font-size: 10.5px; color: #8b9096; text-transform: uppercase; letter-spacing: 0.04em; }
.ord-tot .otv { font-size: 14px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ord-grand {
  padding: 14px 16px; display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid #16181b;
}
.ord-grand span { font-size: 12px; color: #8b9096; text-transform: uppercase; letter-spacing: 0.04em; }
.ord-grand b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* right: iikoFront menu board */
.ord-menu { --ikH: 60px; display: flex; flex-direction: column; min-height: 0; background: #2b2b2b; color: #e8e8e8; }
.ikb-body {
  flex: 1; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: auto 1fr; gap: 3px; padding: 3px; align-content: start; background: #2b2b2b;
}
.ikb-icons {
  grid-column: 1 / 3; grid-row: 1; position: sticky; top: 0; z-index: 3; background: #2b2b2b;
  display: flex; align-items: stretch; min-width: 0; overflow: hidden;
}
.ikb-icon {
  flex: 1; border: none; background: none; cursor: pointer; color: #c9c9c9;
  display: flex; align-items: center; justify-content: center; padding: 12px 2px;
  transition: color .12s, background .12s;
}
.ikb-icon svg { width: 24px; height: 24px; }
.ikb-icon:hover { color: #fff; background: #363636; }
.ikb-hd {
  grid-row: 1; position: sticky; top: 0; z-index: 3; background: #2b2b2b;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: 0.02em;
  color: #e4e4e4; padding: 6px 8px; min-width: 0; overflow: hidden;
  overflow-wrap: break-word; word-break: break-word;
}
.ikb-hd.active { background: #c8c14a; color: #1c1c14; }
.ikb-groups {
  grid-column: 1 / 3; grid-row: 2;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-auto-rows: var(--ikH); gap: 3px;
  align-content: start;
}
.ikb-col { grid-row: 2; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gtile, .itile {
  border: none; cursor: pointer; font-family: inherit;
  width: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; padding: 6px 7px; border-radius: 2px; color: #1e1e1e;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.10);
  transition: filter .1s, transform .06s;
  min-width: 0; overflow: hidden;
}
.gtile { min-height: var(--ikH); font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; word-break: break-word; }
.itile { min-height: var(--ikH); }
.gtile:hover, .itile:hover { filter: brightness(1.06); }
.gtile:active, .itile:active { transform: scale(.98); }
.gtile.on { box-shadow: inset 0 0 0 3px rgba(255,255,255,0.9), inset 0 -2px 0 rgba(0,0,0,0.10); }
.itile-n { font-size: 12px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; max-width: 100%; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.itile-p { font-size: 10.5px; font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; white-space: nowrap; }
.itile.light { color: #fff; }
.itile.light .itile-p { opacity: .85; }
.itile.flash, .gtile.flash { animation: dishFlash .4s ease; }
@keyframes dishFlash { 0%{ filter: brightness(1.5);} 100%{ filter: none;} }

/* order bottom bar */
.ord-bar {
  grid-column: 1 / -1;
}
.pos-order { grid-template-rows: 1fr auto; }
.ord-actions {
  grid-column: 1 / -1;
  display: flex; background: #1a1a1a; border-top: 1px solid #000;
}
.ord-act {
  flex: 1; padding: 11px 6px; border: none; background: none; cursor: pointer;
  font-family: inherit; color: #c7c7c7; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border-right: 1px solid #000; transition: background .15s, color .15s;
}
.ord-act:last-child { border-right: none; }
.ord-act svg { width: 22px; height: 22px; }
.ord-act:hover { background: #262626; color: #fff; }
.ord-act.cassa { color: #f0d24e; }
.ord-act.cassa:not(:disabled):hover { background: #2a2718; color: #ffe066; }
.ord-act.cassa:disabled { color: #5f5d4a; cursor: not-allowed; }

/* ═══ PAYMENT VIEW ═══ */
.pos-pay { grid-template-rows: auto 1fr auto; grid-template-columns: 1fr; background: #2b2f34; }
.pay-head {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 20px; background: #fff; color: #1a1c1e; border-bottom: 1px solid #e3e2dd;
}
.pay-head h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.pay-head .phm { font-size: 12px; color: #6a6a66; }
.pay-head .spacer { flex: 1; }
.pay-body { display: grid; grid-template-columns: 34% 26% 40%; overflow: hidden; }

/* col1: order recap */
.pay-recap { background: #23262b; overflow-y: auto; border-right: 1px solid #16181b; }
.pay-recap-g { background: #3a3f46; color: #cfd3d7; font-size: 11px; font-weight: 700; text-align: center; padding: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.pay-recap-l { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #2b2f34; font-size: 13px; }
.pay-recap-l .q { color: #8b9096; font-variant-numeric: tabular-nums; }
.pay-recap-l .s { font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-recap-foot { padding: 14px 16px; }
.prf-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; color: #9aa0a6; }
.prf-row.big { border-top: 1px solid #3a3f46; margin-top: 6px; padding-top: 12px; font-size: 16px; font-weight: 800; color: #e9eaec; }
.prf-row b { font-variant-numeric: tabular-nums; }

/* col2: amounts */
.pay-mid { background: #2b2f34; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.pay-due { background: #1f2226; border-radius: 8px; padding: 14px 16px; }
.pay-due .l { font-size: 11px; color: #8b9096; text-transform: uppercase; letter-spacing: 0.05em; }
.pay-due .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pay-method-amt {
  background: var(--lime); color: #1a1c1e; border-radius: 8px; padding: 14px 16px;
  display: flex; flex-direction: column;
}
.pay-method-amt .l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pay-method-amt .v { font-size: 34px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pay-meta { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.pay-meta .pm-row { display: flex; justify-content: space-between; padding: 8px 6px; font-size: 13px; color: #9aa0a6; border-top: 1px solid #23262b; }
.pay-meta .pm-row b { color: #e9eaec; font-variant-numeric: tabular-nums; }
.pay-meta .pm-row.change b { color: var(--lime); }

/* col3: methods + keypad */
.pay-right { display: grid; grid-template-rows: auto 1fr; background: #34383e; }
.pay-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.pay-tab {
  border: none; cursor: pointer; font-family: inherit;
  background: #3a3f46; color: #b7bcc2; padding: 12px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-right: 1px solid #2b2f34; transition: background .15s, color .15s;
}
.pay-tab svg { width: 20px; height: 20px; }
.pay-tab:hover { background: #434850; color: #fff; }
.pay-tab.on { background: var(--lime); color: #1a1c1e; }
.pay-keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr) auto;
  gap: 6px; padding: 10px;
}
.pkey {
  border: none; cursor: pointer; font-family: inherit;
  background: #fff; color: #1a1c1e; border-radius: 7px;
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background .1s, transform .08s;
}
.pkey:hover { background: #f0efe9; }
.pkey:active { transform: scale(.95); }
.pkey.quick { background: #23262b; color: #e9eaec; font-size: 15px; font-weight: 700; }
.pkey.quick:hover { background: #2b2f34; }
.pkey.exact { grid-column: 1 / 4; background: #23262b; color: #e9eaec; font-size: 15px; font-weight: 700; }
.pkey.exact:hover { background: #2b2f34; }
.pkey.clr { grid-column: 4 / 6; background: #23262b; color: #e9eaec; font-size: 15px; font-weight: 700; }

/* payment bottom bar */
.pay-actions { display: flex; background: #16181b; border-top: 1px solid #0b0c0d; }
.pay-act {
  padding: 14px 22px; border: none; background: none; cursor: pointer;
  font-family: inherit; color: #b7bcc2; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; border-right: 1px solid #0b0c0d;
  transition: background .15s, color .15s;
}
.pay-act svg { width: 18px; height: 18px; }
.pay-act:hover { background: #1f2226; color: #fff; }
.pay-act.submit {
  margin-left: auto; border-right: none;
  background: var(--lime); color: #1a1c1e; font-size: 15px; font-weight: 800;
  padding: 14px 44px;
}
.pay-act.submit:hover { background: #d3de5a; }
.pay-act.submit:disabled { background: #2b2f34; color: #5a5f66; cursor: not-allowed; }

/* success overlay */
.pos-done {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(15,17,19,0.94);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: #fff; text-align: center;
}
.pos-done.on { display: flex; animation: doneIn .3s ease; }
@keyframes doneIn { from { opacity: 0; } }
.pos-done-ic {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--lime); color: #16181b;
  display: flex; align-items: center; justify-content: center;
  animation: donePop .45s cubic-bezier(.3,1.3,.5,1) both;
}
.pos-done-ic svg { width: 44px; height: 44px; }
@keyframes donePop { from { transform: scale(0); } }
.pos-done h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.pos-done p { font-size: 14px; color: #9aa0a6; }
.pos-done .amt { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lime); }
.pos-done-btn {
  margin-top: 8px; padding: 12px 28px; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; background: #fff; color: #16181b;
  transition: transform .12s;
}
.pos-done-btn:hover { transform: translateY(-1px); }

.pos-hint {
  text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pos-hint svg { width: 15px; height: 15px; color: var(--acc); }

@media (max-width: 860px) {
  .pos-section { padding: 60px 14px; }
  .pos-screen { aspect-ratio: auto; min-height: 0; height: auto; }
  .pos-view { position: relative; }
  .pos-view:not(.on) { display: none; }
  .pos-order { grid-template-columns: 1fr; }
  .ord-check { border-right: none; border-bottom: 1px solid #16181b; }
  .ord-menu { --ikH: 52px; }
  .ikb-head, .ikb-body { grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr; }
  .gtile { font-size: 11px; }
  .itile-n { font-size: 11px; }
  .ord-act { font-size: 9.5px; padding: 9px 3px; }
  .ord-act svg { width: 19px; height: 19px; }
  .pay-body { grid-template-columns: 1fr; }
  .pay-recap, .pay-mid { border-right: none; }
  .pay-keys .pkey { font-size: 18px; padding: 12px 0; }
}
