:root {
  --bg: #eaf5ef;
  --surface: #f8fdf9;
  --surface-2: #ffffff;
  --header-button: #3ea173;
  --text: #19332b;
  --muted: #5f7d73;
  --primary: #3ea173;
  --primary-dark: #2f7d59;
  --line: #cfe4d9;
  --shadow: 0 10px 26px rgba(25, 51, 43, 0.1);
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.kiosk-app {
  height: 100dvh;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 0;
  overflow: hidden;
}

.idle-screen,
.order-screen,
.service-screen,
.cart-screen,
.confirmation-screen {
  display: none;
  height: 100dvh;
}

.idle-screen.active,
.order-screen.active,
.service-screen.active,
.cart-screen.active,
.confirmation-screen.active {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.idle-screen {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #f4faf7 0%, #eaf5ef 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.idle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100dvh;
  width: 100%;
  max-width: 640px;
  text-align: center;
  box-sizing: border-box;
  padding: 6rem 2rem 5rem;
}

.idle-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.idle-brand-logo {
  width: min(200px, 40vw);
  height: auto;
  margin-bottom: 1.5rem;
}

.idle-welcome-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: #006754;
  margin: 0 0 0.8rem;
  letter-spacing: -1px;
}

.idle-welcome-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.slider-area {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  position: fixed;
  bottom: 20px;
}

.slider-wrapper {
  width: 540px;
  max-width: 90vw;
  height: 82px;
  background: linear-gradient(90deg, #006754, #0b8b66);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.35);
  user-select: none;
  touch-action: none;
  box-sizing: border-box;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(180deg, #ffffff, #eeeeee);
  border-radius: 999px;
  z-index: 1;
}

.slider-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 800;
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 2;
}

.slider-handle {
  width: 66px;
  height: 66px;
  background: linear-gradient(180deg, #ffffff, #eeeeee);
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.slider-handle::before {
  content: "";
  width: 18px;
  height: 18px;
  border-top: 5px solid #006754;
  border-right: 5px solid #006754;
  transform: rotate(45deg);
  margin-left: -5px;
}

.slider-wrapper.success .slider-text {
  color: #006754;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.idle-content {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.idle-badge {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid #b7dbc9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.idle-content h1 {
  margin: 1.1rem 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.idle-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.idle-note {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.idle-slider-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.05rem;
}

.idle-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.idle-slider-dot.active {
  background: #fff;
}

.touch-btn {
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-size: 4rem;
  font-weight: 700;
  cursor: pointer;
}

.touch-btn:active {
  transform: translateY(1px);
}

.touch-btn-lg {
  margin-top: 1.5rem;
  min-height: 72px;
  width: min(440px, 90%);
  font-size: 4rem;
  background: var(--primary);
  color: #fff;
}

.touch-btn-ghost {
  border: 1px solid #bfd7ca;
  background: var(--header-button);
  color: var(--text);
  min-height: 54px;
  min-width: 170px;
}

.touch-btn-primary {
  background: var(--primary);
  color: #fff;
  min-height: 56px;
  min-width: 170px;
}

.touch-btn-primary:disabled {
  background: #d7c6bb;
  cursor: not-allowed;
}

.service-screen {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.service-content {
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  background: var(--surface-2);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-options {
  margin: 1.6rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1.1rem;
}

.service-option {
  min-height: 160px;
  border-radius: 18px;
  border: 1px solid #c7dfd1;
  background: #f8fdf9;
  font-size: 1.3rem;
  font-weight: 700;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  cursor: pointer;
}

.service-option:hover {
  border-color: var(--primary);
}

.service-icon {
  font-size: 2rem;
}

.order-screen {
  flex-direction: column;
  padding: 0;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  /* Sepet çubuğu: padding + Devam Et (min 64px) — sheet ile çakışmayı önlemek */
  --cart-bar-h: 96px;
}

.cart-screen {
  flex-direction: column;
  padding: 0;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  align-self: stretch;
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-screen-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

.cart-panel {
  background: var(--surface-2);
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.65rem 0.45rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-self: stretch;
  box-sizing: border-box;
}

.cart-screen-body .cart-panel {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.cart-items {
  margin-top: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  padding-right: 0.15rem;
  width: 100%;
  box-sizing: border-box;
}

.cart-item {
  border: 1px solid #d6e6dd;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cart-screen .empty-state {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.topbar {
  background: var(--surface-2);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.4rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  flex-shrink: 0;
  min-height: 68px;
}

.cart-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.cart-topbar-heading {
  min-width: 0;
  text-align: left;
}

.cart-topbar-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.15;
}

.cart-topbar-heading .selected-service-text {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.topbar h2 {
  margin: 0;
  font-size: 1.35rem;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-center {
  flex: 1;
  text-align: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.content-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.category-panel,
.product-panel {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.55rem 0.5rem 0.65rem;
  min-height: 0;
}

.category-panel {
  border-right: 1px solid var(--line);
}

.category-panel {
  display: flex;
  flex-direction: column;
}

.category-panel h3,
.panel-head h3 {
  margin: 0;
}

.category-list {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 0.45rem;
  padding-right: 0.25rem;
  padding-bottom: 0.25rem;
  scrollbar-gutter: stable;
}

.category-list::-webkit-scrollbar {
  width: 6px;
}

.category-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
  background: #cfe4d9;
  border-radius: 999px;
}

.category-btn {
  border: 1px solid #c9dfd2;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  min-height: 52px;
  min-width: 100%;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.category-btn.active {
  border-color: var(--primary);
  background: #edf8f1;
}

.product-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-head {
  margin-bottom: 0.45rem;
}

.selected-service-text {
  color: var(--muted);
  display: block;
}

.product-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 0.7rem;
  padding-right: 0.25rem;
  padding-bottom: 0.35rem;
  align-content: start;
  align-items: start;
  scrollbar-gutter: stable;
}

.mini-cart-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  /* Alt çubuk tıklanabilir kalsın: wrap asla pointer yakalamasın; sadece backdrop + panel */
  pointer-events: none;
}

.mini-cart-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: var(--cart-bar-h);
  background: rgba(15, 36, 28, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.mini-cart-wrap:not(.collapsed) .mini-cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mini-cart-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--cart-bar-h);
  max-height: min(68vh, 520px);
  background: #fff;
  border: 1px solid #c8ddd1;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(19, 49, 38, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: auto;
}

.mini-cart-wrap:not(.collapsed) .mini-cart-panel {
  transform: translateY(0);
  pointer-events: auto;
}

.mini-cart-wrap.collapsed .mini-cart-panel {
  pointer-events: none;
}

.mini-cart-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem 0.45rem 0.75rem;
  border-bottom: 1px solid #ecf3ef;
  flex-shrink: 0;
}

.mini-cart-sheet-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.mini-cart-sheet-close {
  min-height: 44px;
  min-width: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem 0.75rem 0.2rem;
}

.mini-cart-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-cart-total {
  padding: 0.25rem 0.75rem 0.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid #ecf3ef;
  flex-shrink: 0;
}

.mini-cart-items {
  overflow: auto;
  padding: 0.45rem 0.55rem 0.75rem;
  display: grid;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.mini-cart-item {
  border: 1px solid #e3efe8;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: #fbfdfc;
}

.mini-cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
}

.mini-cart-item-name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.mini-cart-item-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.mini-cart-icon-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--primary-dark);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.mini-cart-icon-btn:active {
  transform: translateY(1px);
}

.mini-cart-icon-btn--edit:hover {
  background: #eef8f2;
  border-color: #b7dbc9;
}

.mini-cart-icon-btn--danger {
  border-color: #e0bfb8;
  background: #fff7f6;
  color: #7a3d36;
}

.mini-cart-icon-btn--danger:hover {
  background: #ffece9;
}

.mini-cart-item-opts {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

.mini-cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.mini-cart-item-unit {
  color: var(--muted);
}

.mini-cart-item-line-sum {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.mini-cart-item-actions {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.mini-cart-item-actions .qty-btn {
  width: 36px;
  height: 36px;
}

.mini-cart-item-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-cart-item-total {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.cart-summary--trigger {
  cursor: pointer;
  user-select: none;
  border-radius: 12px;
  padding: 0.35rem 0.45rem;
  margin: -0.35rem -0.45rem;
  transition: background 0.15s ease;
}

.cart-summary--trigger:hover:not(.is-disabled) {
  background: rgba(62, 161, 115, 0.12);
}

.cart-summary--trigger.is-disabled {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.product-grid::-webkit-scrollbar {
  width: 8px;
}

.product-grid::-webkit-scrollbar-track {
  background: transparent;
}

.product-grid::-webkit-scrollbar-thumb {
  background: #cfe4d9;
  border-radius: 999px;
}

.product-card {
  --product-img-h: clamp(100px, 15vh, 128px);
  --product-body-min: 5.25rem;
  border: 1px solid #d9e8df;
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(25, 51, 43, 0.06);
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  min-height: calc(var(--product-img-h) + var(--product-body-min));
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #b9d6c8;
  box-shadow: 0 10px 22px rgba(25, 51, 43, 0.1);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: var(--product-img-h);
  max-height: var(--product-img-h);
  flex: 0 0 var(--product-img-h);
  background: linear-gradient(180deg, #f4faf6 0%, #e8f4ed 100%);
  overflow: hidden;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  z-index: 1;
}

.product-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 0;
}

.product-image-wrap.image-failed .product-image {
  display: none;
}

.product-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  border: 1px solid #cae2d6;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-badge-menu {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

.product-body {
  padding: 0.5rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: var(--product-body-min);
  box-sizing: border-box;
  background: #fff;
}

.product-name {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

/* Liste ekranında açıklama modalda; kart altı fiyat + buton için yer kalsın */
.order-screen .product-desc {
  display: none;
}

.product-desc {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.product-meta {
  margin-top: auto;
  padding-top: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 40px;
}

.product-price {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
  flex-shrink: 0;
}

.add-btn:hover {
  background: var(--primary-dark);
}

.cart-bar {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  min-height: 72px;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 80;
}

.cart-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cart-bar-total {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.cart-bar-total-value {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.cart-bar-total-meta {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.checkout-btn {
  position: relative;
  min-height: 64px;
  min-width: min(220px, 44vw);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem 0.65rem 1.25rem;
}

.checkout-btn-label {
  font-weight: 800;
  font-size: 1.05rem;
}

.checkout-btn-icon {
  font-size: 1.35rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(19, 49, 38, 0.2);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge:not([hidden]) {
  transform: scale(1);
}

.checkout-btn.cart-pulse {
  animation: cart-btn-pulse 0.45s ease;
}

@keyframes cart-btn-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.cart-fly-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: visible;
}

.cart-fly-item {
  position: fixed;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(19, 49, 38, 0.28);
  will-change: transform, opacity;
  z-index: 201;
}

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

.cart-fly-item--placeholder {
  background: linear-gradient(135deg, #edf8f1 0%, #cfe4d9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.dot-sep {
  opacity: 0.45;
}

.cart-item h4 {
  margin: 0;
}

.cart-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.cart-item-options {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-item-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #c8ddcf;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
}

.detail-btn {
  border: 1px solid #c8ddcf;
  background: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.cart-totals {
  margin-top: 0.45rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
  display: grid;
  gap: 0.3rem;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.order-note-wrap {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.25rem;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.order-note-label {
  font-size: 0.85rem;
  font-weight: 700;
}

.order-note-input {
  width: 100%;
  min-height: 56px;
  max-height: 72px;
  resize: none;
  border: 1px solid #c8ddd1;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.order-note-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 180, 116, 0.15);
}

.cart-totals div {
  display: flex;
  justify-content: space-between;
}

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

#cart-continue-btn {
  flex: 1;
  min-height: 124px;
  max-width: none;
  margin-left: auto;
}

#cart-clear-btn {
  min-height: 124px;
  min-width: 220px;
  font-size: 2.4rem;
  flex-shrink: 0;
}

#cart-clear-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-state {
  border: 1px dashed #c8ddd1;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem;
  color: var(--muted);
}

/* Ürün detay — ortalanmış kart (referans kiosk görseli) */
body.modal-detail-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
}

.product-modal.active {
  pointer-events: auto;
  visibility: visible;
}

.product-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 28, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-modal.active .modal-backdrop {
  opacity: 1;
}

.product-modal .modal-card {
  position: relative;
  z-index: 2;
  width: min(480px, 94vw);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(19, 49, 38, 0.28);
  border: 1px solid #e2efe6;
  overflow: hidden;
  transform: scale(0.9) translateY(16px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s ease;
}

.product-modal.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
  flex-shrink: 0;
}

.modal-card-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.modal-close-x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #d2e5db;
  border-radius: 50%;
  background: #f8fcf9;
  color: var(--text);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}

.modal-close-x:active {
  transform: scale(0.92);
  background: #edf8f1;
}

.modal-card-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.modal-card-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 240px;
  background: #eef6f0;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-card-image-wrap.is-hidden {
  display: none;
}

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

.modal-card-body {
  padding: 0.85rem 1rem 1rem;
}

.modal-card-desc {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.modal-card-desc:empty {
  display: none;
}

.modal-card-allergens {
  margin: 0 0 0.65rem;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.65rem;
  background: #f4faf6;
  border: 1px solid #cfe4d9;
  border-radius: 12px;
}

.modal-qty-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: auto;
}

.product-options-panel {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.modal-options-sub {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.po-group {
  border: 1px solid #d2e5db;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.po-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f4faf6;
  border-bottom: 1px solid #e2efe6;
}

.po-group-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text);
}

.po-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #c9dfd2;
  color: var(--primary-dark);
}

.po-badge--required {
  background: #fff9e6;
  border-color: #e8d9a8;
  color: #8b6914;
}

.po-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
}

.po-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #c7ddd0;
  border-radius: 12px;
  background: #f8fcf9;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
  font-family: inherit;
}

.po-option-row.active,
.po-option-row.selected {
  border-color: var(--primary);
  background: #edf8f1;
  color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary);
}

.po-option-row .po-option-price {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-options-root {
  display: grid;
  gap: 0.5rem;
}

.po-section-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.po-section-title--mandatory {
  color: #8b6914;
}

.po-section-title--extra {
  color: var(--primary-dark);
}

.po-section-title--portion {
  color: #1565c0;
}

.po-group--mandatory .po-group-head {
  background: #fff9e6;
}

.po-group--extra .po-group-head {
  background: rgba(46, 125, 50, 0.06);
}

.po-group--portion .po-group-head {
  background: rgba(21, 101, 192, 0.08);
}

.po-badge--extra {
  background: #edf8f1;
  border-color: #c7ddd0;
  color: var(--primary-dark);
}

.po-option-item--extra {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.po-option-item--extra .po-option-row {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
}

.po-option-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  align-self: center;
  padding: 0.25rem;
  border-radius: 12px;
  background: #f4faf6;
  border: 1px solid #d2e5db;
}

.po-option-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #c7ddd0;
  border-radius: 10px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.po-option-qty-val {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.modal-card-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #e2efe6;
  background: #fff;
}

.modal-footer-price {
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.modal-qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #c7ddd0;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.modal-qty-btn:active {
  background: #e8f3ec;
}

.modal-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.modal-card-footer .btn-add-to-cart {
  flex: 1;
  max-width: 220px;
  min-height: 52px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.7rem 1.25rem;
  transition:
    background 0.12s ease,
    transform 0.12s ease;
}

.btn-add-to-cart:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}

.btn-add-to-cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-modal.is-adding .modal-card {
  pointer-events: none;
}

.btn-add-to-cart.shake-hint {
  animation: btn-shake 0.4s ease;
}

@keyframes btn-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 960px) {
  .kiosk-app {
    width: 100%;
    border: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .category-list {
    flex-direction: row;
    overflow: auto;
  }

  .category-btn {
    min-width: 170px;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .service-options {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) and (min-width: 720px) {
  .order-screen {
    --cart-bar-h: 112px;
  }

  .topbar {
    min-height: 96px;
    padding: 0.55rem 1rem;
  }

  .topbar h2 {
    font-size: 1.65rem;
  }

  .selected-service-text {
    font-size: 1.05rem;
  }

  .brand-logo {
    width: 150px;
    height: 56px;
  }

  .brand-mark.compact .brand-logo {
    width: 200px;
    height: 70px;
  }

  .content-layout {
    grid-template-columns: 280px 1fr;
    gap: 0;
  }

  .category-panel,
  .product-panel {
    padding: 0.65rem 0.75rem;
  }

  .category-btn {
    min-height: 64px;
    font-size: 1.05rem;
    padding: 0.7rem 1rem;
    border-radius: 16px;
  }

  .product-card {
    --product-img-h: clamp(108px, 16vh, 138px);
    --product-body-min: 5.5rem;
  }

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

  .product-name {
    font-size: 0.94rem;
  }

  .product-desc {
    font-size: 0.76rem;
  }

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

  .add-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border-radius: 11px;
  }

  .product-badge {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }

  .product-image-fallback {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }

  .cart-bar {
    min-height: 86px;
    padding: 0.75rem 1.4rem;
  }

  .cart-summary {
    font-size: 1.3rem;
  }

  .touch-btn-primary,
  .touch-btn-ghost {
    min-height: 70px;
    font-size: 4rem;
    padding: 0.9rem 1.3rem;
  }

  .touch-btn-lg {
    min-height: 96px;
    font-size: 4rem;
  }

  .service-content {
    width: 100%;
    max-width: none;
    padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1rem, 4vw, 2rem);
  }

  .service-options {
    gap: 1.6rem;
  }

  .service-option {
    min-height: 220px;
    font-size: 1.6rem;
  }

  .service-icon {
    font-size: 2.6rem;
  }
}

@media (orientation: portrait) and (min-width: 1024px) {
  .product-card {
    --product-img-h: clamp(112px, 15vh, 145px);
    --product-body-min: 5.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: start;
  }

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark.centered {
  justify-content: center;
}

.brand-mark.top-left {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.brand-mark.compact .brand-dot {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, #69c295 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}

.brand-logo {
  width: 120px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-mark.compact .brand-logo {
  width: 154px;
  height: 54px;
}

.confirmation-screen {
  align-items: stretch;
  justify-content: stretch;
  background: var(--surface);
}

.confirmation-content {
  width: 100%;
  max-width: none;
  min-height: 100%;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.confirmation-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(62, 161, 115, 0.32);
}

.confirmation-content h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--text);
}

.confirmation-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.confirmation-number-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.6rem;
  background: linear-gradient(135deg, #edf8f1 0%, #d8eee2 100%);
  border-radius: 18px;
  border: 1px dashed #9bc8b1;
}

.confirmation-number-label {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.confirmation-number {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
}

.confirmation-info {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.confirmation-info > div {
  background: #f8fdf9;
  border: 1px solid #d6e6dd;
  border-radius: 14px;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.confirmation-info span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confirmation-info strong {
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
}

.confirmation-qr-wrap {
  width: 100%;
  max-width: 400px;
  padding: 1rem 1.1rem 1.15rem;
  background: #f8fdf9;
  border: 1px solid #d6e6dd;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.confirmation-qr-wrap[hidden] {
  display: none !important;
}

.confirmation-qr-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.confirmation-qr-canvas {
  display: block;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 51, 43, 0.08);
}

.confirmation-track-link-wrap {
  margin: 0;
}

.confirmation-track-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.confirmation-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

#confirmation-countdown {
  color: var(--primary-dark);
  font-weight: 800;
}

.status-board {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  color: var(--text);
}

.status-board-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.status-board-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  border-top: 0;
}

.status-column {
  background: var(--surface-2);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.status-column:last-child {
  border-right: 0;
}

.status-column-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.status-column-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.45rem 0.5rem 0.55rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: minmax(140px, max-content);
  gap: 0.55rem;
  align-content: start;
}

.status-board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.65rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.status-board-title h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  color: var(--text);
}

.status-board-title small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.status-board-clock {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-dark);
  font-feature-settings: "tnum";
  min-width: 130px;
  text-align: right;
}

.status-column-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  flex: 1;
}

.status-count {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  min-width: 38px;
  padding: 0.2rem 0.65rem;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot-preparing {
  background: #f4a724;
  box-shadow: 0 0 0 6px rgba(244, 167, 36, 0.18);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.status-dot-ready {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(62, 161, 115, 0.18);
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.78;
  }
}

.status-card {
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fbfffc;
  text-align: center;
}

.status-card-preparing {
  border-color: #ffd896;
  background: linear-gradient(180deg, #fff8eb 0%, #ffeac6 100%);
}

.status-card-ready {
  border-color: #9bc8b1;
  background: linear-gradient(180deg, #edf8f1 0%, #c8e8d6 100%);
}

.status-card-number {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  line-height: 1;
}

.status-card-preparing .status-card-number {
  color: #a16400;
}

.status-card-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-card-service {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}

.status-card-elapsed {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.status-card-new {
  animation: status-flash 1s ease-out 0s 3 alternate;
}

@keyframes status-flash {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(62, 161, 115, 0.32);
  }
}

.status-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 0;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

.status-board-brand {
  font-weight: 700;
  color: var(--primary-dark);
}

@media (orientation: portrait) and (min-width: 720px) {
  .status-board-columns {
    gap: 0;
    padding: 0;
  }

  .status-column-body {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: minmax(170px, max-content);
  }

  .status-card-number {
    font-size: clamp(2.6rem, 5vw, 4rem);
  }

  .status-board-clock {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    min-width: 170px;
  }

  .status-board-title h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
}

/* Sipariş takip sayfası (QR ile açılan) */
.track-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: auto !important;
}

.track-page {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 1.75rem) clamp(1rem, 4vw, 1.5rem) 2.5rem;
  min-height: 100dvh;
  box-sizing: border-box;
}

.track-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.track-logo {
  width: min(200px, 55vw);
  height: auto;
  object-fit: contain;
}

.track-title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
}

.track-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.track-card-error {
  border-color: #e0b8b0;
  background: #fff8f6;
  color: #6b2e26;
}

.track-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.track-order-number {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  color: var(--primary-dark);
}

.track-status-text {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.track-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.track-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0e5d9;
  flex-shrink: 0;
}

.track-step.is-done .track-step-dot {
  background: var(--primary);
  box-shadow: inset 0 0 0 2px #fff;
}

.track-step.is-active {
  color: var(--primary-dark);
}

.track-step.is-active .track-step-dot {
  background: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(62, 161, 115, 0.35);
}

.track-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
}

.track-summary > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.track-summary strong {
  font-size: 0.9rem;
  word-break: break-word;
}

.track-refresh-note {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.track-lines-card .track-label {
  margin-bottom: 0.6rem;
}

.track-line-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.track-line-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.track-line-item {
  padding: 0.65rem 0.75rem;
  background: #f8fdf9;
  border: 1px solid #e0ebe4;
  border-radius: 12px;
}

.track-line-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.track-line-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.track-line-qty {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.track-line-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.track-line-meta strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.track-line-opts {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.track-note-card .track-note-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}

.track-note-card[hidden] {
  display: none !important;
}

/* Order Note Trigger & Modal Styles */
.order-note-trigger-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px dashed #c8ddd1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-note-trigger-box:active {
  transform: scale(0.98);
  border-color: var(--primary);
  background: #fdfdfd;
}

.order-note-preview-text {
  font-size: 2.95rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
}

.order-note-trigger-box.has-note {
  border-style: solid;
  border-color: var(--primary);
  background: rgba(66, 180, 116, 0.04);
}

.order-note-trigger-box.has-note .order-note-preview-text {
  color: var(--text);
}

.note-edit-icon {
  font-size: 1.1rem;
  color: var(--primary);
}

.note-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
}

.note-modal.active {
  pointer-events: auto;
  visibility: visible;
}

.note-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 28, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note-modal.active .modal-backdrop {
  opacity: 1;
}

.note-modal .modal-card {
  position: relative;
  z-index: 2;
  width: min(460px, 94vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(19, 49, 38, 0.28);
  border: 1px solid #e2efe6;
  overflow: hidden;
  transform: scale(0.9) translateY(16px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s ease;
}

.note-modal.active .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.note-modal.keyboard-active .modal-card {
  transform: scale(1) translateY(-140px);
}

.order-note-input-modal {
  width: 100%;
  height: 140px;
  resize: none;
  border: 1px solid #c8ddd1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.order-note-input-modal:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 180, 116, 0.15);
}

.btn-save-note {
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: 700;
}
