html.has-sheet {
  overflow: hidden;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 168px;
}

/* Üst bar */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(16px, calc((100% - 1120px) / 2 + 16px)) 0;
  background: var(--ground);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  border-radius: var(--r-sm);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--paper);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 104px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease);
}

.plate::after {
  content: '';
  position: absolute;
  inset: -3px 0;
}

.plate span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.plate.is-empty {
  background: var(--accent);
  color: var(--on-accent);
}

.account-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ground-2);
  color: var(--text);
}

.account-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
}

.account-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.account-badge .i {
  width: 13px;
  height: 13px;
}

/* Giriş */

.intro {
  padding: 10px 0 6px;
}

.intro-title {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.intro-text {
  margin-top: 6px;
  color: var(--text-2);
}

.section-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Popüler raf: nesneler kartsız, doğrudan masada */

.popular {
  padding-top: 18px;
}

.rail {
  display: flex;
  gap: 12px;
  margin: 6px -16px 0;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.pop {
  position: relative;
  flex: none;
  width: 146px;
  scroll-snap-align: start;
}

.pop-main {
  display: grid;
  width: 100%;
  border-radius: var(--r-md);
  text-align: left;
}

.pop-art {
  display: block;
  width: 146px;
  height: 146px;
  transition: transform var(--dur) var(--ease);
}

.pop-main:active .pop-art {
  transform: scale(0.97);
}

.pop-name {
  margin-top: 4px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
}

.pop-price {
  font-weight: 700;
}

.pop .add-btn {
  position: absolute;
  top: 104px;
  right: 2px;
}

/* Kahve kartı şeridi */

.loyalty {
  margin-top: 16px;
}

.loyalty-card {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  color: var(--ink);
  text-align: left;
  transition: transform var(--dur-fast) var(--ease);
}

.loyalty-card:active {
  transform: scale(0.99);
}

.loyalty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loyalty-head strong {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
}

.loyalty-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  color: var(--paper-accent-text);
  font-size: 14.5px;
  font-weight: 700;
}

.loyalty-cta .i {
  width: 17px;
  height: 17px;
}

.loyalty-note {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.35;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 8px;
}

.stamp {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--paper-line-strong);
}

.stamp:not(.is-on) {
  border: 1.5px dashed var(--paper-line-strong);
}

.stamp .coffee-ring {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  overflow: visible;
}

.stamp .i {
  width: 44%;
  height: 44%;
  color: #b7892d;
}

.stamp-cup {
  position: absolute;
  inset: -14%;
  z-index: 2;
  pointer-events: none;
}

/* Kategori sekmeleri */

.menu-nav {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 12px -16px 0;
  padding: 6px 8px;
  background: var(--ground);
  border-bottom: 1px solid var(--ground-line);
}

.nav-search {
  flex: none;
  color: var(--text);
}

.cats {
  position: relative;
  display: flex;
  flex: 1;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.cat-chip:hover {
  color: var(--text);
}

.cat-chip.is-active {
  background: var(--paper);
  color: var(--ink);
}

.search {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 44px;
  padding: 4px 4px 4px 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  caret-color: var(--paper-ring);
  font-size: 16px;
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search .icon-btn {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
}

.search .icon-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.search .icon-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.menu-nav.is-searching .nav-search,
.menu-nav.is-searching .cats {
  display: none;
}

/* Menü */

.menu:focus {
  outline: none;
}

.menu-section {
  padding-top: 26px;
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 58px);
}

.items {
  display: grid;
  margin-top: 4px;
  column-gap: 32px;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ground-line);
}

.item-main {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-radius: var(--r-sm);
  text-align: left;
}

.item-art {
  display: block;
  width: 84px;
  height: 84px;
  transition: transform var(--dur) var(--ease);
}

.item-main:active .item-art {
  transform: scale(0.96);
}

.item-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.item-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin-top: 3px;
}

.item-price {
  font-weight: 700;
}

.item-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.item-more {
  color: var(--text-2);
  font-size: 14px;
}

