:root {
  --accent: #c45c26;
  --accent-dark: #a34a1e;
  --accent-soft: #fff4ee;
  --bordo: #7a2238;
  --bordo-soft: #f8eef1;
  --gold: #b8860b;
  --cat-bar: #4d6b35;
  --cat-bar-dark: #3d5529;
  --cat-bar-light: #6b8f4a;
  --bg: #f5f1eb;
  --bg-white: #ffffff;
  --text: #1c1917;
  --text-muted: #6b6560;
  --border: #e8e2da;
  --border-soft: #f0ebe4;
  --sidebar-w: 272px;
  --contact-w: 380px;
  --sidebar-bg: #faf8f5;
  --menu-max: 700px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════
   MENÜ SAYFASI — ortalı, kategori görselli
   ═══════════════════════════════════════ */
.menu-page {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(122, 34, 56, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(77, 107, 53, 0.05), transparent 45%);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Üst tam genişlik banner */
.menu-page .hero-banner {
  width: 100%;
  min-height: 0;
  background: linear-gradient(180deg, #e8e0d6 0%, var(--bg) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.menu-page .hero-banner.has-banner {
  min-height: 240px;
}

.menu-page .hero-banner.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.05) 0%,
    rgba(28, 25, 23, 0.25) 70%,
    var(--bg) 100%
  );
  pointer-events: none;
}

/* Gövde: sol menü + menü + sağ iletişim */
.menu-page .page-body {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--contact-w);
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 220px);
}

.menu-page .hero-banner:not(.has-banner) + .page-body {
  min-height: 100vh;
}

.menu-page .sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--sidebar-bg);
  padding: 1.75rem 1.35rem 2rem;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(28, 25, 23, 0.04);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.menu-page .sidebar::-webkit-scrollbar {
  width: 5px;
}

.menu-page .sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

.menu-page .sidebar-brand {
  text-align: left;
  margin-bottom: 1.25rem;
}

.menu-page .sidebar-logo-wrap {
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  position: relative;
}

.menu-page .sidebar-logo-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
  background: #fff;
  border: 3px solid #fff;
  outline: 1px solid var(--border);
}

.menu-page .sidebar-logo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bordo) 0%, var(--cat-bar-dark) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 3px solid #fff;
  outline: 1px solid var(--border);
}

.menu-page .sidebar-logo-wrap:has(.sidebar-logo-img:not(.hidden)) .sidebar-logo-fallback {
  display: none;
}

.menu-page .sidebar-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.menu-page .sidebar-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}

.menu-page .sidebar-links {
  list-style: none;
  margin-bottom: 1rem;
}

.menu-page .sidebar-links.hidden {
  display: none;
}

.menu-page .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.menu-page .sidebar-link:hover {
  color: var(--text);
}

.menu-page .sidebar-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-page .link-fb .sidebar-link-icon {
  color: #1877f2;
}

.menu-page .link-ig .sidebar-link-icon {
  color: #e4405f;
}

.menu-page .link-info .sidebar-link-icon {
  color: #666;
}

.menu-page .sidebar-search-wrap {
  margin-bottom: 1.25rem;
}

.menu-page .sidebar-search {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b6560' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 0.85rem center;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.menu-page .sidebar-search::placeholder {
  color: #9c958e;
}

.menu-page .sidebar-search:focus {
  border-color: var(--cat-bar-light);
  box-shadow: 0 0 0 3px rgba(77, 107, 53, 0.12);
}

.menu-page .sidebar-nav {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.menu-page .cat-nav {
  list-style: none;
}

.menu-page .cat-nav button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.65rem;
  margin: 0 -0.65rem;
  border: none;
  border-radius: 8px;
  background: none;
  text-align: left;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.35;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.menu-page .cat-nav button:hover {
  color: var(--text);
  background: rgba(77, 107, 53, 0.06);
  padding-left: 0.85rem;
}

.menu-page .cat-nav button.active {
  color: var(--cat-bar-dark);
  font-weight: 600;
  background: rgba(77, 107, 53, 0.1);
  padding-left: 0.85rem;
  border-left: 3px solid var(--cat-bar);
}

.menu-page .search-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Orta sütun — dikey sıralı kategoriler */
.menu-page .menu-column {
  padding: 2rem 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 2rem);
}

