/* ============================================================
   QR Menü — Tek stil dosyası
   Mobil öncelikli, modern, gündüz/gece temalı
   ============================================================ */

/* ---------- Tema değişkenleri ---------- */
:root {
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --maxw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* sipariş durum renkleri */
  --status-received: #3b82f6;
  --status-preparing: #f59e0b;
  --status-ready: #22c55e;
  --status-completed: #64748b;
  --status-cancelled: #ef4444;
}

/* Marka: logodan alınan kırmızı / siyah / beyaz */
:root {
  --topbar-bg: #0e0e10;     /* üst bar her temada siyah */
  --topbar-text: #ffffff;
}

/* Gündüz (light) — beyaz zemin, siyah yazı, kırmızı vurgu */
:root,
[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-elev: #ffffff;
  --bg-soft: #ececee;
  --text: #141416;
  --text-soft: #67676c;
  --border: #e4e4e7;
  --brand: #c7161b;        /* logo kırmızısı */
  --brand-dark: #9e1015;
  --brand-soft: #fbeaea;
  --on-brand: #ffffff;
  --overlay: rgba(0, 0, 0, 0.5);
}

/* Gece (dark) — siyah zemin, beyaz yazı, kırmızı vurgu */
[data-theme="dark"] {
  --bg: #0e0e10;
  --bg-elev: #18181b;
  --bg-soft: #232327;
  --text: #f5f5f6;
  --text-soft: #a1a1aa;
  --border: #2a2a2e;
  --brand: #e11d22;        /* koyu zeminde daha canlı kırmızı */
  --brand-dark: #c7161b;
  --brand-soft: #2a1416;
  --on-brand: #ffffff;
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Reset / temel ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--brand); }
input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* iOS zoom önlemek için */
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.hidden { display: none !important; }
.muted { color: var(--text-soft); }
.center { text-align: center; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--topbar-bg);          /* her temada siyah marka barı */
  border-bottom: 2px solid var(--brand); /* ince kırmızı vurgu çizgisi */
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--topbar-text);
  min-width: 0;
}
.brand-logo {            /* logo görseli (beyaz sürüm, siyah bar üzerinde) */
  height: 34px;
  width: auto;
  display: block;
}
.brand-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 10px;
  white-space: nowrap;
}
.brand__logo {           /* yazı amblemi (paneller için yedek) */
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px;
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  display: grid; place-items: center;
  position: relative;
  text-decoration: none;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:hover { background: rgba(255,255,255,0.16); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Hizmet saatleri şeridi ---------- */
.hours-strip {
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.01em;
}

/* ---------- Kampanyalar ---------- */
.section { padding: 18px 0; }
.section__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}

.campaigns {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.campaigns::-webkit-scrollbar { display: none; }
.campaign {
  position: relative;
  flex: 0 0 86%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  min-height: 150px;
}
.campaign img { width: 100%; height: 150px; object-fit: cover; }
.campaign__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
}
.campaign__title { font-weight: 800; font-size: 1rem; }
.campaign__desc { font-size: 0.82rem; opacity: 0.9; }

/* ---------- Kategori kartları ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-card {
  position: relative;
  border: none;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  padding: 0;
  transition: transform 0.12s ease;
}
.cat-card:active { transform: scale(0.97); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05));
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
}
.cat-card__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 2rem;
  background: var(--bg-soft);
  color: var(--text-soft);
}

/* ---------- Ürün listesi ---------- */
.back-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.back-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

.product {
  display: flex;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.product__img {
  flex: 0 0 84px;
  width: 84px; height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-soft);
}
.product__img--ph {
  display: grid; place-items: center;
  font-size: 1.6rem; color: var(--text-soft);
}
.product__body { flex: 1; min-width: 0; }
.product__name { font-weight: 700; }
.product__desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 2px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.product__price { font-weight: 800; color: var(--brand); }
.product.is-unavailable { opacity: 0.55; }
.tag-out {
  font-size: 0.72rem; font-weight: 700;
  color: var(--status-cancelled);
  border: 1px solid var(--status-cancelled);
  padding: 2px 8px; border-radius: 999px;
}
.product { cursor: pointer; }
.product__more { font-size: 0.78rem; opacity: 0.6; }

/* Ürün detay popup içeriği */
.pd-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.pd-img--ph {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  font-size: 3rem; color: var(--text-soft);
}
.pd-name { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; }
.pd-price { color: var(--brand); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.pd-desc { color: var(--text-soft); margin: 0 0 14px; line-height: 1.55; }
.pd-ing {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pd-ing h4 { margin: 0 0 5px; font-size: 0.9rem; color: var(--brand); }
.pd-ing p { margin: 0; color: var(--text); line-height: 1.55; }

/* ---------- Butonlar ---------- */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--bg-soft);
  color: var(--text);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { filter: brightness(1.05); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border: 1px solid var(--border); }
.btn--sm { padding: 7px 12px; font-size: 0.82rem; }
.btn--danger { background: var(--status-cancelled); color: #fff; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elev);
}
.qty button {
  width: 34px; height: 34px;
  border: none; background: transparent; color: var(--text);
  font-size: 18px; font-weight: 700;
}
.qty span { min-width: 26px; text-align: center; font-weight: 700; }

/* ---------- Sepet & modal ---------- */
.sheet-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 60;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.sheet-overlay.open .sheet { transform: translateY(0); }
.sheet__head {
  position: sticky; top: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  z-index: 1;
}
.sheet__body { padding: 16px; }
.sheet__close {
  border: none; background: var(--bg-soft); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; font-size: 18px;
}

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__name { font-weight: 600; }
.cart-item__price { color: var(--text-soft); font-size: 0.85rem; }
.cart-item__right { margin-left: auto; text-align: right; }

.cart-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 800;
  margin: 16px 0;
}

/* ---------- Müşteri hesabı ---------- */
.account-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.account-form {
  margin-bottom: 16px;
}
.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}
.history-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.history-card__top,
.history-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-card__items {
  margin: 8px 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.history-card__note {
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
}
.input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
textarea.input { min-height: 76px; resize: vertical; }

/* ---------- Sipariş onayı / takip ---------- */
.success {
  text-align: center;
  padding: 22px 8px;
}
.success__icon {
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--status-ready);
  color: #fff;
  display: grid; place-items: center;
  font-size: 40px;
}
.order-no {
  font-size: 2rem; font-weight: 900; color: var(--brand);
  letter-spacing: 0.02em;
}
.track-status {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-align: center;
}
.track-status__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.track-status__label {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.tracker { margin: 22px 0; }
.tracker__step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  opacity: 0.4;
}
.tracker__step.active,
.tracker__step.done { opacity: 1; }
.tracker__dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--text-soft);
  border: 2px solid var(--border);
  font-size: 16px; font-weight: 700;
  flex: 0 0 auto;
}
.tracker__step.done .tracker__dot { background: var(--status-ready); border-color: var(--status-ready); color: #fff; }
.tracker__step.active .tracker__dot { background: var(--brand); border-color: var(--brand); color: #fff; animation: pulse 1.4s infinite; }
.tracker__label { font-weight: 700; }
.tracker__sub { font-size: 0.8rem; color: var(--text-soft); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,22,27,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(199,22,27,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,22,27,0); }
}

/* ---------- Floating cart bar ---------- */
.cart-bar {
  position: fixed;
  left: 50%; transform: translateX(-50%) translateY(120%);
  bottom: 14px;
  width: calc(100% - 28px);
  max-width: calc(var(--maxw) - 28px);
  z-index: 45;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 999px;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
  font-weight: 800;
}
.cart-bar.show { transform: translateX(-50%) translateY(0); }

/* ---------- Mutfak / Admin paneli ---------- */
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 14px 0;
}
.panel-title { font-size: 1.3rem; font-weight: 800; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 18px; }
.tab {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700; font-size: 0.88rem;
}
.tab.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.order-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.order-card.s-received  { border-left-color: var(--status-received); }
.order-card.s-preparing { border-left-color: var(--status-preparing); }
.order-card.s-ready     { border-left-color: var(--status-ready); }
.order-card.s-completed { border-left-color: var(--status-completed); opacity: 0.75; }
.order-card.s-cancelled { border-left-color: var(--status-cancelled); opacity: 0.6; }
.order-card.is-new { animation: flash 1s ease 2; }
@keyframes flash {
  0%, 100% { background: var(--bg-elev); }
  50% { background: var(--brand-soft); }
}
.order-card.is-alerting {
  border-left-color: var(--brand);
  animation: alert-pulse 1.1s ease-in-out infinite;
}
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,22,27,0.55); }
  60% { box-shadow: 0 0 0 7px rgba(199,22,27,0); }
}