.item.is-soldout .drawn {
  filter: grayscale(0.85);
  opacity: 0.55;
}

.item.is-soldout .item-name {
  color: var(--text-3);
}

.item.is-soldout .item-price {
  color: var(--text-3);
  font-weight: 600;
}

.add-btn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-paper);
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.add-btn .i {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.add-btn:hover:not(:disabled) {
  background: #ffffff;
}

.add-btn.has-count {
  background: var(--accent);
  color: var(--on-accent);
}

.add-btn.has-count:hover:not(:disabled) {
  background: #f5cd74;
}

.add-btn:disabled {
  background: var(--ground-2);
  box-shadow: none;
  color: var(--text-3);
}

.add-plus,
.add-count {
  display: grid;
  place-items: center;
  grid-area: 1 / 1;
}

.add-count {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.state-msg {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px;
  color: var(--text-2);
  text-align: center;
}

.state-msg .i {
  width: 32px;
  height: 32px;
  color: var(--text-3);
}

.skeleton-list {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}

.skeleton-list span {
  height: 84px;
  border-radius: var(--r-md);
  background: var(--ground-2);
}

/* Alt şerit */

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.dock > * {
  pointer-events: auto;
}

.cartbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 0 18px 0 10px;
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--shadow-float);
  color: var(--ink);
}

.dock-stack {
  display: flex;
  flex: none;
  align-items: center;
}

.dock-thumb {
  display: block;
  width: 50px;
  height: 50px;
  margin-left: -28px;
}

.dock-thumb:first-child {
  margin-left: 0;
}

.dock-thumb.is-arriving {
  visibility: hidden;
}

.cartbar-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.cartbar-label {
  font-size: 16.5px;
  font-weight: 700;
}

.cartbar-count {
  color: var(--ink-2);
  font-size: 14px;
}

.cartbar-total {
  font-size: 19px;
  font-weight: 700;
}

.order-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 12px 0 16px;
  border-radius: var(--r-lg);
  background: var(--ground-3);
  box-shadow: var(--shadow-float);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.pill-text {
  flex: 1;
  text-align: left;
}

.pill-no {
  color: var(--text-2);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pill-dot.is-ready,
.pill-dot.is-served {
  background: var(--success);
}

.fly-token {
  position: fixed;
  z-index: 40;
  display: block;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  pointer-events: none;
}

/* Alt sayfalar */

dialog.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

dialog.sheet::backdrop {
  background: transparent;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
}

.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: min(92dvh, 900px);
  margin: 0 auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--paper);
  box-shadow: 0 -8px 28px rgb(0 0 0 / 0.3);
  scrollbar-color: var(--paper-line-strong) transparent;
}

.sheet-hero {
  position: absolute;
  top: -84px;
  left: 50%;
  width: 176px;
  height: 176px;
  margin-left: -88px;
  pointer-events: none;
}

.sheet-hero:empty {
  display: none;
}

.sheet-panel.has-hero {
  max-height: calc(100dvh - 92px);
  padding-top: 88px;
}

.sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px 2px 20px;
}

.sheet-title:focus {
  outline: none;
}

