/* Mahallecek uygulama teması (müşteri arayüzü, işletme paneli, yönetim). Bootstrap 5'in üzerine ince bir tasarım katmanı.
   Tema değişkenleri yalnızca bu blokta; renk çiftlerinin kontrastı SecurityAndPwaTests'te sınanır.
   Tasarım dili ("sıcak ve sakin"): krem zemin, koyu mürekkep yazı, gölge yerine ince çizgiler, başlıklarda serif.
   Turuncu yalnızca ana eylem, etkin durum ve damga için; başka vurgu rengi kullanılmaz. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fraunces-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fraunces-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  --mhc-primary: #c2410c;
  --mhc-primary-dark: #9a3412;
  --mhc-primary-soft: #f8e6d8;
  --mhc-primary-softer: #fbf3ea;
  --mhc-text: #23211c;
  --mhc-ink: #23211c;
  --mhc-muted: #6a6458;
  --mhc-bg: #f6f3ec;
  --mhc-card: #fffdf9;
  --mhc-sunken: #efebe2;
  --mhc-border: #e5dfd3;
  --mhc-border-strong: #d3cbbb;
  --mhc-success: #3e6b48;
  --mhc-danger: #a13c33;
  --mhc-radius: 12px;
  --mhc-radius-sm: 8px;
  --mhc-shadow: none;
  --mhc-shadow-lg: 0 14px 36px rgba(35, 33, 28, .14);
  --mhc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mhc-display: "Fraunces", Georgia, "Times New Roman", serif;
  --mhc-sidebar: 256px;

  --bs-body-font-family: var(--mhc-font);
  --bs-body-color: var(--mhc-text);
  --bs-body-bg: var(--mhc-bg);
  --bs-primary: #c2410c;
  --bs-primary-rgb: 194, 65, 12;
  --bs-link-color: #c2410c;
  --bs-link-color-rgb: 194, 65, 12;
  --bs-link-hover-color: #9a3412;
  --bs-link-hover-color-rgb: 154, 52, 18;
  --bs-border-color: #e5dfd3;
  --bs-border-radius: 8px;
  --bs-border-radius-lg: 12px;
  --bs-secondary-color: #6a6458;
  --bs-focus-ring-color: rgba(194, 65, 12, .25);
}

html { font-size: 16px; }

body {
  font-family: var(--mhc-font);
  background: var(--mhc-bg);
  color: var(--mhc-text);
  -webkit-font-smoothing: antialiased;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { font-weight: 700; letter-spacing: -.015em; color: var(--mhc-ink); }
/* Sayfa başlıkları serif; bölüm başlıkları ve arayüz metni Inter kalır. */
h1, .h1, main h1.h3, main h1.h4, main h1.h5, .mhc-display { font-family: var(--mhc-display); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
main h1.h3, main h1.h4 { font-size: 1.85rem; margin-bottom: 1rem; }
main h2.h5 { font-size: 1.05rem; margin-top: .5rem; }
.text-muted, .text-body-secondary { color: var(--mhc-muted) !important; }
a { text-underline-offset: 3px; }

.mhc-i { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; vertical-align: -.25em; }

/* ---------- Kabuk ---------- */
.mhc-container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.mhc-main { padding: 1.5rem 0 2.5rem; min-height: 60vh; }

.mhc-logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mhc-display); font-weight: 600; font-size: 1.25rem; color: var(--mhc-ink); text-decoration: none; letter-spacing: -.01em; min-width: 0; }
.mhc-logo:hover { color: var(--mhc-ink); }
.mhc-logo-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.mhc-brand { font-family: var(--mhc-display); font-weight: 600; color: var(--mhc-ink); font-size: 1.2rem; }

.mhc-header { position: sticky; top: 0; z-index: 1020; background: rgba(246, 243, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mhc-border); }
.mhc-header .mhc-container { min-height: 60px; }
.mhc-chip { display: inline-flex; align-items: center; font-size: .8rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: var(--mhc-sunken); color: var(--mhc-muted); }
.mhc-top-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .7rem; color: var(--mhc-muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.mhc-top-link:hover { color: var(--mhc-ink); }
.mhc-top-link.is-active { color: var(--mhc-ink); box-shadow: inset 0 -2px 0 var(--mhc-primary); }
.mhc-top-link.btn { border: 0; }
@media (max-width: 767.98px) {
  .mhc-app-customer .mhc-header nav .mhc-top-link:not(.btn) { display: none; }
  .mhc-hide-sm { display: none; }
}

/* Panel: masaüstünde sol menü, mobilde üst çubuk + alt navigasyon. */
.mhc-sidebar { display: none; }
.mhc-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 60px; padding: .5rem 1rem; background: rgba(246, 243, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mhc-border); }
.mhc-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: var(--mhc-text); }
.mhc-icon-btn:hover { background: var(--mhc-sunken); color: var(--mhc-ink); }
.mhc-dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--mhc-primary); border: 2px solid var(--mhc-bg); }

