/* ============================================================================
 * cart.css — общие стили корзины, drawer, toast, кабинета и бариста
 * Использует те же CSS-переменные что и style.css.
 * ============================================================================ */

/* ============== NAV CART BUTTON ============== */
.nav__cart {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 230, 0, 0.1);
  border: 1px solid rgba(255, 230, 0, 0.2);
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.nav__cart:hover {
  background: var(--acid);
  color: var(--bg);
  transform: translateY(-2px) rotate(-6deg);
  box-shadow: var(--glow-acid);
}

.nav__cart.has-items {
  animation: navCartShake 0.5s cubic-bezier(.36,.07,.19,.97);
}

@keyframes navCartShake {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-4px) rotate(-8deg); }
  40% { transform: translateY(0) rotate(6deg); }
  60% { transform: translateY(-2px) rotate(-3deg); }
}

.nav__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--pink);
  color: #fff;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 31, 168, 0.5);
  pointer-events: none;
}

.nav__cart-badge[hidden] { display: none; }

/* ============== DRINK ADD BUTTON ============== */
.drink__add {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.005em;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}

.drink__add:hover {
  background: var(--c, var(--acid));
  border-color: var(--c, var(--acid));
  color: var(--bg);
  transform: translateY(-2px);
}

.drink__add-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c, var(--acid));
  color: var(--bg);
  font-family: var(--f-fat);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.drink__add:hover .drink__add-plus {
  background: var(--bg);
  color: var(--c, var(--acid));
  transform: rotate(90deg) scale(1.1);
}

.drink__add.is-added {
  background: var(--matcha);
  border-color: var(--matcha);
  color: var(--bg);
}

.drink__add.is-added .drink__add-plus {
  background: var(--bg);
  color: var(--matcha);
}

/* ============== DRAWER ============== */
.drawer[hidden] { display: none !important; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  grid-template-columns: 1fr auto;
  pointer-events: none;
}

.drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  grid-column: 1 / -1;
  grid-row: 1;
}

.drawer__panel {
  grid-column: 2;
  grid-row: 1;
  width: min(440px, 100vw);
  height: 100dvh;
  background: var(--bg-2);
  border-left: 1px solid rgba(255, 230, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.55s cubic-bezier(.2,.9,.2,1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  padding: 22px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.drawer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.drawer__title {
  font-family: var(--f-fat);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.drawer__title span {
  color: var(--acid);
}

.drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.drawer__close:hover {
  background: var(--pink);
  color: #fff;
  transform: rotate(90deg);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 230, 0, 0.3) transparent;
}

.drawer__body::-webkit-scrollbar { width: 6px; }
.drawer__body::-webkit-scrollbar-thumb { background: rgba(255, 230, 0, 0.3); border-radius: 3px; }

.drawer__empty {
  padding: 60px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drawer__empty-bubble {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--acid), var(--pink));
  filter: blur(2px);
  opacity: 0.3;
  animation: pop 2s ease-in-out infinite;
}

.drawer__empty h4 {
  font-family: var(--f-fat);
  font-size: 22px;
  line-height: 1.1;
}

.drawer__empty p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  max-width: 280px;
}

.drawer__line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.drawer__line:last-child { border-bottom: none; }

.drawer__line.is-leaving {
  animation: lineLeave 0.4s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes lineLeave {
  to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; margin: 0; border: 0; }
}

.drawer__line-thumb {
  width: 56px;
  height: 70px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer__line-thumb::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.drawer__line-thumb svg {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 40px;
}

.drawer__line-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drawer__line-info b {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer__line-info span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer__line-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 100px;
}

.drawer__qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-fat);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.drawer__qty-btn:hover {
  background: var(--acid);
  color: var(--bg);
}

.drawer__qty {
  min-width: 18px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
}

.drawer__line-price {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--acid);
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

.drawer__foot {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(255, 230, 0, 0.04));
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.drawer__total span {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.drawer__total b {
  font-family: var(--f-fat);
  font-size: 32px;
  color: var(--acid);
  text-shadow: 0 0 24px rgba(255, 230, 0, 0.4);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}

.drawer__clear {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding: 8px 0;
  text-align: center;
  transition: color 0.3s;
}

.drawer__clear:hover {
  color: var(--pink);
}

/* ============== TOAST ============== */
.toast-stack {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  align-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--c, rgba(255, 230, 0, 0.4));
  border-radius: 100px;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--c-glow, rgba(255, 230, 0, 0.25));
  transform: translateY(-20px);
  opacity: 0;
  animation: toastIn 0.5s cubic-bezier(.2,.9,.2,1) forwards, toastOut 0.4s ease 2.6s forwards;
  pointer-events: auto;
  white-space: nowrap;
}

@keyframes toastIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateY(-20px); opacity: 0; }
}

.toast__chip {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c, var(--acid));
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-fat);
  font-size: 16px;
  font-weight: 400;
  flex-shrink: 0;
}

