@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #efe7da;
  --surface: #ffffff;
  --surface-2: #f7f3ec;
  --border: #e2dacb;
  --text: #14161a;
  --text-2: #52555c;
  --text-muted: #8a8d94;
  --accent: #14161a;
  --danger: #dc2626;
  --profit-solid: #22c55e;
  --profit-soft-bg: #dcfce7;
  --profit-soft-text: #15803d;
  --kcal-text: #c2410c;
  --shadow-sm: 0 1px 2px rgba(15,15,20,0.06);
  --shadow-md: 0 4px 16px rgba(15,15,20,0.08);
  --shadow-lg: 0 12px 32px rgba(15,15,20,0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Auth / marketing pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.auth-shell.watermark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  z-index: 0;
}
.auth-shell .auth-card { position: relative; z-index: 1; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px -12px rgba(15,15,20,0.25), 0 2px 8px rgba(15,15,20,0.06);
  padding: 2.25rem 2rem 2rem;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d6249f, #7b2ff7, #2fd9c5);
}
.auth-logo {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0.25rem auto 1.1rem;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(123,47,247,0.22);
}
.auth-brand { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.3rem; text-align: center; }
.auth-sub { color: var(--text-2); font-size: 0.88rem; margin: 0 0 1.75rem; text-align: center; }
.auth-card .field input {
  border-radius: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-color: #e2e3e8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card .field input:focus {
  outline: none;
  border-color: #7b2ff7;
  box-shadow: 0 0 0 3px rgba(123,47,247,0.14);
}
.auth-card .btn-primary {
  background: linear-gradient(90deg, #d6249f, #7b2ff7, #2fd9c5);
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px -6px rgba(123,47,247,0.4);
  padding: 0.75rem 1.1rem;
}
.auth-card .btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 28px -6px rgba(123,47,247,0.5); }
.auth-card .auth-foot a { color: #7b2ff7; text-decoration: none; font-weight: 600; }
.auth-card .auth-foot a:hover { text-decoration: underline; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-2); margin-bottom: 0.35rem; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.color-swatch {
  width: 2.2rem; height: 2.2rem; border-radius: 0.5rem;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.selected { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.field input[type="color"] {
  padding: 0.3rem;
  height: 2.5rem;
  cursor: pointer;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.3rem; }
.translate-row { display: flex; align-items: center; gap: 0.6rem; margin-top: -0.4rem; }
.translate-status { font-size: 0.78rem; color: var(--text-muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--text); color: var(--surface); width: 100%; }
.btn-primary:hover { filter: brightness(1.15); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
.auth-error { background: #fee2e2; color: #991b1b; border-radius: 0.5rem; padding: 0.6rem 0.8rem; font-size: 0.82rem; margin-bottom: 1rem; }
.auth-notice { background: var(--profit-soft-bg); color: var(--profit-soft-text); border-radius: 0.5rem; padding: 0.6rem 0.8rem; font-size: 0.82rem; margin-bottom: 1rem; }
.auth-foot { text-align: center; margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-2); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,10,0.35) 0%, rgba(10,12,10,0.45) 45%, rgba(8,10,8,0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  color: #ffffff;
}
.hero-content h1 {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  text-wrap: balance;
}
.hero-content p {
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.8rem;
  line-height: 1.55;
  font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.home-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: #ffffff;
  color: #14161a;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-hero-primary:hover { filter: brightness(0.96); }
.btn-hero-secondary {
  background: rgba(10,12,10,0.55);
  border: 1.5px solid rgba(255,255,255,0.75);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  backdrop-filter: blur(2px);
}
.btn-hero-secondary:hover { background: rgba(10,12,10,0.72); }
@media (max-width: 520px) {
  .hero-content h1 { font-size: 1.7rem; }
  .home-actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Admin dashboard ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 15.5rem;
  flex-shrink: 0;
  background: #14161d;
  color: #d1d5db;
  padding: 1.25rem 0.9rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand { color: #fff; font-weight: 800; font-size: 1.1rem; padding: 0 0.5rem 1.2rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.6rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: #d1d5db;
  font-size: 0.88rem;
  font-weight: 500;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); }
.admin-nav a.exit { color: #f87171; margin-top: auto; }
.nav-icon {
  width: 1.9rem; height: 1.9rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}

.admin-main { flex: 1; min-width: 0; padding: 2rem 2.25rem 4rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.admin-header .muted { color: var(--text-2); font-size: 0.85rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 999px;
}
.status-open { background: var(--profit-soft-bg); color: var(--profit-soft-text); }
.status-closed { background: #fee2e2; color: #991b1b; }

/* Siparis modulu rozetleri: abonelik durumundan bilerek farkli renkte —
   modulun kapali olmasi bir ariza degil, sadece acilmamis bir ozellik. */

/* Sifre alani: goster/gizle ve kopyala dugmeleri input'un icine oturur. */
.sifre-alani { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.sifre-alani input { flex: 1; min-width: 0; padding-right: 4rem; }
.sifre-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 0.25rem; cursor: pointer;
  color: var(--text-muted); display: inline-flex; align-items: center;
  border-radius: 0.35rem; line-height: 0;
}
.sifre-btn:hover { color: var(--text); background: var(--surface-2); }
.sifre-btn svg { width: 1.05rem; height: 1.05rem; }
.sifre-btn.kopyalandi { color: var(--profit-solid); }
.js-sifre-goster { right: 2rem; }
.js-sifre-kopyala { right: 0.35rem; }
/* Satir menusundeki input kurali daha ozgul, sag bosluk orada ayrica verilmeli —
   yoksa dugmeler yazilan sifrenin uzerine biner. */
.row-menu-item form .sifre-alani input { padding-right: 4rem; }
.status-siparis-acik { background: #dbeafe; color: #1e40af; }
.status-siparis-kapali { background: var(--surface-2); color: var(--text-muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.panel h2 { margin: 0 0 1.1rem; font-size: 1.15rem; font-weight: 700; }

.cat-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem; margin-top: 0.6rem;
}
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem;
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  cursor: grab;
}
.cat-card.dragging { opacity: 0.4; cursor: grabbing; }
.cat-card-color { width: 100%; height: 4.5rem; flex-shrink: 0; }
.cat-card-body { padding: 0.8rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.cat-card-body h3 { margin: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.cat-card-actions { margin-top: auto; display: flex; gap: 0.5rem; align-items: center; }

.product-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem; margin-top: 0.6rem;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem;
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.product-card-media { width: 100%; height: 9rem; background: var(--surface-2); flex-shrink: 0; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-media-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.78rem;
}
.product-card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.product-card-title-row h3 { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.product-card-price { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.product-card-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 0.35rem; flex-wrap: wrap; }
.product-card-actions { margin-top: auto; padding-top: 0.5rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.product-card-actions > details { flex: 1; min-width: 0; }
.product-card-actions > details > summary { width: 100%; justify-content: center; }
.product-card .form-grid { grid-template-columns: 1fr; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table img.thumb { width: 2.6rem; height: 2.6rem; object-fit: cover; border-radius: 0.4rem; display: block; }
.row-actions { display: flex; gap: 0.4rem; }

.row-menu { display: inline-block; position: relative; }
.row-menu-summary { list-style: none; cursor: pointer; }
.row-menu-summary::-webkit-details-marker { display: none; }
.row-menu-panel {
  position: absolute; right: 0; top: 100%; margin-top: 0.4rem; z-index: 10;
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.6rem;
  box-shadow: var(--shadow-md); padding: 0.4rem; min-width: 13rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.row-menu-item summary {
  list-style: none; cursor: pointer;
  padding: 0.5rem 0.6rem; border-radius: 0.4rem;
  font-size: 0.84rem; font-weight: 500; color: var(--text);
}
.row-menu-item summary::-webkit-details-marker { display: none; }
.row-menu-item summary:hover { background: var(--surface-2); }
.row-menu-item[open] summary { background: var(--surface-2); }
.row-menu-item form {
  display: flex; gap: 0.4rem; align-items: center;
  padding: 0.3rem 0.6rem 0.5rem;
}
.row-menu-item form input {
  flex: 1; min-width: 0; padding: 0.4rem 0.6rem;
  border-radius: 0.5rem; border: 1px solid var(--border); font-size: 0.84rem;
}
.row-menu-plain {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font-weight: 500; font-size: 0.84rem;
  padding: 0.5rem 0.6rem; border-radius: 0.4rem; cursor: pointer;
}
.row-menu-plain:hover { background: var(--surface-2); }
.row-menu-divider { height: 1px; background: var(--border); margin: 0.3rem 0.2rem; }
.row-menu-danger {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--danger); font-weight: 600; font-size: 0.84rem;
  padding: 0.5rem 0.6rem; border-radius: 0.4rem; cursor: pointer;
}
.row-menu-danger:hover { background: #fee2e2; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.image-picker { display: flex; align-items: center; gap: 0.8rem; }
.image-picker .preview {
  width: 4rem; height: 4rem; border-radius: 0.5rem; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--border);
}
.image-picker .hero-thumb { width: 12rem; height: 4.5rem; object-fit: cover; }
.hero-editor-frame {
  position: relative;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 6 / 1;
  overflow: hidden;
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: grab;
  background: var(--surface-2);
}
.hero-editor-frame.dragging { cursor: grabbing; }
.hero-editor-frame .hero-inner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
.hero-editor-frame img {
  position: absolute;
  top: 0; left: 0;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.checkbox-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 10rem; overflow-y: auto; border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.6rem; }
.checkbox-list label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 500; }

.qr-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.qr-image { width: 9rem; height: 9rem; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.5rem; background: #fff; flex-shrink: 0; }
.qr-info { flex: 1; min-width: 220px; }
.qr-url { font-size: 0.84rem; font-weight: 600; word-break: break-all; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.theme-card { margin: 0; }
.theme-swatch-btn {
  all: unset; display: flex; flex-direction: column; gap: 0.6rem; width: 100%; box-sizing: border-box;
  cursor: pointer; padding: 0.8rem; border-radius: 0.9rem; border: 2px solid var(--border); transition: border-color 0.15s ease;
}
.theme-card.selected .theme-swatch-btn { border-color: var(--text); }
.theme-swatch-btn:hover { border-color: var(--text-2); }
.theme-swatch {
  height: 5rem; border-radius: 0.6rem; display: flex; overflow: hidden; border: 1px solid var(--border);
}
.theme-swatch-sidebar { width: 28%; height: 100%; }
.theme-swatch-card { flex: 1; margin: 0.7rem 0.7rem 0.7rem 0; border-radius: 0.4rem; display: flex; align-items: flex-end; padding: 0.4rem; }
.theme-swatch-accent { width: 1.6rem; height: 0.35rem; border-radius: 999px; }
.theme-name { font-size: 0.88rem; font-weight: 700; }
.theme-desc { font-size: 0.76rem; color: var(--text-2); line-height: 1.35; }
.auth-copyright { text-align: center; margin-top: 1.3rem; font-size: 0.72rem; color: var(--text-muted); }
.auth-tagline { text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; color: #7b2ff7; text-transform: uppercase; margin: 0 0 0.6rem; }
.auth-shell.watermark-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/images/logo.jpg');
  background-repeat: repeat;
  background-size: 160px auto;
  opacity: 0.16;
  z-index: 0;
}
.auth-card--dark { background: #14161a; border-color: rgba(255,255,255,0.08); }
.auth-card--dark .auth-brand { color: #fff; }
.auth-card--dark .auth-sub { color: #aab4be; }
.auth-card--dark .field label { color: #aab4be; }
.auth-card--dark .field input {
  background: #1d2027;
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.auth-card--dark .field input::placeholder { color: #6b7280; }
.auth-card--dark .field input:focus { border-color: #7b2ff7; box-shadow: 0 0 0 3px rgba(123,47,247,0.25); }
.auth-card--dark .auth-foot { color: #aab4be; }
.auth-card--dark .auth-foot a { color: #a78bfa; }

.edit-modal {
  border: none;
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.6rem;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  color: var(--text);
}
.edit-modal::backdrop { background: rgba(15,15,20,0.55); }
.edit-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.edit-modal-head h3 { margin: 0; font-size: 1.05rem; }
.edit-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
}
.edit-modal-close:hover { color: var(--text); }

.product-group { margin-top: 1.4rem; }
.product-group:first-of-type { margin-top: 0.6rem; }
.product-group-title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.7rem; font-size: 0.95rem; font-weight: 700; padding-bottom: 0.45rem; border-bottom: 2px solid transparent; border-image: linear-gradient(to right, var(--cat-from, var(--border)), var(--cat-to, var(--border)) 55%, transparent) 1; }
/* Kategori rengi: baslikta nokta, kartta sol serit — hangi urunun nereye ait oldugu bir bakista anlasilir. */
.group-dot { width: 0.7rem; height: 0.7rem; border-radius: 999px; flex: 0 0 auto; background: linear-gradient(135deg, var(--cat-from, #64748b), var(--cat-to, #475569)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-from, #64748b) 22%, transparent); }
.product-group .product-card { border-left: 4px solid var(--cat-from, transparent); }
.product-group-count { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); background: var(--surface-2); border-radius: 999px; padding: 0.1rem 0.5rem; }

.bundle-profit { color: var(--profit-soft-text, #059669); font-weight: 700; }
.bundle-items { margin: 0.45rem 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }

.checkbox-list label { justify-content: flex-start; text-align: left; }
.checkbox-list input[type="checkbox"] { width: auto; min-width: 0; flex: 0 0 auto; margin: 0; padding: 0; height: auto; }

.cb-thumb { width: 2rem; height: 2rem; border-radius: 0.35rem; object-fit: cover; flex: 0 0 auto; display: block; }
.cb-thumb-empty { background: var(--surface-2); border: 1px dashed var(--border); }
.checkbox-list label { gap: 0.55rem; padding: 0.15rem 0; }

.bundle-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.bundle-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.55rem 0.2rem 0.2rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.76rem; font-weight: 600; color: var(--text-2); }
.bundle-chip img, .bundle-chip-empty { width: 1.5rem; height: 1.5rem; border-radius: 999px; object-fit: cover; flex: 0 0 auto; display: block; }

.price-date-admin { margin-top: 0.3rem; font-size: 0.7rem; color: var(--text-muted); }
.price-date-admin:empty { display: none; }

.cat-card-menu { border-style: dashed; }
.cat-card-note { margin: 0.25rem 0 0; font-size: 0.7rem; line-height: 1.35; color: var(--text-muted); }

.admin-subtitle { margin-top: 0.1rem; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.01em; }

.admin-title-row { display: flex; align-items: center; gap: 0.9rem; }
.admin-logo { width: 6rem; height: 6rem; border-radius: 0.7rem; object-fit: cover; flex: 0 0 auto; box-shadow: var(--shadow-sm); background: var(--surface-2); }

/* ---------- Panel: telefon duzeni ---------- */
.admin-shell-mobile {}
@media (max-width: 780px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-brand { padding: 0 0.6rem 0 0.2rem; font-size: 0.95rem; white-space: nowrap; }
  .admin-nav { flex-direction: row; gap: 0.35rem; flex: 0 0 auto; }
  .admin-nav a { padding: 0.45rem 0.65rem; white-space: nowrap; font-size: 0.85rem; }
  .admin-nav a.exit { margin-top: 0; margin-left: 0.35rem; }
  .admin-main { padding: 1rem 0.9rem 2.5rem; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .admin-logo { width: 4.4rem; height: 4.4rem; }
  .admin-header h1 { font-size: 1.35rem; }
  .qr-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .product-cards { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.7rem; }
  .cat-cards { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.7rem; }
  .edit-modal { max-width: 100%; max-height: 92vh; border-radius: 0.9rem; padding: 1.1rem; }
  .hero-editor-frame { max-width: 100%; }
}

.hero-editor-labels { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.3rem; }
.hero-editor-frame-mobile { max-width: 15rem; aspect-ratio: 4.8 / 1; cursor: default; }

/* ---------- Mutfak ekrani ---------- */
.kitchen-body { margin: 0; background: #0f1115; color: #e8eaed; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.kitchen-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; background: #171a21; border-bottom: 1px solid #262b35;
}
.kitchen-title { font-size: 1.05rem; font-weight: 800; }
.kitchen-sub { font-size: 0.75rem; color: #8b93a3; margin-top: 0.2rem; }
.kitchen-actions { display: flex; align-items: center; gap: 0.5rem; }
.kitchen-sound, .kitchen-back {
  border: 1px solid #2f3644; background: #1e222b; color: #e8eaed;
  font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 0.5rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.kitchen-sound[aria-pressed="true"] { border-color: #16a34a; color: #4ade80; }

.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.9rem; padding: 1rem; }
.kitchen-empty { grid-column: 1 / -1; text-align: center; color: #6b7280; padding: 4rem 1rem; font-size: 0.95rem; }

.ticket { background: #1a1e26; border: 1px solid #2a303c; border-left: 5px solid #3b82f6; border-radius: 0.7rem; padding: 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ticket.status-preparing { border-left-color: #f59e0b; }
.ticket.status-ready { border-left-color: #22c55e; }
/* 10 dakikayi gecen siparis dikkat cekmeli. */
.ticket.late { background: #241a1a; border-color: #7f1d1d; }
.ticket-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.ticket-table { font-size: 1.05rem; font-weight: 800; }
.ticket-time { font-size: 0.72rem; color: #8b93a3; white-space: nowrap; }
.ticket-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.ticket-items li { font-size: 0.9rem; display: flex; gap: 0.45rem; }
.ticket-items .qty { font-weight: 800; color: #93c5fd; font-variant-numeric: tabular-nums; }
.ticket-note { font-size: 0.8rem; color: #fbbf24; background: #2a2413; border-radius: 0.4rem; padding: 0.4rem 0.55rem; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-top: 1px solid #2a303c; padding-top: 0.6rem; }
.ticket-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket-btns { display: flex; gap: 0.4rem; }
.ticket-btn { border: none; border-radius: 0.45rem; font-size: 0.78rem; font-weight: 700; padding: 0.45rem 0.7rem; cursor: pointer; }
.ticket-btn.primary { background: #2563eb; color: #fff; }
.ticket-btn.ghost { background: transparent; border: 1px solid #3f4654; color: #9aa3b2; }

/* ---------- Siparis ayarlari ---------- */
.switch-row { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0; font-size: 0.85rem; color: var(--text-2, #cbd5e1); cursor: pointer; }
.switch-row input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: 0; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0.6rem 0 0.9rem; }
.inline-form input { width: auto; flex: 0 1 12rem; }
.table-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.table-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface-2, #1c212b); border: 1px solid var(--border, #2a303c); border-radius: 0.55rem; padding: 0.35rem 0.5rem 0.35rem 0.7rem; }
.table-chip form { margin: 0; }
.table-chip-label { font-size: 0.82rem; font-weight: 700; }
.table-chip-btn { font-size: 0.72rem; font-weight: 700; text-decoration: none; color: #60a5fa; border: 1px solid #2f4a6b; border-radius: 0.35rem; padding: 0.15rem 0.4rem; }
.table-chip-del { border: none; background: transparent; color: #9aa3b2; font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 0.15rem; }
.table-chip-del:hover { color: #ef4444; }