@media (min-width: 992px) {
  .mhc-app-panel .mhc-topbar { display: none; }
  .mhc-app-panel .mhc-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--mhc-sidebar); z-index: 1030; display: flex; flex-direction: column; gap: .75rem;
    padding: 1.25rem 1rem; background: var(--mhc-bg); border-right: 1px solid var(--mhc-border); overflow-y: auto;
  }
  .mhc-app-panel .mhc-main { margin-left: var(--mhc-sidebar); padding-top: 2.25rem; }
  .mhc-app-panel .mhc-container { max-width: 64rem; padding: 0 2.5rem; }
}
.mhc-sidebar .mhc-logo { padding: .25rem .5rem .5rem; }
.mhc-sidebar-business { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--mhc-radius-sm); background: var(--mhc-card); border: 1px solid var(--mhc-border); font-weight: 600; font-size: .92rem; min-width: 0; }
.mhc-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; background: var(--mhc-ink); color: var(--mhc-bg); font-family: var(--mhc-display); font-weight: 600; }
.mhc-switcher .form-select { font-weight: 600; }
.mhc-scan-cta { display: flex !important; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; font-weight: 700; }
.mhc-side-nav { display: flex; flex-direction: column; gap: 2px; }
.mhc-side-nav a { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: .45rem .7rem; border-radius: 8px; color: #45413a; font-weight: 500; font-size: .94rem; text-decoration: none; }
.mhc-side-nav a .mhc-i { color: #8a8375; }
.mhc-side-nav a:hover { background: var(--mhc-sunken); color: var(--mhc-ink); }
.mhc-side-nav a.is-active { background: var(--mhc-card); color: var(--mhc-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--mhc-primary), 0 0 0 1px var(--mhc-border); }
.mhc-side-nav a.is-active .mhc-i { color: var(--mhc-primary); }
.mhc-side-title { margin: 1rem .7rem .3rem; font-size: .78rem; font-weight: 600; color: #8a8375; }
.mhc-side-logout { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--mhc-border); }
.mhc-side-logout .btn { display: flex; align-items: center; gap: .7rem; width: 100%; color: var(--mhc-muted); text-decoration: none; font-weight: 500; padding: .45rem .7rem; }
.mhc-side-logout .btn:hover { color: var(--mhc-ink); background: var(--mhc-sunken); }
.mhc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--mhc-primary); color: #fff; font-size: .72rem; font-weight: 700; }

/* Panel alt navigasyonu (şartname 7.2): mobilde ekranın altında sabit; ortada büyük Okut düğmesi. */
.mhc-bottom-nav, .mhc-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: flex-end;
  background: rgba(246, 243, 236, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--mhc-border);
  padding: 0 .25rem env(safe-area-inset-bottom);
}
.mhc-bottom-nav a,
.mhc-bottom-nav span.mhc-bottom-nav-disabled,
.mhc-tabbar a {
  position: relative; flex: 1 1 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .7rem; font-weight: 600; text-decoration: none; color: #6a6458; text-align: center; padding: .35rem 0;
}
.mhc-bottom-nav a .mhc-i, .mhc-bottom-nav-disabled .mhc-i, .mhc-tabbar a .mhc-i { width: 1.4rem; height: 1.4rem; }
.mhc-bottom-nav a.is-active, .mhc-tabbar a.is-active { color: var(--mhc-ink); }
.mhc-bottom-nav a.is-active:not(.mhc-bottom-scan)::after, .mhc-tabbar a.is-active:not(.mhc-bottom-scan)::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--mhc-primary); }
.mhc-bottom-nav .mhc-bottom-nav-disabled { color: #bdb6a8; }
.mhc-bottom-nav .mhc-count, .mhc-tabbar .mhc-count { position: absolute; top: 4px; left: 54%; margin: 0; }
.mhc-bottom-scan { color: var(--mhc-ink) !important; }
.mhc-bottom-scan-ring { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-top: -20px; border-radius: 16px; background: var(--mhc-primary); color: #fff; border: 4px solid var(--mhc-bg); }
.mhc-bottom-scan-ring .mhc-i { width: 1.6rem !important; height: 1.6rem !important; }
body:has(.mhc-bottom-nav) .mhc-main, body:has(.mhc-tabbar) .mhc-main { padding-bottom: 6.5rem; }
@media (min-width: 992px) {
  .mhc-bottom-nav { display: none; }
  body:has(.mhc-bottom-nav) .mhc-main { padding-bottom: 2.5rem; }
}
@media (min-width: 768px) {
  .mhc-tabbar { display: none; }
  body:has(.mhc-tabbar) .mhc-main { padding-bottom: 2.5rem; }
}

/* ---------- Bootstrap bileşen ayarları ---------- */
/* Dokunma alanları en az 44 px (şartname 8.3). */
.btn {
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 600; border-radius: 8px; padding: .5rem 1.05rem;
}
.btn.w-100 { display: flex; }
.btn-sm { min-height: 44px; padding: .3rem .85rem; font-size: .875rem; border-radius: 8px; }
.btn-lg { min-height: 52px; font-size: 1.05rem; border-radius: 10px; }
.btn-link { text-decoration: none; }
.btn-primary {
  --bs-btn-bg: #c2410c; --bs-btn-border-color: #c2410c; --bs-btn-hover-bg: #9a3412; --bs-btn-hover-border-color: #9a3412;
  --bs-btn-active-bg: #7c2d12; --bs-btn-active-border-color: #7c2d12; --bs-btn-disabled-bg: #c2410c; --bs-btn-disabled-border-color: #c2410c;
  --bs-btn-focus-shadow-rgb: 194, 65, 12;
}
/* İkincil düğmeler tek tip: kart zemini, koyu yazı, ince çerçeve. Turuncu yalnızca ana eylemde.
   "Durdur" gibi uyarı düğmeleri de bu görünümde; yalnızca geri alınamaz eylem (Bitir, Sil) kırmızı yazılıdır. */
.btn-outline-primary, .btn-outline-secondary, .btn-outline-warning, .btn-warning, .btn-light {
  --bs-btn-color: #23211c; --bs-btn-bg: #fffdf9; --bs-btn-border-color: #d3cbbb;
  --bs-btn-hover-bg: #efebe2; --bs-btn-hover-color: #23211c; --bs-btn-hover-border-color: #b9b09e;
  --bs-btn-active-bg: #e5dfd3; --bs-btn-active-color: #23211c; --bs-btn-active-border-color: #b9b09e; --bs-btn-focus-shadow-rgb: 194, 65, 12;
  background: var(--bs-btn-bg);
}
.btn-outline-danger {
  --bs-btn-color: #a13c33; --bs-btn-border-color: #e2c4bf; --bs-btn-hover-bg: #f7e9e6; --bs-btn-hover-color: #8a2f27; --bs-btn-hover-border-color: #a13c33;
  --bs-btn-active-bg: #f2dcd8; --bs-btn-active-color: #8a2f27; --bs-btn-active-border-color: #a13c33;
  background: var(--mhc-card);
}
.btn-success { --bs-btn-bg: #3e6b48; --bs-btn-border-color: #3e6b48; --bs-btn-hover-bg: #31573a; --bs-btn-hover-border-color: #31573a; --bs-btn-active-bg: #284a30; --bs-btn-active-border-color: #284a30; }
.btn-danger { --bs-btn-bg: #a13c33; --bs-btn-border-color: #a13c33; --bs-btn-hover-bg: #8a2f27; --bs-btn-hover-border-color: #8a2f27; --bs-btn-active-bg: #742720; --bs-btn-active-border-color: #742720; }
.btn-dark { --bs-btn-bg: #23211c; --bs-btn-border-color: #23211c; --bs-btn-hover-bg: #3a372f; --bs-btn-hover-border-color: #3a372f; }

.form-control,
.form-select,
.list-group-item-action {
  min-height: 44px;
}
.form-control, .form-select { border-radius: 8px; border-color: #d3cbbb; background-color: var(--mhc-card); color: var(--mhc-ink); }
.form-control::placeholder { color: #9a9385; }
.form-control:focus, .form-select:focus { border-color: #c2410c; box-shadow: 0 0 0 3px rgba(194, 65, 12, .14); background-color: var(--mhc-card); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--mhc-ink); }
.form-text { color: var(--mhc-muted); }
.form-check-input { border-color: #b9b09e; background-color: var(--mhc-card); }
.form-check-input:checked { background-color: #c2410c; border-color: #c2410c; }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(194, 65, 12, .14); border-color: #c2410c; }
.form-check-label { padding: 0.55rem 0; }
.form-control-color { min-height: 44px; }

.card { border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius); box-shadow: none; background: var(--mhc-card); }
.card-body { padding: 1.15rem 1.25rem; }
.card-header { background: transparent; border-bottom-color: var(--mhc-border); font-weight: 700; padding: .9rem 1.25rem; }
.card-header:first-child { border-radius: var(--mhc-radius) var(--mhc-radius) 0 0; }
.card-footer { background: transparent; border-top-color: var(--mhc-border); }

.list-group { --bs-list-group-border-color: var(--mhc-border); --bs-list-group-bg: var(--mhc-card); border-radius: var(--mhc-radius); }
.list-group-item { padding: .85rem 1.1rem; color: var(--mhc-text); }
.list-group-item-action { display: flex; align-items: center; gap: .5rem; }
.list-group-item-action:hover { background: var(--mhc-sunken); }

.table { --bs-table-bg: transparent; --bs-table-color: var(--mhc-text); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .75rem .9rem; border-bottom-color: var(--mhc-border); }
.table thead th { font-size: .8rem; font-weight: 600; color: var(--mhc-muted); background: var(--mhc-sunken); white-space: nowrap; }
.table-responsive, main > section > .table, main section > table.table {
  background: var(--mhc-card); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius); overflow: hidden;
}
.table-responsive { overflow-x: auto; }
.card .table-responsive, .card .table { border: 0; }

/* Rozetler: renkli kutu yerine sade etiket; durum rengi yalnızca baştaki noktada. */
.badge { font-weight: 600; padding: .32em .6em; border-radius: 6px; display: inline-flex; align-items: center; gap: .4em; }
.text-bg-success, .text-bg-warning, .text-bg-danger, .text-bg-secondary, .text-bg-light, .text-bg-info, .text-bg-primary { background: #efebe2 !important; color: #45413a !important; }
.badge.text-bg-success::before, .badge.text-bg-warning::before, .badge.text-bg-danger::before, .badge.text-bg-primary::before { content: ""; width: .45em; height: .45em; border-radius: 50%; flex: 0 0 auto; }
.badge.text-bg-success::before { background: #3e6b48; }
.badge.text-bg-warning::before { background: #b07a2a; }
.badge.text-bg-danger::before { background: #a13c33; }
.badge.text-bg-primary::before { background: #c2410c; }
.mhc-count.text-bg-danger, .badge.text-bg-danger[data-badge] { background: var(--mhc-primary) !important; color: #fff !important; }
.mhc-count.text-bg-danger::before, .badge.text-bg-danger[data-badge]::before { content: none; }

/* Uyarılar: renkli kutu yerine kart zemini + solda ince durum çizgisi. */
.alert { border-radius: var(--mhc-radius-sm); border: 1px solid var(--mhc-border); border-left-width: 3px; padding: .8rem 1rem; background: var(--mhc-card); color: var(--mhc-ink); }
.alert-success { border-left-color: #3e6b48; }
.alert-danger { border-left-color: #a13c33; }
.alert-warning { border-left-color: #b07a2a; }
.alert-info, .alert-secondary, .alert-light { border-left-color: #b9b09e; background: var(--mhc-sunken); }
.mhc-flash { display: flex; align-items: center; gap: .5rem; }

.nav-tabs, .nav-pills { gap: .35rem; border: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-tabs .nav-link, .nav-pills .nav-link { border: 1px solid var(--mhc-border-strong); border-radius: 8px; color: #45413a; font-weight: 600; background: var(--mhc-card); white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { background: var(--mhc-ink); border-color: var(--mhc-ink); color: var(--mhc-bg); }

details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: .4rem; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin: 0 .35rem 0 .15rem; }
details[open] > summary::before { transform: rotate(45deg); }

hr { border-color: var(--mhc-border); opacity: 1; }
dl dt { font-weight: 600; color: var(--mhc-ink); }

/* İçerik formları kartlaşır: tek sütunlu sayfalarda okunaklı genişlik. */
.mhc-narrow { max-width: 40rem; }

/* Giriş/kayıt sayfaları: ortalanmış kart. */
.mhc-auth-page .mhc-main { display: flex; align-items: flex-start; justify-content: center; padding-top: 3rem; }
.mhc-auth-page .mhc-narrow {
  max-width: 28rem; margin: 0 auto; background: var(--mhc-card); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius);
  padding: 2rem 1.75rem;
}
.mhc-auth-page .mhc-narrow h1 { font-size: 1.85rem; }
.mhc-auth-page .mhc-narrow .btn-primary[type="submit"] { width: 100%; min-height: 50px; }
.mhc-auth-page .mhc-narrow > p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .mhc-auth-page .mhc-main { padding-top: 1.25rem; }
  .mhc-auth-page .mhc-narrow { padding: 1.5rem 1.25rem; }
}

/* ---------- Sayfa parçaları ---------- */
.mhc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mhc-page-head h1 { margin: 0; }
.mhc-page-head p { margin: .35rem 0 0; color: var(--mhc-muted); }
.mhc-eyebrow { font-size: .9rem; font-weight: 500; color: var(--mhc-muted); margin-bottom: .2rem; }

/* Panel ana sayfası: okutma çağrısı düz bir kart; gradyan ve süs yok. */
.mhc-scan-panel {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; border-radius: var(--mhc-radius);
  background: var(--mhc-card); border: 1px solid var(--mhc-border); border-left: 3px solid var(--mhc-primary);
}
.mhc-scan-panel h2 { font-family: var(--mhc-display); font-weight: 600; font-size: 1.4rem; margin: 0 0 .3rem; }
.mhc-scan-panel p { margin: 0; color: var(--mhc-muted); max-width: 32rem; }
.mhc-scan-panel .btn { align-self: stretch; }
@media (min-width: 576px) {
  .mhc-scan-panel { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.35rem 1.5rem; }
  .mhc-scan-panel .btn { align-self: center; flex: 0 0 auto; }
}

/* Sayı şeridi: tek çerçeve içinde ince çizgiyle ayrılmış değerler (panel ana sayfası, raporlar). Çizgiler 1px aralıktan gelir. */
.mhc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--mhc-border); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius); overflow: hidden; }
.mhc-stats > div { padding: .85rem 1rem; background: var(--mhc-card); }
.mhc-stats dt { font-size: .82rem; font-weight: 500; color: var(--mhc-muted); }
.mhc-stats dd { margin: .15rem 0 0; font-family: var(--mhc-display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: var(--mhc-ink); }
@media (min-width: 768px) { .mhc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Tek sayıda kutuda son satırın boşluğu kart renginde kalsın. */
.mhc-stats::after { content: ""; min-height: 1px; margin-top: -1px; background: var(--mhc-card); grid-column: auto / -1; }

/* Yönetim bağlantıları: renkli kutucuklar yerine tek tip liste satırları (masaüstünde iki sütun). */
.mhc-tiles { display: grid; grid-template-columns: 1fr; background: var(--mhc-card); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius); overflow: hidden; }
@media (min-width: 768px) {
  .mhc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mhc-tiles .mhc-tile:nth-child(odd) { border-right: 1px solid var(--mhc-border); }
}
.mhc-tile {
  position: relative; display: flex; align-items: center; gap: .85rem; min-height: 64px; padding: .7rem 1rem;
  border-bottom: 1px solid var(--mhc-border); margin-bottom: -1px; color: var(--mhc-text); text-decoration: none;
}
.mhc-tile:hover { background: var(--mhc-sunken); color: var(--mhc-text); }
.mhc-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 8px; background: var(--mhc-sunken); color: var(--mhc-ink); }
.mhc-tile:hover .mhc-tile-icon { background: var(--mhc-card); }
.mhc-tile-title { font-weight: 600; font-size: .96rem; line-height: 1.25; }
.mhc-tile-sub { font-size: .82rem; color: var(--mhc-muted); line-height: 1.3; }
.mhc-tile .mhc-count { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); }

.mhc-section-title { display: flex; align-items: center; justify-content: space-between; margin: 2rem 0 .75rem; }
.mhc-section-title h2 { font-size: 1.05rem; margin: 0; }
.mhc-more-link { display: inline-flex; align-items: center; gap: .2rem; min-height: 44px; font-weight: 600; font-size: .9rem; color: var(--mhc-ink); text-decoration: none; }
.mhc-more-link:hover { color: var(--mhc-primary); }
.mhc-more-link .mhc-i { width: 1rem; height: 1rem; }

.mhc-empty { text-align: center; padding: 2.25rem 1rem; color: var(--mhc-muted); background: var(--mhc-card); border: 1px dashed var(--mhc-border-strong); border-radius: var(--mhc-radius); }
.mhc-empty > .mhc-i { width: 2.25rem; height: 2.25rem; color: #b9b09e; margin-bottom: .5rem; }

.mhc-status-card { display: flex; align-items: center; gap: .9rem; }
.mhc-status-card .mhc-avatar { width: 52px; height: 52px; border-radius: 12px; font-size: 1.4rem; }

.mhc-map {
  height: 320px;
  border: 1px solid var(--mhc-border);
  border-radius: var(--mhc-radius);
}

/* ---------- Okut ekranı ---------- */
.mhc-scan-wrap { max-width: 34rem; margin: 0 auto; }
.mhc-scan-stage {
  position: relative; overflow: hidden; border-radius: var(--mhc-radius); background: #23211c; color: #fff; aspect-ratio: 1 / 1; max-height: 64vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.mhc-scan-video {
  position: absolute; inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  background: #000;
  object-fit: cover;
}
.mhc-scan-frame { position: absolute; inset: 14%; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
.mhc-scan-frame::before, .mhc-scan-frame::after { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 3px solid transparent; }
.mhc-scan-frame::before { border-top-color: #fff; border-left-color: #fff; clip-path: polygon(0 0, 30% 0, 30% 3px, 3px 3px, 3px 30%, 0 30%); }
.mhc-scan-frame::after { border-bottom-color: #fff; border-right-color: #fff; clip-path: polygon(100% 100%, 70% 100%, 70% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 70%, 100% 70%); }
.mhc-scan-video[hidden] ~ .mhc-scan-frame { display: none; }
.mhc-scan-idle { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.5rem; text-align: center; }
.mhc-scan-idle .mhc-scan-glyph { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; border: 1.5px dashed rgba(246, 243, 236, .35); color: #f6f3ec; }
.mhc-scan-idle .mhc-scan-glyph .mhc-i { width: 44px; height: 44px; }
.mhc-scan-idle p { margin: 0; color: rgba(246, 243, 236, .75); max-width: 18rem; }
.mhc-scan-stage:has(video:not([hidden])) .mhc-scan-idle { display: none; }
#camera-open { min-height: 54px; font-size: 1.05rem; }
.mhc-manual { background: var(--mhc-card); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius); padding: .35rem 1.1rem; }
.mhc-manual[open] { padding-bottom: 1.1rem; }

#scan-result .card-body .fw-semibold { font-size: 1.05rem; }
.mhc-customer-card { display: flex; align-items: center; gap: .9rem; }
.mhc-customer-card .mhc-avatar { width: 52px; height: 52px; border-radius: 50%; }

.mhc-big-ok {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3e6b48;
  text-align: center;
}
.mhc-done { text-align: center; padding: 2rem 1rem 1rem; }
.mhc-done-check { width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e4ece2; color: #3e6b48; animation: mhc-pop .35s ease-out; }
.mhc-done-check .mhc-i { width: 46px; height: 46px; }
@keyframes mhc-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Müşteri cüzdanı: QR beyaz zemin üzerinde büyük (şartname 7.3). ---------- */
/* Düz koyu kart: gerçek bir sadakat kartı gibi; gradyan yok. */
.mhc-wallet-pass {
  max-width: 24rem; margin: 0 auto 1.5rem; border-radius: 16px; overflow: hidden;
  background: var(--mhc-ink); color: var(--mhc-bg); padding: 1.1rem 1.1rem 1.25rem;
}
.mhc-wallet-pass-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; font-family: var(--mhc-display); font-weight: 600; font-size: 1.1rem; }
.mhc-wallet-pass-head small { font-family: var(--mhc-font); font-size: .85rem; font-weight: 500; opacity: .8; }
.mhc-wallet-qr {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  border: 0;
  max-width: 20rem;
  margin: 0 auto;
  color: var(--mhc-text);
}
.mhc-wallet-qr img {
  width: 100%;
  height: auto;
  display: block;
}
.mhc-totp { font-size: 2.1rem; font-weight: 700; letter-spacing: .25em; margin: 0; font-variant-numeric: tabular-nums; color: var(--mhc-ink); }

.mhc-loyalty-card { background: var(--mhc-card); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius); padding: 1rem 1.1rem; margin-bottom: .75rem; }
.mhc-stamp-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mhc-stamp-dots span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px dashed var(--mhc-border-strong);
  background: transparent;
}
.mhc-stamp-dots span.is-full {
  background: var(--mhc-primary);
  border: 1.5px solid var(--mhc-primary);
}

.mhc-prewrap {
  white-space: pre-line;
}

.mhc-ios-icon {
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* ---------- Müşteri ana sayfası (harita) ---------- */
.mhc-discover-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mhc-discover-head h1 { margin: 0; font-size: 2.1rem; }
.mhc-discover-head p { margin: .35rem 0 0; color: var(--mhc-muted); max-width: 36rem; }
.mhc-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.mhc-filterbar .form-select { width: auto; min-width: 9rem; flex: 1 1 9rem; font-weight: 500; }
.mhc-toggle { position: relative; display: inline-flex; flex: 0 0 auto; }
.mhc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mhc-toggle label { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .9rem; border-radius: 8px; border: 1px solid var(--mhc-border-strong); background: var(--mhc-card); font-weight: 600; font-size: .9rem; cursor: pointer; color: #45413a; user-select: none; }
.mhc-toggle input:checked + label { background: var(--mhc-ink); border-color: var(--mhc-ink); color: var(--mhc-bg); }
.mhc-toggle input:focus-visible + label { box-shadow: 0 0 0 3px rgba(194, 65, 12, .25); }

/* Doğrulama kodu alanları: büyük, aralıklı rakamlar. */
input[autocomplete="one-time-code"], #manual-code { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Onay kutusu ile etiketi aynı hizada. */
.form-check { display: flex; align-items: center; gap: .55rem; padding-left: 0; min-height: 44px; }
.form-check .form-check-input { float: none; margin: 0; width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.form-check.form-switch .form-check-input { width: 2.4rem; }
.form-check-inline { display: inline-flex; margin-right: 1rem; }

/* Mobilde iki filtre anahtarı yan yana. */
@media (max-width: 575.98px) {
  .mhc-filterbar .mhc-toggle { flex: 1 1 0; }
  .mhc-filterbar .mhc-toggle label { width: 100%; justify-content: center; padding: .4rem .6rem; font-size: .85rem; }
}

/* Hata yokken boş doğrulama özeti görünmez. */
.validation-summary-valid { display: none; }
.field-validation-error, .text-danger { font-size: .85rem; }
.text-danger { color: #a13c33 !important; }
.text-success { color: #3e6b48 !important; }

/* Uzun formlar kart içinde (kart içindeki ve giriş sayfasındaki formlar hariç). */
.mhc-app:not(.mhc-auth-page) .mhc-main form[method="post"]:has(> .mb-3 > .form-label, > .row .form-label):not(.card form) {
  background: var(--mhc-card); border: 1px solid var(--mhc-border); border-radius: var(--mhc-radius);
  padding: 1.5rem; max-width: 48rem;
}
@media (max-width: 575.98px) {
  .mhc-app:not(.mhc-auth-page) .mhc-main form[method="post"]:has(> .mb-3 > .form-label, > .row .form-label):not(.card form) { padding: 1.1rem; }
}

/* ---------- Mobil menü (☰): üst çubuğun altından aşağı açılan panel ---------- */
.mhc-when-open { display: none; }
body.mhc-menu-open .mhc-when-open { display: inline; }
body.mhc-menu-open .mhc-when-closed { display: none; }
body.mhc-menu-open { overflow: hidden; }
.mhc-backdrop {
  position: fixed; inset: 0; z-index: 1032; background: rgba(35, 33, 28, .36); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
body.mhc-menu-open .mhc-backdrop { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.mhc-topbar, .mhc-header { z-index: 1040; }

@media (max-width: 991.98px) {
  .mhc-app-panel .mhc-sidebar {
    position: fixed; left: 0; right: 0; top: 60px; z-index: 1036; display: flex; flex-direction: column; gap: .75rem;
    max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); background: var(--mhc-bg);
    border-radius: 0 0 16px 16px; box-shadow: var(--mhc-shadow-lg);
    transform: translateY(-16px); opacity: 0; visibility: hidden;
    transition: transform .22s ease, opacity .18s ease, visibility 0s linear .22s;
  }
  body.mhc-menu-open .mhc-sidebar { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .18s ease; }
  .mhc-app-panel .mhc-sidebar > .mhc-logo { display: none; }
  .mhc-app-panel .mhc-side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .mhc-app-panel .mhc-side-title { grid-column: 1 / -1; margin-top: .6rem; }
  .mhc-app-panel .mhc-side-nav a { background: var(--mhc-card); border: 1px solid var(--mhc-border); min-height: 48px; font-size: .9rem; }
  .mhc-app-panel .mhc-side-nav a.is-active { box-shadow: inset 3px 0 0 var(--mhc-primary); }
  .mhc-app-panel .mhc-side-logout { margin-top: .25rem; }
}
@media (min-width: 992px) {
  .mhc-app-panel .mhc-backdrop { display: none; }
}

.mhc-side-logout { display: flex; flex-direction: column; gap: 2px; }
.mhc-side-logout form { margin: 0; }
.mhc-side-logout .mhc-install-link { color: var(--mhc-ink); font-weight: 600; }
.mhc-side-logout .mhc-install-link:hover { color: var(--mhc-ink); background: var(--mhc-sunken); }

/* Müşteri: masaüstünde üst bağlantılar, mobilde ☰ menü. */
.mhc-mobile-only { display: none !important; }
@media (max-width: 767.98px) {
  .mhc-desktop-only { display: none !important; }
  .mhc-mobile-only { display: inline-flex !important; }
}
.mhc-drawer {
  position: fixed; left: 0; right: 0; top: 60px; z-index: 1036; display: flex; flex-direction: column; gap: .75rem;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); background: var(--mhc-bg);
  border-radius: 0 0 16px 16px; box-shadow: var(--mhc-shadow-lg);
  transform: translateY(-16px); opacity: 0; visibility: hidden;
  transition: transform .22s ease, opacity .18s ease, visibility 0s linear .22s;
}
body.mhc-menu-open .mhc-drawer { transform: none; opacity: 1; visibility: visible; transition: transform .22s ease, opacity .18s ease; }
@media (min-width: 768px) {
  .mhc-drawer, .mhc-app-customer .mhc-backdrop { display: none; }
}
.mhc-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.mhc-drawer-nav a { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .5rem .9rem; border-radius: 8px; background: var(--mhc-card); border: 1px solid var(--mhc-border); color: var(--mhc-text); font-weight: 600; text-decoration: none; }
.mhc-drawer-nav a .mhc-i { color: #8a8375; }
.mhc-drawer-nav a.is-active { box-shadow: inset 3px 0 0 var(--mhc-primary); }
.mhc-drawer-nav a.is-active .mhc-i { color: var(--mhc-primary); }
.mhc-drawer form { margin: 0; }

/* ---------- "Uygulamayı indir" ---------- */
.mhc-sheet {
  border: 0; border-radius: 16px; padding: 1.25rem; width: calc(100% - 2rem); max-width: 26rem; background: var(--mhc-bg);
  box-shadow: var(--mhc-shadow-lg); color: var(--mhc-text);
}
.mhc-sheet::backdrop { background: rgba(35, 33, 28, .45); }
.mhc-sheet[open] { animation: mhc-sheet-in .22s ease-out; }
@keyframes mhc-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 575.98px) {
  .mhc-sheet { margin: auto 0 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}
.mhc-sheet-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1rem; }
.mhc-sheet-icon .mhc-logo-mark { width: 48px; height: 48px; }
.mhc-steps { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .6rem; counter-reset: step; }
.mhc-steps li { display: flex; align-items: center; gap: .8rem; padding: .75rem .85rem; border-radius: 8px; background: var(--mhc-card); border: 1px solid var(--mhc-border); font-weight: 500; }
.mhc-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px; background: var(--mhc-sunken); color: var(--mhc-ink); }

/* Ana sayfadaki indirme kartı: tek ince satır; çağrı tekrarını azaltır. */
.mhc-install-card {
  display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem; margin-bottom: 1.25rem; border-radius: var(--mhc-radius); color: var(--mhc-ink);
  background: var(--mhc-card); border: 1px solid var(--mhc-border);
}
.mhc-install-card[hidden] { display: none; }
.mhc-install-card .mhc-logo-mark { width: 40px; height: 40px; }
.mhc-install-card strong { display: block; font-size: .98rem; }
.mhc-install-card span.small { color: var(--mhc-muted); }
.mhc-install-card .btn { margin-left: auto; flex: 0 0 auto; }

button.mhc-icon-btn { border: 0; background: transparent; padding: 0; }
body.mhc-menu-open [data-menu-toggle] { background: var(--mhc-sunken); color: var(--mhc-ink); }
@media (max-width: 400px) {
  .mhc-install-card { flex-wrap: wrap; }
  .mhc-install-card > div { flex: 1 1 10rem; }
  .mhc-install-card .btn { margin-left: 0; width: 100%; }
}