.toast__txt b {
  color: var(--acid);
  font-weight: 700;
}

/* ============== CABINET / BARISTA (общие) ============== */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-top__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.app-top__back:hover {
  background: var(--acid);
  color: var(--bg);
  transform: translateX(-2px);
}

.app-top__title {
  font-family: var(--f-fat);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.app-top__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-left: auto;
}

.app-main {
  flex: 1;
  padding: 28px 20px 60px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

/* ============== FORM PRIMITIVES ============== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field__label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field__label b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--acid);
  color: var(--bg);
  border-radius: 50%;
  font-family: var(--f-fat);
  font-size: 9px;
  font-weight: 400;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  transition: border-color 0.3s, background 0.3s;
}

.field__input:focus {
  outline: none;
  border-color: var(--acid);
  background: rgba(255, 230, 0, 0.04);
}

.field__input::placeholder {
  color: var(--ink-faint);
}

textarea.field__input {
  min-height: 80px;
  resize: vertical;
  font-family: var(--f-body);
}

/* ============== CABINET ============== */
.welcome {
  background: linear-gradient(180deg, rgba(255, 31, 168, 0.05), rgba(123, 44, 255, 0.05));
  border: 1px solid rgba(255, 230, 0, 0.15);
  border-radius: 28px;
  padding: 36px 28px;
  margin-bottom: 22px;
  text-align: left;
}

.welcome__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--acid);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.welcome__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-transform: lowercase;
}

.welcome__sub {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 520px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab {
  padding: 14px 16px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.tab.is-active {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

.tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  background: var(--pink);
  color: #fff;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
}

.view { display: none; }
.view.is-active { display: block; }

/* Checkout */
.checkout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.checkout__summary {
  background: var(--bg-2);
  border: 1px solid rgba(255, 230, 0, 0.1);
  border-radius: 22px;
  padding: 22px;
  position: sticky;
  top: 90px;
}

.checkout__head {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.checkout__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.checkout__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.checkout__line:last-child { border-bottom: none; }

.checkout__line-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.checkout__line-name b {
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout__line-name span {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout__line-price {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 230, 0, 0.15);
  margin-bottom: 18px;
}

.checkout__total span {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.checkout__total b {
  font-family: var(--f-fat);
  font-size: 36px;
  color: var(--acid);
  text-shadow: 0 0 30px rgba(255, 230, 0, 0.3);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}

.loc-pick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.loc-pick__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: pointer;
}

.loc-pick__opt:hover {
  border-color: rgba(255, 230, 0, 0.4);
  transform: translateY(-2px);
}

.loc-pick__opt.is-active {
  border-color: var(--acid);
  background: rgba(255, 230, 0, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.15);
}

.loc-pick__opt b {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.loc-pick__opt span {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pay-btn {
  width: 100%;
  margin-top: 6px;
  padding: 18px 24px;
  background: var(--acid);
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--glow-acid);
  transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: -0.01em;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(255, 230, 0, 0.7);
}

.pay-btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
}

.pay-btn.is-loading {
  background: linear-gradient(90deg, var(--acid), var(--pink), var(--acid));
  background-size: 200% 100%;
  animation: payShimmer 1.2s linear infinite;
}

@keyframes payShimmer {
  to { background-position: -200% 0; }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Receipt */
.receipt {
  background: linear-gradient(180deg, rgba(255, 230, 0, 0.04), rgba(255, 31, 168, 0.04));
  border: 2px dashed rgba(255, 230, 0, 0.3);
  border-radius: 28px;
  padding: 32px 26px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.receipt::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
}

.receipt::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
}

.receipt__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.receipt__code {
  font-family: var(--f-display);
  font-size: clamp(64px, 13vw, 110px);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--acid);
  text-shadow: 0 0 40px rgba(255, 230, 0, 0.5);
  margin-bottom: 18px;
  font-feature-settings: 'tnum';
}

.receipt__qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.receipt__qr svg, .receipt__qr canvas { width: 100%; height: 100%; display: block; }

.receipt__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c, var(--acid));
  color: var(--c, var(--acid));
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 600;
}

.receipt__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

.receipt__loc {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.receipt__loc-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.receipt__items {
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.receipt__items-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 4px 0;
}

.receipt__hint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
  line-height: 1.5;
}

.receipt__hint em {
  font-style: normal;
  color: var(--acid);
}

/* History */
.history__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-dim);
  font-size: 14px;
}

.h-order {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.h-order:hover {
  border-color: rgba(255, 230, 0, 0.3);
  transform: translateY(-2px);
}

.h-order__code {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 230, 0, 0.08);
  color: var(--acid);
  font-feature-settings: 'tnum';
}

.h-order__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h-order__title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.h-order__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.h-order__side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.h-order__price {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.h-order__status {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--c, var(--acid));
  color: var(--bg);
  font-weight: 700;
}