.sheet-title {
  padding: 6px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.sheet-body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 18px;
  min-height: 0;
  padding: 4px 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-foot {
  flex: none;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.sheet-foot:empty {
  display: none;
}

.sheet-lead {
  color: var(--text-2);
}

/* Ürün ayrıntısı */

.pd-desc {
  color: var(--text-2);
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pd-price {
  margin-right: 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.pd-allergen {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14.5px;
}

.pd-allergen .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.pd-allergen strong {
  color: var(--text);
}

.opt-group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.opt-legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

.opt-legend span {
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 500;
}

.opt-list {
  display: grid;
  gap: 8px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.opt input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.opt input[type='checkbox'] {
  border-radius: 6px;
}

.opt input:checked {
  border: 6px solid var(--primary);
  background: var(--paper);
}

.opt input[type='checkbox']:checked {
  border: 0;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--selected-soft);
}

.opt-name {
  flex: 1;
  font-weight: 600;
}

.opt-price {
  color: var(--text-2);
  font-size: 14.5px;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-label {
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 14px;
  background: var(--surface-2);
}

.step-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--text);
  transition: background-color var(--dur) var(--ease);
}

.step-btn:hover:not(:disabled) {
  background: var(--surface-3);
}

.step-btn:disabled {
  opacity: 0.35;
}

.step-val {
  min-width: 28px;
  font-weight: 700;
  text-align: center;
}

.stepper-sm .step-btn {
  width: 38px;
  height: 38px;
}

.stepper-sm .step-btn .i {
  width: 17px;
  height: 17px;
}

/* Tepsi: sepetteki her şey bakır tepsinin üstünde */

.tray {
  position: relative;
  width: min(68vw, 250px);
  aspect-ratio: 1;
  margin: 2px auto 4px;
  border-radius: 50%;
  background: #a85f2a;
  box-shadow: inset 0 0 0 5px #c9874b, inset 0 0 0 7px #8f4e20, 3px 5px 10px rgb(0 0 0 / 0.3);
}

.tray-sm {
  width: min(46vw, 168px);
}

.tray-item {
  position: absolute;
  display: block;
  aspect-ratio: 1;
}

.tray-more {
  position: absolute;
  right: 4%;
  bottom: 4%;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.cart-lines {
  display: grid;
}

.cart-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-art {
  display: block;
  width: 48px;
  height: 48px;
}

.cart-line-main {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.cart-line-name {
  font-weight: 700;
  line-height: 1.25;
}

.cart-line-opts {
  color: var(--text-3);
  font-size: 14px;
}

.cart-line-warn {
  color: var(--danger-text);
  font-size: 14px;
  font-weight: 600;
}

.cart-line.is-invalid .cart-line-name {
  color: var(--text-3);
}

.cart-line.is-invalid .drawn {
  filter: grayscale(0.85);
  opacity: 0.55;
}

.cart-line-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
}

.cart-line-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
}

.cart-line-price s {
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 400;
}

#cart-rest {
  display: grid;
  gap: 22px;
}

#cart-rest[hidden] {
  display: none;
}

.block {
  display: grid;
  gap: 10px;
}

.block-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.block-title .muted {
  font-size: 14px;
}

.block-hint {
  color: var(--text-2);
  font-size: 15px;
}

.block-hint b {
  color: var(--text);
}

#cart-account,
.track-login {
  display: grid;
  gap: 12px;
}

.table-current {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.table-current-name {
  font-size: 18px;
  font-weight: 700;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.account-row-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--text-2);
  font-size: 14.5px;
}

.account-row-text strong {
  color: var(--text);
  font-size: 15.5px;
  overflow-wrap: anywhere;
}

.account-row-text b {
  color: var(--text);
}

.reward-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}

.reward-card.is-idle {
  background: var(--surface-2);
  color: var(--text);
  cursor: default;
}

.reward-text {
  display: grid;
  flex: 1;
  gap: 2px;
  font-size: 14.5px;
  line-height: 1.35;
}

.reward-text strong {
  font-size: 16px;
}

.reward-card input.switch {
  background: rgb(33 21 14 / 0.3);
}

.reward-card input.switch:checked {
  background: var(--ink);
}

.summary {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
}

.sum-row.is-discount {
  color: var(--accent-text);
  font-weight: 600;
}

.sum-row.is-total {
  padding-top: 4px;
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
}

.pay-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 14.5px;
}

.pay-note .i {
  width: 18px;
  height: 18px;
}

/* Giriş formu */

.login-sent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 14.5px;
}

.login-sent b {
  color: var(--text);
  overflow-wrap: anywhere;
}

.dev-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
}

.dev-code .i {
  width: 18px;
  height: 18px;
}

.input-code {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
}

/* Kahve kartı */

.stamp-card {
  position: relative;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--paper-2);
}