.menu-page .menu-stack {
  max-width: var(--menu-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.menu-page .cat-block {
  scroll-margin-top: 1.25rem;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.menu-page .cat-block:hover {
  box-shadow: var(--shadow-lg);
}

.menu-page .cat-image-wrap {
  padding: 1.15rem 1.25rem 0;
  position: relative;
}

.menu-page .cat-image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.menu-page .cat-items {
  padding: 0.25rem 0;
}

.menu-page .cat-header {
  background: linear-gradient(135deg, var(--cat-bar) 0%, var(--cat-bar-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1.25rem;
  letter-spacing: 0.03em;
  position: relative;
  margin: 0;
}

.menu-page .cat-image-wrap + .cat-header {
  margin-top: 0;
  border-radius: 0;
}

.menu-page .cat-block:not(:has(.cat-image-wrap)) .cat-header {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.menu-page .cat-header + .cat-items {
  padding-top: 0.15rem;
}

.menu-page .cat-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.menu-page .cat-header-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  position: relative;
}

.menu-page .cat-header-desc {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.menu-page .menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s ease;
}

.menu-page .menu-item:last-child {
  border-bottom: none;
}

.menu-page .menu-item:hover {
  background: linear-gradient(90deg, var(--bordo-soft) 0%, transparent 100%);
}

.menu-page .item-body {
  flex: 1;
  min-width: 0;
}

.menu-page .item-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.menu-page .item-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bordo);
  background: var(--bordo-soft);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.menu-page .item-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.menu-page .item-desc {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  max-width: 42ch;
}

.menu-page .item-price {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
  color: var(--bordo);
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0;
  position: relative;
}

.menu-page .item-price::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

.menu-page .menu-footer {
  max-width: var(--menu-max);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--border);
}

.menu-page .menu-footer strong {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
}

/* Sağ iletişim paneli */
.menu-page .contact-panel {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 2rem 1.75rem 2rem 1.5rem;
  border-left: 1px solid var(--border);
  background: var(--sidebar-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.menu-page .contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.menu-page .contact-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-soft);
}

.menu-page .contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-page .contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.menu-page .contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bordo-soft);
  color: var(--bordo);
}

.menu-page .contact-item-body {
  min-width: 0;
  flex: 1;
}

.menu-page .contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.menu-page .contact-value {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.menu-page .contact-value a {
  color: var(--bordo);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.menu-page .contact-value a:hover {
  color: var(--cat-bar-dark);
  text-decoration: underline;
}

.menu-page .contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.menu-page .contact-actions:empty {
  display: none;
}

.menu-page .contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.menu-page .contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.menu-page .contact-btn-wa {
  background: #25d366;
  color: #fff;
}

.menu-page .contact-btn-map {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bordo), var(--cat-bar-dark));
  color: #fff;
}

.menu-page .contact-btn-tel {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.menu-page .contact-note {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--border);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
}

.menu-page .contact-social-wrap {
  margin-top: 1.5rem;
  padding: 0 0.15rem;
}

.menu-page .contact-social-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.menu-page .contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-page .contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}

.menu-page .contact-social a:hover {
  border-color: var(--bordo);
  color: var(--bordo);
}

.menu-page .contact-social a.social-fb:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.menu-page .contact-social a.social-ig:hover {
  border-color: #e4405f;
  color: #e4405f;
}

.menu-page .mobile-cats {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.menu-page .mobile-cats-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0.25rem;
}

.menu-page .mobile-cats-track::-webkit-scrollbar {
  display: none;
}

.menu-page .mobile-cats-track button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.85rem 1rem 0.7rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  color: #9ca3af;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
  box-shadow: none;
}

.menu-page .mobile-cats-track button::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background 0.2s ease;
}

.menu-page .mobile-cats-track button.active {
  color: var(--text);
  font-weight: 600;
  background: transparent;
}

.menu-page .mobile-cats-track button.active::after {
  background: #22c55e;
}