/* ============== BARISTA ============== */
.barista-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.b-order {
  background: var(--bg-2);
  border: 1px solid var(--c, rgba(255, 230, 0, 0.3));
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  animation: orderIn 0.5s cubic-bezier(.2,.9,.2,1);
}

.b-order::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c, var(--acid));
  box-shadow: 0 0 20px var(--c, var(--acid));
}

@keyframes orderIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.b-order__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.b-order__code {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--acid);
  font-feature-settings: 'tnum';
}

.b-order__time {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
}

.b-order__customer {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
}

.b-order__customer span {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.b-order__items {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.b-order__items-line {
  font-family: var(--f-mono);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.b-order__items-line b {
  color: var(--acid);
  font-weight: 600;
  margin-right: 8px;
}

.b-order__note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  background: rgba(255, 31, 168, 0.06);
  border-radius: 10px;
  border: 1px dashed rgba(255, 31, 168, 0.2);
}

.b-order__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  background: var(--c, var(--acid));
  color: var(--bg);
  border-radius: 100px;
  font-weight: 700;
  align-self: flex-start;
}

.b-order__advance {
  padding: 14px 18px;
  background: var(--c, var(--acid));
  color: var(--bg);
  border-radius: 14px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.3s, box-shadow 0.3s;
}

.b-order__advance:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--c-glow, rgba(255, 230, 0, 0.4));
}

.barista-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-dim);
}

.barista-empty h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 7vw, 72px);
  margin-bottom: 12px;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.barista-empty p {
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============== FLOATING CART FAB (mobile) ============== */
.fab[hidden] { display: none !important; }

.fab {
  position: fixed;
  z-index: 95;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: none;  /* enabled in mobile media query */
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  background: var(--acid);
  color: var(--bg);
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 40px rgba(255, 230, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(100px);
  opacity: 0;
  animation: fabIn 0.5s cubic-bezier(.2,.9,.2,1) 0.3s forwards;
}

.fab.bump {
  animation: fabBump 0.5s cubic-bezier(.36,.07,.19,.97);
}

@keyframes fabIn {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fabBump {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.15) rotate(-4deg); }
  50% { transform: scale(0.94) rotate(3deg); }
}

.fab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--pink);
  color: #fff;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
}

.fab__total {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  font-feature-settings: 'tnum';
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
  .toast-stack { top: 76px; }

  /* Checkout — sticky pay button */
  .checkout { grid-template-columns: 1fr; }
  .checkout__summary {
    position: sticky;
    top: auto;
    bottom: 0;
    margin: 16px -16px -22px;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 30;
  }
  .checkout__lines { max-height: 30vh; overflow-y: auto; }

  .receipt {
    padding: 26px 22px;
    margin: 0 -4px;
  }
  .receipt__qr { width: 180px; height: 180px; }
  .receipt__code { font-size: clamp(72px, 17vw, 110px); letter-spacing: 0.04em; }

  .h-order { grid-template-columns: 56px 1fr; }
  .h-order__side {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    margin-top: 4px;
  }
  .app-main { padding: 22px 16px calc(80px + env(safe-area-inset-bottom)); }
  .welcome { padding: 28px 22px; border-radius: 22px; }

  /* Drawer takes full screen on mobile */
  .drawer__panel {
    width: 100vw;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .drawer__head { padding: 18px 20px 14px; }
  .drawer__body { padding: 14px 20px; }
  .drawer__foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }

  /* Nav cart hidden — FAB takes over */
  .nav__cart { display: none; }
  .fab { display: inline-flex; }

  /* Touch-friendly tap targets */
  .drink__add { padding: 14px 16px; font-size: 14px; min-height: 48px; }
  .drink__add-plus { width: 24px; height: 24px; font-size: 18px; }
  .menu__tab { min-height: 40px; padding: 10px 16px; }
  .btn { min-height: 48px; }
  .opt { min-height: 44px; }
  .opt--pill { min-height: 38px; }

  /* App-top with safe area on top for notch */
  .app-top { padding-top: calc(14px + env(safe-area-inset-top)); }
}

@media (max-width: 480px) {
  .barista-grid { grid-template-columns: 1fr; }
  .checkout__summary {
    margin: 14px -14px -22px;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  }
  .app-main { padding: 18px 14px calc(80px + env(safe-area-inset-bottom)); }
  .welcome { padding: 24px 20px; }
  .fab {
    padding: 12px 18px 12px 14px;
    font-size: 14px;
  }
  .fab__total { font-size: 13px; }
  .receipt__qr { width: 160px; height: 160px; }
  .receipt__code { font-size: clamp(68px, 19vw, 100px); }
  .h-order { padding: 14px; gap: 12px; }
  .h-order__code { height: 56px; font-size: 18px; }
  .h-order__title { font-size: 13px; }
  .b-order { padding: 18px; }
  .b-order__code { font-size: 30px; }
}
