/* Kernel Sadakat — ortak stil.
   Müşteri kartı ve personel uygulaması: marka dünyası (RAL 5013 kobalt zemin, logonun turuncusu).
   Yönetim paneli: açık/koyu temaya uyan sade çalışma ekranı. */
:root {
  --bg: #F2F1EE; --surface: #FFFFFF; --surface-2: #E9E7E2; --ink: #14223A; --ink-2: #566175; --line: #D9DCE2;
  --primary: #193153; --primary-ink: #FFFFFF; --accent: #B9401B; --accent-soft: #FBE3DA; --accent-ink: #FFFFFF;
  --good: #2E6A3D; --good-soft: #DCEBDF; --warn: #8A5A00; --warn-soft: #F4E7C8;
  --slot-line: rgba(25, 49, 83, .35); --gift-ink: #B9401B; --stamp: #F06038; --peach: #FCD9BB;
  --shadow: 0 1px 0 rgba(20, 34, 58, .04), 0 10px 26px -14px rgba(20, 34, 58, .22);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.app-admin {
    --bg: #0E1626; --surface: #16213A; --surface-2: #1E2B47; --ink: #ECEFF5; --ink-2: #A3ADC2; --line: #2B3955;
    --primary: #F06038; --primary-ink: #1A0E09; --accent: #F58A63; --accent-soft: #3A1E14; --accent-ink: #1A0E09;
    --good: #7CC28D; --good-soft: #1C2E21; --warn: #E2B45A; --warn-soft: #33290F; --slot-line: rgba(236, 239, 245, .35); --gift-ink: #F58A63;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] body.app-admin {
  --bg: #0E1626; --surface: #16213A; --surface-2: #1E2B47; --ink: #ECEFF5; --ink-2: #A3ADC2; --line: #2B3955;
  --primary: #F06038; --primary-ink: #1A0E09; --accent: #F58A63; --accent-soft: #3A1E14; --accent-ink: #1A0E09;
  --good: #7CC28D; --good-soft: #1C2E21; --warn: #E2B45A; --warn-soft: #33290F; --slot-line: rgba(236, 239, 245, .35); --gift-ink: #F58A63;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* Marka dünyası: tek tema, bilinçli olarak koyu */
body.app-card, body.app-kasa {
  --bg: #193153; --surface: #22406B; --surface-2: #2B4C7C; --ink: #F3EFE6; --ink-2: #C9D2E3; --line: rgba(243, 239, 230, .16);
  --primary: #F06038; --primary-ink: #FFFFFF; --accent: #F6A07F; --accent-soft: rgba(240, 96, 56, .16); --accent-ink: #FFFFFF;
  --good: #8FD3A0; --good-soft: rgba(143, 211, 160, .14); --warn: #F2C46B; --warn-soft: rgba(242, 196, 107, .16);
  --slot-line: rgba(243, 239, 230, .45); --gift-ink: #F6A07F;
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 18px 40px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------- Düğmeler, form ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s, opacity .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { border-color: var(--primary); opacity: .92; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--accent); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); outline: none; }
.input:focus, .select:focus { border-color: var(--stamp); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { min-width: 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--stamp); }
.form-error { color: var(--accent); font-size: 14px; min-height: 1.4em; }
.hint { font-size: 13px; color: var(--ink-2); }
.stack { display: grid; gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill-accent { background: var(--stamp); color: #FFFFFF; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: var(--surface-2); color: var(--ink-2); }

/* ---------------- Damga ızgarası ---------------- */
.kgrid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--kgap, 12px) var(--kgap, 10px); justify-items: center; }
.kstamp { position: relative; width: var(--ks, 56px); max-width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--slot-line); display: grid; place-items: center; }
.kstamp.on { border: 0; background: var(--stamp); transform: rotate(var(--r, 0deg)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.kstamp.on img { width: 78%; height: auto; display: block; }
.kstamp.gift em { font-style: normal; font-family: var(--font-mono); font-size: calc(var(--ks, 56px) * .16); letter-spacing: .08em; color: var(--gift-ink); }
.kstamp.pop { animation: stamp .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes stamp { 0% { transform: scale(1.6) rotate(var(--r, 0deg)); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(var(--r, 0deg)); } }

/* ---------------- Modal, toast ---------------- */
.modal-root { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 26, .6); }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100% - 16px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.modal-x { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--ink-2); }
.modal-x:hover { background: var(--surface-2); }
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(460px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #14223A; color: #F3EFE6; padding: 12px 14px 12px 16px; border-radius: var(--r-md); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); font-size: 14.5px; animation: rise .2s ease-out; }
body.app-card .toast, body.app-kasa .toast { background: #F3EFE6; color: #14223A; }
.toast.error { background: #B9401B; color: #FFFFFF; }
.toast button { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }

/* ---------------- Giriş ---------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); }
.login-card { width: min(420px, 100%); display: grid; gap: 18px; }
.login-card h1 { font-size: 28px; font-weight: 800; }
.login-logo { height: 40px; width: auto; justify-self: start; }

/* =====================================================================
   MÜŞTERİ KARTI VE KAYIT
   ===================================================================== */
.cp { max-width: 460px; margin: 0 auto; padding: 22px var(--gutter) 40px; display: grid; gap: 16px; }
.cp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-top img { height: 34px; width: auto; display: block; }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.cp-hello { font-size: clamp(28px, 8vw, 38px); font-weight: 800; font-stretch: 110%; line-height: 1.05; margin-top: 4px; }
.cp-panel { background: var(--surface); border-radius: var(--r-lg); padding: 20px 18px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.cp-panel .kgrid { --ks: 54px; }
.cp-status { font-size: 16.5px; font-weight: 600; }
.cp-status b { font-family: var(--font-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.cp-reward { background: var(--stamp); color: #FFFFFF; border-radius: var(--r-lg); padding: 18px; display: grid; gap: 4px; }
.cp-reward h2 { font-size: 24px; font-weight: 800; }
.cp-bday { background: var(--peach); color: #14223A; border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 4px; }
.cp-bday h2 { font-size: 19px; font-weight: 800; }
.cp-qr { background: #FFFFFF; color: #14223A; border-radius: var(--r-lg); padding: 18px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.cp-qr .qr { width: min(230px, 70vw); aspect-ratio: 1; max-width: 100%; }
.cp-qr .qr svg { width: 100%; height: 100%; display: block; }
.cp-qr .code { font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: .14em; }
.cp-qr .cap { font-size: 13.5px; color: #4A5568; }
.cp-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.cp-spec div { padding: 12px 14px 0; display: grid; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.cp-spec div:first-child { border-left: 0; padding-left: 0; }
.cp-spec dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cp-spec dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-wallet { display: grid; justify-items: center; gap: 8px; padding: 8px 0; text-align: center; }
.cp-wallet a { display: block; padding: 0; line-height: 0; border-radius: 25px; }
.cp-wallet a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cp-wallet img { display: block; width: 283px; max-width: 100%; height: auto; aspect-ratio: 283 / 50; }
.cp-wallet .cap { font-size: 13px; color: var(--ink-2); max-width: 34ch; }
.cp-activity { background: var(--surface); border-radius: var(--r-lg); padding: 8px 18px; }
.cp-activity ol { list-style: none; margin: 0; padding: 0; }
.cp-activity li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.cp-activity li:first-child { border-top: 0; }
.cp-activity time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.cp-install { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 8px; }
.cp-install h3 { font-size: 16px; font-weight: 750; }
.cp-install ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.cp-foot { text-align: center; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 4px; }
.cp-skeleton { height: 260px; border-radius: var(--r-lg); background: var(--surface); opacity: .6; }
.su-lead { font-size: 16px; color: var(--ink-2); }
.su-perks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.su-perks li { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--surface); }
body.app-card .input, body.app-card .select, body.app-kasa .input { background: rgba(255, 255, 255, .06); border-color: rgba(243, 239, 230, .28); }
body.app-card .select option { color: #14223A; }
.su-form { background: var(--surface); border-radius: var(--r-lg); padding: 20px 18px; display: grid; gap: 14px; }
.su-form .check a { color: var(--accent); }
.su-have { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); font-size: 14px; }

/* =====================================================================
   PERSONEL UYGULAMASI
   ===================================================================== */
.kz { min-height: 100vh; display: flex; flex-direction: column; }
.kz-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.kz-top img { height: 30px; width: auto; display: block; margin-right: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.chip.off .dot { background: var(--warn); }
.chip small { color: var(--ink-2); font-weight: 500; }
.kz-main { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: 20px var(--gutter) 32px; display: grid; gap: 16px; align-content: start; }
.scan { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 60vh; border-radius: var(--r-lg); overflow: hidden; background: #0C1830; }
.scan video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan .frame { position: absolute; inset: 14%; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(8, 14, 26, .45); border: 3px solid rgba(255, 255, 255, .9); }
.scan .msg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.scan .off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; gap: 12px; align-content: center; }
.kz-hint { text-align: center; color: var(--ink-2); font-size: 14px; }
.kz-cust { background: var(--surface); border-radius: var(--r-lg); padding: 22px 20px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.kz-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kz-name h2 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; font-stretch: 110%; }
.kz-cust .kgrid { --ks: 62px; --kgap: 14px; }
.kz-status { font-size: 18px; font-weight: 600; }
.kz-status b { font-family: var(--font-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kz-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md); }
.kz-banner strong { display: block; font-size: 17px; }
.kz-banner.reward { background: var(--stamp); color: #FFFFFF; }
.kz-banner.reward .btn { background: #FFFFFF; color: #B9401B; border-color: #FFFFFF; }
.kz-banner.bday { background: var(--peach); color: #14223A; }
.kz-banner.bday .btn { background: #14223A; color: #FFFFFF; border-color: #14223A; }
.kz-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.kz-actions .btn { min-height: 76px; font-size: 22px; border-radius: var(--r-lg); font-family: var(--font-display); font-weight: 800; }
.kz-after { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 10px auto 0; }
.pinpad button { min-height: 64px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 8px 0 4px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
.barista-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.barista-grid button { min-height: 72px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.code-input { font-family: var(--font-mono); font-size: 28px; letter-spacing: .3em; text-align: center; text-transform: uppercase; min-height: 64px; }
.demo-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* =====================================================================
   YÖNETİM PANELİ
   ===================================================================== */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brandmark img { height: 28px; width: auto; display: block; }
.brandmark span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-right: auto; }
.tabs a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.acct { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
main.adm { padding: 20px var(--gutter) 48px; max-width: 1280px; margin: 0 auto; }
.cust { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.cust-side { display: grid; gap: 14px; position: sticky; top: 76px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-2); }
.search .input { min-height: 52px; padding-left: 44px; font-size: 16px; border-radius: var(--r-lg); }
.bday-strip { display: grid; gap: 6px; }
.bday-strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.bday-strip button { display: inline-flex; gap: 6px; align-items: center; border: 1px dashed var(--line); background: transparent; padding: 5px 10px; border-radius: 999px; font-size: 13px; }
.bday-strip button.now { border-style: solid; border-color: var(--accent); color: var(--accent); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; }
.result:hover { background: var(--surface); border-color: var(--line); }
.result[aria-selected="true"] { background: var(--surface); border-color: var(--primary); }
.result .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .phone { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.result .meta { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; gap: 4px; }
.mini { display: flex; gap: 3px; }
.mini i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--slot-line); }
.mini i.on { background: var(--stamp); border-color: var(--stamp); }
.empty-note { padding: 16px; color: var(--ink-2); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.detail-head { display: flex; gap: 12px 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.detail-head h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.detail-head .sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.detail-head .sub .mono { color: var(--ink); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.passbox { margin: 20px 0 6px; background: #193153; color: #F3EFE6; border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; --slot-line: rgba(243, 239, 230, .45); --gift-ink: #F6A07F; }
.passbox .kgrid { --ks: 50px; }
.passbox .st { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.passbox .st strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.passbox .st span { color: #C9D2E3; }
.history { margin-top: 22px; }
.history h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.history li.undone .what { text-decoration: line-through; color: var(--ink-2); }
.history time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.history .who { color: var(--ink-2); font-size: 13px; }
.detail-empty { display: grid; place-items: center; text-align: center; min-height: 380px; gap: 10px; }
.detail-empty p { color: var(--ink-2); max-width: 38ch; }
.back-btn { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.chips button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kpi { background: var(--surface); padding: 16px 18px; display: grid; gap: 2px; }
.kpi .v { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .k { font-size: 13px; color: var(--ink-2); }
.kpi .k b { color: var(--ink); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.section-title h2 { font-size: 17px; font-weight: 750; }
.chart { margin-top: 18px; }
.bars { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 3px; padding-left: 34px; }
.bars .grid { position: absolute; left: 34px; right: 0; border-top: 1px dashed var(--line); }
.bars .grid span { position: absolute; left: -34px; top: -9px; width: 28px; text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.bars .col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars .bar { width: 100%; max-width: 34px; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 1px; }
.bars .col.today .bar { background: var(--stamp); }
.bars .rw { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); border: 2px solid var(--surface); transform: translateY(50%); }
.bar-labels { display: flex; gap: 3px; padding-left: 34px; margin-top: 6px; }
.bar-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.undone td { color: var(--ink-2); text-decoration: line-through; }
.linkish { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-list li { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.team-list li:first-child { border-top: 0; }
.team-list .tname { font-weight: 700; font-size: 16px; margin-right: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.switch input { width: 40px; height: 24px; appearance: none; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.switch input:checked { background: var(--good); }
.switch input:checked::after { transform: translateX(16px); }
.narrow { max-width: 640px; }
.qr-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.qr { width: 168px; aspect-ratio: 1; max-width: 100%; background: #FFFFFF; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.link-box { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; word-break: break-all; user-select: all; }
.skeleton { height: 220px; border-radius: var(--r-lg); background: var(--surface-2); }
/* Kasa afişi (A5 / A4 yazdırılır) */
.poster-wrap { display: grid; gap: 16px; justify-items: start; }
.poster { width: min(560px, 100%); aspect-ratio: 1 / 1.414; background: #193153; color: #F3EFE6; border-radius: 12px; padding: clamp(24px, 7vw, 40px) clamp(20px, 7vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; gap: 18px; justify-items: center; text-align: center; box-shadow: var(--shadow); }
.poster img { width: 52%; height: auto; }
.poster h2 { font-size: clamp(22px, 5vw, 34px); font-weight: 800; font-stretch: 110%; line-height: 1.1; }
.poster .pq { background: #FFFFFF; border-radius: 14px; padding: 3.5%; width: 66%; align-self: center; }
.poster .pq svg { width: 100%; height: auto; display: block; }
.poster ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6%; justify-content: center; font-size: clamp(11px, 2.2vw, 14px); color: #C9D2E3; }
.poster ol b { color: #F6A07F; font-family: var(--font-mono); }
.poster .rule { font-family: var(--font-mono); font-size: clamp(11px, 2.2vw, 14px); letter-spacing: .1em; color: #F6A07F; text-transform: uppercase; }
@media print {
  body.app-admin { background: #FFFFFF; }
  body.printing .topbar, body.printing .page-head, body.printing .no-print, body.printing .toasts { display: none !important; }
  body.printing main.adm { padding: 0; }
  body.printing .poster { width: 100%; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.demo-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px var(--gutter); background: #0B1322; color: #F3EFE6; font-size: 13px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; }
.demo-bar b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #F6A07F; }
.demo-bar .seg { display: inline-flex; border: 1px solid rgba(243, 239, 230, .3); border-radius: 999px; overflow: hidden; flex-wrap: wrap; }
.demo-bar .seg button { border: 0; background: transparent; color: inherit; padding: 4px 12px; font-size: 13px; min-height: 30px; }
.demo-bar .seg button[aria-pressed="true"] { background: #F3EFE6; color: #0B1322; }

@media (max-width: 860px) {
  .cust { grid-template-columns: minmax(0, 1fr); }
  .cust-side { position: static; }
  .cust.has-detail .cust-side { display: none; }
  .cust:not(.has-detail) .cust-detail { display: none; }
  .back-btn { display: inline-flex; margin: -6px 0 8px -10px; }
  .panel { padding: 18px; }
  .history li { grid-template-columns: 1fr auto; }
  .history time { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .qr-box { grid-template-columns: 1fr; justify-items: center; }
  .cp-panel .kgrid { --ks: 48px; --kgap: 8px; }
  .kz-cust .kgrid { --ks: 54px; --kgap: 8px; }
  .passbox .kgrid { --ks: 44px; --kgap: 8px; }
  .kz-actions .btn { min-height: 68px; }
}
