:root {
  --bg: #f6efe5;
  --surface: rgba(255, 248, 239, 0.94);
  --surface-strong: #151515;
  --card: #fffaf3;
  --text: #1a1510;
  --muted: #6c6156;
  --accent: #d9480f;
  --accent-2: #ffba08;
  --success: #2f9e44;
  --danger: #e03131;
  --border: rgba(26, 21, 16, 0.08);
  --shadow: 0 24px 60px rgba(33, 21, 10, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 186, 8, 0.28), transparent 24%),
    radial-gradient(circle at bottom right, rgba(217, 72, 15, 0.22), transparent 30%),
    linear-gradient(160deg, #fbf5ed 0%, #efe4d4 54%, #f9f7f3 100%);
  color: var(--text);
}

body.screen-kiosk {
  height: 100vh;
  overflow: hidden;
}

body.screen-admin,
body.screen-login,
body.screen-kitchen,
body.screen-pickup {
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.kiosk-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1rem;
}

.kiosk-topbar {
  display: block;
}

.brand-mark,
.promo-banner,
.admin-sidebar,
.login-panel {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.brand-mark,
.admin-sidebar,
.login-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.96), rgba(21, 21, 21, 0.78));
  color: #fff;
  padding: 1.4rem 1.5rem;
}

.brand-logo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #ff9f43);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.7);
}

.promo-banner {
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.92), rgba(255, 186, 8, 0.85));
  color: #fff;
  padding: 1.4rem 1.6rem;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.promo-banner-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.promo-copy {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floating-brand {
  min-height: 100%;
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.96), rgba(21, 21, 21, 0.78));
}

.promo-banner::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.promo-banner h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.92;
  max-width: none;
  width: 100%;
}

.kiosk-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.menu-panel,
.cart-panel,
.settings-card,
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.menu-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.8rem;
  padding: 1rem;
  overflow: hidden;
}

.cart-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.8rem;
  padding: 1rem;
}

.cart-panel .cart-header h2 {
  font-size: clamp(1.45rem, 1.8vw, 2.1rem);
}

.menu-header,
.cart-header,
.card-head,
.admin-item-head,
.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.menu-header h2,
.cart-header h2,
.card-head h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
}

.customer-input {
  min-width: 240px;
}

.customer-input span,
.settings-card label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.customer-input input,
.settings-card input,
.settings-card select,
.settings-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem 1rem;
}

.category-ribbon {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
}

.category-button {
  border: 0;
  min-width: 160px;
  border-radius: 20px;
  padding: 0.95rem 1.05rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.64);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.category-button.active {
  background: linear-gradient(135deg, #181511, #3b3125);
  color: #fff;
}

.product-grid {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  align-content: start;
  padding-right: 0.2rem;
}

.product-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card-clickable {
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(33, 21, 10, 0.12);
}

.product-card-clickable:focus-visible {
  outline: 3px solid rgba(217, 72, 15, 0.28);
  outline-offset: 2px;
}

.product-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.18), rgba(255, 186, 8, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge,
.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(26, 21, 16, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-card h3 {
  margin-top: 0.35rem;
  font-size: 2rem;
  line-height: 0.92;
}

.product-card p,
.order-meta,
.order-items,
.sidebar-note span,
.login-help {
  margin: 0;
  color: var(--muted);
}

.product-footer,
.summary-row,
.order-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.product-footer {
  justify-content: flex-start;
}

.cart-items {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
}

.cart-item,
.admin-product-item,
.tag-item,
.order-card,
.stat-card {
  display: grid;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  padding: 0.9rem;
  border: 1px solid var(--border);
}

.cart-item-head {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  display: grid;
  align-items: center;
  gap: 0.8rem;
}

.cart-item-media {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.16), rgba(255, 186, 8, 0.16));
}

.cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-content {
  min-width: 0;
}

.cart-item-title {
  display: block;
  font-size: 0.9rem;
  line-height: 1.05;
}