@media (max-width: 1100px) {
  .menu-page .page-body {
    grid-template-columns: 1fr;
    padding: 0 0 2rem;
  }

  .menu-page .sidebar {
    display: none;
  }

  .menu-page .contact-panel {
    position: static;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem 1rem 2rem;
  }

  .menu-page .contact-actions {
    grid-template-columns: 1fr;
  }

  .menu-page .contact-btn-map {
    grid-column: auto;
  }

  .menu-page .menu-column {
    max-height: none;
    padding: 1rem 0.75rem 0.5rem;
  }

  .menu-page .mobile-cats {
    display: block;
  }

  .menu-page.has-mobile-cats .hero-banner {
    margin-top: 48px;
  }

  .menu-page.has-mobile-cats .cat-block {
    scroll-margin-top: 56px;
  }

  .menu-page .hero-banner.has-banner {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .menu-page .hero-banner.has-banner {
    min-height: 200px;
  }
}

@media (max-width: 500px) {
  .menu-page .menu-item {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1.1rem;
  }

  .menu-page .item-price {
    align-self: flex-end;
  }

  .menu-page .item-price::before {
    display: none;
  }

  .menu-page .cat-header-title {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-page .cat-block,
  .menu-page .cat-nav button,
  .menu-page .menu-item,
  .menu-page .mobile-cats-track button {
    transition: none;
  }

  .menu-page .mobile-cats-track button::after {
    transition: none;
  }
}

/* ═══════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════ */
.admin-page {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 0% 0%, rgba(122, 34, 56, 0.07), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(196, 92, 38, 0.06), transparent 50%);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Giriş */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-box {
  width: 100%;
  max-width: 26rem;
  padding: 2.25rem 2rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.login-subtitle {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.login-box label {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.login-box input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-box input:focus {
  outline: none;
  border-color: var(--bordo);
  box-shadow: 0 0 0 3px rgba(122, 34, 56, 0.12);
  background: var(--bg-white);
}

.login-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.login-back:hover {
  color: var(--bordo);
}

.login-server-warn {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  text-align: left;
}

.login-server-warn.hidden {
  display: none;
}

.msg-error {
  color: #991b1b !important;
  background: #fef2f2;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn-primary {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: linear-gradient(135deg, var(--bordo) 0%, #5c1a2e 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(122, 34, 56, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(122, 34, 56, 0.32);
}

/* Panel üst bar */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-brand h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.admin-header-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.admin-header-link:hover {
  color: var(--bordo);
}

.btn-logout {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-logout:hover {
  border-color: var(--bordo);
  color: var(--bordo);
  background: var(--bordo-soft);
}

.admin-body {
  max-width: 58rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* Kayıt bildirimi */
.notice {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--cat-bar);
  background: var(--bg-white);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.notice strong {
  color: var(--text);
}

.notice code {
  font-size: 0.78rem;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--bordo);
}

.save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* Sekmeler */
.tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.tabs button {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tabs button:hover:not(.active) {
  background: var(--bg);
  color: var(--text);
}

.tabs button.active {
  background: linear-gradient(135deg, var(--bordo) 0%, #5c1a2e 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(122, 34, 56, 0.22);
}

/* Formlar */
.form-panel {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-panel label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.form-panel label:last-of-type {
  margin-bottom: 0;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  outline: none;
  border-color: var(--bordo);
  box-shadow: 0 0 0 3px rgba(122, 34, 56, 0.1);
  background: var(--bg-white);
}

.form-panel textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 0.75rem;
  align-items: end;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  border: none;
  background: linear-gradient(135deg, var(--bordo) 0%, #5c1a2e 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 34, 56, 0.25);
}

.btn-download {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s;
}

.btn-download:hover {
  border-color: var(--bordo);
  background: var(--bordo-soft);
  color: var(--bordo);
}

/* Tablo */
.admin-table-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.data-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: var(--bordo-soft);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table .table-desc {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.table-price-input {
  width: 5.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg);
}

.table-price-input:focus {
  outline: none;
  border-color: var(--bordo);
  box-shadow: 0 0 0 2px rgba(122, 34, 56, 0.1);
}

.link-muted {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.link-muted:hover {
  color: var(--bordo);
}

.link-danger {
  font-size: 0.8rem;
  color: #991b1b;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  transition: color 0.15s;
}

.link-danger:hover {
  color: #7f1d1d;
  text-decoration: underline;
}

.msg {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Admin görseller */
.admin-logo-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}

.admin-logo-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.admin-logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-white);
  outline: 1px solid var(--border);
  display: block;
  box-shadow: var(--shadow-sm);
}

.admin-logo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-thumb-wide {
  width: 100%;
  max-width: 160px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-banner-preview {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--bg);
  color: #bbb;
  font-size: 0.85rem;
}

.admin-img-cell {
  min-width: 130px;
}

.admin-img-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.btn-img-pick,
.btn-img-xs {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background: var(--bg-white);
  border: 1px solid var(--bordo);
  color: var(--bordo);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-img-pick:hover {
  background: var(--bordo-soft);
}

.btn-img-xs {
  border: none;
  background: none;
  padding: 0;
  color: #991b1b;
}

.btn-img-xs:hover {
  background: transparent;
}

.img-upload-label .img-preview-name {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: #166534;
  font-weight: 500;
}

.field-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}

.save-status {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

.save-status.save-ok {
  color: #166534;
}

.save-status.save-warn {
  color: #a16207;
}

@media (max-width: 640px) {
  .admin-header {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .tabs {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .data-table th,
  .data-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
}
