/* ==========================================================================
   OPTIFLOW — "Atelier" tasarım dili
   Fildişi kâğıt, gece moru, şampanya altını. Fraunces (başlık) · Manrope (arayüz)
   · IBM Plex Mono (reçete). Tek stil dosyası; koyu tema otomatik.
   Okunabilirlik notu: büyük başlıklarda serif/italik imza korunur; sık okunan
   etiketler (form alanları, tablo başlıkları, reçete tabloları) daha az
   sıkıştırılmış harf aralığı ve dik (italik olmayan) ağırlıkla yazılır.
   ========================================================================== */

/* ---------- Yazı tipleri (yerel, harici istek yok) ---------- */
/* Fraunces: sabit (variable olmayan) sürümler — eski macOS/Windows tarayıcıları
   değişken fontları yanlış gliflerle basabiliyordu; bu dosyalar her yerde
   birebir aynı ve Türkçe karakterleri eksiksiz içeriyor. */
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-500-italic.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+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("fonts/fraunces-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02FF, U+20A0-20C0; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-display: swap; font-weight: 500;
  src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02FF, U+20A0-20C0; }

/* ---------- Tasarım belirteçleri ----------
   Palet: fildişi kâğıt zemin (değişmedi) + mürekkep moru imza + amber vurgu.
   Tüm metin/zemin çiftleri WCAG AA (≥ 4.5:1) doğrulandı.
   Eski ad kalıpları (--wine, --gold) geriye dönük uyum için korunur;
   yeni kodda --brand / --accent adlarını kullanın.
   ------------------------------------------------------------------------ */
:root {
  /* 4.19.0 "Bordo" — siyah menü, bordo vurgu, dolu ve sıcak yüzeyler. Başlıklar sans (Manrope).
     Metin/zemin çiftleri WCAG AA. */
  --paper: #f5f3f3;
  --paper-2: #ebe6e7;
  --surface: #ffffff;
  --surface-2: #faf7f7;
  --surface-3: #f1ecec;
  --line: #e8e1e2;
  --line-strong: #d6cccd;
  --ink: #1b1416;
  --ink-2: #463b3e;
  --muted: #776b6e;

  /* imza: bordo */
  --brand: #b4233c;
  --brand-deep: #7e1528;
  --brand-bright: #d0334f;
  --brand-ink: #8f1a2e;
  --brand-soft: #fbe4e8;
  --brand-tint: #fdf1f3;

  /* vurgu: aynı bordo ailesi (eski 'gold' adları buraya bağlanır) */
  --accent: #b4233c;
  --accent-bright: #ff6b81;
  --accent-soft: #fbe4e8;
  --accent-ink: #8f1a2e;

  /* gece yüzeyleri (menü, başlık bandı, masaüstü çubuğu) */
  --night: #141012;
  --night-2: #1e171a;
  --night-3: #2c1b21;
  --on-night: #f3eef0;
  --on-night-muted: #ab9fa3;

  --grad: linear-gradient(135deg, #d0334f 0%, #8f1a2e 100%);
  --band: radial-gradient(80% 140% at 100% 0%, rgba(255, 107, 129, .30), transparent 55%), linear-gradient(120deg, #1a1214 0%, #3a1520 100%);

  /* eski adlar (uyumluluk) */
  --wine: var(--brand);
  --wine-deep: var(--brand-deep);
  --wine-ink: var(--brand-ink);
  --wine-soft: var(--brand-soft);
  --gold: var(--accent);
  --gold-bright: var(--accent-bright);
  --gold-soft: var(--accent-soft);
  --gold-ink: var(--accent-ink);
  --wa: #0f7f51;

  /* durum tonları — sakin, doygunluğu düşük */
  --blue: #2149c9;   --blue-bg: #e3ecff;
  --teal: #0f6f66;   --teal-bg: #d8f3f0;
  --green: #157347;  --green-bg: #dcf3e6;
  --amber: #9a5b00;  --amber-bg: #fdefd6;
  --violet: #5b3fd1; --violet-bg: #ece6ff;
  --red: #b42323;    --red-bg: #fde2e2;
  --gray: #5f5558;   --gray-bg: #efe9ea;

  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(40, 14, 22, .05);
  --shadow: 0 1px 2px rgba(40, 14, 22, .05), 0 16px 36px -26px rgba(60, 14, 28, .28);
  --shadow-lg: 0 30px 80px -40px rgba(30, 8, 15, .5), 0 2px 6px rgba(30, 8, 15, .05);
  --focus: 0 0 0 3px rgba(180, 35, 60, .22);
  --sidebar: 268px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --serif: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* 4.19.0: serif başlık kullanılmıyor */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --grain: none;
  color-scheme: light;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 560 15px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--gold-soft); color: var(--ink); }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
b, strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }
svg.ic { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--surface); border-radius: 8px; }
.skip:focus { left: 8px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.text-danger { color: var(--red); }
.text-ok { color: var(--green); }
.text-warn { color: var(--amber); }
.mt { margin-top: 16px; }
.link { color: var(--wine-ink); text-decoration: none; font-weight: 650; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 1px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--gold-ink); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* ---------- İskelet ---------- */
.app { display: flex; min-height: 100vh; }
.main-col { flex: 1; min-width: 0; margin-left: var(--sidebar); }
.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 34px 44px 80px; }
@media (prefers-reduced-motion: no-preference) {
  .content > * { animation: rise .55s var(--ease) both; }
  .content > *:nth-child(2) { animation-delay: .04s; }
  .content > *:nth-child(3) { animation-delay: .08s; }
  .content > *:nth-child(4) { animation-delay: .12s; }
  .content > *:nth-child(n+5) { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Kenar çubuğu ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar);
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 18px calc(18px + env(safe-area-inset-bottom));
  color: var(--ink-2);
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(180, 35, 60, .10), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(60, 14, 28, .06), transparent 70%),
    var(--surface-2);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(180, 35, 60, .3), transparent); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; color: var(--wine-ink); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text b { display: block; font: 700 19px/1.05 var(--sans); letter-spacing: -.005em; color: var(--ink); }
.brand-text small { display: block; margin-top: 4px; font: 700 12.5px/1 var(--sans); letter-spacing: .10em; text-transform: uppercase; color: var(--gold-ink); }

.new-order.btn { margin: 0 2px 18px; min-height: 46px; border: 1px solid var(--wine); background: linear-gradient(180deg, #3a1520, var(--brand-deep)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -14px rgba(20, 16, 18, .55); }
.new-order.btn:hover { background: linear-gradient(180deg, #3a1520, #000000); border-color: var(--wine-deep); }

.nav-label { margin: 14px 10px 6px; font: 700 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: color .2s, background .2s;
}
.nav a .ic { opacity: .7; }
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.nav a.active { color: #fff; background: linear-gradient(120deg, var(--brand-bright) 0%, var(--brand-deep) 100%); box-shadow: 0 10px 22px -10px rgba(20, 16, 18, .6); }
.nav a.active .ic { color: var(--gold-bright); opacity: 1; }
.nav a.active .count { background: #fff; color: var(--wine-deep); }
.nav .count { margin-left: auto; min-width: 22px; padding: 2px 7px; border-radius: 99px; background: var(--wine); color: #fff; font: 700 11px/1.3 var(--sans); font-style: normal; text-align: center; }

.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 16px 6px 0; border-top: 1px solid var(--line); }
.sidebar-user .who { flex: 1; min-width: 0; }
.sidebar-user b { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { display: block; font-size: 12px; color: var(--muted); }
.sidebar-user form { margin: 0; }
.sidebar .icon-btn { color: var(--muted); }
.sidebar .icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.sidebar .avatar { background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1px rgba(180, 35, 60, .3); }

.topbar { display: none; }
.scrim { display: none; }

@media (max-width: 1023px) {
  .main-col { margin-left: 0; }
  .sidebar { transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(20, 16, 18, .5); backdrop-filter: blur(2px); }
  .topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: rgba(20, 16, 18, .96); color: #f3eef0;
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(180, 35, 60, .2);
  }
  .topbar .icon-btn { color: #f3eef0; }
  .topbar .brand { flex: 1; padding: 0; gap: 9px; }
  .topbar .brand-mark { width: 30px; height: 30px; }
  .topbar .brand b { font: 700 17px var(--sans); color: #fff; }
  .topbar .brand-mark { color: var(--accent-bright); }
  .topbar .brand-text small { color: var(--accent-bright); }
  .topbar .icon-btn.accent { background: var(--wine); color: #fff; border-radius: 12px; }
  .content { padding: 22px 16px 90px; }
}

/* ---------- Sayfa başlığı ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 0 0 28px; padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 55%, #ab9fa3 100%);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 26px 60px -28px rgba(20, 16, 18, .5);
}
.page-head::before { content: ""; position: absolute; top: -55%; right: -8%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 129, .4), transparent 70%); pointer-events: none; }
.page-head::after { content: ""; position: absolute; bottom: -70%; left: 8%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none; }
.page-head > * { position: relative; }
.page-head .eyebrow, .page-head .kicker { color: var(--gold-bright); }
.page-head h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 650; letter-spacing: -.02em; color: #fff; }
.page-head h1 em { font-style: italic; color: var(--gold-bright); }
.page-head p { margin-top: 8px; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.page-head p a { color: #fff; font-weight: 650; text-decoration: underline; }
.page-head .btn:not(.btn-primary) { background: rgba(255, 255, 255, .95); border-color: transparent; }
.page-head .btn-primary { background: #fff; color: var(--wine-deep); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
.page-head .btn-primary:hover { background: var(--gold-bright); color: #34230a; }
@media (max-width: 640px) { .page-head { padding: 26px 22px; } }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--muted); text-decoration: none; font: 700 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.back-link:hover { color: var(--wine-ink); }
.back-link .ic { width: 14px; height: 14px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 650 13.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease), color .2s;
}
.btn:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .step-btn:focus-visible { outline: 0; box-shadow: var(--focus); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary {
  border-color: var(--wine-deep); color: #f1f6fa;
  background: linear-gradient(180deg, #3a1520, var(--brand-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -12px rgba(20, 16, 18, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, #3a1520, #000000); border-color: var(--wine-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 26px -12px rgba(20, 16, 18, .8); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn.danger, .btn-ghost.danger { color: var(--red); }
.btn-wa { border-color: transparent; background: var(--wa); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 10px 22px -14px rgba(15, 127, 81, .8); }
.btn-wa:hover { background: #0b6a43; border-color: transparent; }
.btn-sm { min-height: 34px; padding: 6px 13px; font-size: 12.5px; }
.btn-lg { min-height: 50px; padding: 12px 26px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn .ic { width: 16px; height: 16px; }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { background: var(--red-bg); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .ic { width: 15px; height: 15px; }

/* ---------- Kart ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 22px;
}
.card.narrow { max-width: 780px; }
.card.sticky { position: sticky; top: 24px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.card-head h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 500; letter-spacing: -.015em; }
.card-head small { font-size: 12.5px; }
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-ink); font: 600 14px/1 var(--sans); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.field > span, .field legend { color: var(--muted); font: 700 12.5px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font: 500 15px/1.3 var(--sans);
  box-shadow: inset 0 1px 2px rgba(40, 14, 22, .04);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--brand-bright); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus); background: var(--surface); }
input:disabled { background: var(--surface-3); color: var(--muted); }
input.invalid, input[aria-invalid="true"] { border-color: var(--red); background: var(--red-bg); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--wine); margin: 0; flex: none; }
select { appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b4740f' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type="date"] { font-variant-numeric: tabular-nums; }
output.readonly { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--line-strong); font: 700 17px var(--sans); }
fieldset { border: 0; padding: 0; }
.checks { gap: 10px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 500; }
.check-field { flex-direction: row; align-items: center; gap: 10px; padding-top: 24px; font-weight: 600; color: var(--ink-2); font-size: 14px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.gap-lg { gap: 20px; }
.grid.gap-lg > .card { margin-bottom: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-all { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-actions .danger { margin-right: auto; }
.form-layout .card { margin-bottom: 18px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 -6px; padding: 16px 6px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 62%, transparent); }
.inline-form { display: flex; gap: 10px; margin-bottom: 18px; }
.inline-form input { flex: 1; }
form.inline { display: inline; margin-left: 8px; }

@media (max-width: 860px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3 { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: 1 / -1; }
  .check-field { padding-top: 0; }
  .form-actions .btn { flex: 1; }
}

/* ---------- Bildirimler ---------- */
.alert { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 48px 14px 18px; margin-bottom: 20px; border-radius: var(--radius-md); border: 1px solid transparent; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); }
.alert::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18); flex: none; }
.alert .ic { width: 17px; height: 17px; }
.alert-ok { background: var(--green-bg); color: var(--green); border-color: rgba(18, 115, 62, 0.2); }
.alert-error { background: var(--red-bg); color: var(--red); border-color: rgba(189, 28, 51, 0.2); }
.alert-warn { background: var(--amber-bg); color: var(--amber); border-color: rgba(154, 90, 8, 0.2); }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: rgba(24, 87, 168, 0.2); }
.alert-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; opacity: .55; border-radius: 99px; }
.alert-close:hover { opacity: 1; background: rgba(0, 0, 0, .05); }

/* ---------- Rozet, avatar, çip ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--gray-bg); color: var(--gray); font: 700 12.5px/1.2 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: none; }
.badge.sm { padding: 3px 9px 3px 7px; font-size: 10.5px; gap: 5px; }
.badge.sm::before { width: 5px; height: 5px; }
.tone-blue.badge { background: var(--blue-bg); color: var(--blue); }
.tone-teal.badge { background: var(--teal-bg); color: var(--teal); }
.tone-green.badge { background: var(--green-bg); color: var(--green); }
.tone-amber.badge { background: var(--amber-bg); color: var(--amber); }
.tone-violet.badge { background: var(--violet-bg); color: var(--violet); }
.tone-red.badge { background: var(--red-bg); color: var(--red); }
.tone-gray.badge { background: var(--gray-bg); color: var(--gray); }

.avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 999px; background: var(--gold-soft); color: var(--wine-ink); font: 700 14px/1 var(--sans); letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgba(180, 35, 60, 0.45); }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; font-style: italic; background: radial-gradient(circle at 30% 25%, #fff4e2, var(--gold-soft)); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink-2); font: 650 13px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-tint); }
.chip.active, .chip:has(input:checked) { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: flex; gap: 26px; margin-bottom: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 14px; color: var(--muted); text-decoration: none; font: 650 14px/1 var(--sans); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--wine)); border-radius: 2px; }
.tab em { font: 700 13px/1 var(--sans); color: var(--gold-ink); }

/* ---------- İstatistik ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 20px 22px 18px; border: 1px solid var(--line); border-left: 5px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 130%); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; text-align: left; font: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.stat.tone-green { border-left-color: var(--green); background: linear-gradient(165deg, var(--surface) 0%, var(--green-bg) 150%); }
.stat.tone-red { border-left-color: var(--red); background: linear-gradient(165deg, var(--surface) 0%, var(--red-bg) 150%); }
.stat.tone-amber { border-left-color: var(--amber); background: linear-gradient(165deg, var(--surface) 0%, var(--amber-bg) 150%); }
.stat.tone-teal { border-left-color: var(--teal); background: linear-gradient(165deg, var(--surface) 0%, var(--teal-bg) 150%); }
.stat.tone-violet { border-left-color: var(--violet); background: linear-gradient(165deg, var(--surface) 0%, var(--violet-bg) 150%); }
.stat.tone-blue { border-left-color: var(--blue); background: linear-gradient(165deg, var(--surface) 0%, var(--blue-bg) 150%); }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 1px solid rgba(180, 35, 60, 0.25); box-shadow: 0 0 0 14px rgba(180, 35, 60, 0.05); pointer-events: none; }
a.stat:hover, button.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow), 0 26px 40px -30px rgba(40, 14, 22, .35); }
.stat small { color: var(--muted); font: 700 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.stat b { margin: 6px 0 2px; font: 800 34px/1 var(--sans); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.stat span .ic { width: 14px; height: 14px; }
.stat.tone-green b { color: var(--green); }
.stat.tone-red b { color: var(--red); }
.stat.tone-amber b { color: var(--amber); }
.stat-secret { cursor: pointer; background: linear-gradient(160deg, var(--night-2), var(--night)); border-color: transparent; color: #f3eef0; }
.stat-secret small, .stat-secret span { color: rgba(243, 238, 240, .82); }
.stat-secret b { color: var(--gold-bright); transition: filter .4s var(--ease); }
.stat-secret::after { border-color: rgba(180, 35, 60, .3); }
.stat-secret.is-masked b { filter: blur(10px); user-select: none; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats.three { grid-template-columns: minmax(0, 1fr); } .stat b { font-size: 28px; } .stats { gap: 10px; } .stat { padding: 16px; } }

/* ---------- Araç çubuğu / filtre ---------- */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 300px; max-width: 440px; margin: 0; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-ink); pointer-events: none; }
.search input:not([type="checkbox"]) { padding-left: 44px; border-radius: 999px; background: var(--surface-2); }
.filters { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .field { flex: 1 1 170px; max-width: 250px; }
.filters .chips { flex-basis: 100%; }
.filter-actions { display: flex; gap: 8px; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -28px; padding: 0 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 12px; text-align: left; color: var(--muted); font: 700 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 15px 12px; border-bottom: 1px solid rgba(227, 220, 209, 0.7); vertical-align: middle; }
.table tbody tr { transition: background .2s; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table.compact td { padding: 10px 12px; }
.table tfoot th { color: var(--ink); font: 700 15px var(--sans); text-transform: none; letter-spacing: 0; border-top: 1px solid var(--line-strong); border-bottom: 0; padding-top: 14px; }
.table .num { text-align: right; white-space: nowrap; }
.table td.num > b { font: 700 15.5px var(--sans); letter-spacing: -.005em; }
.table .num small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
.table .w-check { width: 44px; }
.table .w-num { width: 96px; }
.table td input:not([type="checkbox"]) { min-height: 38px; padding: 7px 11px; font-size: 14px; }
.table .row-muted td { color: var(--muted); }
.table td.details { font-size: 13px; color: var(--ink-2); max-width: 520px; }
.kvp { display: inline-block; margin: 0 10px 3px 0; }
.kvp b { color: var(--muted); font-weight: 650; }
.cell-link { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.cell-main { min-width: 0; }
.cell-main b { display: block; font: 700 15.5px/1.3 var(--sans); letter-spacing: -.002em; }
.cell-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows-link tbody tr { cursor: pointer; }
.rows-link tbody tr:hover .cell-main b { color: var(--wine-ink); }
.rows-link tbody tr:hover .avatar { background: var(--wine); color: #fff; box-shadow: none; }
.avatar { transition: background .25s, color .25s; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.row-actions form { margin: 0; }
.rx-code { padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.list-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.list-foot .muted { font: italic 500 14px var(--serif); }
.show-sm { display: none !important; }
@media (max-width: 900px) { .hide-md { display: none; } }
@media (max-width: 640px) { .hide-sm { display: none; } .show-sm { display: block !important; } .table-wrap { margin: 0 -18px; padding: 0 18px; } .card { padding: 20px 18px; border-radius: 18px; } }

.pager { display: flex; align-items: center; gap: 6px; }
.pager a, .pager span { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 13px; }
.pager a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pager .disabled { color: var(--muted); opacity: .55; }
.pager .pager-info { border-color: transparent; color: var(--muted); font: italic 500 14px var(--serif); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 18px 40px; text-align: center; }
.empty .empty-art { width: 150px; height: auto; color: var(--gold-ink); margin-bottom: 8px; }
.empty b { font: 700 20px/1.2 var(--sans); letter-spacing: -.005em; }
.empty p { color: var(--muted); max-width: 400px; }
.empty .btn { margin-top: 14px; }

/* ---------- Detay sayfaları ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin: 0 0 26px; padding: 28px 32px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 55%, #ab9fa3 100%);
  color: #fff; box-shadow: 0 26px 60px -28px rgba(20, 16, 18, .5);
}
.hero::before { content: ""; position: absolute; top: -55%; right: -6%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 129, .38), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero-main { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hero .eyebrow { margin-bottom: 8px; color: var(--gold-bright); }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 650; letter-spacing: -.02em; color: #fff; }
.hero h1 a { color: inherit; text-decoration: none; }
.hero h1 a:hover { color: var(--gold-bright); }
.hero p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: rgba(255, 255, 255, .82); margin-top: 8px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn:not(.btn-primary):not(.btn-wa) { background: rgba(255, 255, 255, .95); border-color: transparent; }
.hero .avatar.lg { background: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35); color: var(--wine); }
@media (max-width: 640px) { .hero { padding: 22px 20px; } .hero-main { gap: 16px; } .avatar.lg { width: 58px; height: 58px; font-size: 22px; } .hero-actions { width: 100%; } .hero-actions > * { flex: 1; } .hero-actions .btn { width: 100%; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.split-main, .split-side { min-width: 0; }
.split > .card { margin-bottom: 0; }
@media (max-width: 1140px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Aşama çizgisi: bağlı noktalı, ilerleme çubuğu hissi veren yeni tasarım */
.stepper2-wrap { margin-bottom: 24px; padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.stepper2 { display: flex; align-items: flex-start; }
.step2 { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0 4px; }
.step2:not(:first-child)::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--line-strong); z-index: 0; transition: background .3s; }
.step2.done::before, .step2.current::before { background: linear-gradient(90deg, var(--gold), var(--wine)); }
.step2-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); font: 700 13.5px/1 var(--sans); transition: all .25s var(--ease); }
.step2-dot .ic { width: 15px; height: 15px; }
.step2-label { font: 700 12px/1.25 var(--sans); color: var(--muted); text-align: center; max-width: 92px; transition: color .25s; }
.step2.done .step2-dot { background: var(--accent); border-color: var(--accent); color: #34230a; }
.step2.done .step2-label { color: var(--ink-2); }
.step2.current .step2-dot { background: var(--wine); border-color: var(--wine); color: #fff; transform: scale(1.14); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wine) 12%, transparent); }
.step2.current .step2-label { color: var(--ink); font-weight: 800; }
.stepper2-extra { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
@media (max-width: 760px) { .step2-label { display: none; } .step2.current .step2-label { display: block; position: absolute; top: 40px; max-width: none; white-space: nowrap; } }

/* Menü */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 15; width: min(360px, 90vw); padding: 8px; background: var(--surface); color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); animation: rise .25s var(--ease); }
.menu-list a { display: block; padding: 11px 13px; border-radius: 10px; text-decoration: none; }
.menu-list a:hover { background: var(--surface-2); }
.menu-list b { display: block; font: 700 14.5px var(--sans); }
.menu-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 640px) { .menu-list { left: 0; right: auto; } }

/* Reçete kartı */
.rx-card { padding: 20px 0; border-top: 1px solid var(--line); }
.rx-card:first-of-type { border-top: 0; padding-top: 2px; }
.rx-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rx-card header b { display: block; font: 700 16px/1.3 var(--sans); }
.rx-card header small { color: var(--muted); font-size: 13px; }
.rx-table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-family: var(--mono); font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(var(--surface-2), var(--surface)); }
.rx-table th, .rx-table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rx-table thead th { background: transparent; color: var(--gold-ink); font: 700 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.rx-table tbody th { text-align: left; font: 700 14.5px var(--sans); color: var(--ink); }
.rx-table tbody td { font-weight: 500; }
.rx-table tbody tr:last-child > * { border-bottom: 0; }
.rx-table tr.off { opacity: .35; }
.lens-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.lens-items li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.lens-items li span:first-child { font-weight: 650; min-width: 180px; }
.lens-items code { color: var(--ink-2); }
.lens-items .badge { margin-left: auto; }
.lens-cost { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line-strong); color: var(--gold-ink); font-size: 12px; font-weight: 600; }
.lens-cost .ic { width: 13px; height: 13px; opacity: .8; }
.delivery-row { background: var(--amber-bg); border: 1px solid rgba(154, 90, 8, 0.3); border-radius: var(--radius-md); padding: 14px 16px; align-items: end; }
.delivery-meta { color: var(--ink-2); font-size: 13.5px; }
.frame-invoice-toggle { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.frame-invoice-toggle summary { cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--ink-2); }
.advisor-note { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, var(--gold-soft), transparent 140%); border: 1px solid rgba(180, 35, 60, 0.3); font-size: 13.5px; }
.advisor-note summary { display: flex; align-items: center; gap: 8px; font: italic 500 15px var(--serif); cursor: pointer; color: var(--ink); }
.advisor-note summary .ic { width: 15px; height: 15px; color: var(--gold-ink); }
.advisor-note p { margin-top: 10px; color: var(--ink-2); }
.note { margin-top: 12px; padding: 10px 16px; border-left: 2px solid var(--gold); color: var(--ink-2); font: italic 400 15px/1.5 var(--serif); }

/* Ödeme */
.money-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px 12px; }
.money-summary small { display: block; color: var(--muted); font: 700 12.5px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 7px; }
.money-summary b { font: 800 18px/1.25 var(--sans); letter-spacing: -.005em; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; display: block; }
.progress { height: 4px; margin: 18px 0 20px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 99px; }
.pay-form { padding: 18px; margin-bottom: 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 12px 20px; border-top: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--gold); }
.timeline li:first-child { border-top: 0; }
.timeline b { font: 700 15px var(--sans); }
.timeline small { color: var(--muted); font-size: 12.5px; }
.timeline form { margin: 0; }
.timeline.compact li { padding: 10px 0 10px 20px; }
.timeline.compact li::before { top: 17px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 13.5px; }
.mini-list li:first-child a { border-top: 0; }
.mini-list a:hover span:first-child { color: var(--wine-ink); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv li:first-child { border-top: 0; }
.kv li > b { font: 700 16px var(--sans); }
h3.sub { margin: 22px 0 8px; font: 700 12.5px/1.2 var(--sans); color: var(--gold-ink); text-transform: uppercase; letter-spacing: .06em; }

/* Müşteri seçici */
.customer-picker .picked { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--gold-soft), var(--surface-2)); border: 1px solid rgba(180, 35, 60, 0.35); }
.customer-picker .picked .cell-main { flex: 1; }
.search-field { position: relative; }
.suggest { list-style: none; margin: 8px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-lg); max-height: 340px; overflow: auto; }
.suggest li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.suggest li a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.suggest li button:hover, .suggest li button.active, .suggest li a:hover, .suggest li a.active { background: var(--surface-2); }
.suggest .none { padding: 12px; color: var(--muted); font-style: italic; }
.divider { display: flex; align-items: center; gap: 16px; margin: 22px 0 18px; color: var(--gold-ink); font: italic 500 14px var(--serif); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* Stok toplu işlem */
.bulk-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; margin-bottom: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background .25s, color .25s; }
.bulk-bar.has-selection { background: var(--wine); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -18px rgba(20, 16, 18, .45); }
.bulk-bar.has-selection .btn:not(.btn-primary) { background: transparent; color: #f3eef0; border-color: rgba(180, 35, 60, .45); }
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
@media (max-width: 1023px) { .bulk-bar { top: 60px; border-radius: var(--radius-md); } }

/* Grafikler */
.chart { display: flex; align-items: stretch; gap: 4px; height: 240px; padding-top: 10px; overflow-x: auto; }
.chart-col { flex: 1 0 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 16px; }
.chart-col .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line-strong); border-radius: 8px 8px 0 0; transition: background .2s; }
.chart-col .bars i { width: 38%; max-width: 14px; min-height: 1px; border-radius: 99px 99px 2px 2px; }
.chart-col small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.chart-col:hover .bars { background: var(--surface-2); }
.bars .sales, .key.sales { background: linear-gradient(180deg, #3a1520, var(--brand-deep)); }
.bars .paid, .key.paid { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
.legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-left: 12px; }
.hbars { display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: minmax(100px, 1.2fr) 2fr auto; align-items: center; gap: 4px 14px; font-size: 14px; }
.hbar > span { font-weight: 600; }
.hbar > b { font: 700 16px var(--sans); }
.hbar .hbar-track { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar .hbar-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--wine)); }
.hbar small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin-top: -6px; }