.cart-item-price {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.qty-controls,
.hero-actions,
.admin-links,
.form-actions,
.status-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.qty-controls {
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-self: end;
  gap: 0.4rem;
}

.primary-hero,
.secondary-button,
.ghost-link,
.checkout-button,
.mini-button,
.cart-remove-button,
.qty-button {
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-hero:hover,
.secondary-button:hover,
.ghost-link:hover,
.checkout-button:hover,
.mini-button:hover,
.cart-remove-button:hover,
.qty-button:hover,
.category-button:hover {
  transform: translateY(-1px);
}

.primary-hero,
.checkout-button {
  background: linear-gradient(135deg, var(--accent), #ff874f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(217, 72, 15, 0.24);
}

.secondary-button,
.ghost-link {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-button,
.qty-button {
  background: #181511;
  color: #fff;
  min-width: 42px;
  min-height: 42px;
}

.cart-remove-button,
.cart-panel .qty-button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.cart-remove-button {
  background: rgba(26, 21, 16, 0.12);
  color: var(--ink);
}

.qty-value {
  min-width: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
}

.checkout-button {
  width: 100%;
  min-height: 66px;
  font-size: 1.06rem;
}

.summary-row {
  margin-bottom: 0.45rem;
}

.cart-panel .summary-row {
  font-size: 0.92rem;
}

.total-row {
  font-size: 1.08rem;
}

.status-pendiente {
  background: rgba(255, 186, 8, 0.18);
}

.status-en_preparacion {
  background: rgba(51, 154, 240, 0.16);
}

.status-listo {
  background: rgba(47, 158, 68, 0.18);
}

.status-entregado {
  background: rgba(26, 21, 16, 0.12);
}

.status-cancelado {
  background: rgba(224, 49, 49, 0.16);
}

.checkout-modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.checkout-modal::backdrop {
  background: rgba(21, 21, 21, 0.6);
}

.modal-card {
  width: min(520px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.payment-card {
  width: min(760px, calc(100vw - 2rem));
}

.modal-card h2 {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.payment-option {
  border: 1px solid var(--border);
  background: #fff8f1;
  border-radius: 22px;
  padding: 1rem;
  text-align: left;
  display: grid;
  gap: 0.4rem;
}

.payment-option.active {
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.12), rgba(255, 186, 8, 0.18));
  border-color: rgba(217, 72, 15, 0.35);
}

.payment-option span,
.payment-text-block p {
  color: var(--muted);
}

.payment-preview {
  border-radius: 24px;
  background: #fff8f1;
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.payment-qr-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
}

.qr-visual {
  width: 180px;
  height: 180px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
}

.qr-cell {
  border-radius: 2px;
  background: #f1e3d5;
}

.qr-cell.on {
  background: #181511;
}

.payment-text-block {
  display: grid;
  gap: 0.45rem;
}

.real-qr-image {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
}

.payment-link-button {
  display: inline-flex;
  width: fit-content;
}

.payment-inline-note,
.payment-inline-note a {
  color: var(--muted);
  word-break: break-all;
}

.payment-status-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.ticket-code {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 10vw, 7rem);
  line-height: 0.86;
  text-align: center;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.1), rgba(255, 186, 8, 0.14));
  margin: 1rem 0;
}

.ticket-details {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ticket-items {
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0;
  border-top: 1px dashed rgba(26, 21, 16, 0.16);
  border-bottom: 1px dashed rgba(26, 21, 16, 0.16);
}

@media print {
  body * {
    visibility: hidden;
  }

  .checkout-modal[open],
  .checkout-modal[open] * {
    visibility: visible;
  }

  .checkout-modal[open] {
    position: absolute;
    inset: 0;
    background: white;
  }

  .modal-card {
    box-shadow: none;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  #printTicket,
  #closeModal {
    display: none;
  }
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.public-ticket-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.public-ticket-card {
  width: min(100%, 480px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.public-ticket-card.ticket-width-58 {
  max-width: 320px;
}

.public-ticket-card.ticket-width-80 {
  max-width: 420px;
}

.public-ticket-note {
  margin: 1rem 0 0;
  color: var(--muted);
  text-align: center;
}

.reader-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(255, 186, 8, 0.18), transparent 30%),
    linear-gradient(180deg, #130d08, #1d120c 38%, #f4eadf 38%, #f4eadf 100%);
}

.reader-card {
  width: min(100%, 460px);
  border-radius: 34px;
  padding: 1.4rem;
  background: linear-gradient(180deg, #fffaf3, #f6ede1);
  box-shadow: 0 24px 60px rgba(20, 10, 4, 0.28);
  display: grid;
  gap: 1rem;
}

.reader-head h1 {
  font-size: clamp(3rem, 9vw, 4.4rem);
  line-height: 0.9;
}

.reader-head p:last-child {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.reader-amount {
  border-radius: 24px;
  padding: 1rem 1.1rem;
  background: #1b1612;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.reader-amount span {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
}

.reader-amount strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 9vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.reader-tap-zone {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
  border: 1px solid rgba(217, 72, 15, 0.18);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.2rem;
}

.reader-card-icon {
  width: 120px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f1b18, #463325);
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 28px rgba(33, 21, 10, 0.18);
}

.reader-success-mark {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f9e44, #74c69d);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  box-shadow: 0 18px 34px rgba(47, 158, 68, 0.26);
}

.reader-card-icon::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 18px;
  width: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.reader-wave {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(217, 72, 15, 0.18);
  animation: readerPulse 2.4s infinite;
}

.reader-wave-2 {
  animation-delay: 0.5s;
}

.reader-wave-3 {
  animation-delay: 1s;
}

.reader-tap-zone strong,
.reader-tap-zone span {
  position: relative;
  z-index: 2;
}

.reader-tap-zone strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  line-height: 0.9;
}

.reader-tap-zone span {
  color: var(--muted);
  font-weight: 700;
}

.reader-tap-zone[data-state="listening"] {
  background: linear-gradient(135deg, #fff0d9, #fff9f0);
}

.reader-tap-zone[data-state="detected"] {
  background: linear-gradient(135deg, #ffe3cf, #fff1df);
}

.reader-tap-zone[data-state="success"] {
  background: linear-gradient(135deg, #dff7e4, #eefcf1);
}

.reader-tap-zone[data-state="success"] .reader-card-icon,
.reader-tap-zone[data-state="success"] .reader-wave {
  opacity: 0;
}

.reader-tap-zone[data-state="success"] .reader-success-mark {
  opacity: 1;
  transform: scale(1);
}

.reader-status-card p {
  margin: 0.35rem 0 0;
}

.reader-actions {
  justify-content: stretch;
}

.reader-actions .primary-hero,
.reader-actions .secondary-button {
  flex: 1;
}

.admin-sidebar {
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.sidebar-note {
  width: 100%;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-content,
.settings-grid,
.inline-form,
.product-form,
.admin-grid,
.stats-grid,
.orders-board {
  display: grid;
  gap: 1rem;
}

.admin-content {
  align-content: start;
}

.admin-nav {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 0.8rem;
}

.admin-nav-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.admin-nav-button.active {
  background: linear-gradient(135deg, rgba(255, 186, 8, 0.22), rgba(217, 72, 15, 0.28));
  border-color: rgba(255, 255, 255, 0.24);
}

.admin-section {
  display: none;
  gap: 1rem;
}

.admin-section.active {
  display: grid;
}

.settings-card {
  padding: 1.2rem;
}

.settings-grid,
.product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: stretch;
}

#bannerForm.inline-form {
  grid-template-columns: 1fr 1.2fr auto;
}

.inline-form .secondary-button,
.inline-form .primary-hero {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-grid {
  grid-template-columns: 320px 1fr;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.catalog-column {
  display: grid;
  gap: 1rem;
}

.catalog-subnav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.catalog-subnav-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.catalog-subnav-button.active {
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.12), rgba(255, 186, 8, 0.18));
  border-color: rgba(217, 72, 15, 0.25);
}

.catalog-panel {
  display: none;
}

.catalog-panel.active {
  display: grid;
}

.catalog-toolbar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.catalog-search {
  flex: 1;
  min-width: 280px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem 1rem;
}

.product-form-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
}

.product-form-panel.hidden {
  display: none;
}

.compact-head {
  margin-bottom: 0.4rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.orders-board {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.full-span {
  grid-column: 1 / -1;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.tag-list,
.admin-product-list {
  display: grid;
  gap: 0.8rem;
}

.admin-product-row {
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.admin-product-thumb {
  width: 132px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.14), rgba(255, 186, 8, 0.18));
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-main {
  display: grid;
  gap: 0.4rem;
}

.admin-product-main p {
  margin: 0;
  color: var(--muted);
}

.admin-product-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-product-actions {
  justify-content: flex-end;
  min-width: 180px;
}

.tag-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.image-picker-panel {
  display: none;
}

.image-preview-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.image-preview-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.image-preview-clickable:hover,
.image-preview-clickable:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(217, 72, 15, 0.35);
  box-shadow: 0 18px 30px rgba(217, 72, 15, 0.12);
  outline: none;
}

.image-preview-panel img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.12), rgba(255, 186, 8, 0.12));
  border: 1px solid var(--border);
}

.image-preview-panel span {
  color: var(--muted);
  font-size: 0.95rem;
}

.combo-items-builder {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.combo-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 0.8rem;
}

.combo-item-row select,
.combo-item-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem 1rem;
}

.empty-state {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.kitchen-shell,
.pickup-shell {
  min-height: 100vh;
  padding: 1rem;
}

.kitchen-shell {
  display: grid;
  grid-template-rows: 1fr;
  background: linear-gradient(180deg, #111, #24170f);
}

.kitchen-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-height: 0;
}

.kitchen-column {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
}

.kitchen-column-head {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 24px;
  padding: 1rem 1.1rem;
}

.kitchen-column-head h2 {
  font-size: 2.6rem;
}

.kitchen-board {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding-right: 0.2rem;
}

.kitchen-card {
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 248, 239, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 0.8rem;
}

.kitchen-card.new-order {
  animation: pulseCard 1.2s ease 2;
  border-color: rgba(255, 186, 8, 0.8);
}

.kitchen-card-top,
.kitchen-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.kitchen-card h3 {
  font-size: 3rem;
  line-height: 0.9;
}

.kitchen-items {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 1rem;
}

.kitchen-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.pickup-shell {
  background: linear-gradient(180deg, #1a110c, #0d0d0d);
}

.pickup-topbar {
  border-radius: 28px;
  padding: 1.4rem 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(217, 72, 15, 0.92), rgba(255, 186, 8, 0.84));
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.pickup-topbar h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
}

.pickup-copy {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pickup-featured {
  margin-bottom: 1rem;
}

.pickup-featured-card {
  border-radius: 30px;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(255, 186, 8, 0.96), rgba(217, 72, 15, 0.94));
  color: #fff;
  box-shadow: var(--shadow);
}

.pickup-featured-card h2 {
  font-size: clamp(4rem, 7vw, 6rem);
  line-height: 0.86;
}

.pickup-featured-card strong {
  font-size: 1.25rem;
}

.pickup-card,
.pickup-empty {
  border-radius: 28px;
  padding: 1.2rem;
  background: rgba(255, 248, 239, 0.96);
  box-shadow: var(--shadow);
}

.pickup-card h2 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.88;
}

.pickup-card strong {
  font-size: 1.15rem;
}

.pickup-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.login-panel {
  width: min(520px, calc(100vw - 2rem));
  flex-direction: column;
  align-items: stretch;
}

.login-panel h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.login-form {
  display: grid;
  gap: 0.9rem;
}

.login-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.login-form input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1280px) {
  body.screen-kiosk {
    height: auto;
    overflow-y: auto;
  }

  .kiosk-shell {
    height: auto;
    min-height: 100vh;
  }

  .kiosk-topbar,
  .kiosk-content,
  .admin-shell,
  .admin-grid,
  .kitchen-columns,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .promo-banner-inner {
    grid-template-columns: 1fr;
  }

  .menu-panel,
  .cart-panel,
  .product-grid,
  .cart-items {
    overflow: visible;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pickup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .kiosk-shell,
  .admin-shell {
    padding: 0.75rem;
  }

  .category-ribbon {
    gap: 0.4rem;
  }

  .category-button {
    min-width: 88px;
    border-radius: 14px;
    padding: 0.48rem 0.55rem;
    font-size: 0.72rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .settings-grid,
  .product-form,
  .stats-grid,
  .inline-form,
  .pickup-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .product-card p {
    font-size: 0.82rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-image-wrap {
    border-radius: 16px;
  }

  .combo-item-row {
    grid-template-columns: 1fr;
  }

  .admin-product-row {
    grid-template-columns: 1fr;
  }

  .admin-product-thumb {
    width: 100%;
    height: 160px;
  }

  .payment-options,
  .payment-qr-block {
    grid-template-columns: 1fr;
  }

  .menu-header,
  .cart-header {
    flex-direction: column;
  }
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(16px);
  min-width: 180px;
  max-width: min(90vw, 320px);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(24, 21, 17, 0.94);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 18px 40px rgba(24, 21, 17, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 200;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulseCard {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 186, 8, 0);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(255, 186, 8, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 186, 8, 0);
  }
}

@keyframes readerPulse {
  0% {
    transform: scale(0.65);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