/* Bildirim sesini açma çağrısı */
.sound-prompt {
  display: block;
  width: 100%;
  border: none;
  background: #f59e0b;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 13px 14px;
  border-radius: 12px;
  margin: 10px 0;
  box-shadow: var(--shadow-sm);
  animation: alert-pulse 1.6s ease-in-out infinite;
}
.sound-prompt:active { transform: scale(0.99); }

/* Onay bekleyen sipariş uyarı bandı */
.alert-banner {
  position: sticky;
  top: 62px;
  z-index: 35;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 11px 14px;
  border-radius: 0 0 14px 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.order-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.order-card__no { font-size: 1.25rem; font-weight: 900; }
.order-card__room {
  background: var(--bg-soft);
  border-radius: 8px; padding: 3px 9px;
  font-weight: 700; font-size: 0.85rem;
}
.order-card__time { font-size: 0.78rem; color: var(--text-soft); }
.status-pill {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 800; color: #fff;
}
.order-lines { margin: 8px 0; }
.order-line {
  display: flex; justify-content: space-between;
  padding: 3px 0; font-size: 0.92rem;
}
.order-line__q { font-weight: 800; color: var(--brand); margin-right: 6px; }
.order-note {
  margin: 8px 0;
  padding: 9px 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.order-card__total {
  display: flex; justify-content: space-between;
  font-weight: 800; border-top: 1px dashed var(--border);
  margin-top: 8px; padding-top: 8px;
}
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* Admin satırları */
.admin-list { margin-top: 10px; }
.admin-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.admin-row__img {
  width: 52px; height: 52px; border-radius: 8px;
  object-fit: cover; background: var(--bg-soft); flex: 0 0 auto;
}
.admin-row__img--ph { display: grid; place-items: center; color: var(--text-soft); }
.admin-row__body { flex: 1; min-width: 0; }
.admin-row__title { font-weight: 700; }
.admin-row__meta { font-size: 0.8rem; color: var(--text-soft); }
.admin-row__actions { display: flex; gap: 6px; flex: 0 0 auto; }

.pill-state {
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.pill-on { background: rgba(34,197,94,0.15); color: var(--status-ready); }
.pill-off { background: rgba(239,68,68,0.12); color: var(--status-cancelled); }

/* ---------- Giriş ekranı ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 20px;
}
.auth-card {
  width: 100%; max-width: 380px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}
.auth-card h1 { margin: 0 0 4px; font-size: 1.3rem; }
.auth-logo {
  background: var(--topbar-bg);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.auth-logo img { height: 40px; width: auto; }

/* ---------- Toast ---------- */
#toast-host {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: max-content; max-width: 90vw;
}
.toast {
  background: #222; color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast--show { opacity: 1; transform: translateY(0); }
.toast--error { background: var(--status-cancelled); }
.toast--success { background: var(--status-ready); }

/* ---------- Boş durum ---------- */
.empty {
  text-align: center; color: var(--text-soft);
  padding: 50px 20px;
}
.empty__icon { font-size: 2.4rem; margin-bottom: 8px; }

/* ---------- Yükleniyor ---------- */
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 30px auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Masaüstü iyileştirme ---------- */
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .campaign { flex-basis: 48%; }
}
@media (min-width: 900px) {
  :root { --maxw: 1000px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
  }
  .orders-grid .order-card { margin-bottom: 0; }
}

/* Customer-menu language controls; panel pages do not use these classes. */
.language-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 0; padding-bottom: 8px; }
.language-label { color: #fff; font-size: .85rem; font-weight: 700; }
.language-switch { display: inline-flex; gap: 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; padding: 3px; }
.language-switch button { min-height: 44px; min-width: 84px; padding: 8px 12px; border: 0; border-radius: 6px; color: #fff; background: transparent; font-weight: 700; }
.language-switch button[aria-pressed="true"] { background: var(--brand); }
.language-toggle { min-height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--bg-elev); font-weight: 700; margin-left: auto; margin-right: 8px; }
.language-switch button:focus-visible, .language-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