.merge-group { padding: 16px 0; border-top: 1px solid var(--line); }
.merge-group:first-of-type { border-top: 0; }

/* ---------- Reçete ekranı ---------- */
.rx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 22px; align-items: start; }
@media (max-width: 1200px) { .rx-layout { grid-template-columns: minmax(0, 1fr); } }
.rx-input { width: 100%; min-width: 420px;   /* 4.41.0: PD/yükseklik sütunları tablodan çıktı */ border-collapse: separate; border-spacing: 8px; margin: -8px; }
.rx-input th { color: var(--gold-ink); font: 700 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.rx-input tbody th { text-align: left; text-transform: none; letter-spacing: 0; font: 700 16px var(--sans); color: var(--ink); white-space: nowrap; }
.rx-input input:not([type="checkbox"]) { text-align: center; font: 500 16px var(--mono); padding: 11px 6px; }
.rx-input tr.off input { opacity: .3; }
.rx-input .dim input { background: var(--surface-2); border-style: dashed; }
.eye-tag { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 99px; border: 1px solid var(--gold); color: var(--gold-ink); font: 700 11px var(--sans); font-style: normal; vertical-align: middle; }

/* ---------- Seçim listesi (SGK aktarımında hedef seçimi) ---------- */
.pick-list { display: grid; gap: 14px; }
.pick-group { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface-2); }
.pick-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.pick-group-head small { font-size: 13px; }
.pick {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 13px; margin-top: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pick:first-of-type { margin-top: 0; }
.pick input[type="radio"] { margin-top: 3px; }
.pick b { font-weight: 650; }
.pick small { font-size: 13px; line-height: 1.45; }
.pick:hover { border-color: var(--brand-bright); }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(60, 14, 28, .12); }
a.pick { color: inherit; text-decoration: none; }   /* 4.21.0 etiket kapsamı bağlantı (eski onclick CSP'de çalışmıyordu) */
a.pick input[type="radio"] { pointer-events: none; }
.pick-form { margin-top: 10px; }
/* ---------- Etiket sayfası önizlemesi (mini A4) ---------- */
.sheet-preview {
  --scale: .9;                     /* 1 mm ≈ .9 px  → A4 ≈ 189×267 px */
  position: relative; width: calc(210 * var(--scale) * 1px); height: calc(297 * var(--scale) * 1px);
  margin: 0 auto; padding: calc(var(--pmt) * var(--scale) * 1px) 0 0 calc(var(--pml) * var(--scale) * 1px);
  box-sizing: border-box; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px;
  display: grid; grid-template-columns: repeat(var(--pcols), calc(var(--pw) * var(--scale) * 1px));
  column-gap: calc(var(--pgx) * var(--scale) * 1px); row-gap: calc(var(--pgy) * var(--scale) * 1px);
  align-content: start; overflow: hidden;
}
.sheet-cell { height: calc(var(--ph) * var(--scale) * 1px); border: 1px dashed var(--brand-bright); border-radius: 2px; background: var(--brand-tint); }
.sheet-cell.atlanan { background: repeating-linear-gradient(45deg, var(--paper-2) 0 4px, transparent 4px 8px); border-style: dotted; border-color: var(--line-strong); }

/* ---------- Kameradan barkod okuma katmanı ---------- */
.scan-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(20, 16, 18, .72); backdrop-filter: blur(3px); }
.scan-box { width: min(440px, 100%); display: grid; gap: 12px; justify-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.scan-box video { width: 100%; max-height: 60vh; border-radius: var(--radius-sm); background: #000; object-fit: cover; }
.scan-box p { margin: 0; color: var(--muted); font-size: 13.5px; }
.scan-frame { position: absolute; width: min(300px, 70%); height: 170px; border: 2px solid var(--accent-bright); border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.12); }

/* ---------- Hatırlatma satırı: sıkışık eylem grubu ---------- */
.kv-line { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv-line:last-of-type { border-bottom: 0; }
.kv-line b { white-space: nowrap; }
.rem-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 900px) { .rem-actions { flex-wrap: wrap; } }
.rem-more { position: relative; }
.rem-more > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--muted); font-weight: 700; user-select: none; }
.rem-more > summary::-webkit-details-marker { display: none; }
.rem-more > summary:hover { background: var(--surface-2); color: var(--ink); }
.rem-more > summary.btn { width: auto; height: auto; display: inline-flex; padding: 0 14px; color: inherit; }
.rem-more > summary.btn:hover { background: var(--brand-deep); }
.rem-menu {
  position: absolute; right: 0; top: 36px; z-index: 30; min-width: 170px;
  display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.linkish { border: 0; background: none; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font: 600 13.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.linkish:hover { background: var(--brand-tint); color: var(--brand-ink); }
.linkish.danger { color: var(--red); }
.linkish.danger:hover { background: var(--red-bg); }
@media (max-width: 800px) {
  .rem-actions { justify-content: flex-start; }
  .rem-menu { right: auto; left: 0; }
}
/* Telefonda tablo yerine kart görünümü: yatay kaydırma gerekmesin */
@media (max-width: 680px) {
  .rem-table { min-width: 0; }
  .rem-table thead { display: none; }
  .rem-table tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rem-table tbody tr:last-child { border-bottom: 0; }
  .rem-table td { display: block; border: 0; padding: 3px 0; }
  .rem-table td.num { text-align: left; }
  .rem-table td:empty { display: none; }
  .rem-table td.hide-sm { display: none; }
  .rem-table td.hide-md { display: block; }
  .rem-table td.rem-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 10px; }
  .rem-actions .btn { flex: 0 0 auto; }
}

/* SGK önizlemesi dar sütunda: reçete tablosu yatay kaymadan sığsın */
#onizleme .rx-input { min-width: 420px; }
#onizleme .rx-input input:not([type="checkbox"]) { padding: 11px 4px; font-size: 15px; }
@media (max-width: 800px) { .pick-group { padding: 12px; } }

.advisor {
  position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 24px; border-radius: var(--radius);
  background:
    radial-gradient(120% 50% at 100% 0%, rgba(180, 35, 60, .16), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid #e8e1e2;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
@media (max-width: 1200px) { .advisor { position: static; max-height: none; } }
.advisor-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.advisor-head b { display: block; font: 700 20px/1.1 var(--sans); letter-spacing: -.005em; }
.advisor-head b::after { content: " ✦"; font-size: 13px; color: var(--gold-ink); vertical-align: super; }
.advisor-head small { color: var(--muted); font-size: 12.5px; }
.advisor-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); box-shadow: 0 0 0 5px rgba(180, 35, 60, 0.12); }
.advisor-inputs { gap: 12px; }
.advisor-inputs input:not([type="checkbox"]), .advisor-inputs select { min-height: 42px; font-size: 14px; }
.advisor-inputs .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.advisor-inputs .checks legend { grid-column: 1 / -1; margin-bottom: 6px; }
.advisor-inputs .checks label { font-size: 13.5px; }
.advisor-out { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.advisor-out h4 { margin: 22px 0 10px; font: 700 16px var(--sans); }
.advisor-out h4 small { color: var(--muted); font: 500 12px var(--sans); }
.rec-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rec-chips div { padding: 12px 14px; border-radius: 14px; background: var(--surface-3); color: var(--ink); border: 1px solid var(--line); }
.rec-chips div:last-child { grid-column: 1 / -1; }
.rec-chips small { display: block; color: rgba(238, 244, 249, .78); font: 700 12.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.rec-chips b { display: block; font: 800 18px/1.2 var(--sans); color: var(--gold-ink); }
.rec-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.5; }
.rec-list.warn { padding: 12px 14px 12px 30px; border-radius: 14px; background: var(--amber-bg); color: var(--amber); font-weight: 600; }
.rec-why { margin-top: 16px; }
.rec-why summary { cursor: pointer; font: italic 500 15px var(--serif); color: var(--wine-ink); }
.thick { display: grid; gap: 6px; }
.thick-row { display: grid; grid-template-columns: 124px 1fr 62px; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 10px; font-size: 13px; }
.thick-row b { text-align: right; font: 500 13px var(--mono); }
.thick-row.rec { background: var(--gold-soft); font-weight: 700; }
.thick-bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.thick-bar i { display: block; height: 100%; border-radius: 99px; background: var(--line-strong); transition: width .5s var(--ease); }
.thick-row.rec .thick-bar i { background: linear-gradient(90deg, var(--gold), var(--wine)); }
.products { display: grid; gap: 8px; }
.product { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.product:hover { border-color: var(--brand-bright); }
.product.selected { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--surface)); box-shadow: 0 0 0 3px rgba(180, 35, 60, 0.18); }
.product span { flex: 1; min-width: 0; }
.product b { display: block; font: 700 14.5px/1.25 var(--sans); }
.product small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.product em { font: 700 15px var(--sans); font-style: normal; white-space: nowrap; color: var(--wine-ink); }
.talk { position: relative; padding: 16px 18px 16px 22px; border-radius: 14px; background: var(--surface-2); color: var(--ink); margin-bottom: 10px; font: italic 400 15.5px/1.55 var(--serif); }
.talk::before { content: "“"; position: absolute; left: 6px; top: -4px; font: 400 42px/1 var(--serif); color: var(--gold-ink); }
.advisor-attach { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 999px; background: var(--surface-3); color: var(--ink); border: 1px solid var(--line); font-weight: 650; font-size: 13.5px; cursor: pointer; }

@media (max-width: 640px) {
  .sticky-actions { position: static; background: none; }
  .rx-input, .rx-input tbody, .rx-input tr { display: block; min-width: 0; margin: 0; }
  .rx-input thead { display: none; }
  .rx-input tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
  .rx-input tr:first-child { border-top: 0; padding-top: 0; }
  .rx-input tbody th { grid-column: 1 / -1; }
  .rx-input td { display: flex; flex-direction: column; gap: 4px; }
  .rx-input td::before { content: attr(data-label); color: var(--gold-ink); font: 700 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
  .table-wrap:has(.rx-input) { margin: 0; padding: 0; overflow: visible; }
  .rx-card header { flex-wrap: wrap; }
  .lens-items li span:first-child { min-width: 0; }
}

/* ---------- Giriş (sanat paneli + form) ---------- */
.auth-page { min-height: 100vh; margin: 0; background: var(--paper) var(--grain); }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh; }
.auth-art {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px; color: #f3eef0;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(180, 35, 60, .22), transparent 60%),
    radial-gradient(70% 70% at 90% 100%, rgba(60, 14, 28, .6), transparent 70%),
    #141012;
}
.auth-art { justify-content: flex-end; }
.auth-art .art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
.auth-art .brand { position: relative; padding: 0; }
.auth-art .brand-mark { color: var(--accent-bright); }
.auth-art .brand-text b { color: #fff; }
.auth-art .brand-text small { color: var(--accent-bright); }

/* Giriş panosu: büyük tipografik marka plakası */
.auth-art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 66%;
  background: linear-gradient(to top, rgba(20, 16, 18, .94), rgba(20, 16, 18, .62) 42%, rgba(20, 16, 18, 0));
  pointer-events: none;
}
.art-plate { position: relative; z-index: 1; max-width: 620px; }
.art-plate .brand-mark { display: block; width: 46px; height: 46px; margin-bottom: 20px; color: var(--accent-bright); }
.art-title { margin: 0; font: 500 clamp(42px, 6.2vw, 78px)/1.02 var(--serif); letter-spacing: -.025em; color: #fff; text-shadow: 0 12px 40px rgba(20, 16, 18, .55); }
.art-title em { font-style: italic; color: var(--accent-bright); }
.art-rule { display: block; width: 68px; height: 2px; margin: 22px 0 14px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-bright), rgba(255, 107, 129, 0)); }
.art-sub { font: 700 12.5px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 240, .72); }

/* natürmortta yumuşak hareket: huzmeler ve lekeler hafifçe nefes alır */
@media (prefers-reduced-motion: no-preference) {
  .pa-beam { animation: pa-breathe 11s ease-in-out infinite alternate; transform-origin: 50% 0; }
  .pa-beam-2 { animation-duration: 14s; animation-delay: -4s; }
  .pa-spot { animation: pa-glow 9s ease-in-out infinite alternate; transform-origin: center; }
  .pa-spot-2 { animation-duration: 12s; animation-delay: -3s; }
  .pa-spark { animation: pa-twinkle 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .pa-spark-2 { animation-delay: -1.6s; }
  .pa-spark-3 { animation-delay: -3s; }
}
@keyframes pa-breathe { from { opacity: .75; } to { opacity: 1; } }
@keyframes pa-glow { from { opacity: .7; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
@keyframes pa-twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.08); } }