.stamp-card.has-reward {
  background: var(--accent);
}

.stamp-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stamp-card-brand {
  font-size: 18px;
  font-weight: 700;
}

.stamp-card-count {
  color: var(--text-2);
}

.stamp-card-count b {
  color: var(--text);
  font-size: 21px;
}

.stamp-card-note {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.stamp-card-note b {
  color: var(--text);
}

.stamp-card.has-reward .stamp-card-note,
.stamp-card.has-reward .stamp-card-count {
  color: var(--on-accent);
}

.stamp-card.has-reward .stamp:not(.is-on) {
  border-color: rgb(33 21 14 / 0.45);
}

.stamp-card.has-reward .stamp .i {
  color: var(--on-accent);
}

.howto-list {
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.howto-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-size: 15px;
  counter-increment: step;
}

.howto-list li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.history {
  display: grid;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--text-3);
  font-size: 14px;
}

.history-main strong {
  color: var(--text);
  font-size: 15px;
}

.history-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  font-weight: 700;
}

/* Sipariş takibi */

#track-orders {
  display: grid;
  gap: 14px;
}

.track {
  display: grid;
  gap: 14px;
}

.track + .track {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.track-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.track-sub {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 14.5px;
}

.track.is-cancelled .track-title {
  color: var(--danger-text);
}

.track-text {
  color: var(--text-2);
  font-size: 15px;
}

.track-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.track-steps::before,
.track-steps::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: var(--line-strong);
}

.track-steps::after {
  background: var(--primary);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.track-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
}

.track-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line-strong);
}

.track-steps li.is-done {
  color: var(--text-2);
}

.track-steps li.is-done .track-dot,
.track-steps li.is-current .track-dot {
  background: var(--primary);
  border-color: var(--primary);
}

.track-steps li.is-current {
  color: var(--text);
  font-weight: 700;
}

.track-steps li.is-current .track-dot {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.track-pay {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 15px;
}

.track-pay.is-paid {
  background: var(--selected-soft);
  color: var(--text);
}

.track-pay.is-paid .i {
  color: var(--success);
}

.track-pay b {
  color: var(--text);
}

.track-items summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.track-items summary::-webkit-details-marker {
  display: none;
}

.track-items summary .i {
  transition: transform var(--dur) var(--ease);
}

.track-items[open] summary .i {
  transform: rotate(180deg);
}

.track-items ul {
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
}

.track-items li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
}

.track-items small {
  display: block;
  color: var(--text-3);
  font-size: 13.5px;
}

.track-note {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
}

.track-note .i {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

#track-loyalty:not(:empty) {
  padding-top: 4px;
}

.call-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-row .btn {
  min-height: 50px;
  padding: 0 10px;
}

/* Aydınlatma metni bağlantıları ve hesap silme */
.legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.delete-link {
  color: var(--danger-text);
}

#delete-account .call-row {
  margin-top: 12px;
}

.legal-foot {
  margin: 40px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

.legal-foot a {
  display: inline-block;
  padding: 10px 4px;
  color: inherit;
  text-underline-offset: 2px;
}

/* Sunum modu: QR okutmadan masa seçimi */
.table-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.table-pick .btn {
  min-height: 48px;
  padding: 0 8px;
}

/* Telefon dışı */

@media (hover: hover) {
  .pop-main:hover .pop-art,
  .item-main:hover .item-art {
    transform: translateY(-2px) rotate(-2deg);
  }
}

@media (min-width: 860px) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-nav {
    margin: 12px 0 0;
    padding: 6px 0;
  }

  .rail {
    margin: 6px 0 0;
    padding: 2px 0 6px;
  }

  .intro {
    padding-top: 18px;
  }
}

@media (max-width: 374px) {
  .brand-name {
    font-size: 17px;
  }

  .top-actions {
    gap: 4px;
  }

  .plate {
    max-width: 84px;
    padding: 0 10px;
    font-size: 14px;
  }

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

@media (max-width: 339px) {
  .brand-name {
    display: none;
  }
}