@media (max-width: 900px) {
  .art-plate .brand-mark { display: none; }
  .art-title { font-size: clamp(32px, 9vw, 48px); }
  .art-rule { width: 52px; margin: 14px 0 9px; }
  .art-sub { font-size: 11.5px; letter-spacing: .12em; }
  .auth-art::after { height: 78%; }
}
.auth-art blockquote { position: relative; margin: 0; max-width: 520px; }
.auth-art blockquote p { font: 500 clamp(30px, 3.2vw, 46px)/1.12 var(--serif); letter-spacing: -.015em; color: #f3eef0; }
.auth-art blockquote p em { font-style: italic; color: var(--gold-bright); }
.auth-art blockquote footer { margin-top: 18px; font: 700 12.5px/1 var(--sans); letter-spacing: .10em; text-transform: uppercase; color: rgba(243, 238, 240, .78); }
.auth-form { display: grid; place-items: center; padding: 40px 28px; }
.auth-card { width: min(390px, 100%); display: grid; gap: 10px; }
.auth-card h1 { font-size: 38px; font-weight: 650; letter-spacing: -.02em; }
.auth-card h1 em { font-style: italic; color: var(--wine-ink); }
.auth-card > p.muted { margin-bottom: 18px; }
.auth-card .stack { margin-top: 6px; }
.auth-card .btn { margin-top: 8px; }
.auth-card .foot { margin-top: 26px; font: italic 500 13px var(--serif); color: var(--muted); }
.auth-card .kicker { margin-bottom: 6px; }
.auth-card .remember-line { display: flex; gap: 9px; align-items: center; font-size: 14px; cursor: pointer; margin-top: 2px; }
.auth-card .remember-line input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.auth-card .remember-line small { font-size: 12.5px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.auth-single { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-single .auth-card { padding: 38px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 300px; padding: 28px 24px; }
  .auth-art blockquote p { font-size: 30px; }
}

/* ince ayarlar */
.money-summary b { font-size: clamp(15px, 1.3vw, 19px); }

/* ---------- Atölye panosu ---------- */
.pano-stats { margin-bottom: 20px; }
.pano { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pano-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; max-height: calc(100vh - 300px); min-height: 260px; }
.pano-col-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; font: 700 13.5px/1.2 var(--sans); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.pano-col-head span { display: flex; align-items: center; gap: 8px; }
.pano-col-head .ic { width: 16px; height: 16px; opacity: .85; }
.pano-col-sub { margin: 0; padding: 0 16px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.pano-col-head b { font: 700 13px var(--sans); min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 99px; background: rgba(0, 0, 0, .06); }
.pano-col-head.tone-amber { background: var(--amber-bg); color: var(--amber); }
.pano-col-head.tone-teal { background: var(--teal-bg); color: var(--teal); }
.pano-col-head.tone-violet { background: var(--violet-bg); color: var(--violet); }
.pano-col-head.tone-green { background: var(--green-bg); color: var(--green); }
.pano-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; border-radius: 0 0 var(--radius-md) var(--radius-md); transition: background .15s, box-shadow .15s; }
.pano-cards.drop-ok { background: rgba(180, 35, 60, 0.1); box-shadow: inset 0 0 0 2px var(--gold); }
.pano-cards.drop-no { box-shadow: inset 0 0 0 2px var(--red); }
.pano-empty { padding: 18px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.pano-card { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .15s, opacity .15s; }
a.pano-card:hover { border-color: var(--brand-bright); box-shadow: var(--shadow-sm); }
.pano-card { position: relative; }
.pano-card.is-dragging { opacity: .4; }
.drag-handle { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; color: var(--muted); cursor: grab; touch-action: none; }
.drag-handle:hover { background: var(--surface-3); color: var(--ink); }
.drag-handle:active { cursor: grabbing; }
.drag-handle .ic { width: 15px; height: 15px; }
.pano-card.pano-card-late { border-left-color: var(--red); }
.pano-card.pano-card-celebrate { animation: pano-celebrate .42s ease-out; }
@keyframes pano-celebrate {
  0% { transform: scale(1); }
  40% { transform: scale(1.05) rotate(-1deg); box-shadow: 0 0 0 4px rgba(18, 115, 62, 0.35); }
  100% { transform: scale(1); }
}
.pano-card > a { display: block; text-decoration: none; color: inherit; }
.pano-card b { display: block; font: 600 14.5px/1.3 var(--sans); }
.pano-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pano-card-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.pano-actions { display: flex; gap: 6px; margin-top: 10px; }
.pano-actions .btn { flex: 1; }
.pano-more { display: block; text-align: center; padding: 12px; font: 700 13px var(--sans); color: var(--wine-ink); text-decoration: none; border-top: 1px solid var(--line); }
.pano-more:hover { text-decoration: underline; }
.workshop-card .workshop-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.workshop-card .field { min-width: 220px; }
@media (max-width: 1100px) {
  .pano { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pano-col { max-height: none; }
}
@media (max-width: 640px) {
  .pano { grid-template-columns: minmax(0, 1fr); }
  .drag-handle { display: none; }
}
@media (max-width: 640px) {
  .pano { grid-template-columns: minmax(0, 1fr); }
}
.frame-alert { flex-direction: column; align-items: flex-start; }
.frame-alert-dates { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; color: var(--ink-2); margin: 2px 0 4px; }
.text-red { color: var(--red); }
.pano-card-alert { border-color: var(--amber); background: var(--amber-bg); }
.profit-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 700; }
.profit-total b { font: 800 19px var(--sans); }
.profit-total.tone-green { background: var(--green-bg); color: var(--green); }
.profit-total.tone-red { background: var(--red-bg); color: var(--red); }

/* ==========================================================================
   Mikro-etkileşimler — "optik ruhu"
   İmza hareket: düğmelerde bir merceğin üzerinden geçen ince ışık parıltısı.
   Yuvarlak öğeler (avatar, marka işareti) hafifçe parlar — hepsi birer mercek.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary, .btn-wa, .new-order.btn { position: relative; overflow: hidden; }
  .btn-primary::after, .btn-wa::after, .new-order.btn::after {
    content: ""; position: absolute; top: -60%; left: -35%; width: 35%; height: 220%;
    background: linear-gradient(75deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: translateX(-140%) rotate(8deg);
    transition: transform .55s ease;
    pointer-events: none;
  }
  .btn-primary:hover::after, .btn-wa:hover::after, .new-order.btn:hover::after {
    transform: translateX(340%) rotate(8deg);
  }
}
.btn:active { transform: translateY(1px) scale(.98); }
.icon-btn .ic { transition: transform .18s var(--ease); }
.icon-btn:hover .ic { transform: scale(1.14); }
.icon-btn:active { transform: scale(.9); }
.chip:active { transform: scale(.96); }
.step-btn { transition: all .25s, transform .15s; }
.step-btn:active:not(:disabled) { transform: scale(.96); }

/* sekmelerde fareyle gezinirken beliren, alttan büyüyen ince ışık çizgisi */
.tab::before {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px;
  background: var(--gold); border-radius: 2px; opacity: 0;
  transition: left .25s var(--ease), right .25s var(--ease), opacity .2s;
}
.tab:hover::before { left: 0; right: 0; opacity: 1; }
.tab.active::before { display: none; }

/* avatarlar birer mercek: üzerine gelince ince bir altın halka */
.avatar { transition: box-shadow .25s var(--ease), transform .2s var(--ease); }
.cell-link:hover .avatar, a.pano-card:hover .avatar, .brand:hover .avatar {
  box-shadow: 0 0 0 4px rgba(180, 35, 60, 0.28);
  transform: scale(1.04);
}

/* marka işareti (iki kesişen mercek): üzerine gelince hafif ışıldar */
.brand:hover .brand-mark { filter: drop-shadow(0 0 6px rgba(180, 35, 60, 0.55)); }
.brand-mark svg { transition: filter .3s; }

/* kartlar arası geçişte hafif giriş hareketi (liste/pano kartları) */
@media (prefers-reduced-motion: no-preference) {
  .pano-card, .stat { animation: optic-rise .35s var(--ease) backwards; }
}
@keyframes optic-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Coştur turu — daha cesur optik efektler
   ========================================================================== */

/* "Odağa gelme": başlıklar belirgin biçimde bulanıktan keskine odaklanır. */
@media (prefers-reduced-motion: no-preference) {
  .page-head h1, .hero h1, .auth-card h1 {
    animation: optic-focus-in .9s cubic-bezier(.2, .7, .2, 1) both;
  }
  .page-head h1 em, .hero h1 em {
    background: linear-gradient(90deg, var(--accent-bright), #ffffff 45%, var(--accent-bright));
    padding-right: .1em; margin-right: -.04em;
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: optic-hue-sweep 5s ease-in-out infinite;
  }
}
@keyframes optic-focus-in {
  0% { filter: blur(18px); opacity: 0; transform: scale(1.09) translateY(6px); }
  55% { filter: blur(3px); opacity: 1; }
  100% { filter: blur(0); opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes optic-hue-sweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Bokeh ışıkları: eski soluk sürüm — artık page-head/hero için kalın renkli
   şerit tasarımı kullanılıyor, bu yüzden kaldırıldı. */

/* Ana çağrı düğmesi (Yeni sipariş): sık sık parlar, hafifçe nabız gibi atar. */
@media (prefers-reduced-motion: no-preference) {
  .new-order.btn { animation: optic-cta-pulse 2.6s ease-in-out infinite; }
  .new-order.btn::after { animation: optic-idle-glint 2.6s ease-in-out infinite; }
  @keyframes optic-idle-glint {
    0%, 78% { transform: translateX(-140%) rotate(8deg); }
    100% { transform: translateX(340%) rotate(8deg); }
  }
  @keyframes optic-cta-pulse {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 0 rgba(180, 35, 60, 0.45); }
    50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 7px rgba(180, 35, 60, 0.0); }
  }
  .new-order.btn:hover, .new-order.btn:hover::after { animation: none; }
  .new-order.btn:hover::after { transform: translateX(340%) rotate(8deg); }
}

/* Uyarı rozetleri (sayaçlar, kırmızı/turuncu durumlar) dikkat çekmek için nabız atar. */
@media (prefers-reduced-motion: no-preference) {
  .nav .count, .badge.tone-red, .badge.tone-amber { animation: optic-warn-pulse 1.8s ease-in-out infinite; }
}
@keyframes optic-warn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.0); }
}

/* Kartlar sayfa açılışında art arda, yukarıdan süzülerek belirir. */
@media (prefers-reduced-motion: no-preference) {
  .content > .card, .content > section.card, .stats .stat, .pano-col {
    animation: optic-rise-big .5s cubic-bezier(.2, .7, .2, 1) both;
  }
  .content > .card:nth-of-type(1), .content > section.card:nth-of-type(1) { animation-delay: .05s; }
  .content > .card:nth-of-type(2), .content > section.card:nth-of-type(2) { animation-delay: .12s; }
  .content > .card:nth-of-type(3), .content > section.card:nth-of-type(3) { animation-delay: .19s; }
  .content > .card:nth-of-type(4), .content > section.card:nth-of-type(4) { animation-delay: .26s; }
  .stats .stat:nth-child(1) { animation-delay: .03s; } .stats .stat:nth-child(2) { animation-delay: .09s; }
  .stats .stat:nth-child(3) { animation-delay: .15s; } .stats .stat:nth-child(4) { animation-delay: .21s; }
  .pano-col:nth-child(1) { animation-delay: .04s; } .pano-col:nth-child(2) { animation-delay: .11s; }
  .pano-col:nth-child(3) { animation-delay: .18s; } .pano-col:nth-child(4) { animation-delay: .25s; }
}
@keyframes optic-rise-big {
  0% { opacity: 0; transform: translateY(18px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Kartların üzerine gelince belirgin kalkış + hafif eğim. */
a.pano-card, .table tbody tr, a.cell-link { transition: all .2s var(--ease); }
a.pano-card:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--shadow); }

/* "Hazır"a bırakınca: kart etrafında art arda genişleyen iki renkli ışık halkası patlar. */
.pano-card-celebrate { position: relative; }
.pano-card-celebrate::after, .pano-card-celebrate::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm);
  border: 2px solid var(--green); opacity: 0; pointer-events: none;
}
.pano-card-celebrate::after { animation: optic-burst .6s ease-out; }
.pano-card-celebrate::before { border-color: var(--gold); animation: optic-burst .7s .12s ease-out; }
@keyframes optic-burst {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Boş durum çizimi: gözlük belirgin biçimde süzülür, camlar dönüşümlü parlar. */
@media (prefers-reduced-motion: no-preference) {
  .empty-art { animation: optic-float 3.2s ease-in-out infinite; }
  .empty-art circle { animation: optic-lens-shine 2.2s ease-in-out infinite; transform-origin: center; }
  .empty-art circle:nth-child(3) { animation-delay: .7s; }
}
@keyframes optic-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(-2deg); } }
@keyframes optic-lens-shine { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Tıklama dalgası (ripple): düğmelere belirgin bir dokunuş hissi katar. */
.btn, .icon-btn, .chip { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .38; transform: scale(0); animation: optic-ripple .65s ease-out forwards; pointer-events: none; }
@keyframes optic-ripple { to { transform: scale(3.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ripple { display: none; } }

/* Konfeti (JS ile eklenir, bkz. workshop.js) */
.confetto { position: fixed; z-index: 999; border-radius: 2px; pointer-events: none; animation: optic-confetti .9s ease-out forwards; }
@keyframes optic-confetti {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: var(--confetti-end, translate(40px, 90px)) rotate(320deg); opacity: 0; }
}

/* İstatistik sayıları: sayfa açılışında 0'dan gerçek değere sayar (app.js). */
.stat b.is-counting { font-variant-numeric: tabular-nums; }

/* Tehlikeli bölge: kalıcı silme gibi geri alınamaz işlemler için uyarılı çerçeve. */
.danger-zone { border-color: #e8a8ae; }
.danger-zone summary h2 { color: var(--red); }

.deliver-by-field { display: flex; align-items: center; gap: 6px; margin: 4px 6px; }
.deliver-by-field span { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.deliver-by-field select { min-height: 34px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; }

/* ---------- Teklifler ---------- */
.quote-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.quote-option-edit { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.quote-options-view { margin-top: 18px; }
.quote-option-card { text-align: center; }
.quote-option-card.is-best { border-color: var(--gold); border-width: 2px; background: linear-gradient(180deg, var(--gold-soft), transparent 140%); }
.quote-price { font: 800 26px var(--sans); color: var(--wine-ink); margin: 4px 0 10px; }
.quote-option-card p { text-align: left; color: var(--ink-2); white-space: pre-line; }
@media (max-width: 900px) {
  .quote-options, .quote-options-view { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Kenar çubuğu genel arama ---------- */
.global-search { position: relative; margin: 0 2px 16px; }
.global-search > .ic { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.global-search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 550 13.5px var(--sans); }
.global-search input:focus { outline: 0; border-color: var(--brand); box-shadow: var(--focus); }
.global-search .suggest { position: absolute; top: 44px; left: 0; right: 0; z-index: 50; }
.global-search .suggest li small.type { display: inline-block; min-width: 60px; font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--gold-ink); }

/* ---------- "Bugün" eylem panosu ---------- */
.today-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
.today-col-head { display: block; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.today-col-head.tone-wine { color: var(--wine-ink); border-color: rgba(60, 14, 28, 0.3); }
.today-col-head.tone-red { color: var(--red); border-color: rgba(189, 28, 51, 0.3); }
.today-col-head.tone-green { color: var(--green); border-color: rgba(18, 115, 62, 0.3); }
.today-col-head.tone-amber { color: var(--amber); border-color: rgba(154, 90, 8, 0.3); }
.today-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; transition: background .15s; }
.today-row:hover { background: var(--surface-2); }
.today-row small { color: var(--muted); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.today-more { display: block; margin-top: 6px; font: 700 12px var(--sans); color: var(--wine-ink); text-decoration: none; }
.today-more:hover { text-decoration: underline; }
@media (max-width: 1023px) { .today-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .today-cols { grid-template-columns: minmax(0, 1fr); } }

/* Tedarikçi teslimatı: cam bazında maliyet giriş kutusu (tablo içinde kompakt). */
.cost-input { min-height: 34px; padding: 6px 10px; text-align: right; max-width: 120px; margin-left: auto; }

/* Tedarikçi faturasında camdan bağımsız ek kalemler (kargo, boyama vb.) */
.extra-lines { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); display: grid; gap: 10px; }
.extra-lines-label { font: 700 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.extra-lines-label small { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Atölye panosu: hızlı işlemler şeridi + tamir alt-panosu (3 sütun) */
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pano-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .pano-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pano-3 { grid-template-columns: minmax(0, 1fr); } }


/* ==========================================================================
   PWA — telefonda uygulama gibi çalışırken
   ========================================================================== */

/* "Ana ekrana ekle" çubuğu */
.pwa-bar {
  position: fixed; z-index: 60;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  box-shadow: 0 22px 48px -20px rgba(20, 16, 18, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateY(140%); opacity: 0;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
}
.pwa-bar.is-on { transform: none; opacity: 1; }
.pwa-bar .pwa-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .14); color: var(--accent-bright); }
.pwa-bar .pwa-ic svg { width: 22px; height: 22px; }
.pwa-bar .pwa-txt { flex: 1; min-width: 0; font: 600 13.5px/1.35 var(--sans); }
.pwa-bar .pwa-txt b { color: var(--accent-bright); font-weight: 800; }
.pwa-bar .pwa-yes { flex: none; min-height: 38px; padding: 8px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--brand-deep); font: 700 13.5px var(--sans); cursor: pointer; }
.pwa-bar .pwa-no { flex: none; width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .8); font-size: 20px; line-height: 1; cursor: pointer; }
.pwa-bar .pwa-no:hover { background: rgba(255, 255, 255, .14); color: #fff; }
@media (min-width: 720px) { .pwa-bar { left: auto; right: 22px; bottom: 22px; width: 400px; } }

/* Uygulama olarak açıldığında (tarayıcı çubuğu yok): dokunma hedefleri ve
   alt güvenli alan biraz daha rahat olsun. */
@media (display-mode: standalone) {
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sticky-actions { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .btn { min-height: 46px; }
  .icon-btn { width: 42px; height: 42px; }
  a, button { -webkit-touch-callout: none; }
  ::selection { background: var(--accent-soft); }
}

/* Telefonda tablo içi dokunma hedefleri ve yatay kaydırma ipucu */
@media (max-width: 640px) {
  .table td, .table th { padding-left: 10px; padding-right: 10px; }
  .row-actions .icon-btn { width: 40px; height: 40px; }
  .chip { padding: 10px 16px; }
  .tab { padding: 14px 0 15px; }
}

/* ==========================================================================
   MOBİL — telefon için yeniden düzenlenmiş arayüz
   Buradaki kurallar yalnızca dar ekranlarda ve dokunmatik cihazlarda geçerli;
   masaüstü görünümü değişmez.
   ========================================================================== */

/* --- 1. Kayma ve taşma düzeltmeleri ------------------------------------- */

/* iOS Safari, 16px'ten küçük yazılı bir alana dokunulduğunda sayfayı
   zorla yakınlaştırır ve düzen kayar. Dokunmatik cihazlarda tüm giriş
   alanları 16px'e sabitlenir. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea,
  .table td input:not([type="checkbox"]), .rx-input input:not([type="checkbox"]),
  .advisor-inputs input:not([type="checkbox"]), .advisor-inputs select,
  .cost-input, .global-search input {
    font-size: 16px;
  }
}

/* Adres çubuğu açılıp kapanırken 100vh zıplar; dvh varsa o kullanılır. */
.app { min-height: 100vh; }
@supports (min-height: 100dvh) {
  .app { min-height: 100dvh; }
  .auth-page, .auth-split, .auth-single { min-height: 100dvh; }
}

/* Yatay taşmayı kesin olarak önle: hiçbir öğe ekrandan taşmasın. */
@media (max-width: 1023px) {
  /* 4.20.3: "hidden" body'yi kaydırma kabına çevirip telefonda tüm position:sticky öğeleri (kaydet çubuğu…)
     bozuyordu; "clip" aynı şekilde keser ama kap oluşturmaz. Desteklemeyen eski tarayıcıda "hidden" kalır. */
  html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
  img, svg, table, pre { max-width: 100%; }
  .page-head, .hero, .card, .stat, .pano-col { min-width: 0; }
}

/* --- 2. Alt gezinme çubuğu ---------------------------------------------- */
.tabbar { display: none; }

@media (max-width: 1023px) {
  .tabbar {
    position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 40px -30px rgba(40, 14, 22, .45);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border: 0; background: none; cursor: pointer;
    color: var(--muted); text-decoration: none;
    font: 700 10.5px/1.1 var(--sans); letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s;
  }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar a.is-on { color: var(--brand-ink); }
  .tabbar a.is-on .ic { filter: drop-shadow(0 4px 10px rgba(60, 14, 28, .35)); }
  .tabbar a.is-on span { position: relative; }
  .tabbar a.is-on span::after {
    content: ""; position: absolute; left: 50%; bottom: -6px;
    width: 4px; height: 4px; margin-left: -2px; border-radius: 99px;
    background: var(--accent);
  }
  .tabbar a:active, .tabbar button:active { transform: scale(.94); }

  .tabbar a.tabbar-fab {
    align-self: center; justify-self: center;
    width: 54px; height: 54px; margin-top: -26px;
    display: grid !important; place-items: center;
    border-radius: 999px;
    background: linear-gradient(160deg, var(--brand-bright), var(--brand-deep));
    color: #fff !important;
    box-shadow: 0 14px 28px -12px rgba(20, 16, 18, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
    border: 3px solid var(--paper);
  }
  .tabbar a.tabbar-fab .ic { width: 26px; height: 26px; }
  .tabbar a.tabbar-fab:active { transform: scale(.92); }

  /* içerik alt çubuğun altında kalmasın */
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sticky-actions { bottom: calc(74px + env(safe-area-inset-bottom)); position: sticky; }
  .pwa-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bulk-bar { top: 62px; }
}

/* --- 3. Üst bar: camsı, güvenli alana duyarlı ---------------------------- */
@media (max-width: 1023px) {
  .topbar {
    background: color-mix(in srgb, var(--night) 82%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(180, 35, 60, .18);
  }
  .topbar .brand.compact b { font-size: 16px; letter-spacing: -.005em; }
  .content { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
}

/* --- 4. Telefonda daha yumuşak, daha derli toplu kartlar ----------------- */
@media (max-width: 640px) {
  .page-head {
    margin-bottom: 18px; padding: 22px 20px; border-radius: 22px;
    box-shadow: 0 18px 40px -26px rgba(20, 16, 18, .6);
  }
  .page-head h1 { font-size: 26px; }
  .page-head p { font-size: 13.5px; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1; }
  .page-head::before { width: 220px; height: 220px; }

  .hero { padding: 20px; border-radius: 22px; }
  .hero h1 { font-size: 25px; }

  .card { padding: 18px 16px; border-radius: 20px; margin-bottom: 14px; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 12px 28px -22px rgba(40, 14, 22, .5); }
  .card-head { margin-bottom: 14px; }
  .card-head h2 { font-size: 18px; }

  .stats { gap: 10px; margin-bottom: 18px; }
  .stat { padding: 14px 14px 13px; border-radius: 18px; border-left-width: 4px; }
  .stat b { font-size: 24px; margin: 4px 0 1px; }
  .stat small { font-size: 11px; letter-spacing: .05em; }
  .stat span { font-size: 12px; }
  .stat::after { width: 78px; height: 78px; right: -22px; top: -22px; }

  .alert { padding: 12px 40px 12px 14px; border-radius: 14px; font-size: 13.5px; }
  .toolbar { gap: 10px; margin-bottom: 14px; }
  .search { flex-basis: 100%; max-width: none; }
  .tabs { gap: 18px; margin-bottom: 18px; }
  .btn-lg { min-height: 52px; }

  /* liste satırları: dokunmaya uygun, kart hissi veren aralık */
  .rows-link tbody tr td { padding-top: 13px; padding-bottom: 13px; }
  .cell-main b { font-size: 15px; }
  .table td.num > b { font-size: 15px; }
  .list-foot { padding-top: 14px; }

  /* menü ve öneri listeleri ekrana sığsın */
  .menu-list, .suggest { max-height: 60vh; overflow: auto; }
}

/* --- 5. Kenar çubuğu telefonda: daha rahat dokunma hedefleri ------------- */
@media (max-width: 1023px) {
  .sidebar { width: min(86vw, 320px); padding-top: calc(22px + env(safe-area-inset-top)); }
  .sidebar .nav a { padding: 13px 14px; font-size: 15px; border-radius: 14px; }
  .sidebar .nav a .ic { width: 20px; height: 20px; }
  .sidebar-user { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  body.nav-open { overflow: hidden; }
}

/* --- 6. Reçete girişi telefonda: yan yana kaydırma yerine düzen ---------- */
@media (max-width: 640px) {
  .rx-layout { gap: 14px; }
  .advisor { padding: 18px 16px; border-radius: 20px; }
  .rx-table { font-size: 13px; }
  .rx-table th, .rx-table td { padding: 9px 8px; }
}

/* --- 7. Atölye panosu telefonda: yatay kaydırılan sütunlar --------------- */
@media (max-width: 640px) {
  .pano, .pano-3 {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84vw;
    grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 2px 16px 10px;
    scrollbar-width: none;
  }
  .pano::-webkit-scrollbar, .pano-3::-webkit-scrollbar { display: none; }
  .pano-col { scroll-snap-align: center; max-height: none; border-radius: 20px; }
  .pano-cards { max-height: 56vh; }
}

/* --- 8. Dokunmatikte hover artıkları temizlensin ------------------------- */
@media (hover: none) {
  .btn:hover, .chip:hover, .pager a:hover, .product:hover,
  a.pano-card:hover, .table tbody tr:hover td { background: inherit; }
  a.pano-card:hover { transform: none; box-shadow: none; }
  a.stat:hover, button.stat:hover { transform: none; }
  .tab:hover::before { left: 50%; right: 50%; opacity: 0; }
}


/* ==========================================================================
   Bildirim gönderme ekranı — telefon önizlemesi
   ========================================================================== */
.push-preview { margin-top: 4px; }
.push-preview-label { display: block; margin-bottom: 8px; font: 700 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.push-note {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 18px;
  background: linear-gradient(150deg, var(--night-2), var(--night));
  color: var(--on-night);
  box-shadow: 0 20px 40px -26px rgba(20, 16, 18, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.push-note-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .10); color: var(--accent-bright); }
.push-note-ic svg { width: 24px; height: 24px; }
.push-note-txt { flex: 1; min-width: 0; }
.push-note-txt b { display: block; font: 700 14.5px/1.3 var(--sans); color: #fff; overflow-wrap: anywhere; }
.push-note-txt span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: rgba(243, 238, 240, .82); overflow-wrap: anywhere; }
.push-note-txt .is-empty { opacity: .45; font-style: italic; }
.push-note small { flex: none; align-self: flex-start; font-size: 11.5px; color: rgba(243, 238, 240, .55); }


/* ==========================================================================
   Müşteri sipariş takip sayfası (durum.php)
   Telefon önce: büyük tipografi, tek sütun, geniş dokunma hedefleri.
   ========================================================================== */
.track-page { margin: 0; background: var(--paper) var(--grain); }
.track {
  width: min(520px, 100%); margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .track > * { animation: track-in .5s cubic-bezier(.2,.7,.2,1) both; }
  .track > *:nth-child(2) { animation-delay: .05s; }
  .track > *:nth-child(3) { animation-delay: .11s; }
  .track > *:nth-child(4) { animation-delay: .17s; }
  .track > *:nth-child(n+5) { animation-delay: .22s; }
}
@keyframes track-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.track-head { display: flex; align-items: center; gap: 12px; padding: 2px 2px 4px; }
.track-head .brand-mark { width: 42px; height: 42px; flex: none; color: var(--brand); }
.track-head b { display: block; font: 700 17px/1.1 var(--sans); color: var(--ink); }
.track-head small { display: block; margin-top: 3px; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }

.track-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 20px 18px; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 44px -34px rgba(8,20,34,.55);
}

/* --- Kahraman kart --- */
.track-hero {
  position: relative; overflow: hidden; border: 0; color: #fff;
  padding: 26px 22px 0; border-radius: 28px;
  box-shadow: 0 26px 56px -30px rgba(8,20,34,.85);
}
.track-hero.tone-blue  { background: linear-gradient(145deg, #ab9fa3 0%, var(--brand) 45%, var(--brand-deep) 100%); }
.track-hero.tone-teal  { background: linear-gradient(145deg, #1fb7a8 0%, #0f8a7d 45%, #0a5a52 100%); }
.track-hero.tone-green { background: linear-gradient(145deg, #2ec06e 0%, #17944f 45%, #0c5730 100%); }
.track-hero.tone-gray  { background: linear-gradient(145deg, #7b748c 0%, #565065 45%, #35323f 100%); }
.track-hero.tone-red   { background: linear-gradient(145deg, #e8556c 0%, #c02340 45%, #7d1024 100%); }

.track-hero-art {
  position: absolute; right: -34px; top: 8px; width: 240px; height: 132px;
  color: #fff; opacity: .14; pointer-events: none;
}
.track-hero-in { position: relative; }

.track-no {
  display: inline-block; padding: 5px 13px; border-radius: 99px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.track-hi { display: block; margin: 16px 0 2px; font: 600 15px var(--sans); color: rgba(255,255,255,.82); }
.track-hero h1 {
  margin: 0; font: 600 clamp(29px, 8.6vw, 38px)/1.08 var(--serif);
  letter-spacing: -.025em; color: #fff; text-shadow: 0 10px 30px rgba(5,15,28,.35);
}
.track-hero p { margin-top: 10px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.track-chip {
  display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  font: 600 13.5px var(--sans); color: #fff;
}
.track-chip b { font-weight: 800; color: var(--accent-bright); }

/* dört bölmeli ilerleme şeridi */
.track-bar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 22px -22px 0; padding: 0 22px 20px; }
.track-bar span { height: 5px; border-radius: 99px; background: rgba(255,255,255,.22); }
.track-bar span.is-on { background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.55); }

/* hazır durumunda ışıltılar */
.track-sparks { position: absolute; inset: 0; pointer-events: none; }
.track-sparks i {
  position: absolute; width: 8px; height: 8px; border-radius: 99px;
  background: #fff; opacity: .0;
  box-shadow: 0 0 12px 3px rgba(255,255,255,.6);
}
.track-sparks i:nth-child(1) { left: 12%; top: 22%; }
.track-sparks i:nth-child(2) { right: 18%; top: 62%; width: 6px; height: 6px; }
.track-sparks i:nth-child(3) { right: 34%; top: 14%; width: 5px; height: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .track-sparks i { animation: track-spark 3.2s ease-in-out infinite; }
  .track-sparks i:nth-child(2) { animation-delay: .9s; }
  .track-sparks i:nth-child(3) { animation-delay: 1.8s; }
}
@keyframes track-spark { 0%, 100% { opacity: 0; transform: scale(.6); } 45% { opacity: .95; transform: scale(1); } }

/* --- Aşama listesi --- */
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track-steps li { position: relative; display: flex; align-items: center; gap: 15px; padding: 11px 0; }
.track-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 18px; top: 46px; bottom: -8px; width: 2px;
  background: var(--line-strong); border-radius: 2px;
}
.track-steps li.is-done:not(:last-child)::before { background: var(--green); }
.track-dot {
  position: relative; z-index: 1; flex: none; width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; font: 700 14.5px/1 var(--sans);
  background: var(--surface-2); color: var(--muted); border: 2px solid var(--line-strong);
}
.track-dot svg { width: 18px; height: 18px; }
.track-steps li.is-done .track-dot { background: var(--green); border-color: var(--green); color: #fff; }
.track-steps li.is-now .track-dot {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .track-steps li.is-now .track-dot { animation: track-pulse 2.4s ease-in-out infinite; }
}
@keyframes track-pulse {
  0%, 100% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent); }
  50%      { box-shadow: 0 0 0 11px color-mix(in srgb, var(--brand) 0%, transparent); }
}
.track-step-txt b { display: block; font: 700 15.5px/1.3 var(--sans); color: var(--ink-2); }
.track-step-txt small { display: block; margin-top: 1px; font-size: 13.5px; color: var(--muted); }
.track-steps li.is-now .track-step-txt b { color: var(--ink); font-size: 16.5px; }

/* --- Bilgi satırları --- */
.track-meta .kv li { padding: 13px 0; }
.track-meta .kv li span { color: var(--muted); font-size: 13.5px; }
.track-meta .kv li b { font: 700 15px var(--sans); white-space: nowrap; color: var(--ink); }

/* --- Hazır kutusu --- */
.track-ready {
  display: grid; gap: 6px; text-align: center; padding: 22px 18px;
  background: linear-gradient(165deg, var(--green-bg), var(--surface) 130%);
  border-color: color-mix(in srgb, var(--green) 32%, transparent);
}
.track-ready b { font: 600 21px var(--serif); color: var(--green); letter-spacing: -.01em; }
.track-ready span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* --- Eylem düğmeleri --- */
.track-actions { display: grid; gap: 10px; margin-top: 2px; }
.track-actions .btn { width: 100%; min-height: 54px; font-size: 15.5px; border-radius: 999px; }

.track-empty { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 30px 20px; }
.track-emoji { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 26px; background: var(--brand-tint); color: var(--brand); }
.track-emoji svg { width: 44px; height: 44px; }
.track-empty h1 { margin: 6px 0 0; font: 600 26px var(--serif); }
.track-empty p { color: var(--ink-2); line-height: 1.55; }
.track-empty .btn { margin-top: 10px; }

.track-foot { display: grid; gap: 4px; margin-top: 8px; padding: 8px 6px 0; text-align: center; color: var(--muted); font-size: 13px; }
.track-foot b { color: var(--ink-2); font: 700 14px var(--sans); }
.track-foot small { margin-top: 10px; font-size: 11.5px; opacity: .85; }

@media (min-width: 620px) {
  .track { padding-top: 34px; }
  .track-actions { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* Gece modu: müşteri akşam açtığında göz yormasın */
@media (prefers-color-scheme: dark) {
  .track-page { background: #141012; }
  .track-page .track-card:not(.track-hero) { background: #1e171a; border-color: #2c1b21; box-shadow: 0 20px 44px -34px #000; }
  .track-page .track-head b { color: #f3eef0; }
  .track-page .track-head .brand-mark { color: #ab9fa3; }
  .track-page .track-step-txt b { color: #e8e1e2; }
  .track-page .track-steps li.is-now .track-step-txt b { color: #fff; }
  .track-page .track-step-txt small,
  .track-page .track-meta .kv li span,
  .track-page .track-foot { color: #ab9fa3; }
  .track-page .track-meta .kv li b { color: #f3eef0; }
  .track-page .track-meta .kv li,
  .track-page .kv li { border-color: #2c1b21; }
  .track-page .track-dot { background: #1e171a; border-color: #3a1520; color: #ab9fa3; }
  .track-page .track-steps li:not(:last-child)::before { background: #3a1520; }
  .track-page .track-steps li.is-done:not(:last-child)::before { background: #1f9a5a; }
  .track-page .track-ready { background: linear-gradient(165deg, #123d2d, #0c2419 130%); border-color: #1f6b46; }
  .track-page .track-ready b { color: #5fd694; }
  .track-page .track-ready span { color: #bcd9c8; }
  .track-page .track-empty h1 { color: #f3eef0; }
  .track-page .track-empty p { color: #bcd9c8; }
  .track-page .track-emoji { background: #1e171a; color: #ab9fa3; }
  .track-page .btn:not(.btn-primary):not(.btn-wa) { background: #1e171a; border-color: #3a1520; color: #f3eef0; }
  .track-page .track-foot b { color: #e8e1e2; }
}

/* Sipariş sayfasındaki müşteri takip bağlantısı kutusu */
.track-share-row { display: flex; gap: 8px; margin-top: 12px; }
.track-share-row input { flex: 1; min-width: 0; font-size: 12.5px; font-family: var(--mono); background: var(--surface-2); }
.track-share-row .btn { flex: none; }
.track-share code { padding: 1px 6px; border-radius: 6px; background: var(--brand-tint); color: var(--brand-ink); font-size: .92em; }

/* Bildirim kartındaki hata/sebep kutusu — çok satırlı teşhis metni */
[data-push-reason] { white-space: pre-line; line-height: 1.5; font-size: 13px; font-weight: 600; align-items: flex-start; }
[data-push-reason]::before { margin-top: 5px; }

/* ---------- Raporlar: halka (donut) grafik + açıklama listesi ---------- */
.donut-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 14px; }
.donut { flex: none; }
.donut circle { transition: stroke-dasharray .6s var(--ease); }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; display: grid; gap: 8px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.donut-legend li i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.donut-legend li span { flex: 1; min-width: 0; }
.donut-legend li b { font: 700 13.5px var(--sans); }
.donut-legend li small { color: var(--muted); font-size: 11.5px; min-width: 32px; text-align: right; }

/* ---------- Kârlılık: satış şampiyonları podyumu ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.podium-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-2); }
.podium-medal { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.podium-name { font: 750 15px var(--sans); }
.podium-amt { font: 800 19px var(--sans); color: var(--brand-ink); }
.podium-card.rank-1 { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border-color: var(--accent); box-shadow: var(--shadow); order: -1; transform: scale(1.04); }
.podium-card.rank-1 .podium-amt { color: var(--accent-ink); }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium-card.rank-1 { order: 0; transform: none; } }

/* ---------- Başarılar: rozet kartları ---------- */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.badge-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  padding: 22px 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--surface-2); filter: grayscale(1); opacity: .6; transition: all .3s var(--ease); }
.badge-card.is-unlocked { filter: none; opacity: 1; background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border-color: var(--accent); box-shadow: var(--shadow); }
.badge-icon { font-size: 34px; line-height: 1; margin-bottom: 4px; }
.badge-card.is-unlocked .badge-icon { animation: badge-pop .5s var(--ease); }
@keyframes badge-pop { 0% { transform: scale(.5) rotate(-15deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.badge-title { font: 750 14.5px var(--sans); }
.badge-desc { font-size: 12px; color: var(--muted); min-height: 2.4em; }
.badge-progress { width: 100%; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.badge-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.badge-count { font-size: 11px; color: var(--muted); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .badge-card.is-unlocked .badge-icon { animation: none; } }


.podium-badges { display: flex; gap: 4px; margin-top: 6px; font-size: 15px; }

/* ---------- Unvan/seviye kartı ---------- */
.level-card { display: flex; align-items: center; gap: 20px; }
.level-icon { font-size: 46px; line-height: 1; flex: none; }
.level-body { flex: 1; min-width: 0; }
.level-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.level-head b { font: 800 19px var(--sans); }
.level-head span { font: 700 13px var(--sans); color: var(--accent-ink); }
.badge-progress.lg { height: 9px; margin-top: 0; }

/* ---------- Takım hedefi ---------- */
.team-goal-card { margin-bottom: 22px; }
.team-goal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.team-goal-head b { font: 800 16px var(--sans); color: var(--brand-ink); }

/* ---------- Gizli rozet vurgusu ---------- */
.badge-card.is-secret { border-color: var(--violet); background: linear-gradient(160deg, var(--violet-bg), var(--surface)); }
.badge-card.is-secret .badge-icon { animation: badge-pop .5s var(--ease); }

/* ---------- Seri takvimi (etkinlik ısı haritası) ---------- */
.streak-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(16px, 1fr)); gap: 4px; }
.streak-cell { aspect-ratio: 1; border-radius: 4px; background: var(--surface-3); }
.streak-cell.lvl-1 { background: var(--brand-soft); }
.streak-cell.lvl-2 { background: var(--brand-bright); opacity: .55; }
.streak-cell.lvl-3 { background: var(--brand-bright); }
.streak-cell.lvl-4 { background: var(--brand); }

/* ---------- Çılgın anlar: havai fişek, kritik satış, gizli mod ---------- */
.confetti-overlay { position: fixed; inset: 0; z-index: 998; pointer-events: none; }
.crazy-banner {
  position: fixed; top: 16%; left: 50%; transform: translate(-50%, -20px) scale(.85); opacity: 0; z-index: 1000;
  max-width: min(560px, 88vw); padding: 18px 32px; border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff; font: 800 20px/1.3 var(--sans); text-align: center; box-shadow: var(--shadow-lg);
  animation: crazy-banner-in .5s var(--ease) forwards, crazy-banner-out .4s ease-in 2.6s forwards;
  pointer-events: none;
}
@keyframes crazy-banner-in { to { transform: translate(-50%, 0) scale(1); opacity: 1; } }
@keyframes crazy-banner-out { to { opacity: 0; transform: translate(-50%, -10px) scale(.92); } }
.crazy-critical { background: linear-gradient(120deg, #7a1512, #b3231f); font-size: 24px; }
@keyframes screen-shake-kf {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(6px, -3px); }
  60% { transform: translate(-5px, -2px); }
  80% { transform: translate(5px, 2px); }
}
.screen-shake { animation: screen-shake-kf .45s ease-in-out; }
@keyframes disco-hue { to { filter: hue-rotate(360deg); } }
.disco-mode .app { animation: disco-hue 2.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .screen-shake, .disco-mode .app { animation: none; } }

/* ---------- Atölye falı ---------- */
.fortune-box { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius-md); background: linear-gradient(120deg, var(--violet-bg), var(--surface)); border: 1px solid var(--violet); }
.fortune-icon { font-size: 22px; flex: none; }
.fortune-text { flex: 1; font-size: 13.5px; font-style: italic; color: var(--ink-2); }

/* ==========================================================================
   4.11.0 — OptiFlow Pro özellikleri (4.89.0 tek paket)
   ========================================================================== */
.pro-rozet {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px;
  background: #1a1723; color: #e3bd66; font: 800 10.5px/1.3 var(--sans); font-style: normal;
  letter-spacing: .08em;
}
.pro-rozet.buyuk { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.card-head .pro-rozet { margin-left: auto; }
.nav .pro-rozet { margin-left: auto; }
.nav a.active .pro-rozet { background: rgba(255, 255, 255, .16); }
/* Tarayıcıda masaüstüne özel özellik sade kalır (rozet yok, soluk metin, küçük kilit) */
.nav a.nav-kilitli { color: var(--muted); font-weight: 500; opacity: .75; }
.nav a.nav-kilitli .ic { opacity: .45; transform: scale(.85); }
.nav a.nav-kilitli:hover { opacity: 1; }
.pro-kart { border: 1px solid rgba(201, 161, 58, .35); }
.pro-kilitli .card-head h2 { display: flex; align-items: center; gap: 8px; }
.pro-sayfa { display: grid; gap: 18px; max-width: 860px; }
.pro-hero { background: linear-gradient(160deg, #1e171a 0%, #1e171a 60%, #2c1b21 100%); color: #f3eef0; border: 0; }
.pro-hero h2 { margin: 12px 0 6px; font-size: 26px; color: #fff; }
.pro-hero .pro-kisa { margin: 0 0 16px; color: #ab9fa3; font-size: 15px; }
.pro-maddeler { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro-maddeler li { display: flex; gap: 10px; align-items: flex-start; }
.pro-maddeler .ic { color: #e3bd66; flex: none; margin-top: 2px; }
.pro-durum { margin: 18px 0 10px; color: #ab9fa3; }
.pro-cta { justify-content: flex-start; }
.pro-hero .hint { color: #ab9fa3; }
.pro-kilitli .card-head h2 .pro-rozet { margin-left: 4px; }
.pro-tablo td:nth-child(n+2), .pro-tablo th:nth-child(n+2) { text-align: center; width: 26%; }
.pro-tablo tr.secili td { background: var(--accent-soft); }

/* ---------- 4.12.0 modüller ---------- */
.barkod-bildirim { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9999; background: #1e171a; color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.barkod-bildirim.hata { background: var(--red, #bd1c33); }
input.kopyala { width: 100%; font: 12px/1.4 ui-monospace, Consolas, monospace; padding: 6px 8px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.wa-tablo .wa-metin { max-width: 520px; white-space: normal; }
.ozellik-satir:last-of-type { border-bottom: 0 !important; }
@media print {
  .no-print, .sidebar, .topbar, .bottom-nav, .back-link { display: none !important; }
  .cam-fis { box-shadow: none; border: 0; }
}

/* 4.13.0 — ÜTS */
.row-highlight td { background: var(--amber-bg); }
.card.inset { box-shadow: none; background: var(--surface-2); border: 1px solid var(--line); padding: 14px 16px; margin: 0; }
.card.inset > summary { cursor: pointer; font-weight: 650; }

/* ==========================================================================
   4.17.0 Hızlı satış
   ========================================================================== */
.satis-ekrani { margin-bottom: 22px; }
.satis-arama { gap: 10px; flex-wrap: wrap; }
.satis-arama .search { flex: 1 1 320px; }
.satis-arama .search input { font-size: 1.05rem; }
.satis-oneri { list-style: none; margin: 0 0 12px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.satis-oneri li.muted { padding: 10px 12px; }
.satis-oneri button { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ad fiyat" "alt fiyat"; gap: 0 14px; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; cursor: pointer; }
.satis-oneri button:hover, .satis-oneri button:focus-visible { background: var(--surface-2); }
.satis-oneri button b { grid-area: ad; }
.satis-oneri button small { grid-area: alt; color: var(--muted); }
.satis-oneri-fiyat { grid-area: fiyat; align-self: center; font-weight: 700; white-space: nowrap; }
.satis-sepet td { vertical-align: middle; }
.satis-sepet input[aria-label="Serbest kalem adı"] { width: 100%; min-width: 140px; }
.satis-kucuk { width: 5.4em; text-align: right; padding-left: 6px; padding-right: 6px; }
.satis-adet { display: inline-flex; align-items: center; gap: 4px; }
.satis-adet { gap: 3px; }
.satis-adet .satis-kucuk { width: 2.8em; text-align: center; }
.satis-adet .btn-sm { padding: 4px 8px; min-width: 0; }
.satis-sepet th, .satis-sepet td { padding-left: 8px; padding-right: 8px; }
.satis-sepet td:first-child { min-width: 150px; }
.satis-sepet td.num b { white-space: nowrap; }
.satis-bos { display: flex; align-items: center; gap: 14px; padding: 26px 18px; color: var(--muted); }
.satis-bos svg { width: 34px; height: 34px; flex: none; opacity: .6; }
.satis-bos p { margin: 0; max-width: 56ch; }
.satis-bos[hidden] { display: none; }
.satis-toplamlar li input { width: 8em; text-align: right; }
.satis-toplam { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; margin-top: 4px; border-top: 2px solid var(--ink); }
.satis-toplam span { font-weight: 700; }
.satis-toplam b { font-size: 1.9rem; letter-spacing: -.02em; }
.satis-yontemler { display: grid; gap: 8px; margin: 12px 0 6px; }
.satis-yontem { margin: 0; }
.satis-yontem-giris { display: flex; gap: 6px; }
.satis-yontem-giris input { flex: 1; text-align: right; }
.satis-kalan { margin: 8px 0 12px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 700; text-align: center; }
.satis-kalan.tamam { background: color-mix(in srgb, var(--green) 14%, white); color: var(--green); }
.satis-kalan.fazla { background: color-mix(in srgb, var(--red) 12%, white); color: var(--red); }
.satis-paraustu, .satis-musteri { margin: 0 0 12px; }
.satis-paraustu summary, .satis-musteri summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.satis-paraustu-sonuc { margin: 0; font-weight: 700; }
.satis-tamamla { width: 100%; margin-top: 6px; }
.satis-detay .card-head h2 .badge { vertical-align: middle; margin-left: 6px; }
@media (min-width: 1280px) {
  .satis-ekrani.split { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1279px) {
  .satis-ekrani.split { grid-template-columns: 1fr; }
  .satis-odeme { max-width: 560px; margin-left: auto; }
}
@media (max-width: 640px) {
  .satis-sepet thead { display: none; }
  .satis-sepet tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
  .satis-sepet td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 2px 0; }
  .satis-sepet td:first-child { grid-column: 1 / -1; display: block; }
  .satis-sepet td[data-etiket]:not(:first-child)::before { content: attr(data-etiket); color: var(--muted); font-size: .85rem; margin-right: 8px; }
}


/* ==========================================================================
   4.19.0 — BORDO: siyah menü, bordo vurgu, dolu yüzeyler (kullanıcı seçimi "C")
   Eski kuralların üzerine yazar (aynı sınıf adları). Başlıklar sans; kartlarda
   simge rozetleri, başlık bandında gözlük çizimi, tonlu istatistik kartları.
   ========================================================================== */
body {
  background:
    radial-gradient(1100px 520px at 92% -8%, rgba(180, 35, 60, .07), transparent 62%),
    radial-gradient(900px 420px at 10% 105%, rgba(180, 35, 60, .04), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  font-weight: 500;
}
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 750; letter-spacing: -.02em; }
::selection { background: var(--brand-soft); color: var(--ink); }
.eyebrow, .kicker { font: 700 11.5px/1 var(--sans); letter-spacing: .14em; color: var(--brand); }
.kicker::before { width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.link { color: var(--brand-ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); }

/* ---- Kenar çubuğu ---- */
.sidebar {
  background: radial-gradient(120% 40% at 0% 0%, rgba(180, 35, 60, .22), transparent 60%), var(--night);
  color: var(--on-night-muted); border-right: 0;
  padding: 26px 16px calc(18px + env(safe-area-inset-bottom));
}
.sidebar::after { background: linear-gradient(to bottom, transparent, rgba(255, 107, 129, .35) 30%, rgba(255, 107, 129, .2) 70%, transparent); }
.sidebar .brand { padding: 0 8px 22px; border-bottom: 1px solid rgba(243, 238, 240, .08); }
.sidebar .brand-mark { width: 36px; height: 36px; color: var(--accent-bright); filter: drop-shadow(0 6px 14px rgba(208, 51, 79, .45)); }
.sidebar .brand-text b { font: 800 18px/1.1 var(--sans); letter-spacing: -.02em; color: #fff; }
.sidebar .brand-text small { margin-top: 5px; font: 700 10.5px/1 var(--sans); letter-spacing: .24em; color: var(--accent-bright); }
.new-order.btn, .new-order.btn:hover {
  margin: 18px 2px 14px; min-height: 46px; border-radius: 12px; border: 0;
  background: var(--grad); color: #fff; font-weight: 750;
  box-shadow: 0 12px 26px -14px rgba(208, 51, 79, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.new-order.btn:hover { filter: brightness(1.08); }
.sidebar .global-search input:not([type="checkbox"]) { background: rgba(255, 255, 255, .05); border: 1px solid rgba(243, 238, 240, .10); color: var(--on-night); border-radius: 11px; box-shadow: none; padding-left: 38px !important; }
.sidebar .global-search input::placeholder { color: var(--on-night-muted); opacity: .85; }
.sidebar .global-search input:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(255, 107, 129, .2); }
.global-search > .ic { left: 13px; top: 50%; transform: translateY(-50%); color: var(--on-night-muted); }
.nav-label { margin: 22px 12px 8px; font: 700 10.5px/1 var(--sans); letter-spacing: .2em; color: rgba(171, 159, 163, .7); }
.nav { gap: 2px; }
.nav a { padding: 9px 12px; border-radius: 10px; color: var(--on-night-muted); font-weight: 600; font-size: 14px; }
.nav a .ic { opacity: .8; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(208, 51, 79, .28), rgba(208, 51, 79, .06)); box-shadow: inset 3px 0 0 var(--accent-bright); }
.nav a.active .ic { color: var(--accent-bright); opacity: 1; }
.nav .count, .nav a.active .count { background: var(--brand-bright); color: #fff; border: 0; font-weight: 750; }
.nav a.nav-kilitli { color: rgba(171, 159, 163, .5); }
.sidebar .pro-rozet { background: rgba(255, 107, 129, .14); color: var(--accent-bright); border: 0; }
.sidebar-user { margin: 14px 0 0; padding: 12px 10px; border: 1px solid rgba(243, 238, 240, .08); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.sidebar-user b { color: #fff; }
.sidebar-user small { color: var(--on-night-muted); }
.sidebar .icon-btn { color: var(--on-night-muted); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar .avatar { background: var(--grad); color: #fff; box-shadow: none; }
@media (max-width: 1023px) {
  .topbar { background: rgba(20, 16, 18, .97); color: var(--on-night); border-bottom: 1px solid rgba(255, 107, 129, .25); }
  .topbar .brand b { font: 800 17px var(--sans); color: #fff; }
  .topbar .brand-mark { color: var(--accent-bright); }
  .topbar .icon-btn { color: var(--on-night); }
  .tabbar { background: rgba(20, 16, 18, .97); border-top: 1px solid rgba(255, 107, 129, .25); box-shadow: none; }
  .tabbar a, .tabbar button { color: var(--on-night-muted); font-weight: 650; }
  .tabbar a.is-on { color: #fff; }
  .tabbar a.is-on .ic { color: var(--accent-bright); filter: none; }
  .tabbar a.tabbar-fab { background: var(--grad); color: #fff !important; border: 3px solid var(--night); box-shadow: 0 12px 26px -10px rgba(208, 51, 79, .8); }
}

/* ---- Başlık bandı: koyu, dokulu, gözlük çizimli ---- */
.page-head, .hero {
  margin: 0 0 26px; padding: 30px 34px; border: 0; border-radius: 22px; overflow: hidden; position: relative;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 200' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='120' cy='110' r='62' stroke-opacity='.16'/%3E%3Ccircle cx='300' cy='110' r='62' stroke-opacity='.16'/%3E%3Cpath d='M182 104c14-14 42-14 56 0' stroke-opacity='.16'/%3E%3Cpath d='M58 104L20 70' stroke-opacity='.12'/%3E%3Cpath d='M362 104l38-34' stroke-opacity='.12'/%3E%3Cpath d='M84 78a62 62 0 0 1 40-28' stroke-opacity='.3'/%3E%3Cpath d='M264 78a62 62 0 0 1 40-28' stroke-opacity='.3'/%3E%3Ccircle cx='120' cy='110' r='92' stroke-opacity='.05'/%3E%3Ccircle cx='300' cy='110' r='92' stroke-opacity='.05'/%3E%3C/svg%3E") right 24px center / 380px auto no-repeat, var(--band);
  color: #fff; box-shadow: 0 26px 50px -32px rgba(90, 15, 35, .75);
}
.page-head::before, .hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
.page-head::after, .hero::after { content: none; }
.page-head > *, .hero > * { position: relative; z-index: 1; }
/* 4.20.1: bant içindeki açılır menü (sipariş › WhatsApp) bandın sınırında kesiliyordu → açıkken taşmaya izin ver */
.page-head::before, .hero::before { border-radius: inherit; }
.page-head:has(.menu[open]), .hero:has(.menu[open]) { overflow: visible; z-index: 20; }
.hero-actions .menu-list { left: 0; right: auto; }
.page-head .eyebrow, .page-head .kicker, .hero .eyebrow { color: var(--accent-bright); }
.page-head .kicker::before { background: var(--accent-bright); }
.page-head h1, .hero h1 { font: 800 clamp(30px, 3vw, 40px)/1.08 var(--sans); letter-spacing: -.03em; color: #fff; }
.page-head h1 em, .hero h1 em { color: var(--accent-bright); font-style: normal; }
.hero h1 a:hover { color: var(--accent-bright); }
.page-head p, .hero p { color: rgba(255, 255, 255, .74); font-size: 14.5px; }
.page-head p a, .hero p b, .hero p strong { color: #fff; }
.page-head .back-link { color: rgba(255, 255, 255, .7); }
.page-head .back-link:hover { color: #fff; }
.page-head .btn-primary, .page-head .btn-primary:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); }
.page-head .btn-primary .ic { color: var(--brand); }
.page-head .btn:not(.btn-primary), .hero-actions .btn:not(.btn-primary):not(.btn-wa) { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.page-head .btn:not(.btn-primary):hover, .hero-actions .btn:not(.btn-primary):not(.btn-wa):hover { background: rgba(255, 255, 255, .18); }
.page-head input:not([type="checkbox"]):not([type="radio"]), .page-head select { background: rgba(255, 255, 255, .95); }
.page-head .badge, .hero .badge { background: rgba(255, 255, 255, .14); color: #fff; }
.hero .avatar.lg { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px var(--accent-bright), 0 0 0 6px rgba(255, 107, 129, .12); }
@media (max-width: 640px) { .page-head, .hero { padding: 24px 20px; border-radius: 18px; background-size: 240px auto, auto, auto; background-position: right -40px bottom -30px, 0 0, 0 0; } }

/* ---- Düğmeler ---- */
.btn { min-height: 42px; padding: 10px 18px; border-radius: 11px; font: 700 13.5px/1 var(--sans); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.btn-primary, .btn-primary:hover { border: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(180, 35, 60, .85), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-primary:hover { filter: brightness(1.07); color: #fff; }
.btn-primary .ic { color: #fff; }
.btn-ghost { box-shadow: none; }
.btn-wa { background: #1a7d50; border-color: #1a7d50; box-shadow: 0 10px 22px -14px rgba(26, 125, 80, .9); }   /* 4.86.0 beyaz yazıyla 5,1:1 (eski #1f8f5a 4,1:1) */
.btn-wa:hover { background: #187a4c; border-color: #187a4c; color: #fff; }
.btn-sm { min-height: 32px; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; }
.icon-btn { border-radius: 10px; }
.icon-btn:hover { background: var(--brand-tint); color: var(--brand-ink); }
.btn-primary::after, .btn-wa::after, .new-order.btn::after { content: none !important; }
.new-order.btn, .nav .count, .badge.tone-red, .badge.tone-amber, .page-head h1, .hero h1, .auth-card h1 { animation: none !important; }
.page-head h1 em, .hero h1 em { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--accent-bright) !important; }

/* ---- Kart: başlık şeridi + simge rozeti ---- */
.card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px 28px; }
.card-head { margin: -4px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.card-head h2 { font: 750 18px/1.25 var(--sans); letter-spacing: -.015em; gap: 12px; }
.card-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--grad); flex: none; }
.card-head h2:has(.ic)::before { content: none; }
.card-head h2 .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); flex: none; }
.step { width: 32px; height: 32px; border: 0; background: var(--grad); color: #fff; font: 750 14px/1 var(--sans); box-shadow: 0 8px 16px -10px rgba(180, 35, 60, .9); }

/* ---- Form ---- */
.field > span, .field legend { color: var(--ink-2); font: 700 11.5px/1.2 var(--sans); letter-spacing: .08em; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 44px; border-radius: var(--radius-sm); border-color: var(--line-strong); background: var(--surface); box-shadow: inset 0 1px 2px rgba(40, 14, 22, .04); }
input:hover, select:hover, textarea:hover { border-color: #c4b6b8; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--focus); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
.sticky-actions { background: linear-gradient(to top, var(--paper) 70%, rgba(245, 243, 243, 0)); }

/* ---- Rozet, çip, sekme, avatar ---- */
.badge { border-radius: 99px; padding: 5px 11px 5px 9px; font: 700 12px/1.2 var(--sans); }
.alert { border-radius: 14px; }
.chip { border-radius: 99px; padding: 8px 15px; font-weight: 650; background: var(--surface); box-shadow: var(--shadow-sm); }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-tint); }
.chip.active, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -12px rgba(27, 20, 22, .9); }
.tabs { gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%; }
.tab { padding: 9px 14px; border-radius: 10px; font-weight: 650; }
.tab:hover { background: var(--surface-3); }
.tab.active { background: var(--ink); color: #fff; }
.tab.active::after, .tab::before { content: none; }
.tab.active em { color: var(--accent-bright); }
.avatar { background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-style: normal; }
/* 4.86.0 UX denetimi: sıraya göre renk yalnız tonsuz avatarlara — ada göre ton (avatar_ton, .av-1…6) eziliyordu, yeşil üstünde yeşil 4,47:1 kalıyordu. */
.table tbody tr:nth-child(5n+2) .avatar:not([class*="av-"]) { background: var(--blue-bg); color: var(--blue); }
.table tbody tr:nth-child(5n+3) .avatar:not([class*="av-"]) { background: var(--green-bg); color: var(--green); }
.table tbody tr:nth-child(5n+4) .avatar:not([class*="av-"]) { background: var(--amber-bg); color: var(--amber); }
.table tbody tr:nth-child(5n+5) .avatar:not([class*="av-"]) { background: var(--violet-bg); color: var(--violet); }
.rows-link tbody tr:hover .avatar { background: var(--grad); color: #fff; }
.avatar.lg { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }

/* ---- İstatistik kartları: tonlu zemin + simge kutusu ---- */
.stat {
  --t: var(--brand); --tb: var(--brand-soft); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px 18px;
  background: linear-gradient(150deg, var(--surface) 45%, color-mix(in srgb, var(--tb) 70%, var(--surface)) 100%);
}
.stat.tone-green { --t: var(--green); --tb: var(--green-bg); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.stat.tone-red { --t: var(--red); --tb: var(--red-bg); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9.5 16.5h-19z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17.5h.01'/%3E%3C/svg%3E"); }
.stat.tone-amber { --t: var(--amber); --tb: var(--amber-bg); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.stat.tone-teal { --t: var(--teal); --tb: var(--teal-bg); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='14' r='3.5'/%3E%3Ccircle cx='17.5' cy='14' r='3.5'/%3E%3Cpath d='M10 14c.7-.8 3.3-.8 4 0'/%3E%3Cpath d='M3 14l1.5-6h2'/%3E%3Cpath d='M21 14l-1.5-6h-2'/%3E%3C/svg%3E"); }
.stat.tone-violet { --t: var(--violet); --tb: var(--violet-bg); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.stat.tone-blue { --t: var(--blue); --tb: var(--blue-bg); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
.stat.tone-green, .stat.tone-red, .stat.tone-amber, .stat.tone-teal, .stat.tone-violet, .stat.tone-blue { border-left: 1px solid var(--line); background: linear-gradient(150deg, var(--surface) 45%, color-mix(in srgb, var(--tb) 70%, var(--surface)) 100%); }
.stat::before { content: ""; position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 13px; background: var(--tb); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 18%, transparent); }
.stat::after { content: ""; position: absolute; top: 29px; right: 29px; width: 20px; height: 20px; border: 0; border-radius: 0; box-shadow: none; background: var(--t); -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat; }
.stat small { font: 700 11px/1.25 var(--sans); letter-spacing: .1em; color: var(--muted); padding-right: 52px; min-height: 28px; }
.stat small::before { content: none; }
.stat b { margin: 14px 0 4px; font: 800 clamp(24px, 2.2vw, 32px)/1 var(--sans); overflow: visible; text-overflow: clip; letter-spacing: -.03em; color: var(--ink); }
.stat.tone-red b { color: var(--red); }
.stat.tone-green b { color: var(--green); }
a.stat:hover, button.stat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--t) 40%, var(--line)); box-shadow: var(--shadow), 0 18px 34px -26px var(--t); }
.stat-secret, .stat.stat-secret { --t: var(--accent-bright); --tb: rgba(255, 255, 255, .08); --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); background: var(--band); border-color: transparent; color: var(--on-night); }
.stat-secret small, .stat-secret span { color: rgba(243, 238, 240, .75); }
.stat-secret b { color: #fff; }

/* ---- Araç çubuğu ve tablo ---- */
.search .ic { color: var(--brand); }
.search input:not([type="checkbox"]) { border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.table th { font: 700 11px/1.2 var(--sans); letter-spacing: .1em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table thead th:first-child { border-radius: 10px 0 0 10px; }
.table thead th:last-child { border-radius: 0 10px 10px 0; }
.table td { border-bottom-color: var(--line); }
.table tbody tr:hover td { background: var(--brand-tint); }
.rows-link tbody tr:hover .cell-main b { color: var(--brand-ink); }
.cell-main b { font-weight: 700; }
.rx-code { border-radius: 7px; background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand-ink); }
.pager a, .pager span { border-radius: 10px; background: var(--surface); }
.pager a:hover { border-color: var(--brand); color: var(--brand-ink); }
.empty .empty-art { color: var(--brand); }
.empty b { font: 750 20px/1.2 var(--sans); }

/* ---- Aşama çizgisi, ilerleme, grafik, pano ---- */
.stepper2-wrap { border-radius: var(--radius); box-shadow: var(--shadow); }
.step2.done::before, .step2.current::before { background: var(--grad); }
.step2.done .step2-dot { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.step2.current .step2-dot { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(180, 35, 60, .14); }
.progress { height: 10px; background: var(--surface-3); }
.progress i, .hbar .hbar-track i, .thick-row.rec .thick-bar i, .badge-progress i { background: var(--grad); }
.bars .sales, .key.sales { background: linear-gradient(180deg, #d0334f, #8f1a2e); }
.bars .paid, .key.paid { background: linear-gradient(180deg, #3b3033, #1b1416); }
.advisor-note, .customer-picker .picked, .product.selected, .quote-option-card.is-best, .podium-card.rank-1, .badge-card.is-unlocked, .fortune-box { background: linear-gradient(135deg, var(--brand-tint), var(--surface)); }
.bulk-bar.has-selection { background: var(--night); }
.pano-col { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.pano-col-head, .pano-col-head.tone-amber, .pano-col-head.tone-teal, .pano-col-head.tone-violet, .pano-col-head.tone-green { border-radius: var(--radius) var(--radius) 0 0; font: 750 14px/1.2 var(--sans); padding-top: 14px; }
.pano-col-head b { border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pano-card { border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }

/* ---- Pro kartı, PWA çubuğu, barkod ---- */
.pro-hero { background: var(--band); color: var(--on-night); }
.pro-hero h2 { color: #fff; }
.pro-hero .pro-kisa, .pro-durum, .pro-hero .hint { color: rgba(243, 238, 240, .75); }
.pro-maddeler .ic { color: var(--accent-bright); }
.pwa-bar { background: var(--band); }
.pwa-bar .pwa-yes { background: #fff; color: var(--brand-ink); }
.barkod-bildirim { background: var(--night); }

/* ---- Giriş ekranları ---- */
.auth-page { background: radial-gradient(900px 500px at 100% 0%, rgba(180, 35, 60, .08), transparent 60%), var(--paper); }
.auth-art { background: radial-gradient(70% 55% at 25% 15%, rgba(208, 51, 79, .28), transparent 60%), var(--night); color: var(--on-night); }
.art-title { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; }
.art-title em, .auth-art .brand-mark, .auth-art .brand-text small { color: var(--accent-bright); }
.art-rule { background: var(--grad); }
.auth-card h1 { font: 800 38px/1.08 var(--sans); letter-spacing: -.03em; }
.auth-card h1 em { color: var(--brand); font-style: normal; }
.auth-card .remember-line input { accent-color: var(--brand); }
.auth-single .auth-card { border-radius: 22px; box-shadow: var(--shadow-lg); padding: 40px 38px; position: relative; overflow: hidden; }
.auth-single .auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.mg-marka { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--sans); letter-spacing: -.02em; }
.mg-marka .brand-mark { width: 32px; height: 32px; color: var(--brand); }
.mg-marka b { color: var(--brand); }
.magaza-giris .auth-card h1 { font-size: 32px; }
.magaza-giris .remember-line { align-items: flex-start; }
.magaza-giris .remember-line input { margin-top: 3px; }

.stats > .stat:nth-child(4n+2):not([class*="tone-"]) { --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6.5' cy='14' r='3.5'/%3E%3Ccircle cx='17.5' cy='14' r='3.5'/%3E%3Cpath d='M10 14c.7-.8 3.3-.8 4 0'/%3E%3Cpath d='M3 14l1.5-6h2'/%3E%3Cpath d='M21 14l-1.5-6h-2'/%3E%3C/svg%3E"); }
.stats > .stat:nth-child(4n+3):not([class*="tone-"]) { --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E"); }
.stats > .stat:nth-child(4n+4):not([class*="tone-"]) { --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.5 3.4-5.5 6.5-5.5s5.7 2 6.5 5.5'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7'/%3E%3Cpath d='M18 14.8c2 .7 3.2 2.5 3.5 5.2'/%3E%3C/svg%3E"); }
.stats > .stat.tone-green:nth-child(even) { --ti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='14' rx='3'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M16 15h2'/%3E%3C/svg%3E"); }

.auth-card .foot, .list-foot .muted, .pager .pager-info { font: 500 13px var(--sans); font-style: normal; }
.page-head, .hero { background-size: 380px auto, auto, auto; background-position: right 24px center, 0 0, 0 0; }
@media (max-width: 640px) { .page-head, .hero { background-size: 240px auto, auto, auto; background-position: right -40px bottom -30px, 0 0, 0 0; } }

/* 4.21.0 — Katalogdan teklif (teklif-yeni.php, quote.php) */
.gizli-radyo { position: absolute; opacity: 0; pointer-events: none; }
.teklif-secenekler { display: grid; gap: 12px; }
.teklif-secenek { display: grid; grid-template-columns: 34px minmax(140px, 1fr) minmax(0, 3fr) minmax(130px, 1fr); gap: 12px; align-items: end;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.teklif-secenek-no { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; background: var(--grad); color: #fff; font: 750 14px/1 var(--sans); }
.teklif-ozet-tablo td.num b { font-size: 16px; }
input.is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-bg) !important; }
.teklif-karsilastir { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.teklif-kart { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.teklif-kart.is-secilen { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-bg); }
.teklif-kart h3 { margin: 0; font: 750 17px/1.25 var(--sans); }
.teklif-kart .cam { font-weight: 650; }
.teklif-kart dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 8px 0; font-size: 14px; }
.teklif-kart dt { color: var(--muted); }
.teklif-kart dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.katalog-grup { margin: 0; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.katalog-grup legend { padding: 0 6px; font: 700 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.katalog-grup > small { display: block; margin-top: 8px; }
.katalog-form .grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }   /* dar yan panelde tek sütun */
.katalog-grup .chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.katalog-tablo .badge { margin: 1px 0; }

/* 4.26.0 — Teklifte birden çok gözlük (uzak + yakın …) ve düzenleme */
.gozluk-blok { border-left: 4px solid var(--brand-bright); }
.gozluk-bas h2 { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.gozluk-rozet { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; }
.gozluk-rozet .ic { width: 20px; height: 20px; }
.gozluk-ad { flex: 1; min-width: 0; }
.gozluk-ad input { width: 100%; max-width: 340px; padding: 2px 0; border: 0; border-bottom: 2px dashed var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); font: inherit; }
.gozluk-ad input::placeholder { color: var(--ink); opacity: 1; }
.gozluk-ad input:focus { outline: none; border-bottom-color: var(--brand-bright); }
.gozluk-alt { margin: 22px 0 10px; font: 750 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gozluk-alt:first-of-type { margin-top: 6px; }
.gozluk-alt small { margin-left: 6px; font: 500 12.5px var(--sans); letter-spacing: 0; text-transform: none; }
.gozluk-ekle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 2px; }
.teklif-ozet-tablo tr.gozluk-satir td { padding-top: 14px; background: var(--brand-tint); font-weight: 750; color: var(--brand-ink); }
.teklif-ozet-tablo tr.toplam-satir td { border-top: 2px solid var(--ink); font-weight: 800; }
.teklif-gozluk { margin-bottom: 22px; }
.teklif-gozluk > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 20px/1.2 var(--sans); }
.teklif-toplam { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.teklif-toplam b { font: 800 22px/1.2 var(--sans); font-variant-numeric: tabular-nums; }

.teklif-kart .odenecek { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; margin-top: auto; border-top: 1px solid var(--line); }
.teklif-kart .odenecek b { font: 800 24px/1 var(--sans); color: var(--brand-ink); }
html.tema-koyu .teklif-kart .odenecek b { color: #ff95a6; }
@media (max-width: 900px) {
  .teklif-secenek { grid-template-columns: 34px minmax(0, 1fr); }
  .teklif-secenek .field { grid-column: 2; }
}

/* 4.20.1 — Telefon düzeni: yukarıdaki tema katmanı (.card / .stat dolgusu) "Telefonda kartlar" bölümünü eziyordu;
   kart dolgusu ile tablo kenar payı uyuşmuyor, listelerde Durum / Tutar / Bakiye ekranın dışında kalıyordu. */
@media (max-width: 640px) {
  .card { padding: 18px 16px; border-radius: 20px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .stat { padding: 14px 14px 13px; }
  .cell-main small { white-space: normal; overflow-wrap: anywhere; }
}
/* Dar telefonda liste tabloları: avatar gizlenir, durum rozeti ve "Kalan …" satırı kırılabilir → Durum/Tutar ekranda kalır */
@media (max-width: 480px) {
  .table th, .table td { padding-left: 7px; padding-right: 7px; }
  .table th:first-child, .table td:first-child { padding-left: 0; }
  .table th:last-child, .table td:last-child { padding-right: 0; }
  .table .cell-link > .avatar { display: none; }
  .table td.num small { white-space: normal; }
  .table td .badge { white-space: normal; line-height: 1.25; }
  /* kaydet çubuğu: ana düğme üstte tam genişlik (yazısı sığsın), diğerleri altta yan yana */
  .sticky-actions { gap: 8px; }
  .sticky-actions .btn-primary { flex: 1 1 100%; order: -1; }
  .sticky-actions .btn:not(.btn-primary) { flex: 1 1 0; }
  /* sipariş başlığındaki düğmeler: yazısından dar sıkışmasın, sığmayan alt satıra geçsin */
  .hero-actions > * { flex: 1 1 auto; min-width: max-content; }
  .hero-actions > .btn { width: auto; }
  .hero-actions > form .btn, .hero-actions > details > summary.btn { width: 100%; }
  /* atölye panosu: 8 istatistik kartı ~570 px tutuyor, pano ekranın altına iniyordu → yana kayan tek satır */
  .pano-stats { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; margin-bottom: 12px; }
  .pano-stats::-webkit-scrollbar { display: none; }
  .pano-stats > .stat { flex: 0 0 44%; scroll-snap-align: start; }
  .quick-actions a[href="ekran.php"] { display: none; }   /* TV ekranını telefonda açmanın anlamı yok */
}
/* 4.20.3 — Dokunmatik ekranda parmak hedefleri: tema katmanı çip/sekme/küçük düğmeyi 31–32 px'e indiriyordu
   (atölye panosundaki "Başla / Hazır" dahil). Fare kullanılan masaüstünde sıkı düzen aynen kalır. */
@media (pointer: coarse) {
  .btn-sm { min-height: 40px; }
  .chip, .tab { min-height: 40px; }
  details > summary:not(.btn) { padding-top: 9px; padding-bottom: 9px; }
  .rem-more > summary:not(.btn) { width: 40px; height: 40px; padding: 0; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { padding-top: 8px; padding-bottom: 8px; }
}

/* ==========================================================================
   4.20.0 — KOYU GÖRÜNÜM (html.tema-koyu; assets/tema.js seçer: otomatik / koyu / açık)
   Belirteçler yeniden tanımlanır; açık renge sabitlenmiş birkaç bileşen ayrıca düzeltilir.
   ========================================================================== */
html.tema-koyu {
  color-scheme: dark;
  --paper: #0e0b0c;
  --paper-2: #171214;
  --surface: #171213;
  --surface-2: #1d1718;
  --surface-3: #261e20;
  --line: #2f2528;
  --line-strong: #43363a;
  --ink: #f4eef0;
  --ink-2: #d9cdd0;
  --muted: #a6999d;

  --brand: #e0435f;
  --brand-deep: #b4233c;
  --brand-bright: #ff6b81;
  --brand-ink: #ff95a6;
  --brand-soft: #3a1820;
  --brand-tint: #221417;
  --accent: #e0435f;
  --accent-soft: #3a1820;
  --accent-ink: #ff95a6;

  --night: #090607;
  --night-2: #140f11;
  --night-3: #2a181e;

  --blue: #93b2ff;   --blue-bg: #1a2440;
  --teal: #5fd3c6;   --teal-bg: #12302d;
  --green: #66d699;  --green-bg: #12301f;
  --amber: #f3b75c;  --amber-bg: #33240d;
  --violet: #b8a6ff; --violet-bg: #241c40;
  --red: #ff7d86;    --red-bg: #3a1619;
  --gray: #b6aaad;   --gray-bg: #2a2225;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 36px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -40px rgba(0, 0, 0, .9);
  --focus: 0 0 0 3px rgba(255, 107, 129, .3);
}
html.tema-koyu body {
  background:
    radial-gradient(1100px 520px at 92% -8%, rgba(208, 51, 79, .12), transparent 62%),
    radial-gradient(900px 420px at 10% 105%, rgba(208, 51, 79, .06), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
html.tema-koyu ::selection { background: #5a1f2c; color: #fff; }
/* Menü ve başlık bandı zemine karışmasın */
html.tema-koyu .sidebar { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05); }
html.tema-koyu .page-head, html.tema-koyu .hero { box-shadow: 0 0 0 1px rgba(255, 107, 129, .12), 0 26px 50px -32px rgba(0, 0, 0, .9); }
/* Açık renge sabitlenmiş öğeler */
html.tema-koyu .page-head .btn-primary, html.tema-koyu .page-head .btn-primary:hover { background: #fff; }
html.tema-koyu .page-head .btn-primary, html.tema-koyu .page-head .btn-primary:hover { color: #1b1416; }
html.tema-koyu input:not([type="checkbox"]):not([type="radio"]), html.tema-koyu select, html.tema-koyu textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
html.tema-koyu input:hover, html.tema-koyu select:hover, html.tema-koyu textarea:hover { border-color: #5a4a4e; }
html.tema-koyu input:disabled { background: var(--surface-3); }
html.tema-koyu .page-head input:not([type="checkbox"]):not([type="radio"]), html.tema-koyu .page-head select { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
html.tema-koyu select { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff95a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
html.tema-koyu input::-webkit-calendar-picker-indicator { filter: invert(.85); }
html.tema-koyu .chip.active, html.tema-koyu .chip:has(input:checked), html.tema-koyu .tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
html.tema-koyu .hero .avatar.lg { background: rgba(255, 255, 255, .08); }
html.tema-koyu .sheet-cell { background: var(--surface-2); }
html.tema-koyu .satis-kalan.tamam { background: var(--green-bg); }
html.tema-koyu .satis-kalan.fazla { background: var(--red-bg); }
html.tema-koyu .pwa-bar .pwa-yes { background: #fff; color: #8f1a2e; }
html.tema-koyu .sticky-actions { background: linear-gradient(to top, var(--paper) 70%, rgba(14, 11, 12, 0)); }
html.tema-koyu .alert-ok { border-color: rgba(102, 214, 153, .25); }
html.tema-koyu .alert-error { border-color: rgba(255, 125, 134, .25); }
html.tema-koyu .alert-warn { border-color: rgba(243, 183, 92, .25); }
html.tema-koyu .alert-info { border-color: rgba(147, 178, 255, .25); }
html.tema-koyu .empty .empty-art { color: var(--brand-bright); }
html.tema-koyu .suggest, html.tema-koyu .menu-list { background: var(--surface-2); border-color: var(--line-strong); }
html.tema-koyu .tabbar a.tabbar-fab { border-color: var(--night); }
/* Grafik çubukları: tahsilat koyu zeminde görünür olsun */
html.tema-koyu .bars .paid, html.tema-koyu .key.paid { background: linear-gradient(180deg, #e8dfe1, #a99ea1); }

/* Görünüm düğmesi: koyuda güneş, açıkta ay */
.tema-dugme .tema-gunes { display: none; }
html.tema-koyu .tema-dugme .tema-gunes { display: block; }
html.tema-koyu .tema-dugme .tema-ay { display: none; }

.sidebar .tema-dugme-ust { position: absolute; top: 26px; right: 14px; width: 36px; height: 36px; color: var(--on-night-muted); border: 1px solid rgba(243, 238, 240, .1); }
.sidebar .tema-dugme-ust:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sidebar .brand { padding-right: 48px; }
.page-actions form.inline { display: flex; gap: 8px; align-items: center; margin: 0; }
@media (max-width: 640px) {
  .page-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .page-actions > .btn, .page-actions > form { flex: none; width: 100%; }
  .page-actions form.inline input { flex: 1; min-width: 0; }
}

/* ==========================================================================
   4.32.0 — Kâğıtsız tezgâh: gün sonu depo kartı (Siparişler ana ekranı)
   ========================================================================== */
.depo-kart { border-color: var(--brand-soft); background: linear-gradient(180deg, var(--brand-tint), var(--surface) 70%); }
.depo-ust { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; }
.depo-ust h2 { margin: 4px 0 4px; font-size: 1.25rem; }
.depo-etiket { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.depo-gonder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.depo-gonder .field { margin: 0; min-width: 190px; }
.depo-gonder small { flex-basis: 100%; text-align: right; }
.depo-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 22px; margin: 16px 0 10px; }
.depo-grup b { display: block; font-size: 14px; margin-bottom: 4px; }
.depo-grup b span, .depo-grup li span { color: var(--muted); font-weight: 600; }
.depo-grup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.depo-grup code { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.depo-son { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 16px; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--green-bg); color: var(--green); font-size: 13.5px; font-weight: 600; }
.depo-son .ic { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 640px) { .depo-gonder { width: 100%; } .depo-gonder .btn { flex: 1; } .depo-gonder small { text-align: left; } }

/* 4.33.0 tezgâh: reçete no → Medula → tek ekran kayıt */
.tezgah-no { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.tezgah-no .field { flex: 1 1 260px; margin: 0; }
.tezgah-no input { font: 700 22px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tezgah-form .rx-input { margin: 14px 0; }

/* 4.34.0 tek akış: Reçete → Müşteri → Teklif → Sipariş → Döküm ve gönder (app/tezgah.php akis_cubugu) */
.akis-cubugu { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: none; overflow-x: auto; }
.akis-cubugu li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font: 600 13.5px/1.2 var(--sans); white-space: nowrap; }
.akis-cubugu .akis-no { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; }
.akis-cubugu .akis-ad { overflow: hidden; text-overflow: ellipsis; }
.akis-cubugu li.bitti { color: var(--ink-2); }
.akis-cubugu li.bitti .akis-no { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-ink); }
.akis-cubugu li.simdi { border-color: var(--gold); color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
.akis-cubugu li.simdi .akis-no { background: var(--gold); border-color: var(--gold); color: #fff; }
.akis-cubugu li.atlandi { opacity: .55; text-decoration: line-through; }
.akis-recete p { margin: 0 0 6px; }
@media (max-width: 720px) { .akis-cubugu li:not(.simdi) .akis-ad { display: none; } .akis-cubugu li:not(.simdi) { flex: none; } }

/* 4.38.0 sadeleştirme: iki seçenekli düğme grubu, katlanır isteğe bağlı alanlar, adım altyazısı */
.secim-cip { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; min-height: 46px; }
.secim-cip label { display: flex; }
.secim-cip input { position: absolute; opacity: 0; pointer-events: none; }
.secim-cip span { display: grid; place-items: center; padding: 0 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.secim-cip label + label span { border-left: 1px solid var(--line); }
.secim-cip input:checked + span { background: var(--gold-soft); color: var(--gold-ink); }
.secim-cip input[value="stokta_yok"]:checked + span { background: var(--ink); color: var(--paper); }
.secim-cip input:focus-visible + span { box-shadow: var(--focus); }
.ek-alan { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.ek-alan summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.ek-alan summary small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.ek-alan[open] summary { margin-bottom: 10px; }
.akis-cubugu .akis-ad small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 1px; }

/* 4.38.1 sipariş sayfası sadeleştirme: katlanır kartlar, tek tık sonraki aşama */
details.card > summary.card-head { cursor: pointer; list-style: none; }
details.card > summary.card-head::-webkit-details-marker { display: none; }
details.card > summary.card-head::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
details.card[open] > summary.card-head::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.card:not([open]) > summary.card-head { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
details.card > summary.card-head .muted { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hizli-asama { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; }
.hizli-asama .btn { min-width: 200px; }
.siparis-not { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); white-space: normal; }
.ic-bolum + .ic-bolum { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ic-bolum h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.teklif-secenek-ekle { justify-self: start; }

/* 4.40.0 sadeleştirme 3: ana ekran sayı kutuları filtre çiplerine taşındı; açık bakiye "Bugün" başlığında; hedef ince */
.chips .chip em { font-style: normal; font-weight: 800; margin-left: 6px; opacity: .8; }
.bakiye-gizli { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: inherit; cursor: pointer; }
.bakiye-gizli b { color: var(--ink); }
.bakiye-gizli.is-masked b { filter: blur(6px); }
.bakiye-gizli .ic { width: 15px; height: 15px; vertical-align: -2px; }
.team-goal-card.ince { padding-top: 14px; padding-bottom: 14px; margin-top: 16px; }
.team-goal-card.ince .badge-progress { height: 6px; }
.musteri-not { margin: 6px 0 0; font-size: 13.5px; opacity: .85; font-style: italic; }
/* 4.41.0 reçete sayfası: öneri asistanı katlanır */
details.advisor > summary { cursor: pointer; list-style: none; }
details.advisor > summary::-webkit-details-marker { display: none; }
details.advisor:not([open]) > summary { margin-bottom: 0; }
/* 4.41.0 teklif görüntüleme: gözlük özeti tek satır, hesap dökümü katlanır */
.gozluk-ozet { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.hesap-dokum { margin-top: 4px; }
.hesap-dokum summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 700; }
.hesap-dokum[open] summary { margin-bottom: 8px; }
/* 4.41.0 Ayarlar: gruplu sekmeler ve bölüm başlıkları */
.ayar-duzen { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 22px; align-items: start; }
.ayar-icerik { min-width: 0; container: ayar / inline-size; }
.ayar-icerik > .card.narrow { max-width: 860px; }
.ayar-menu { position: sticky; top: 16px; display: grid; gap: 14px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ayar-menu-grup { display: grid; gap: 2px; }
.ayar-menu-grup > small { margin: 0 0 4px 10px; font: 800 10.5px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ayar-menu-oge { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 11px; text-decoration: none; color: var(--ink-2); }
.ayar-menu-oge .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.ayar-menu-oge span { display: grid; gap: 1px; min-width: 0; }
.ayar-menu-oge b { font-size: 14px; font-weight: 700; color: var(--ink); }
.ayar-menu-oge span small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.ayar-menu-oge:hover { background: var(--surface-2); }
.ayar-menu-oge.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.ayar-menu-oge.on b { color: var(--brand-ink); }
.ayar-menu-oge.on .ic { color: var(--brand); }
@media (max-width: 980px) {
  .ayar-duzen { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ayar-menu { position: static; display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
  .ayar-menu-grup { display: flex; gap: 4px; flex: none; padding-right: 6px; border-right: 1px solid var(--line); }
  .ayar-menu-grup:last-child { border-right: 0; }
  .ayar-menu-grup > small, .ayar-menu-oge span small { display: none; }
  .ayar-menu-oge { flex: none; align-items: center; padding: 7px 11px; white-space: nowrap; }
  .ayar-menu-oge.on { box-shadow: inset 0 -2px 0 var(--brand); }
}
.ayar-grup { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.ayar-grup:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* ==========================================================================
   4.43.0 — YALIN: görev odaklı arayüz
   Tek fikir: ekran işe ayrılır. Süs bandı, parıltı, bulanık giriş yok; hiyerarşiyi
   tipografi, ince çizgi ve mono sayılar kurar. Bordo yalnız eylem ve "buradasın"
   işaretidir. Kenar çubuğu 6 bölüm, bölümün sayfaları içerik üstünde sekme.
   Önceki katmanların üzerine yazar; koyu görünüm aynı belirteçlerle çalışır.
   ========================================================================== */
:root {
  --paper: #f6f5f3;
  --paper-2: #eeece8;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --surface-3: #f1efeb;
  --line: #e6e3de;
  --line-strong: #d3cec7;
  --ink: #17151a;
  --ink-2: #3d3a40;
  --muted: #6b676d;
  --brand: #a5213a;
  --brand-deep: #7e1528;
  --brand-ink: #8f1a2e;
  --brand-soft: #f7e3e6;
  --brand-tint: #fcf3f4;
  --accent: var(--brand);
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);
  --radius: 14px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 1px rgba(23, 21, 26, .04);
  --shadow: 0 1px 2px rgba(23, 21, 26, .05);
  --sidebar: 236px;
  --kenar: var(--surface);
}
html.tema-koyu {
  --paper: #111012;
  --paper-2: #18161a;
  --surface: #19171b;
  --surface-2: #1e1c20;
  --surface-3: #262329;
  --line: #2c292f;
  --line-strong: #3d3940;
  --ink: #f2f0f3;
  --ink-2: #d4d0d6;
  --muted: #9b969e;
  --brand: #e2526b;
  --brand-deep: #b4233c;
  --brand-ink: #ff98a8;
  --brand-soft: #3a1b22;
  --brand-tint: #221619;
  --kenar: #151316;
}

body, html.tema-koyu body { background: var(--paper); background-attachment: scroll; font-weight: 500; }
::selection { background: var(--brand-soft); color: var(--ink); }

/* Hareket yalnız işlev için: kayan bloklar, nabız atan düğme, bulanıktan netleşen başlık kalktı */
.content > *, .page-head h1, .hero h1, .new-order.btn, .new-order.btn::after { animation: none !important; }

/* ---- İskelet ---- */
.content { max-width: 1240px; padding: 22px 40px 80px; }

/* ---- Kenar çubuğu: açık, sakin, 6 bölüm ---- */
.sidebar, html.tema-koyu .sidebar {
  width: var(--sidebar); padding: 20px 14px calc(16px + env(safe-area-inset-bottom)); gap: 4px;
  background: var(--kenar); color: var(--ink-2);
  border-right: 1px solid var(--line); box-shadow: none;
}
.sidebar::after { content: none; }
.sidebar .brand { padding: 2px 48px 18px 6px; border-bottom: 0; gap: 10px; }
.sidebar .brand-mark { width: 30px; height: 30px; color: var(--brand); filter: none; }
.sidebar .brand-text b { font: 750 16px/1.15 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.sidebar .brand-text small { margin-top: 3px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.sidebar .tema-dugme-ust { top: 20px; right: 12px; width: 32px; height: 32px; color: var(--muted); border: 1px solid var(--line); }
.sidebar .tema-dugme-ust:hover { color: var(--ink); background: var(--surface-3); }

.new-order.btn, .new-order.btn:hover {
  margin: 0 0 10px; min-height: 44px; border-radius: 10px; border: 0;
  background: var(--brand); color: #fff; font: 700 14.5px/1 var(--sans);
  box-shadow: none; filter: none;
}
.new-order.btn:hover { background: var(--brand-deep); }
.new-order.btn::after { content: none; }

.sidebar .global-search { margin-bottom: 14px; }
.sidebar .global-search input:not([type="checkbox"]) {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; min-height: 40px; font-size: 14px;
}
.sidebar .global-search input::placeholder { color: var(--muted); }
.sidebar .global-search input:focus { border-color: var(--brand); box-shadow: var(--focus); }
.global-search > .ic { color: var(--muted); }

.bolum-nav { gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.bolum-nav a, html.tema-koyu .bolum-nav a {
  min-height: 42px; padding: 0 12px; border-radius: 9px; gap: 12px;
  color: var(--ink-2); font: 650 15px/1 var(--sans); background: none; box-shadow: none;
}
.bolum-nav a .ic { width: 19px; height: 19px; opacity: .65; color: currentColor; }
.bolum-nav a:hover { color: var(--ink); background: var(--surface-3); }
.bolum-nav a.active, html.tema-koyu .bolum-nav a.active {
  color: var(--ink); background: var(--surface-3); box-shadow: inset 3px 0 0 var(--brand);
}
.bolum-nav a.active .ic { color: var(--brand); opacity: 1; }
.nav .count, .nav a.active .count, .bolum-sekme .count {
  margin-left: auto; min-width: 22px; padding: 3px 7px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-ink); border: 0;
  font: 700 11.5px/1.2 var(--mono); font-style: normal; text-align: center;
}

.sidebar-user, html.tema-koyu .sidebar-user { margin: 12px 0 0; padding: 12px 6px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.sidebar-user b { color: var(--ink); }
.sidebar-user small { color: var(--muted); }
.sidebar .icon-btn { color: var(--muted); }
.sidebar .icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.sidebar .avatar { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---- Bölüm sekmeleri: bölümün sayfaları, içerik üstünde tek satır ---- */
.bolum-sekme {
  position: sticky; top: 0; z-index: 15;
  display: flex; gap: 2px; margin: -22px -40px 22px; padding: 0 28px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.bolum-sekme::-webkit-scrollbar { display: none; }
.bolum-sekme a {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 12px; white-space: nowrap;
  color: var(--muted); text-decoration: none; font: 650 14px/1 var(--sans);
}
.bolum-sekme a:hover { color: var(--ink); }
.bolum-sekme a.active { color: var(--ink); }
.bolum-sekme a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--brand); }
.bolum-sekme a .ic { width: 13px; height: 13px; opacity: .6; }
.bolum-sekme .count { margin-left: 0; }
.bolum-sekme a.nav-kilitli { color: color-mix(in srgb, var(--muted) 70%, transparent); }

/* ---- Sayfa başlığı: bant yok, tipografi ---- */
.page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero {
  margin: 4px 0 24px; padding: 0 0 18px; border-radius: 0; overflow: visible;
  background: none; color: var(--ink); box-shadow: none;
  border-bottom: 1px solid var(--line);
  align-items: flex-end;
}
.page-head::before, .page-head::after, .hero::before, .hero::after { content: none; }
.page-head .kicker, .page-head .eyebrow, .hero .eyebrow {
  display: inline-block; margin-bottom: 8px; color: var(--muted);
  font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.page-head .kicker::before { content: none; }
.page-head h1, .hero h1 { font: 750 clamp(24px, 2.4vw, 30px)/1.15 var(--sans); letter-spacing: -.022em; color: var(--ink); filter: none; }
.page-head h1 em, .hero h1 em { color: var(--brand) !important; font-style: normal; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }
.hero h1 a:hover { color: var(--brand); }
.page-head p, .hero p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.page-head p a, .hero p b, .hero p strong { color: var(--ink); }
.page-head .back-link { display: inline-flex; margin-bottom: 8px; color: var(--muted); font-size: 13.5px; }
.page-head .back-link:hover { color: var(--ink); }
.page-head .back-link + br { display: none; }
.page-head .btn-primary, .page-head .btn-primary:hover,
html.tema-koyu .page-head .btn-primary, html.tema-koyu .page-head .btn-primary:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: none; }
.page-head .btn-primary:hover, html.tema-koyu .page-head .btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.page-head .btn-primary .ic { color: currentColor; }
.page-head .btn:not(.btn-primary), .hero-actions .btn:not(.btn-primary):not(.btn-wa) {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none;
}
.page-head .btn:not(.btn-primary):hover, .hero-actions .btn:not(.btn-primary):not(.btn-wa):hover { background: var(--surface-3); }
.page-head input:not([type="checkbox"]):not([type="radio"]), .page-head select,
html.tema-koyu .page-head input:not([type="checkbox"]):not([type="radio"]), html.tema-koyu .page-head select { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.page-head .badge, .hero .badge { background: var(--surface-3); color: var(--ink-2); }
.hero .avatar.lg, html.tema-koyu .hero .avatar.lg { background: var(--surface-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 640px) { .page-head, .hero { padding: 0 0 14px; background: none; } }

/* ---- Kart ve sekmeler: ince çizgi, gölge yok ---- */
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: none; }
.tabs { box-shadow: none; }

/* ---- Telefon: açık üst çubuk ve alt çubuk ---- */
@media (max-width: 1023px) {
  .sidebar { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .35); }
  .topbar, html.tema-koyu .topbar {
    background: color-mix(in srgb, var(--kenar) 94%, transparent); color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .topbar .brand b { font: 750 16px var(--sans); color: var(--ink); }
  .topbar .brand-mark { color: var(--brand); width: 26px; height: 26px; }
  .topbar .icon-btn { color: var(--ink-2); }
  .tabbar, html.tema-koyu .tabbar { background: color-mix(in srgb, var(--kenar) 96%, transparent); border-top: 1px solid var(--line); box-shadow: none; }
  .tabbar a, .tabbar button { color: var(--muted); }
  .tabbar a.is-on { color: var(--ink); }
  .tabbar a.is-on .ic { color: var(--brand); }
  .tabbar a.tabbar-fab, html.tema-koyu .tabbar a.tabbar-fab { background: var(--brand); border: 3px solid var(--kenar); box-shadow: none; }
  .content { padding: 16px 16px 96px; }
  .bolum-sekme { margin: -16px -16px 16px; padding: 0 4px; top: calc(52px + env(safe-area-inset-top)); }
}

/* ---- Yalın: istatistik = etiket + mono sayı; renk yalnız sayıda ve küçük noktada ---- */
.stat, .stat.tone-green, .stat.tone-red, .stat.tone-amber, .stat.tone-teal, .stat.tone-violet, .stat.tone-blue {
  background: var(--surface); border: 1px solid var(--line); border-left: 1px solid var(--line);
  box-shadow: none; padding: 16px 18px 14px; border-radius: var(--radius-md);
}
.stat::after { content: none; }
.stat::before { top: 21px; left: 18px; right: auto; width: 6px; height: 6px; border-radius: 99px; background: var(--t); box-shadow: none; }
.stat small { padding: 0 0 0 14px; min-height: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .06em; }
.stat b { margin: 12px 0 2px; font: 600 clamp(24px, 2.1vw, 30px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.tone-amber b { color: var(--amber); }
a.stat:hover, button.stat:hover { transform: none; border-color: var(--line-strong); box-shadow: none; background: var(--surface-2); }

/* ---- Kart başlığı: düz simge, degrade çizgi yok ---- */
.card { padding: 22px 24px; }
.card-head { margin: -2px 0 16px; padding-bottom: 14px; }
.card-head h2 { font: 750 16.5px/1.25 var(--sans); gap: 10px; }
.card-head h2::before { content: none; }
.card-head h2 .ic { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none; color: var(--muted); }
.step { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip.active, .chip:has(input:checked) { box-shadow: none; }
.chip { box-shadow: none; }
.rows-link tbody tr:hover .avatar { background: var(--ink); color: var(--paper); }
.page-head h1 em, .hero h1 em { color: inherit !important; }

/* ---- Kenar çubuğu kullanıcı satırı: ad tek satır, unvan altında ---- */
.sidebar-user .who b, .sidebar-user .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .icon-btn { width: 34px; height: 34px; }

/* ---- Yalın: düğmeler düz; birincil = bordo, ikincil = çizgi ---- */
.btn { min-height: 40px; padding: 9px 16px; border-radius: 9px; box-shadow: none; }
.btn:hover { border-color: var(--line-strong); background: var(--surface-3); color: var(--ink); }
.btn-primary, .btn-primary:hover { background: var(--brand); border: 1px solid var(--brand); color: #fff; box-shadow: none; filter: none; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-wa { box-shadow: none; }
.avatar.lg, .hero .avatar.lg { width: 64px; height: 64px; font: 700 22px/1 var(--sans); font-style: normal; letter-spacing: .02em; }
/* Bölüm sekmesi varken başlıktaki bölüm adı tekrar etmesin */
.bolum-sekme ~ .page-head .kicker, .bolum-sekme ~ .page-head .eyebrow { display: none; }

/* ==========================================================================
   4.44.0 — Zarfsız atölye: iş kartı (numaralı adımlar + paraf), kutu / raf
   Kâğıt iş emrinin "Adım · Tamam · Paraf · Saat" tablosu: aynı numaralar, aynı sıra.
   ========================================================================== */
.is-karti-govde { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.is-karti-yan { display: grid; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); }
.is-karti-yan .field { margin: 0; }
.is-karti-yan .hint { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.kutu-form { display: flex; align-items: flex-end; gap: 8px; }
.kutu-form .field { flex: 1; }
.kutu-gir { font: 600 18px/1 var(--mono) !important; letter-spacing: .04em; text-transform: uppercase; }
.kutu-gir::placeholder { color: var(--line-strong); text-transform: none; }

.is-adimlar { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.is-adimlar li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px;
  min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted);
}
.is-adimlar i { font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .04em; color: var(--muted); }
.is-adimlar b { font: 650 15px/1.25 var(--sans); color: var(--ink-2); }
.is-adimlar .paraf { font: 500 13px/1.2 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
.is-adimlar .paraf em { font: italic 500 13px var(--sans); }
.is-adimlar li.bitti b { color: var(--ink); }
.is-adimlar li.bitti i::before { content: "✓ "; color: var(--green); }
.is-adimlar li.bitti .paraf { color: var(--ink-2); }
.is-adimlar li.uyari .paraf em { color: var(--amber); font-style: normal; font-weight: 700; }
.is-adimlar li.simdi { color: var(--ink); }
.is-adimlar li.simdi i { color: var(--brand); }
.is-adimlar li.simdi b { color: var(--ink); font-weight: 750; }
.is-adimlar .adim-at { grid-column: 3 / 5; display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin: 0; }
.is-adimlar .raf-gir { display: flex; align-items: center; gap: 8px; margin: 0; }
.is-adimlar .raf-gir span { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.is-adimlar .raf-gir input { width: 96px; min-height: 36px; font: 600 15px/1 var(--mono); text-transform: uppercase; }
.is-adimlar .geri { margin: 0; }
.is-adimlar .geri .linkish { font-size: 12.5px; color: var(--muted); }
.is-adimlar .geri .linkish:hover { color: var(--brand-ink); }

/* Pano kartı: kutu numarası sağ üstte, paraf satırı mono */
.pano-card { position: relative; }
.kutu-rozet {
  position: absolute; top: 10px; right: 34px; min-width: 30px; padding: 4px 7px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 600 13px/1 var(--mono); text-align: center; letter-spacing: .02em;
}
a.pano-card > .kutu-rozet, .pano-card:not(:has(.drag-handle)) > .kutu-rozet { right: 10px; }
.kart-paraf { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 6px 0 0; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.kart-paraf b { font: 650 11.5px var(--sans); color: var(--ink-2); }
.pano-actions:has(.kutu-gir) { display: flex; gap: 6px; }
.pano-actions .kutu-gir { width: 84px; min-height: 34px; font-size: 14px !important; padding: 4px 8px; }
.pano-actions:has(.kutu-gir) .btn-block { flex: 1; width: auto; }

@media (max-width: 760px) {
  .is-karti-govde { grid-template-columns: 1fr; gap: 18px; }
  .is-karti-yan { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .is-adimlar li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .is-adimlar .adim-at { grid-column: 1 / -1; justify-content: stretch; }
  .is-adimlar .adim-at .btn { flex: 1; min-height: 44px; }
  .is-adimlar .geri { grid-column: 2 / -1; justify-self: end; }
}
.is-karti-govde { grid-template-columns: minmax(0, 1fr) 270px; }
.is-karti-yan > *, .is-karti-yan .field { min-width: 0; }
.is-karti-yan select, .is-karti-yan input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.kutu-form .btn { flex: none; min-height: 44px; }
.is-adimlar li.bitti i::before { content: none; }
.is-adimlar li.bitti i { color: var(--green); }
.is-adimlar li.bitti .paraf::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 700; }
.pano-actions:has(.kutu-gir) { display: grid; gap: 6px; }
.kart-raf { display: flex; align-items: center; gap: 8px; margin: 0; }
.kart-raf span { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kart-raf .kutu-gir { flex: 1; width: auto; min-width: 0; min-height: 34px; padding: 4px 10px; font-size: 15px !important; }
.pano-actions:has(.kutu-gir) .btn-block { width: 100%; }
@media (max-width: 760px) {
  .is-karti-govde { grid-template-columns: minmax(0, 1fr); }
  .is-adimlar li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .is-adimlar .paraf { grid-column: 3; }
  .is-adimlar .raf-gir { flex: 1; }
  .is-adimlar .raf-gir input { flex: 1; width: auto; }
  .is-adimlar .adim-at { flex-wrap: wrap; }
}

/* ==========================================================================
   4.45.0 — Veresiye defteri (ekstre, taksit planı) ve gün sonu küpür sayımı
   ========================================================================== */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.defter-siparis .card-head h2 { display: flex; align-items: baseline; gap: 10px; }
.defter-siparis .card-head h2 small { font: 500 13px var(--sans); }
.defter-kalan { font: 600 20px/1 var(--mono); font-variant-numeric: tabular-nums; }
.defter-plan { margin: 0 0 6px; }
.defter-plan td, .defter-plan th { padding-top: 9px; padding-bottom: 9px; }
.defter-plan tr.soluk td { color: var(--muted); }
.defter-plan tr.soluk td.mono { text-decoration: line-through; text-decoration-color: var(--line-strong); }
.defter-eylem { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.defter-tahsil { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.defter-tahsil .field { margin: 0; min-width: 0; }
.defter-tahsil .field input:not([type="date"]) { width: 140px; font-family: var(--mono); }
.defter-taksit > summary { list-style: none; }
.defter-taksit > summary::-webkit-details-marker { display: none; }
.defter-taksit[open] > summary { margin-bottom: 10px; }
.defter-taksit form + form { margin-top: 8px; }
.defter-hareket tfoot td { padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 700; }
.defter-alt { margin-top: 10px; text-align: right; }
.defter-liste td.num b { font-family: var(--mono); font-weight: 600; }

.kupur { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.kupur > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.kupur[open] > summary { margin-bottom: 10px; }
.kupur-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.kupur-izgara label { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; }
.kupur-izgara span { font: 600 13px/1 var(--mono); color: var(--ink-2); text-align: right; white-space: nowrap; }
.kupur-izgara input { min-height: 36px !important; padding: 4px 8px; font: 600 15px/1 var(--mono); text-align: right; }

@media print {
  .defter-siparis, .defter-hareket { break-inside: avoid; }
  .content { padding: 0; max-width: none; }
  .bolum-sekme, .tabbar, .alert { display: none !important; }
  .card { border: 0; padding: 0; margin-bottom: 18px; }
}
.kasa-ozet { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; }
.kasa-ozet > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kasa-ozet > div small { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kasa-ozet > div b { font: 600 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.kasa-ozet > div:last-child { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; }
.kasa-ozet > div:last-child small { color: var(--ink); }
.kasa-ozet > div:last-child b { font-size: 19px; }
.page-head .btn.btn-wa:not(.btn-primary), .page-head .btn.btn-wa:not(.btn-primary):hover { background: #1a7d50; border-color: #1a7d50; color: #fff; }
.page-head .btn.btn-wa:not(.btn-primary):hover { background: #187a4c; }
@media (max-width: 640px) {
  .defter-plan { font-size: 13.5px; }
  .defter-plan th, .defter-plan td { padding-left: 6px; padding-right: 6px; }
  .defter-tahsil { width: 100%; }
  .defter-tahsil .field { flex: 1 1 120px; }
  .defter-tahsil .field input:not([type="date"]) { width: 100%; }
}

/* ==========================================================================
   4.46.0 — GECE: Yalın düzeni + iş emrinin dili
   Kullanıcı (23.10): Yalın fazla çıplak; "daha şık, görsel olarak dolu, ama sade".
   Kaynak: beğenilen atölye iş emri (gece bandı, numaralı bölümler, büyük mono rakam).
   • Menü gece rengi, bölümler 01–06 numaralı.  • Sayfa başlığı = gece bandı: bordo ışık +
     nişangâh halkaları (markanın motifi, çizim değil).  • Sayı kartları tonlu, rakam mono.
   • Kartlar beyaz, hafif derinlik; başlık simgesi tonlu kutuda.  Yapı (6 bölüm, sekmeler) aynen.
   ========================================================================== */
:root {
  --paper: #f3f0ee;
  --surface: #ffffff;
  --surface-2: #faf8f7;
  --surface-3: #f2eeec;
  --line: #e7e1de;
  --line-strong: #d5ccc8;
  --ink: #18120f;
  --ink-2: #41383a;
  --muted: #74696c;
  --brand: #b4233c;
  --brand-deep: #7e1528;
  --brand-ink: #8f1a2e;
  --brand-soft: #fbe4e8;
  --brand-tint: #fdf2f4;
  --coral: #ff6b81;
  --gece: #140e10;
  --gece-2: #1e1518;
  --gece-3: #2b1c21;
  --gece-yazi: #f4eef0;
  --gece-soluk: #a99ca0;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(40, 14, 22, .05);
  --shadow: 0 1px 2px rgba(40, 14, 22, .05), 0 12px 28px -22px rgba(60, 14, 28, .35);
  --kenar: var(--gece);
  --halka: repeating-radial-gradient(circle at center, transparent 0 37px, rgba(255, 255, 255, .07) 37px 38px);
}
html.tema-koyu {
  --paper: #0f0b0c;
  --surface: #181213;
  --surface-2: #1d1617;
  --surface-3: #261d1f;
  --line: #30262a;
  --line-strong: #43363a;
  --brand: #e0435f;
  --brand-ink: #ff95a6;
  --brand-soft: #3a1820;
  --brand-tint: #221417;
  --gece: #0a0708;
  --gece-2: #161012;
  --kenar: var(--gece);
}

/* ---- Menü: gece, numaralı bölümler ---- */
.sidebar, html.tema-koyu .sidebar {
  background: radial-gradient(120% 34% at 0% 0%, rgba(180, 35, 60, .26), transparent 62%), var(--gece);
  color: var(--gece-soluk); border-right: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}
.sidebar .brand-mark { color: var(--coral); filter: drop-shadow(0 6px 14px rgba(208, 51, 79, .45)); }
.sidebar .brand-text b { color: #fff; }
.sidebar .brand-text small { color: var(--coral); letter-spacing: .2em; }
.sidebar .tema-dugme-ust { color: var(--gece-soluk); border-color: rgba(255, 255, 255, .1); }
.sidebar .tema-dugme-ust:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.new-order.btn, .new-order.btn:hover {
  background: linear-gradient(135deg, #d0334f 0%, #8f1a2e 100%); color: #fff;
  box-shadow: 0 12px 24px -14px rgba(208, 51, 79, .95), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.new-order.btn:hover { filter: brightness(1.08); background: linear-gradient(135deg, #d0334f 0%, #8f1a2e 100%); }
.sidebar .global-search input:not([type="checkbox"]) { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); color: var(--gece-yazi); }
.sidebar .global-search input::placeholder { color: var(--gece-soluk); }
.sidebar .global-search input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 129, .2); }
.sidebar .global-search > .ic { color: var(--gece-soluk); }
.bolum-nav { counter-reset: bolum; border-top-color: rgba(255, 255, 255, .08); }
.bolum-nav a, html.tema-koyu .bolum-nav a { counter-increment: bolum; color: var(--gece-soluk); min-height: 44px; }
.bolum-nav a::before {
  content: counter(bolum, decimal-leading-zero); width: 20px; flex: none;
  font: 600 11px/1 var(--mono); letter-spacing: .04em; color: rgba(169, 156, 160, .55);
}
.bolum-nav a .ic { opacity: .75; }
.bolum-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.bolum-nav a.active, html.tema-koyu .bolum-nav a.active {
  color: #fff; background: linear-gradient(90deg, rgba(208, 51, 79, .3), rgba(208, 51, 79, .05));
  box-shadow: inset 2px 0 0 var(--coral);
}
.bolum-nav a.active::before, .bolum-nav a.active .ic { color: var(--coral); opacity: 1; }
.nav .count, .nav a.active .count { background: rgba(255, 107, 129, .16); color: var(--coral); }
.sidebar-user, html.tema-koyu .sidebar-user { border-top-color: rgba(255, 255, 255, .08); }
.sidebar-user b { color: #fff; }
.sidebar-user small, .sidebar .icon-btn { color: var(--gece-soluk); }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar .avatar { background: linear-gradient(135deg, #d0334f, #8f1a2e); color: #fff; box-shadow: none; }

/* ---- Sayfa başlığı: gece bandı ---- */
.page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 0 22px; padding: 26px 30px; border: 0; border-radius: 20px;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(208, 51, 79, .42), transparent 60%),
    linear-gradient(120deg, var(--gece) 0%, #2a1219 100%);
  color: var(--gece-yazi);
  box-shadow: 0 22px 44px -30px rgba(70, 12, 28, .85);
  align-items: center;
}
.page-head::before, .hero::before {
  content: ""; position: absolute; z-index: -1; left: auto; bottom: auto; right: -70px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%);
  border-radius: 50%; background: var(--halka); pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%); mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}
.page-head::after, .hero::after {
  content: ""; position: absolute; z-index: -1; left: auto; right: 100px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .12), transparent); pointer-events: none;
}
html.tema-koyu .page-head, html.tema-koyu .hero { box-shadow: 0 0 0 1px rgba(255, 107, 129, .14); }
.page-head .kicker, .page-head .eyebrow, .hero .eyebrow { color: var(--coral); }
.page-head h1, .hero h1 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.025em; }
.page-head h1 em, .hero h1 em { color: var(--coral) !important; }
.hero h1 a:hover { color: var(--coral); }
.page-head p, .hero p { color: rgba(244, 238, 240, .72); }
.page-head p a, .page-head p b, .hero p b, .hero p strong { color: #fff; }
.page-head .back-link { color: rgba(244, 238, 240, .6); }
.page-head .back-link:hover { color: #fff; }
.page-head .btn-primary, .page-head .btn-primary:hover,
html.tema-koyu .page-head .btn-primary, html.tema-koyu .page-head .btn-primary:hover { background: #fff; color: #18120f; border-color: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); filter: none; }
.page-head .btn-primary .ic { color: var(--brand); }
.page-head .btn:not(.btn-primary), .hero-actions .btn:not(.btn-primary):not(.btn-wa) {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18);
}
.page-head .btn:not(.btn-primary):hover, .hero-actions .btn:not(.btn-primary):not(.btn-wa):hover { background: rgba(255, 255, 255, .16); color: #fff; }
.page-head input:not([type="checkbox"]):not([type="radio"]), .page-head select,
html.tema-koyu .page-head input:not([type="checkbox"]):not([type="radio"]), html.tema-koyu .page-head select { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.page-head input::-webkit-calendar-picker-indicator { filter: invert(.9); }
.page-head .badge, .hero .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.hero .avatar.lg, html.tema-koyu .hero .avatar.lg { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 2px var(--coral), 0 0 0 6px rgba(255, 107, 129, .12); }
@media (max-width: 640px) {
  .page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero { padding: 20px 18px; border-radius: 16px; }
  .page-head::before, .hero::before { width: 240px; height: 240px; right: -90px; }
}

/* ---- Bölüm sekmeleri: kâğıt şerit, bordo işaret ---- */
.bolum-sekme a.active::after { height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #d0334f, #8f1a2e); }
.bolum-sekme a.active { color: var(--ink); font-weight: 750; }

/* ---- Sayı kartları: tonlu, rakam mono ve renkli ---- */
.stat, .stat.tone-green, .stat.tone-red, .stat.tone-amber, .stat.tone-teal, .stat.tone-violet, .stat.tone-blue {
  position: relative; overflow: hidden; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--tb) 65%, var(--surface)) 100%);
  box-shadow: var(--shadow-sm);
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; width: auto; height: 3px; border-radius: 0; background: var(--t); opacity: .9; }
.stat:not([class*="tone-"])::before { background: linear-gradient(90deg, #d0334f, #8f1a2e); opacity: .55; }
.stat small { padding: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted); }
.stat b { margin: 12px 0 4px; font: 600 clamp(24px, 2.1vw, 31px)/1 var(--mono); letter-spacing: -.02em; }
.stat.tone-red b { color: var(--red); }
.stat.tone-green b { color: var(--green); }
.stat.tone-amber b { color: var(--amber); }
.stat.tone-teal b { color: var(--teal); }
.stat.tone-violet b { color: var(--violet); }
a.stat:hover, button.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow); background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--tb) 80%, var(--surface)) 100%); }

/* ---- Kartlar: beyaz, hafif derinlik, tonlu simge ---- */
.card { border-color: var(--line); box-shadow: var(--shadow); }
.card-head h2 .ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.card-head h2 { font-size: 17px; }

/* ---- Düğmeler: birincil bordo ışıklı ---- */
.btn-primary, .btn-primary:hover { background: linear-gradient(135deg, #d0334f 0%, #8f1a2e 100%); border: 0; color: #fff; box-shadow: 0 10px 22px -14px rgba(180, 35, 60, .9), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-primary:hover { filter: brightness(1.07); background: linear-gradient(135deg, #d0334f 0%, #8f1a2e 100%); }
.btn { box-shadow: var(--shadow-sm); }
.chip.active, .chip:has(input:checked) { background: var(--gece); border-color: var(--gece); color: #fff; }

/* ---- Telefon: gece üst çubuk ve alt çubuk ---- */
@media (max-width: 1023px) {
  .topbar, html.tema-koyu .topbar { background: rgba(20, 14, 16, .96); color: var(--gece-yazi); border-bottom: 1px solid rgba(255, 107, 129, .2); }
  .topbar .brand b { color: #fff; }
  .topbar .brand-mark { color: var(--coral); }
  .topbar .icon-btn { color: var(--gece-yazi); }
  .tabbar, html.tema-koyu .tabbar { background: rgba(20, 14, 16, .97); border-top: 1px solid rgba(255, 107, 129, .2); }
  .tabbar a, .tabbar button { color: var(--gece-soluk); }
  .tabbar a.is-on { color: #fff; }
  .tabbar a.is-on .ic { color: var(--coral); }
  .tabbar a.tabbar-fab, html.tema-koyu .tabbar a.tabbar-fab { background: linear-gradient(135deg, #d0334f, #8f1a2e); border-color: var(--gece); box-shadow: 0 10px 22px -10px rgba(208, 51, 79, .8); }
}

/* ---- Gece bandı veri şeridi (bant_veri): günün sayıları büyük mono ---- */
.bant-veri { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.bant-veri > a, .bant-veri > div { display: grid; gap: 6px; min-width: 112px; padding: 2px 26px 2px 0; margin-right: 26px; border-right: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none; }
.bant-veri > :last-child { border-right: 0; margin-right: 0; }
.bant-veri dt { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gece-soluk); }
.bant-veri dd { margin: 0; font: 500 30px/1 var(--mono); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.bant-veri dd.ton-red { color: var(--coral); }
.bant-veri dd.ton-green { color: #7fe0a8; }
.bant-veri dd.ton-amber { color: #ffc56b; }
.bant-veri > a:hover dt { color: #fff; }
@media (max-width: 640px) {
  .bant-veri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bant-veri > a, .bant-veri > div { min-width: 0; padding-right: 8px; margin-right: 8px; }
  .bant-veri dd { font-size: 22px; }
  .bant-veri dt { font-size: 9.5px; letter-spacing: .08em; }
}
.page-head .btn-primary .ic { color: #b4233c; }

/* ==========================================================================
   4.46.1 — GECE belirgin: kullanıcı "pek değişiklik yok; üstteki barları ve kutucukları belirginleştir"
   • Gece bandı daha büyük, bordo ışık daha güçlü, halkalar görünür; bant sayıları ayrı kutucuklarda.
   • Bölüm sekmeleri beyaz şerit üzerinde dolu bordo hap (seçili sekme net).
   • Kutular: güçlü kenar + gölge, tonlu başlık şeridi; sayı kartlarında kalın renk çizgisi ve renkli zemin.
   ========================================================================== */
:root { --halka: repeating-radial-gradient(circle at center, transparent 0 33px, rgba(255, 140, 160, .16) 33px 34.5px); }

/* ---- Gece bandı: daha büyük, daha canlı ---- */
.page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero {
  padding: 32px 36px 28px; border-radius: 22px;
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(224, 58, 88, .75), transparent 58%),
    radial-gradient(50% 120% at 0% 100%, rgba(180, 35, 60, .28), transparent 60%),
    linear-gradient(115deg, #120c0e 0%, #2a0f17 55%, #4a1322 100%);
  box-shadow: 0 28px 50px -28px rgba(110, 16, 40, .75), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 107, 129, .14);
}
.page-head::before, .hero::before { width: 420px; height: 420px; right: -90px; opacity: 1; }
.page-head::after, .hero::after { right: 120px; background: linear-gradient(transparent, rgba(255, 255, 255, .22), transparent); }
.page-head h1, .hero h1 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.page-head p, .hero p { font-size: 15px; color: rgba(244, 238, 240, .8); }

/* bant sayıları: her biri ayrı cam kutucuk */
.bant-veri { gap: 12px; margin-top: 22px; padding-top: 0; border-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bant-veri > a, .bant-veri > div {
  position: relative; margin: 0; padding: 14px 16px 15px; min-width: 0; border-right: 0;
  border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(2px); gap: 10px;
  transition: background .15s, border-color .15s, transform .15s;
}
.bant-veri > a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.bant-veri > a::after { content: "→"; position: absolute; top: 12px; right: 14px; font: 600 13px/1 var(--mono); color: rgba(255, 255, 255, .35); }
.bant-veri dt { font-size: 11px; color: rgba(244, 238, 240, .7); }
.bant-veri dd { font-size: 36px; font-weight: 600; }
.bant-veri > :has(dd.ton-red) { background: rgba(255, 107, 129, .14); border-color: rgba(255, 107, 129, .4); }
.bant-veri > :has(dd.ton-green) { background: rgba(127, 224, 168, .1); border-color: rgba(127, 224, 168, .32); }
.bant-veri > :has(dd.ton-amber) { background: rgba(255, 197, 107, .1); border-color: rgba(255, 197, 107, .32); }

/* ---- Bölüm sekmeleri: beyaz şerit, seçili sekme dolu bordo ---- */
.bolum-sekme {
  margin: -22px -40px 20px; padding: 10px 28px; gap: 6px; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px -14px rgba(40, 14, 22, .35);
}
.bolum-sekme a { min-height: 38px; padding: 0 14px; border-radius: 10px; color: var(--ink-2); font-weight: 650; }
.bolum-sekme a:hover { background: var(--surface-3); color: var(--ink); }
.bolum-sekme a.active, html.tema-koyu .bolum-sekme a.active {
  color: #fff; background: linear-gradient(135deg, #d0334f 0%, #8f1a2e 100%);
  box-shadow: 0 8px 18px -10px rgba(180, 35, 60, .9);
}
.bolum-sekme a.active::after { content: none; }
.bolum-sekme a.active .count { background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 1023px) {
  .bolum-sekme { margin: -16px -16px 16px; padding: 8px 10px; }
}

/* ---- Kutular: net kenar, belirgin gölge, tonlu başlık şeridi ---- */
.card, details.card {
  border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 4px rgba(40, 14, 22, .05), 0 18px 34px -24px rgba(60, 14, 28, .45);
}
.card > .card-head, details.card > summary.card-head {
  margin: -22px -24px 18px; padding: 16px 24px; border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0; background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
details.card:not([open]) > summary.card-head { margin-bottom: -22px; border-bottom: 0; border-radius: 18px; }
.card-head h2 { font-size: 17.5px; font-weight: 800; }
.card-head h2 .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: linear-gradient(135deg, #d0334f, #8f1a2e); color: #fff; box-shadow: 0 8px 16px -10px rgba(180, 35, 60, .9); }
html.tema-koyu .card, html.tema-koyu details.card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 18px 34px -24px rgba(0, 0, 0, .9); }
html.tema-koyu .card > .card-head, html.tema-koyu details.card > summary.card-head { background: linear-gradient(180deg, var(--surface-3), var(--surface)); }

/* sayı kartları: kalın renk çizgisi, renkli zemin, büyük rakam */
.stat, .stat.tone-green, .stat.tone-red, .stat.tone-amber, .stat.tone-teal, .stat.tone-violet, .stat.tone-blue {
  padding: 20px 20px 18px 24px; border: 1px solid var(--line-strong); border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tb) 85%, var(--surface)) 0%, var(--surface) 75%);
  box-shadow: 0 14px 28px -22px rgba(60, 14, 28, .5);
}
.stat::before { top: 0; bottom: 0; left: 0; right: auto; width: 5px; height: auto; opacity: 1; }
.stat:not([class*="tone-"])::before { opacity: .9; }
.stat b { font-size: clamp(28px, 2.4vw, 36px); }
.stat small { color: var(--ink-2); }

/* Bugün panosu: her sütun ayrı kutucuk */
.today-cols { gap: 14px; }
.today-col { padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.today-col-head { margin: -14px -14px 10px; padding: 11px 14px; border-bottom: 0; border-radius: 14px 14px 0 0; font-size: 11.5px; letter-spacing: .08em; }
.today-col-head.tone-wine { background: var(--brand-soft); color: var(--brand-ink); }
.today-col-head.tone-red { background: var(--red-bg); color: var(--red); }
.today-col-head.tone-green { background: var(--green-bg); color: var(--green); }
.today-col-head.tone-amber { background: var(--amber-bg); color: var(--amber); }
.today-row { background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; padding: 8px 10px; }
.today-row:hover { border-color: var(--line-strong); background: var(--surface); }

/* Atölye panosu sütunları: dolu renkli başlık, net kutu */
.pano-col { border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 14px 28px -22px rgba(60, 14, 28, .45); background: var(--surface-2); }
.pano-col-head { padding: 14px 16px; border-radius: 17px 17px 0 0; font-size: 14px; font-weight: 800; }
.pano-col-head.tone-amber { background: linear-gradient(135deg, #e89a2c, #b56b07); color: #fff; }
.pano-col-head.tone-teal { background: linear-gradient(135deg, #1fa596, #0f6f66); color: #fff; }
.pano-col-head.tone-violet { background: linear-gradient(135deg, #7a5cf0, #4b2fb8); color: #fff; }
.pano-col-head.tone-green { background: linear-gradient(135deg, #2bb36b, #157347); color: #fff; }
.pano-col-head.tone-wine { background: linear-gradient(135deg, #d0334f, #8f1a2e); color: #fff; }
.pano-col-head b { background: rgba(255, 255, 255, .22); color: #fff; }
.pano-col-sub { padding-top: 10px; background: var(--surface); }
.pano-card { background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; box-shadow: 0 6px 14px -12px rgba(60, 14, 28, .5); }

@media (max-width: 640px) {
  .page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero { padding: 24px 18px 20px; }
  .bant-veri { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bant-veri > a, .bant-veri > div { padding: 11px 12px; margin: 0; }
  .bant-veri dd { font-size: 28px; }
  .card > .card-head, details.card > summary.card-head { margin: -18px -16px 14px; padding: 14px 16px; }
  details.card:not([open]) > summary.card-head { margin-bottom: -18px; }
}

/* ==========================================================================
   4.46.2 — GECE ince ayar (kullanıcı: önerilen değişikliklerin "hepsi")
   1) Renk: bordo daha derin; tonsuz/sıfır sayı kutusunda pembe zemin yok.
   2) Bant: yalnız sayılı bantlar (bant_veri: ana ekran, atölye, veresiye) büyük; diğer sayfalarda ince.
   3) Kutular: gölge az, köşeler keskin.  4) Kasa, sipariş, telefon ince ayarları.
   ========================================================================== */
:root { --brand: #a51d36; --brand-deep: #6f1123; --brand-ink: #861729; --brand-soft: #f6e1e5; --koyu-bordo: linear-gradient(135deg, #b8243f 0%, #6f1123 100%); }

/* 1) Renk: derin bordo her yerde aynı degrade */
.new-order.btn, .new-order.btn:hover, .btn-primary, .btn-primary:hover,
.bolum-sekme a.active, html.tema-koyu .bolum-sekme a.active, .card-head h2 .ic, .sidebar .avatar,
.pano-col-head.tone-wine, .tabbar a.tabbar-fab, html.tema-koyu .tabbar a.tabbar-fab { background: var(--koyu-bordo); }
.page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero {
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(184, 36, 63, .62), transparent 58%),
    linear-gradient(115deg, #110b0d 0%, #240c13 60%, #3b0f1b 100%);
}
.stat:not([class*="tone-"]), .stat:not([class*="tone-"]):hover { background: var(--surface); }
.stat:not([class*="tone-"])::before { background: var(--line-strong); }
.stat.tone-green, .stat.tone-red, .stat.tone-amber, .stat.tone-teal, .stat.tone-violet, .stat.tone-blue {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tb) 55%, var(--surface)) 0%, var(--surface) 70%);
}

/* 2) Bant: varsayılan ince; sayılı bant büyük */
.page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero { padding: 20px 26px; border-radius: 14px; margin-bottom: 18px; }
.page-head h1, .hero h1 { font-size: clamp(22px, 2.1vw, 28px); }
.page-head p, .hero p { font-size: 14px; margin-top: 4px; }
.page-head::before, .hero::before { width: 300px; height: 300px; right: -110px; }
.page-head:has(.bant-veri), html.tema-koyu .page-head:has(.bant-veri) { padding: 30px 34px 26px; border-radius: 18px; margin-bottom: 22px; }
.page-head:has(.bant-veri) h1 { font-size: clamp(30px, 3vw, 40px); }
.page-head:has(.bant-veri)::before { width: 420px; height: 420px; right: -90px; }

/* 3) Kutular: keskin köşe, az gölge, net kenar kalır */
.card, details.card { border-radius: 12px; box-shadow: 0 1px 2px rgba(40, 14, 22, .06); }
.card > .card-head, details.card > summary.card-head { border-radius: 12px 12px 0 0; }
details.card:not([open]) > summary.card-head { border-radius: 12px; }
.stat, .stat.tone-green, .stat.tone-red, .stat.tone-amber, .stat.tone-teal, .stat.tone-violet, .stat.tone-blue { border-radius: 10px; box-shadow: 0 1px 2px rgba(40, 14, 22, .06); }
.bant-veri > a, .bant-veri > div { border-radius: 10px; }
.pano-col { border-radius: 12px; box-shadow: 0 1px 2px rgba(40, 14, 22, .06); }
.pano-col-head { border-radius: 11px 11px 0 0; }
.today-col, .today-col-head { border-radius: 10px; }
.today-col-head { border-radius: 10px 10px 0 0; }
.pano-card { box-shadow: none; }
.bolum-sekme a { border-radius: 8px; }
.card-head h2 .ic { border-radius: 9px; box-shadow: none; }
.btn { border-radius: 9px; }

/* 4) Ekran ince ayarları */
/* kasa: yöntem kutuları tek sıra, rakam bir tık küçük (7 kutu kalabalık görünmesin) */
@media (min-width: 900px) { .stats:has(> .stat:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats:has(> .stat:nth-child(7)) .stat b { font-size: clamp(20px, 1.6vw, 25px); } }
/* sipariş: başlıkta avatar ve düğmeler sıkı, ince bantla uyumlu */
.hero .avatar.lg, html.tema-koyu .hero .avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.hero-main { gap: 16px; }
.hero-actions { margin-top: 2px; }
/* telefon: bant ve kutular sıkı, sekme hapları küçük */
@media (max-width: 640px) {
  .page-head, .hero, html.tema-koyu .page-head, html.tema-koyu .hero { padding: 16px 16px; border-radius: 12px; }
  .page-head:has(.bant-veri), html.tema-koyu .page-head:has(.bant-veri) { padding: 20px 16px 16px; }
  .page-head:has(.bant-veri) h1 { font-size: 28px; }
  .bant-veri { margin-top: 16px; }
  .bant-veri dd { font-size: 26px; }
  .bolum-sekme a { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .card, details.card { border-radius: 10px; }
}
@media (max-width: 640px) {
  .hero .avatar.lg, html.tema-koyu .hero .avatar.lg { width: 44px; height: 44px; font-size: 15px; box-shadow: inset 0 0 0 2px var(--coral); }
  .hero-main { gap: 12px; align-items: flex-start; }
  .hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .hero-actions > *, .hero-actions > .btn, .hero-actions > form .btn { width: 100%; min-width: 0; }
}

/* 4.46.0 kalan ekranlar: büyük tutarlar kutuya sığsın (kutu genişliğine göre ölçeklenen mono rakam) */
.stat, .bant-veri > a, .bant-veri > div { container-type: inline-size; }
.stat b { font-size: clamp(13px, 12.5cqi, 34px); white-space: nowrap; }
.bant-veri dd { font-size: clamp(20px, 15cqi, 36px); white-space: nowrap; }
.kasa-ozet > div b { white-space: nowrap; }

/* ==========================================================================
   4.47.0 — Bugün aranacaklar: kâğıt arama listesinin satırı (numara · kim · neden · sonuç)
   ========================================================================== */
.arama-listesi { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.arama-satir {
  position: relative; display: grid; grid-template-columns: 34px minmax(180px, 1.1fr) minmax(180px, 1.4fr) auto; align-items: center; gap: 8px 18px;
  padding: 14px 16px 14px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(40, 14, 22, .05);
}
.arama-satir::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line-strong); }
.arama-satir.tur-haber::before { background: var(--green); }
.arama-satir.tur-teslim::before { background: var(--amber); }
.arama-satir.tur-manuel::before { background: var(--blue); }
.arama-satir.tur-bakiye::before { background: var(--red); }
.arama-no { font: 600 13px/1 var(--mono); color: var(--muted); }
.arama-kim { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.arama-ad { font: 750 16px/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.arama-ad:hover { color: var(--brand-ink); }
.arama-tel { font: 600 14px/1.2 var(--mono); color: var(--ink-2); text-decoration: none; letter-spacing: .01em; }
.arama-tel:hover { color: var(--brand-ink); }
.arama-neden { display: grid; gap: 3px; min-width: 0; }
.arama-neden .mono { font-size: 13.5px; }
.arama-neden small { color: var(--muted); font-size: 13px; }
.arama-deneme { display: inline-block; justify-self: start; margin-top: 2px; padding: 3px 8px; border-radius: 6px; background: var(--amber-bg); color: var(--amber) !important; font: 600 12px/1.3 var(--mono) !important; }
.arama-deneme.cok { background: var(--red-bg); color: var(--red) !important; }
.arama-eylem { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.arama-eylem form { margin: 0; }
@media (max-width: 900px) {
  .arama-satir { grid-template-columns: 26px minmax(0, 1fr); }
  .arama-neden, .arama-eylem { grid-column: 2; }
  .arama-eylem { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .arama-eylem { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .arama-eylem .btn { width: 100%; }
  .arama-eylem .rem-more { grid-column: span 2; justify-self: end; }
}
/* bugün sekmesinde sayılar bantta: yan özet gizli, liste tam genişlik */
.split:has(.arama-listesi) { grid-template-columns: minmax(0, 1fr) !important; }
.split:has(.arama-listesi) > .split-side { display: none; }

/* 4.48.0 Tamir · hizmet: dört numaralı kutu, iki sütun; seçimler betiksiz (:has) */
.hizmet-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.hizmet-izgara .card { margin: 0; }
.hizmet-izgara .step { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--gece, #140e10); color: #fff; font: 600 12px/1 var(--mono); }
.hizmet-cip { gap: 8px; }
.hizmet-cip .chip { cursor: pointer; user-select: none; }
.hizmet-cip .chip input { position: absolute; opacity: 0; pointer-events: none; }
.hizmet-cip .chip:has(input:focus-visible) { box-shadow: var(--focus); }
.hizmet-musteri { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-size: 16px; }
.hizmet-zaman { width: 100%; }
.hizmet-zaman label { flex: 1; }
.hizmet-zaman span { width: 100%; }
.hizmet-form:has(input[name="hemen"][value="1"]:checked) .hizmet-birak { display: none; }
.hizmet-form:has(input[name="ucretsiz"]:checked) .hizmet-ucret { display: none; }
.hizmet-kaydet { margin-top: 14px; min-height: 48px; }
.hizmet-hemen-yazi { display: none; }
.hizmet-form:has(input[name="hemen"][value="1"]:checked) .hizmet-hemen-yazi { display: inline; }
.hizmet-form:has(input[name="hemen"][value="1"]:checked) .hizmet-birak-yazi { display: none; }
@media (max-width: 900px) { .hizmet-izgara { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   4.50.0 — Şubeler: menü seçicisi, şube rozeti, sipariş şube kartı, gelen gözlükler, transfer
   ========================================================================== */
.sube-secici { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0 10px; min-height: 40px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--gece-yazi, #f4eef0); }
.sube-secici .ic { width: 16px; height: 16px; color: var(--coral, #ff6b81); flex: none; }
.sube-secici select { flex: 1; min-width: 0; min-height: 38px !important; border: 0 !important; background: transparent !important; color: inherit !important; font: 700 14px/1 var(--sans); box-shadow: none !important; padding: 0 20px 0 0 !important; appearance: none; cursor: pointer; }
.sube-secici select option { color: #18120f; }
.sube-secici.tek span { font: 700 14px/1 var(--sans); }
.sube-rozet { display: inline-block; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--ink-2); font: 600 11px/1.3 var(--mono); letter-spacing: .04em; vertical-align: 1px; }
.sube-kart { padding-top: 14px; padding-bottom: 14px; }
.sube-kart-govde { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; }
.sube-kart-govde > div { display: grid; gap: 4px; }
.sube-kart-govde small { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sube-kart-govde form.inline { display: flex; gap: 8px; align-items: center; margin: 0; }
.sube-kart-govde select { min-height: 36px; }
.text-warn { color: var(--amber); }
.text-ok { color: var(--green); }
.yoldaki { border-color: color-mix(in srgb, var(--amber) 45%, var(--line-strong)); }
.yoldaki-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yoldaki-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.yoldaki-liste li a { color: var(--ink); text-decoration: none; }
.yoldaki-liste li small { color: var(--muted); flex: 1; }
.yoldaki-liste form { margin: 0; }
.adet-gir { width: 76px; min-height: 36px !important; text-align: right; font: 600 15px/1 var(--mono); }
.transfer-listesi { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.transfer-listesi li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; }
.transfer-listesi li.durum-yolda { border-left-color: var(--amber); }
.transfer-listesi li.durum-teslim { border-left-color: var(--green); }
.transfer-listesi .ust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.transfer-listesi .ust span:first-of-type { flex: 1; font-weight: 700; }
.transfer-listesi .eylem { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.transfer-listesi form { margin: 0; }
.sube-tablo tfoot td { font-weight: 800; border-top: 2px solid var(--ink); }
.sube-atama td.num, .sube-atama th.num { text-align: center; }

/* 4.53.0 — Ayarlar › Çıktı görünümü (seçenekler solda, canlı örnek sağda) */
.ck-duzen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 18px; align-items: start; }
.ck-form { padding: 20px 22px; }
.ck-giris { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.ck-grup { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.ck-grup legend { padding: 0; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ck-grup legend small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ck-grup input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.ck-renkler { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ck-renk { display: grid; justify-items: center; gap: 5px; padding: 8px 4px 6px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; }
.ck-renk i { display: block; width: 100%; max-width: 54px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ck-renk small { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.2; }
.ck-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.ck-kart { display: grid; gap: 7px; padding: 9px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.ck-kart small { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.ck-bant { position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px; border-radius: 8px; overflow: hidden; }
.ck-bant b { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.ck-bant i { height: 6px; flex: 1; max-width: 60px; border-radius: 3px; }
.ck-bant-gece { background: linear-gradient(115deg, #141012, #4a1220); } .ck-bant-gece b { background: #ff8fa0; } .ck-bant-gece i { background: rgba(255,255,255,.75); }
.ck-bant-renkli { background: linear-gradient(125deg, #d0334f, #7e1528); } .ck-bant-renkli b { background: #fff; } .ck-bant-renkli i { background: rgba(255,255,255,.85); }
.ck-bant-acik { background: linear-gradient(125deg, #fdf1f3, #f6d9df); } .ck-bant-acik b { background: #8f1a2e; } .ck-bant-acik i { background: #8f1a2e; opacity: .6; }
.ck-bant-cizgi { background: #fff; box-shadow: inset 0 -4px 0 #b4233c, inset 0 0 0 1px var(--line); } .ck-bant-cizgi b { background: #b4233c; } .ck-bant-cizgi i { background: #463b3e; opacity: .5; }
.ck-bant-cerceve { background: #fff; box-shadow: inset 0 0 0 2px #b4233c; } .ck-bant-cerceve b { background: #b4233c; } .ck-bant-cerceve i { background: #463b3e; opacity: .5; }
.ck-bant-sade { background: #fff; box-shadow: inset 0 -1px 0 #cbbfc2, inset 0 0 0 1px var(--line); } .ck-bant-sade b { background: transparent; box-shadow: inset 0 0 0 2px #b4233c; } .ck-bant-sade i { background: #463b3e; opacity: .4; }
.ck-yazi { display: block; height: 38px; line-height: 38px; font-size: 17px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.ck-iki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.ck-cipler { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-cip span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ck-renk:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.ck-kart:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.ck-cip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ck-grup label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.ck-onizleme { position: sticky; top: 16px; padding: 14px; }
.ck-onizleme-bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ck-tur { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); }
.ck-tur button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; font: 700 12.5px var(--sans, Manrope), sans-serif; color: var(--ink-2); cursor: pointer; }
.ck-tur button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ck-cerceve { position: relative; height: 560px; overflow: hidden; border-radius: 12px; background: #e9e5e6; border: 1px solid var(--line); }
.ck-cerceve iframe { position: absolute; top: 0; left: 0; width: 820px; height: 1160px; border: 0; transform-origin: 0 0; background: #fff; }
@container ayar (max-width: 900px) { .ck-duzen { grid-template-columns: 1fr; } .ck-onizleme { position: static; max-width: 560px; } }
@media (max-width: 620px) { .ck-iki { grid-template-columns: 1fr; } .ck-form { padding: 16px; } }
/* 4.54.0 — Çıktı görünümü: yapı seçeneklerinin küçük çizimleri */
.ck-yapi, .ck-a4 { position: relative; display: block; height: 58px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; }
.ck-a4 { height: 74px; width: 56px; margin: 0 auto; }
.ck-yapi b, .ck-yapi i, .ck-yapi u, .ck-a4 b, .ck-a4 i, .ck-a4 u { position: absolute; display: block; text-decoration: none; }
.ck-yapi i, .ck-a4 i { left: 10px; right: 10px; top: 24px; height: 22px; background: repeating-linear-gradient(#d6cccd 0 2px, transparent 2px 7px); }
.ck-yapi-bant b { left: 6px; right: 6px; top: 6px; height: 12px; border-radius: 3px; background: linear-gradient(115deg, #141012, #7e1528); }
.ck-yapi-serit b { left: 0; top: 0; bottom: 0; width: 18px; background: linear-gradient(180deg, #141012, #7e1528); }
.ck-yapi-serit i { left: 26px; top: 10px; height: 36px; }
.ck-yapi-mektup b { left: 50%; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #b4233c; }
.ck-yapi-mektup u { left: 8px; right: 8px; top: 18px; height: 3px; border-top: 1px solid #b4233c; border-bottom: 1px solid #b4233c; }
.ck-yapi-kocan b { left: 6px; right: 34px; top: 6px; height: 9px; border-radius: 2px; background: #3a3236; }
.ck-yapi-kocan i { right: 34px; }
.ck-yapi-kocan u { right: 0; top: 0; bottom: 0; width: 26px; background: #fbe4e8; border-left: 2px dashed #c9bec0; }
.ck-yapi-damga b { left: 6px; right: 6px; top: 6px; height: 12px; border-radius: 3px; background: linear-gradient(115deg, #141012, #7e1528); }
.ck-yapi-damga u { right: 6px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #b4233c, inset 0 0 0 3px #fff, inset 0 0 0 4px #b4233c; transform: rotate(-9deg); }
.ck-yapi-etiket b { left: 6px; right: 10px; top: 5px; height: 14px; border-radius: 3px 8px 8px 3px; box-shadow: inset 0 0 0 2px #1b1416; }
.ck-yapi-etiket u { left: 10px; top: 9px; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #1b1416; }
.ck-yapi-sade b { left: 6px; right: 6px; top: 15px; height: 2px; background: #1b1416; }
.ck-a4 i { left: 7px; right: 7px; top: 30px; height: 38px; }
.ck-a4-mercek b { right: 14px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #d0334f, #4a0d1d); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #7e1528; }
.ck-a4-mercek u { right: -3px; top: 9px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #7e1528; }
.ck-a4-mercek i { right: 30px; top: 10px; height: 58px; }
.ck-a4-antet b { left: 0; right: 0; top: 0; height: 7px; background: linear-gradient(115deg, #141012, #7e1528); }
.ck-a4-antet u { left: 0; top: 0; bottom: 0; width: 3px; background: #b4233c; }
.ck-a4-antet i { top: 14px; height: 54px; background: linear-gradient(#b4233c, #b4233c) 0 8px/100% 2px no-repeat, repeating-linear-gradient(#d6cccd 0 2px, transparent 2px 7px) 0 14px/100% 100% no-repeat; }

/* 4.56.0 — Beta ortamı şeridi (beta.optiflow.com.tr) */
.beta-serit { position: sticky; top: 0; z-index: 9998; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; padding: 6px 12px; background: #1b1416; color: #f3eef0; font: 600 12.5px/1.35 var(--sans, system-ui, sans-serif); text-align: center; }
.beta-serit b { padding: 1px 8px; border-radius: 999px; background: #ff6b81; color: #1b1416; font-weight: 800; letter-spacing: .08em; }
@media print { .beta-serit { display: none; } }

/* 4.60.0 Kontakt lens satışı */
.lens-goz-tablo{margin-top:14px;overflow-x:auto}
.lens-goz-tablo table{min-width:520px}
.lens-goz-tablo th:first-child{width:56px;text-align:left}
.lens-goz-tablo input{width:100%;min-width:62px;padding:9px 8px;text-align:center;font-variant-numeric:tabular-nums}
.lens-goz-tablo [hidden]{display:none}
.lens-goz-tablo .btn{margin-top:8px}
.lens-kart dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 18px;margin:0 0 14px}
.lens-kart dl div{display:flex;flex-direction:column;gap:2px}
.lens-kart dt{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#776b6e)}
.lens-kart dd{margin:0;font-weight:700}
.lens-kart .renk-nokta{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:1px;background:var(--brand,#b4233c)}
.lens-kart table td,.lens-kart table th{text-align:center;font-variant-numeric:tabular-nums}
.lens-kart table th:first-child,.lens-kart table td:first-child{text-align:left}

/* 4.61.0 Yeni iş: "Ne yapıyoruz?" seçimi */
.yeni-is{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:6px}
.yi-kart{--yr:var(--brand,#b4233c);--yt:color-mix(in srgb,var(--yr) 12%,var(--surface,#fff));position:relative;display:flex;flex-direction:column;gap:6px;min-height:250px;padding:22px 20px 20px;
  border-radius:22px;background:var(--surface,#fff);border:1.5px solid var(--line,#e8e1e2);color:var(--ink,#1b1416);text-decoration:none;box-shadow:0 18px 34px -28px rgba(60,14,28,.55);
  transition:transform .15s,border-color .15s,box-shadow .15s}
a.yi-kart:hover,.yi-lens:hover{transform:translateY(-3px);border-color:var(--yr);box-shadow:0 24px 40px -26px color-mix(in srgb,var(--yr) 70%,transparent)}
a.yi-kart:focus-visible,.yi-ana:focus-visible{outline:3px solid var(--yr);outline-offset:3px}
.yi-ana{display:flex;flex-direction:column;gap:6px;flex:1;color:inherit;text-decoration:none}
.yi-gozluk{--yr:#b4233c}.yi-lens{--yr:#2c6fb0}.yi-tamir{--yr:#8a5a12}.yi-gunes{--yr:#c27e12}
.yi-ik{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:var(--yt);color:var(--yr);margin-bottom:10px}
.yi-ik svg{width:40px;height:40px}
.yi-kart b{font-size:1.35rem;font-weight:800;letter-spacing:-.02em}
.yi-ac{font-weight:700;color:var(--ink-2,#463b3e)}
.yi-adim{margin-top:auto;padding-top:12px;border-top:1px dashed var(--line,#e8e1e2);font-size:13px;color:var(--muted,#776b6e)}
.yi-no{position:absolute;right:16px;top:16px;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:13px;color:var(--muted,#776b6e);border:1.5px solid var(--line,#e8e1e2)}
.yi-alt{margin-top:10px;align-self:flex-start;font-weight:800;font-size:13px;color:var(--yr);text-decoration:none;padding:7px 11px;border-radius:10px;background:var(--yt)}
.yi-alt:hover{text-decoration:underline}
.yi-not{margin-top:18px}
.is-turu-bant{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:12px;border-radius:14px;background:color-mix(in srgb,var(--brand,#b4233c) 8%,var(--surface,#fff));border:1px solid color-mix(in srgb,var(--brand,#b4233c) 25%,var(--line,#e8e1e2))}
.is-turu-bant b{font-size:1.05rem}
.is-turu-bant a{margin-left:auto;font-weight:700}
@media (max-width:1100px){.yeni-is{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.yeni-is{grid-template-columns:1fr}.yi-kart{min-height:0}}

/* 4.64.0 — Medula (SGK) payı sorusu */
.sgk-sor { border: 1px solid var(--line-strong); border-left: 4px solid var(--gold, #b8893b); border-radius: 12px; padding: 12px 14px 14px; margin: 4px 0 0; background: var(--gold-soft, transparent); }
.sgk-sor legend { font-weight: 800; padding: 0 6px; }
.sgk-sor .hint { margin: 0 0 10px; }
.sgk-secenek { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sgk-secenek label { display: flex; position: relative; }
.sgk-secenek input { position: absolute; opacity: 0; pointer-events: none; }
.sgk-secenek span { flex: 1; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper, #fff); cursor: pointer; }
.sgk-secenek small { color: var(--muted); font-weight: 600; }
.sgk-secenek i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold-ink, inherit); text-transform: uppercase; letter-spacing: .04em; }
.sgk-secenek input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--ink); color: var(--paper); }
.sgk-secenek input:checked + span small, .sgk-secenek input:checked + span i { color: inherit; opacity: .8; }
.sgk-secenek input:focus-visible + span { box-shadow: var(--focus); }
.sgk-alinacak { margin: 10px 0 0; font-size: 15px; }
.sgk-alinacak b { font-size: 18px; }
.sgk-alinacak.eksi b { color: var(--danger, #b42318); }
.sgk-sor-form, .sgk-cift { margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
.sgk-sor-form .sgk-sor { width: 100%; }
.sgk-cift { border: 1px solid var(--line-strong); border-left: 4px solid #b42318; border-radius: 12px; padding: 12px 14px; }
.sgk-cift p { margin: 0; }
.sgk-eksi-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sgk-secenek i[hidden] { display: none; }

/* 4.65.0 K1 — ilk gün kurulum kartı (app/partials/kurulum-karti.php) */
.kurulum-karti { border-color: var(--brand-soft); background: linear-gradient(180deg, var(--brand-tint), var(--surface) 60%); }
.kurulum-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.kurulum-ust h2 { margin: 4px 0 6px; font-size: 1.35rem; }
.kurulum-ust p { margin: 0; max-width: 60ch; }
.kurulum-etiket { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.kurulum-yuzde { flex: none; display: flex; align-items: baseline; gap: 1px; color: var(--brand-ink); }
.kurulum-yuzde b { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kurulum-cubuk { height: 8px; margin: 14px 0 18px; border-radius: 99px; background: var(--line); overflow: hidden; }
.kurulum-cubuk span { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: var(--brand); transition: width .4s ease; }
.kurulum-sonraki { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.kurulum-sonraki small { color: var(--muted); font-weight: 600; }
.kurulum-sonraki h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.kurulum-sonraki p { margin: 0 0 14px; color: var(--ink-2); max-width: 62ch; }
.kurulum-eylem, .kurulum-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kurulum-eylem form, .kurulum-alt form, .kurulum-liste form { margin: 0; }
.kurulum-liste { margin: 14px 0 0; }
.kurulum-liste summary { cursor: pointer; font-weight: 700; color: var(--ink-2); padding: 6px 0; }
.kurulum-liste ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.kurulum-liste li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); }
.kurulum-liste li.simdi { background: var(--brand-tint); }
.kurulum-isaret { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); font-weight: 800; font-size: 12px; color: var(--muted); }
.kurulum-liste li.tamam .kurulum-isaret { border-color: var(--green); background: var(--green); color: #fff; }
.kurulum-liste li.simdi .kurulum-isaret { border-color: var(--brand); color: var(--brand-ink); }
.kurulum-ad { flex: 1; min-width: 0; display: grid; }
.kurulum-ad small { color: var(--muted); }
.kurulum-liste li.tamam .kurulum-ad, .kurulum-liste li.atlandi .kurulum-ad { color: var(--muted); }
.kurulum-alt { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.kurulum-alt p { flex: 1 1 260px; margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .kurulum-yuzde { display: none; } .kurulum-eylem .btn-lg { width: 100%; justify-content: center; } }
.kurulum-karti button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kurulum-karti button.link.muted { color: var(--muted); }

/* 4.68.0 ana ekran: sosyal medya özel gün hatırlatması */
.anasayfa-sosyal { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.anasayfa-sosyal b { display: inline-flex; gap: 8px; align-items: center; }
.anasayfa-sosyal p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.anasayfa-sosyal-tanitim { border-color: var(--brand); background: linear-gradient(100deg, var(--brand-tint), var(--surface, #fff) 70%); }
.anasayfa-sosyal-eylem { display: flex; gap: 8px; align-items: center; }
.anasayfa-sosyal-eylem form { margin: 0; }

/* 4.72.0 Fatura: entegratöre yükleme kutusu */
.efat-yukle{margin-top:12px;padding:12px 14px;border:1px solid var(--line, #e5e2ea);border-radius:12px;background:var(--surface-2, rgba(0,0,0,.02))}
.efat-yukle p{margin:0 0 10px}
.efat-no{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.efat-no .field{flex:1 1 220px;margin:0}

/* Çocuk miyopi takip kartı (app/miyopi.php) */
.miyopi-uyari { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); border-left-width: 4px; margin-bottom: 12px; }
.miyopi-uyari p { margin: 4px 0 0; }
.miyopi-uyari .btn { margin-top: 8px; }
.miyopi-uyari.tone-red { border-left-color: var(--red); background: var(--red-bg); }
.miyopi-uyari.tone-amber { border-left-color: var(--amber); background: var(--amber-bg); }
.miyopi-uyari.tone-green { border-left-color: var(--green); background: var(--green-bg); }
.miyopi-lejant { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 10px; font-size: 13px; }
.miyopi-tablo td.mono { font-variant-numeric: tabular-nums; }
.miyopi-kardes { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.miyopi-ana { border-color: var(--brand-soft); background: linear-gradient(180deg, var(--brand-tint), var(--surface) 70%); }
.miyopi-ana-ust { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 10px; }
.miyopi-ana-ust h2 { margin: 4px 0; font-size: 1.2rem; }

/* ==========================================================================
   4.77.0 — Arayüz cilası (yerel kullanıcı deneyimi turu, 29.10)
   ========================================================================== */

/* Ana ekran: duyuru kartları Bugün panosunun altında; geniş ekranda iki sütun, eşit yükseklik değil kendi boyunda */
.ana-notlar { display: grid; gap: 18px; margin-bottom: 22px; }
.ana-notlar > .card { margin-bottom: 0; }
@media (min-width: 1180px) {
  .ana-notlar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ana-notlar > .depo-kart, .ana-notlar > .miyopi-ana { grid-column: 1 / -1; }
  .ana-notlar > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ana-notlar .radar-kart { grid-template-columns: minmax(0, 1fr); }
  .ana-notlar .radar-kart > .btn { justify-self: start; }
  .ana-notlar > .anasayfa-sosyal-tanitim { flex-direction: column; align-items: flex-start; justify-content: space-between; }
}

/* "Uygulama olarak ekle" çubuğu içeriği örtmesin: masaüstünde kenar çubuğunun dibinde, telefonda içerik altına boşluk */
@media (min-width: 1024px) {
  .pwa-bar { left: 12px; right: auto; bottom: 88px; width: calc(var(--sidebar) - 24px); flex-wrap: wrap; gap: 10px; padding: 12px; }
  .pwa-bar .pwa-txt { flex-basis: calc(100% - 46px); font-size: 13px; }
  .pwa-bar .pwa-yes { flex: 1; min-height: 34px; }
}
@media (max-width: 1023px) {
  body.pwa-bar-acik .content { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
}


/* Tıklanabilir satırlar ve kartlar: klavyeyle gezerken nerede olduğunuz belli olsun */
.today-row:focus-visible, .rows-link tbody tr:focus-within, .chips a:focus-visible, .nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
details.usta-notu:not([open]) { padding-top: 16px; padding-bottom: 16px; }
details.usta-notu:not([open]) > summary.card-head { margin-bottom: 0; }

/* Müşteri kartı › Kontakt lens: dar yan sütunda ürün üstte, ayrıntı ve "Takibi durdur" altta tek satır */
.kv-line.lens-satir { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.kv-line.lens-satir > b { grid-column: 1 / -1; }
.kv-line.lens-satir > span { min-width: 0; }
.kv-line.lens-satir > form { justify-self: end; white-space: nowrap; }

/* ==========================================================================
   4.77.0 — Arayüz cilası, ikinci tur: yaratıcı dokunuşlar
   ========================================================================== */

/* Rakamlar: Plex Mono yalnız 400/500 ağırlıkla yüklü; 600+ istenince tarayıcı sahte kalın üretiyor, tutarlar
   kaba daktilo gibi görünüyordu. Sahte kalın kapalı: en yakın gerçek ağırlık (500) çizilir. */
html { font-synthesis: style; }

/* Menü: 01–06 numaraları anlam taşımıyordu; etkin bölüm soldaki mercan çizgi ve parlak simgeyle belli */
.bolum-nav a::before { content: none; }
.bolum-nav a { gap: 12px; }
.bolum-nav a .ic { transition: transform .2s var(--ease), opacity .2s; }
.bolum-nav a:hover .ic { transform: translateX(2px); opacity: 1; }

/* Kenar çubuğu kullanıcısı: ad sığsın (düğmeler sıkı) */
.sidebar-user { gap: 8px; padding: 10px 8px; }
.sidebar-user .icon-btn { width: 30px; height: 30px; }
.sidebar-user .icon-btn .ic { width: 17px; height: 17px; }
.sidebar-user small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Genel arama: Ctrl K ipucu (yalnız klavyeli geniş ekranda) */
.global-search { position: relative; }
.sidebar .global-search input:not([type="checkbox"]) { padding-right: 58px; }
.gs-kbd {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%); pointer-events: none;
  padding: 4px 6px; border: 1px solid rgba(255, 255, 255, .14); border-bottom-width: 2px; border-radius: 6px;
  background: rgba(255, 255, 255, .04); color: var(--gece-soluk, #ab9fa3); font: 500 10.5px/1 var(--mono); letter-spacing: .04em;
  transition: opacity .15s;
}
.global-search:focus-within .gs-kbd, .global-search input:not(:placeholder-shown) ~ .gs-kbd { opacity: 0; }
@media (pointer: coarse), (max-width: 1023px) { .gs-kbd { display: none; } }

/* Ana ekran selamı: tarih satırında, beyaz */
.page-head p .selam { color: #fff; font-weight: 700; }

/* Kurulum: tek satırlık şerit — ilerleme halkası, sıradaki adım, tek düğme */
.kurulum-karti { padding: 16px 20px; }
.kurulum-serit { display: flex; align-items: center; gap: 16px; }
.kurulum-halka { --yuzde: 0; position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; }
.kurulum-halka::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--yuzde) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
}
.kurulum-halka b { font: 750 16px/1 var(--sans); color: var(--brand-ink); letter-spacing: -.02em; }
.kurulum-halka small { font-size: 11px; font-weight: 650; color: var(--muted); }
.kurulum-ozet { flex: 1; min-width: 0; display: grid; gap: 5px; }
.kurulum-ozet .kurulum-etiket { letter-spacing: .1em; }
.kurulum-ozet h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.kurulum-ac { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.kurulum-ac > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.kurulum-ac > summary::-webkit-details-marker { display: none; }
.kurulum-ac > summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.kurulum-ac[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.kurulum-ac > summary:hover { color: var(--brand-ink); }
.kurulum-ac .kurulum-sonraki { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; padding: 12px 14px; }
.kurulum-ac .kurulum-sonraki p { flex: 1 1 320px; margin: 0; }
.kurulum-ac .kurulum-sonraki form { margin: 0; }
ol.kurulum-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.kurulum-ac .kurulum-alt { margin-top: 12px; }
@media (max-width: 600px) {
  .kurulum-serit { flex-wrap: wrap; gap: 12px 14px; }
  .kurulum-serit > .btn { width: 100%; justify-content: center; }
}

/* Müşteri kartı: tutarlar ince şerit; ödeme oranı çubuğu; kapalı hesap mührü */
.musteri-ozet { gap: 12px; margin-bottom: 20px; }
.musteri-ozet .stat { padding: 14px 18px; }
.musteri-ozet .stat::after { content: none; }
.musteri-ozet .stat b { margin: 8px 0 6px; font-size: clamp(20px, 1.7vw, 25px); font-weight: 500; }
.stat .ozet-cubuk { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.stat .ozet-cubuk i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.stat .muhur { color: var(--green); font-weight: 700; }
.stat .muhur .ic { width: 15px; height: 15px; }
.stat.hesap-kapali b { color: var(--ink-2); }
.bos-satir { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }

/* Sipariş başlığı: meta öğeleri ayraçsız sarar; telefon tek dokunuşla arar */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hero-tel { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 650; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .35); }
.hero-tel .ic { width: 14px; height: 14px; color: var(--coral, #ff6b81); }
.hero-tel:hover { border-bottom-color: #fff; }
@media (max-width: 640px) { .hero-kim { display: none; } }

/* Reçete: TABO aks kadranı — eksenin yönü bir bakışta */
.rx-table td.aks-hucre { white-space: nowrap; }
.aks-kadran { width: 26px; height: 14px; margin-right: 7px; vertical-align: -1px; overflow: visible; }
.aks-kadran .aks-yay { fill: none; stroke: var(--line-strong); stroke-width: 1.3; }
.aks-kadran .aks-taban { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.aks-kadran .aks-cizgi { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; }
.aks-kadran circle { fill: var(--brand); }
.rx-table tr.off .aks-kadran { opacity: .4; }

/* Avatarlar: baş harflerden sabit, sakin bir ton — listede kişiler bir bakışta ayrılır */
.av-1 { --av: #ff6b81; --av-bg: #fbe4e8; --av-ink: #8f1a2e; }
.av-2 { --av: #4fd1c0; --av-bg: #d8f3f0; --av-ink: #0f6f66; }
.av-3 { --av: #ffc56b; --av-bg: #fdefd6; --av-ink: #8a5100; }
.av-4 { --av: #a996ff; --av-bg: #ece6ff; --av-ink: #4f35bd; }
.av-5 { --av: #7fa2ff; --av-bg: #e3ecff; --av-ink: #2149c9; }
.av-6 { --av: #7fe0a8; --av-bg: #dcf3e6; --av-ink: #146b42; }
.avatar[class*="av-"] { background: var(--av-bg); color: var(--av-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av-ink) 22%, transparent); }
html.tema-koyu .avatar[class*="av-"] { background: color-mix(in srgb, var(--av) 16%, transparent); color: var(--av); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av) 30%, transparent); }
.hero .avatar.lg[class*="av-"], html.tema-koyu .hero .avatar.lg[class*="av-"] {
  background: color-mix(in srgb, var(--av) 12%, transparent); color: #fff;
  box-shadow: inset 0 0 0 2px var(--av), 0 0 0 6px color-mix(in srgb, var(--av) 14%, transparent);
}

/* Sipariş listesi: satırın solunda durum renginde ince şerit; geciken satır kırmızı */
.durum-satir > td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--durum, transparent) 70%, transparent); transition: box-shadow .2s var(--ease); }
.durum-satir:hover > td:first-child { box-shadow: inset 5px 0 0 var(--durum, transparent); }
.durum-satir.is-late > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.teslim-hucre small { display: block; margin-top: 2px; font-size: 12px; font-weight: 650; color: var(--muted); }
.teslim-hucre.text-danger small { color: var(--red); }

/* Ödeme özeti: tutar ile ₺ aynı satırda kalsın (dar sütunda ₺ alta düşüyordu) */
.money-summary { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.money-summary b { white-space: nowrap; overflow-wrap: normal; font-size: clamp(15px, 1.15vw, 18px); }

/* Masaüstü: "uygulama olarak ekle" kutusu açıkken kenar çubuğu kullanıcı bloğu kutunun üstünde kalsın (alçak ekranlarda örtüyordu) */
@media (min-width: 1024px) {
  body.pwa-bar-acik .sidebar { padding-bottom: 160px; }
  .pwa-bar { bottom: 14px; }
}

/* 4.77.0 — kenar çubuğunda "Yeni görünümü dene / Klasik görünüme dön" (assets/isik.css) */
.arayuz-gecis { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-top: 6px; padding: 0 12px; border-radius: 12px; color: var(--gece-soluk, #a99ca0); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.arayuz-gecis .ic { width: 17px; height: 17px; }
.arayuz-gecis:hover { color: #fff; background: rgba(255, 255, 255, .06); }

/* 4.86.0 UX denetimi: Ayarlar menüsünde seçili öğenin açıklaması soluk gri + pembe vurgu zemininde 4,2:1 kalıyordu → koyu vurgu tonu. */
.ayar-menu-oge.on span small { color: var(--brand-ink); opacity: .85; }

/* 4.88.0 Tamir · hizmet: "Ne getirdi?" (gözlük / kontakt lens) ve çoklu seçim çipleri.
   Çipler satıra sığmazsa alt satıra iner (yeni görünümdeki tek satırlık "segmented" filtre kuralı bunlara uygulanmaz). */
.hizmet-cip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hizmet-cip .chip { position: relative; min-height: 40px; padding: 8px 15px; white-space: normal; line-height: 1.25; text-align: left; }
.hizmet-cip .chip:has(input:checked) { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-ink, var(--brand)); font-weight: 750; }
.hizmet-urun { display: flex; width: 100%; margin: 0 0 14px; }
.hizmet-urun label { flex: 1; }
.hizmet-urun span { width: 100%; }
.hizmet-form .hizmet-l { display: none; }
.hizmet-form:has(input[name="urun"][value="lens"]:checked) .hizmet-g { display: none; }
.hizmet-form:has(input[name="urun"][value="lens"]:checked) span.hizmet-l { display: inline; }
.hizmet-form:has(input[name="urun"][value="lens"]:checked) .field.hizmet-l,
.hizmet-form:has(input[name="urun"][value="lens"]:checked) .hizmet-cip.hizmet-l { display: flex; }
.hizmet-not { margin-top: -6px; }
@media (max-width: 640px) { .hizmet-cip .chip { min-height: 44px; } }
/* 4.88.0 Yeni iş › Kontakt lens kartında iki alt bağlantı (reçeteyle başla · lens bakımı) */
.yi-altlar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.yi-altlar .yi-alt { margin-top: 0; }
/* 4.88.0 Tamir · hizmet kaymaları: alanlar arasında boşluk (yazılar birbirine yapışıyordu), "Ücretsiz" kutusu fiyat alanıyla aynı hizada */
.hizmet-izgara .card > :is(.field, fieldset, .secim-cip) + :is(.field, fieldset) { margin-top: 14px; }
.hizmet-izgara .check-field { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding-top: 0; }
.hizmet-izgara .check-field input { margin: 0; flex: none; align-self: center; }
.hizmet-izgara fieldset.field legend { margin-bottom: 8px; }
.hizmet-izgara label.field:has(> .check-field) { justify-content: flex-end; align-self: stretch; }
.hizmet-izgara label.field:has(> .check-field) > span:first-child { display: none; }

/* ==========================================================================
   4.88.0 — Satıra sığmayıp görünmeyen yerler (tarayıcı, OptiFlow Pro, telefon; klasik + yeni görünüm taraması)
   ========================================================================== */
/* Bölüm sekmeleri (klasik): sığmayanlar "Diğer ▾" menüsünde (assets/app.js); menü kırpılmasın diye şerit taşabilir */
html:not([data-arayuz="isik"]) .bolum-sekme.sekme-sigdir { overflow: visible; flex-wrap: nowrap; }
html:not([data-arayuz="isik"]) .sekme-diger { flex: none; position: relative; }
html:not([data-arayuz="isik"]) .sekme-diger > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  color: var(--ink-2); font: 650 14px/1 var(--sans); white-space: nowrap;
}
html:not([data-arayuz="isik"]) .sekme-diger > summary span { font-size: 10px; color: var(--muted); }
html:not([data-arayuz="isik"]) .sekme-diger > summary.sayili::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
html:not([data-arayuz="isik"]) .sekme-diger > summary:hover, html:not([data-arayuz="isik"]) .sekme-diger[open] > summary { background: var(--surface-3); color: var(--ink); }
html:not([data-arayuz="isik"]) .sekme-diger > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
html:not([data-arayuz="isik"]) .bolum-sekme .sekme-diger .menu-list { left: auto; right: 0; top: calc(100% + 8px); width: max-content; min-width: 230px; max-width: min(340px, 90vw); padding: 6px; }
html:not([data-arayuz="isik"]) .bolum-sekme .sekme-diger .menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 8px;
  color: var(--ink); font: 650 14px/1.2 var(--sans); background: none; box-shadow: none; white-space: nowrap;
}
html:not([data-arayuz="isik"]) .bolum-sekme .sekme-diger .menu-list a:hover { background: var(--surface-2); }
html:not([data-arayuz="isik"]) .bolum-sekme .sekme-diger .menu-list a::after { content: none; }

/* Sayfa içi sekmeler: sığmayan sekme gizli kaydırmada kalmasın, alt satıra insin (Faturalar "Hata", ÜTS "Tümü" görünmüyordu) */
.tabs { flex-wrap: wrap; overflow: visible; row-gap: 4px; }

/* Düğme yazısı dar ekranda kesilmesin: sığmazsa iki satır olur ("Siparişi iptal et", "Kalanın tamamı") */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; min-width: min-content; }   /* en uzun sözcükten dar olmaz */
}
/* Başlık şeridindeki tarih + "Görüntüle" gibi satırlarda düğme ezilmesin */
.page-actions > form.inline > .btn, .page-actions > .btn { flex: none; }

/* Büyük başlık dar kartta taşmasın ("Fatura bulunamadı") */
.auth-card h1, .auth-card h2 { overflow-wrap: anywhere; hyphens: auto; }
/* Atölye panosu telefonda yana kayan sütunlar: kaydırma çubuğu ince görünür (sağda başka sütun olduğu belli olsun) */
@media (max-width: 640px) {
  .pano, .pano-3, .pano-stats { scrollbar-width: thin; }
  .pano::-webkit-scrollbar, .pano-3::-webkit-scrollbar, .pano-stats::-webkit-scrollbar { display: block; height: 4px; }
  .pano::-webkit-scrollbar-thumb, .pano-3::-webkit-scrollbar-thumb, .pano-stats::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
}
/* Form düğmesi yanındaki alanlar yüzünden ezilmesin (ÜTS stok "Kaydet" 29 px'e iniyordu); satır içi arama "Ara" */
.form-actions > .btn, form.inline > .btn { flex-shrink: 0; flex-basis: auto; }   /* 383: telefonda flex: 1 (taban 0) ezmesin; sığmazsa alt satıra iner */
/* Şablon değişkeni çipleri ({takip_linki}…) dar sütunda kesilmesin: çip daralmaz, açıklama sarar */
.kv li > .chip { flex: none; }
.kv li > span, .kv li > small { min-width: 0; overflow-wrap: anywhere; }
/* İstatistik kartının alt satırı bağlantı içerince kart dışına taşmasın ("Ay sonu faturası") */
.stat span { flex-wrap: wrap; row-gap: 2px; }
/* Sipariş / müşteri başlığı: uzun tür rozeti ("Tamir / Bakım · Lens temizliği / protein") dar telefonda sütunu taşırmasın */
.hero-main > div { min-width: 0; }
.hero-meta .badge { white-space: normal; text-align: left; line-height: 1.25; }

/* ==========================================================================
   4.90.0 — "Sizleri dinledik, fiyatları güncelledik" duyurusu (ana ekran)
   ========================================================================== */
.duyuru-fiyat { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-left: 4px solid var(--brand); }
.duyuru-fiyat-metin { flex: 1 1 420px; min-width: 0; }
.duyuru-fiyat-ust { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.duyuru-fiyat h2 { margin: 4px 0 6px; font-size: 20px; line-height: 1.25; }
.duyuru-fiyat-metin > p:last-child { margin: 0; color: var(--ink-2, var(--muted)); font-size: 14.5px; line-height: 1.5; }
.duyuru-fiyat-eylem { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.duyuru-fiyat-eylem form { margin: 0; }
.duyuru-fiyat-eylem .btn { min-height: 44px; }
@media (max-width: 560px) { .duyuru-fiyat-eylem { width: 100%; } .duyuru-fiyat-eylem .btn, .duyuru-fiyat-eylem form { flex: 1 1 auto; } .duyuru-fiyat-eylem form .btn { width: 100%; } }

/* ==========================================================================
   4.93.6 — Tekrar satış + "Eski müşteri" (Mutlu Optik / kullanıcı 10.11; yeni paneldeki ile aynı akış, klasik ve ışık görünümünde)
   ========================================================================== */
.tekrar-satis { position: relative; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin: 0 0 20px; padding: 18px 20px 18px 24px; overflow: hidden; }
/* sol şerit: kenarlık yerine (ışık görünümünde .card kenarlığı ezilir) */
.tekrar-satis::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.tekrar-yazi { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.45; color: var(--ink-2, var(--muted)); }
.tekrar-yazi h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 16px; color: var(--ink); }
.tekrar-yazi p { margin: 0; }
.tekrar-yazi b { color: var(--ink); }
.tekrar-rx { font-size: 14.5px; color: var(--ink); }
.tekrar-uyari { color: #9a5b00; font-weight: 600; font-size: 13px; }
html.tema-koyu .tekrar-uyari { color: #fbbf24; }
.tekrar-sec { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tekrar-sec select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.tekrar-eylem { display: flex; flex-wrap: wrap; gap: 8px; }
.tekrar-eylem form { margin: 0; }
.ms-tur { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ms-kutu { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; min-height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ms-kutu input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.ms-kutu b { display: block; font-size: 14px; color: var(--ink); }
.ms-kutu small { display: block; font-size: 12.5px; color: var(--muted); }
.ms-kutu.secili, .ms-kutu:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.ms-not { margin: 4px 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.customer-picker .ms-liste { position: static; box-shadow: none; max-height: 340px; overflow-y: auto; }
.eski-musteri { display: grid; gap: 6px; }
.tz-eski-liste { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; max-height: 340px; overflow-y: auto; }
.tz-eski-liste button { display: grid; gap: 2px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.tz-eski-liste button:hover, .tz-eski-liste button:focus-visible { border-color: var(--brand); outline: none; }
.tz-eski-liste small, .tz-eski-bos { font-size: 12.5px; color: var(--muted); }
.tz-olcum { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2, var(--line)); font-size: 13.5px; }
.tz-olcum[hidden], .eski-musteri[hidden] { display: none; }
@media (max-width: 640px) {
  .ms-tur { grid-template-columns: 1fr; }
  .tekrar-eylem, .tekrar-eylem form { width: 100%; }
  .tekrar-eylem .btn { width: 100%; justify-content: center; min-height: 44px; }
}

/* 4.94.0 Tek ekranlı giriş (app/partials/giris-sayfasi.php) ve giriş yardımı (giris-yardim.php) */
.auth-card .field small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; }
.giris-firma { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.giris-firma-no { display: grid; gap: 1px; padding-right: 12px; border-right: 1px solid var(--line); }
.giris-firma-no small { font: 700 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.giris-firma-no b { font: 500 19px/1.2 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.giris-firma-ad { flex: 1; min-width: 0; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.giris-firma .link-btn { min-height: 44px; padding: 0 4px; font-size: 14px; color: var(--wine-ink); font-weight: 600; }
.giris-yardim { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; }
.giris-yardim a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.giris-yardim a:focus-visible, .giris-firma .link-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.auth-card .kod-kutu { font: 500 28px/1 var(--mono); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-card .giris-sonuc { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.auth-card .giris-sonuc b { font: 500 32px/1.1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.auth-card .giris-geri { font-size: 14px; }
.auth-card .giris-geri a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine-ink); font-weight: 600; }
/* 4.94.0 "Firma numaramı bilmiyorum" (giriş ekranı; e-postaya firma no) */
.giris-fn { margin: -4px 0 2px; }
.giris-fn > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--wine-ink); text-decoration: underline; text-underline-offset: 3px; }
.giris-fn > summary::-webkit-details-marker { display: none; }
.giris-fn > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.giris-fn[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.giris-fn > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.giris-fn-icerik { display: grid; gap: 10px; margin-top: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.giris-fn-icerik .btn { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .giris-fn > summary::after { transition: none; } }
/* 4.94.0 satır içi alan hatası (assets/form-dogrula.js) */
.alan-hata { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; font-weight: 600; color: var(--red); }
.alan-hata[hidden] { display: none; }
.field input[aria-invalid="true"] { border-color: var(--red); }
/* 4.95.0 "Yeni panele geç" şeridi ve onay sayfası (app/yeni-panel.php, app/pages/yeni-panele-gec.php) */
.yeni-panel-serit { justify-content: space-between; padding-right: 18px; }
.yeni-panel-serit .btn { flex: none; }
.yeni-panel-gec { max-width: 680px; }
.yeni-panel-gec ul { margin: 8px 0 20px; padding-left: 20px; line-height: 1.6; }
.yeni-panel-gec form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ==========================================================================
   Masaüstünde web sürümü uyarısı (assets/masaustu-uyari.js)
   Üstte sabit bant; --mu-h bant yüksekliği (JS ölçer). Kurulu PWA penceresinde (.mu-kurulu) daha belirgin.
   ========================================================================== */
.mu-bant {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9997;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 16px;
  background: #1b1416; color: #f3eef0;
  border-bottom: 1px solid rgba(255, 107, 129, .35);
  font: 600 13.5px/1.4 var(--sans, system-ui, sans-serif);
}
.mu-bant .mu-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #ff8a9b; }
.mu-bant .mu-ic svg { width: 18px; height: 18px; }
.mu-bant .mu-metin { flex: 1; min-width: 0; margin: 0; }
.mu-bant .mu-metin small { display: block; margin-top: 2px; font-weight: 500; font-size: 12.5px; color: rgba(243, 238, 240, .82); }
.mu-bant .mu-indir {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 7px 16px;
  border-radius: 999px; background: #fff; color: #7e1528; font-weight: 800; font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.mu-bant .mu-indir:hover { background: #fde8ec; }
.mu-bant .mu-kapat { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: rgba(243, 238, 240, .85); cursor: pointer; }
.mu-bant .mu-kapat svg { width: 18px; height: 18px; }
.mu-bant .mu-kapat:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mu-bant .mu-indir:focus-visible, .mu-bant .mu-kapat:focus-visible { outline: 2px solid #ff8a9b; outline-offset: 2px; }

/* Kurulu PWA penceresi: bordo zemin, büyük yazı, kalın alt çizgi */
.mu-bant.mu-kurulu { padding: 12px 14px 12px 18px; background: #7e1528; color: #fff; border-bottom: 3px solid #ff6b81; font-size: 15px; }
.mu-bant.mu-kurulu .mu-ic { width: 38px; height: 38px; background: rgba(255, 255, 255, .16); color: #fff; }
.mu-bant.mu-kurulu .mu-ic svg { width: 22px; height: 22px; }
.mu-bant.mu-kurulu .mu-metin small { font-size: 13px; color: rgba(255, 255, 255, .9); }
.mu-bant.mu-kurulu .mu-indir { min-height: 42px; padding: 9px 20px; font-size: 14.5px; }
.mu-bant.mu-kurulu .mu-indir:focus-visible, .mu-bant.mu-kurulu .mu-kapat:focus-visible { outline-color: #fff; }

/* İçerik, kenar menü, dar pencerede üst çubuk ve beta / test şeritleri bandın altından başlar */
html.mu-acik body { padding-top: var(--mu-h, 52px); }
html.mu-acik .sidebar { top: var(--mu-h, 52px); }
html.mu-acik .topbar, html.mu-acik .beta-serit { top: var(--mu-h, 52px); }
@media (min-width: 1024px) {
  html.mu-acik[data-arayuz="isik"] .sidebar { top: calc(var(--mu-h, 52px) + 10px); }
}
@media (max-width: 720px) {
  .mu-bant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; }
  .mu-bant .mu-ic { grid-column: 1; grid-row: 1; align-self: start; }
  .mu-bant .mu-metin { grid-column: 2; grid-row: 1; }
  .mu-bant .mu-kapat { grid-column: 3; grid-row: 1; align-self: start; }
  .mu-bant .mu-indir { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
}
@media print { .mu-bant { display: none; } html.mu-acik body { padding-top: 0; } }
