/* ==========================================================================
   Erenköy Panel v3 — tasarım sistemi (çekirdek)
   Sitenin kilitli dili: aydınlık platin + kobalt, Manrope, cam yüzeyler, ince çizgi.
   Koyu tema yok, kare/ızgara arka plan yok. Mobil öncelikli.
   Görünüme özel stiller: assets/css/*.css
   ========================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"); 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+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --porcelain: #F6F7FA;
  --void: #E9EBF0;
  --paper: rgba(255, 255, 255, .72);
  --paper-solid: #FFFFFF;
  --stone: #ECEEF3;
  --stone-deep: #E1E4EB;
  --ink: #101321;
  --ink-2: #4B5064;
  --ink-3: #7C8199;
  --ink-4: #A6AAbb;
  --rule: rgba(16, 19, 33, .08);
  --rule-strong: rgba(16, 19, 33, .16);
  --cobalt: #1F3BFF;
  --cobalt-deep: #1429C4;
  --cobalt-night: #0E1450;
  --cobalt-wash: rgba(31, 59, 255, .07);
  --cobalt-wash-2: rgba(31, 59, 255, .13);
  --glow: #CFE0FF;
  --ember: #C97A2A;
  --ember-wash: rgba(201, 122, 42, .11);
  --oxblood: #B8323C;
  --oxblood-wash: rgba(184, 50, 60, .09);
  --sage: #1E8A5B;
  --sage-wash: rgba(30, 138, 91, .10);
  --danger: #C23B3B;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .72rem; --fs-s: .84rem; --fs-m: .95rem; --fs-l: 1.1rem; --fs-xl: 1.45rem; --fs-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 26px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 12px 32px -22px rgba(16, 19, 33, .28);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 60px -30px rgba(16, 19, 33, .35);
  --shadow-pop: 0 30px 80px -30px rgba(14, 20, 80, .45), 0 2px 8px rgba(16, 19, 33, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --side-w: 272px;
  --top-h: 60px;
  --gutter: clamp(14px, 3.4vw, 36px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-space: calc(104px + var(--safe-b));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.5;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
/* Sırlı porselen ışığı: yumuşak kobalt ve kehribar lekeler (ızgara yok) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 88% -8%, rgba(31, 59, 255, .10), transparent 62%),
    radial-gradient(50vmax 40vmax at -10% 108%, rgba(201, 122, 42, .08), transparent 60%),
    radial-gradient(40vmax 30vmax at 40% 40%, rgba(207, 224, 255, .35), transparent 70%),
    linear-gradient(180deg, #F8F9FC, #F2F4F8);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--glow); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 600 .68rem/1 var(--font); padding: .22rem .38rem; border-radius: 6px; border: 1px solid var(--rule-strong); background: #fff; color: var(--ink-2); box-shadow: 0 1px 0 var(--rule-strong); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ yerleşim */
.app { min-height: 100dvh; }
.side { display: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) var(--gutter) 0;
  background: rgba(246, 247, 250, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--rule);
}
.topbar__brand { display: grid; place-items: center; width: 40px; height: 40px; }
.topbar__title { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brandmark { display: grid; place-items: center; width: 34px; height: 34px; filter: drop-shadow(0 6px 10px rgba(14, 20, 80, .22)) drop-shadow(0 1px 1.5px rgba(14, 20, 80, .22)); }
.brandmark svg { width: 100%; height: 100%; }
body.is-detail .topbar { display: none; }

.main {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px var(--gutter) var(--tabbar-space);
}
body.is-detail .main { padding-bottom: calc(96px + var(--safe-b)); padding-top: 0; }

.tabbar-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0 12px calc(10px + var(--safe-b));
  pointer-events: none;
}
.tabbar-dock > * { pointer-events: auto; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .topbar, .tabbar-dock { display: none; }
  .side {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 16px 18px;
    border-right: 1px solid var(--rule);
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
            backdrop-filter: blur(20px) saturate(1.5);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .main { padding: 28px clamp(24px, 3vw, 48px) 64px; }
  body.is-detail .main { padding-top: 0; padding-bottom: 64px; }
}
.side__brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 6px; text-decoration: none; }
.side__brand .brandmark { width: 40px; height: 40px; }
.side__brandtext { display: grid; line-height: 1.2; }
.side__brandtext b { font-size: .98rem; letter-spacing: -.01em; }
.side__brandtext small { font-size: .72rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.side__search {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--r-m);
  border: 1px solid var(--rule); background: rgba(255, 255, 255, .8); color: var(--ink-3);
  font-size: var(--fs-s); text-align: left; transition: border-color .2s, box-shadow .2s;
}
.side__search:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-1); }
.side__search span { flex: 1; }
.side__nav { display: grid; gap: 14px; }
.side__group { display: grid; gap: 2px; }
.side__label { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); padding: 4px 12px; }
.side__item {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 8px 12px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: var(--fs-s);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.side__item:hover { background: rgba(16, 19, 33, .04); color: var(--ink); }
.side__item[aria-current="page"] { background: #fff; color: var(--cobalt); box-shadow: var(--shadow-1); }
.side__item[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cobalt); }
.side__count { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.side__badge { margin-left: auto; font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--oxblood); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.side__foot { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--rule); }
.side__ext { width: 14px; height: 14px; margin-left: auto; opacity: .5; }

/* ------------------------------------------------------------------ düğmeler */
.btn {
  --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 650; font-size: var(--fs-s); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { box-shadow: 0 10px 24px -14px rgba(16, 19, 33, .35); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; }
.btn--primary { --b-bg: var(--cobalt); --b-fg: #fff; --b-bd: var(--cobalt); box-shadow: 0 12px 26px -14px rgba(31, 59, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { --b-bg: var(--cobalt-deep); box-shadow: 0 16px 30px -14px rgba(31, 59, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { --b-bg: transparent; --b-bd: var(--rule-strong); }
.btn--quiet { --b-bg: transparent; --b-bd: transparent; color: var(--ink-2); }
.btn--quiet:hover { --b-bg: rgba(16, 19, 33, .05); box-shadow: none; }
.btn--danger { --b-bg: var(--danger); --b-fg: #fff; --b-bd: var(--danger); }
.btn--sold { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.btn--ok { --b-bg: var(--sage); --b-fg: #fff; --b-bd: var(--sage); }
.btn--s { min-height: 36px; padding: 0 14px; font-size: .8rem; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--ink-2);
  text-decoration: none; transition: background .2s, color .2s, transform .15s;
}
.iconbtn:hover { background: rgba(16, 19, 33, .05); color: var(--ink); }
.iconbtn:active { transform: scale(.94); }
.iconbtn--accent { background: var(--cobalt); color: #fff; box-shadow: 0 10px 22px -12px rgba(31, 59, 255, .8); }
.iconbtn--accent:hover { background: var(--cobalt-deep); color: #fff; }
.iconbtn--soft { background: #fff; border-color: var(--rule); box-shadow: var(--shadow-1); }

/* ------------------------------------------------------------------ yüzeyler */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--rule);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
}
.card__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.card__head h2 { font-size: 1.02rem; }
.card__head .kicker { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.card__head .end { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card__body { padding: 16px 18px 18px; }
.stack { display: grid; gap: 14px; }
.stack--l { gap: 22px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-s); }
.divider { height: 1px; background: var(--rule); border: 0; margin: 4px 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-m); background: var(--cobalt-wash); color: var(--cobalt-night); font-size: var(--fs-s); }
.note .ico { color: var(--cobalt); margin-top: 1px; }
.note--warn { background: var(--ember-wash); color: #6B3F10; }
.note--warn .ico { color: var(--ember); }
.note--danger { background: var(--oxblood-wash); color: #6E1A21; }
.note--danger .ico { color: var(--oxblood); }

/* Sayfa başlığı */
.phead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 20px; }
.phead__text { flex: 1 1 260px; min-width: 0; }
.phead__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 6px; }
.phead h1 { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.035em; }
.phead__sub { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-s); max-width: 62ch; }
.phead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.phead__back { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--rule); color: var(--ink); align-self: center; }
@media (max-width: 1023px) { .phead { margin-top: 2px; } .phead__actions .btn--desk { display: none; } }

/* Hap (durum) */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--sage-wash); color: var(--sage); }
.pill--warn { background: var(--ember-wash); color: #9A5A17; }
.pill--muted { background: rgba(16, 19, 33, .06); color: var(--ink-2); }
.pill--draft { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.pill--hot { background: var(--oxblood-wash); color: var(--oxblood); }
.pill--info { background: var(--cobalt-wash); color: var(--cobalt); }

/* Künye halkası */
.ring { position: relative; display: inline-grid; place-items: center; width: var(--size, 40px); height: var(--size, 40px); flex: none; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring__track { stroke: rgba(16, 19, 33, .08); }
.ring__bar { stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.ring--ok .ring__bar { stroke: var(--sage); }
.ring--mid .ring__bar { stroke: var(--ember); }
.ring--low .ring__bar { stroke: var(--oxblood); }
.ring b { font-size: calc(var(--size, 40px) * .3); font-weight: 750; letter-spacing: -.02em; }

/* Küçük görsel */
.thumb { position: relative; display: block; width: 56px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--stone); flex: none; box-shadow: 0 0 0 1px var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--empty { display: grid; place-items: center; color: var(--ink-4); }
.thumb--s { width: 36px; border-radius: 9px; }
.thumb--l { width: 88px; border-radius: 14px; }

/* ------------------------------------------------------------------ form */
.fld { display: grid; gap: 6px; min-width: 0; }
.fld__label { font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.req { color: var(--oxblood); font-style: normal; margin-left: 3px; }
.fld__control { position: relative; display: flex; align-items: center; }
.fld__prefix { position: absolute; left: 14px; color: var(--ink-3); font-size: var(--fs-s); pointer-events: none; }
.fld--prefix .input { padding-left: 34px; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, .92);
  font-size: 16px; /* iOS'ta odakta yakınlaştırmayı önler */
  line-height: 1.45;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: rgba(16, 19, 33, .28); }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-wash-2); background: #fff; }
.input[readonly] { background: var(--stone); color: var(--ink-2); }
.input--area { resize: vertical; min-height: 96px; }
.input--mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; }
select.input { padding-right: 40px; }
.fld__control--select { display: block; }
.fld__caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; color: var(--ink-3); }
.fld__foot { display: flex; gap: 10px; justify-content: space-between; font-size: .74rem; color: var(--ink-3); }
.fld__hint { min-width: 0; }
.fld__count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fld__count[data-tone="ok"] { color: var(--sage); font-weight: 700; }
.fld__count[data-tone="warn"] { color: #9A5A17; font-weight: 700; }
.fld__count[data-tone="over"] { color: var(--oxblood); font-weight: 700; }
.fld__err { font-size: .78rem; color: var(--oxblood); font-weight: 600; }
.fld.is-invalid .input { border-color: var(--oxblood); box-shadow: 0 0 0 4px var(--oxblood-wash); }
.formgrid { display: grid; gap: 16px; }
@media (min-width: 720px) { .formgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .formgrid--2 .span2 { grid-column: 1 / -1; } }

/* Anahtar (toggle) */
.tgl { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl__track { position: relative; width: 48px; height: 28px; flex: none; border-radius: 999px; background: var(--stone-deep); box-shadow: inset 0 1px 2px rgba(16, 19, 33, .12); transition: background .25s var(--ease); }
.tgl__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 19, 33, .25); transition: transform .3s var(--ease); }
.tgl input:checked + .tgl__track { background: var(--cobalt); }
.tgl input:checked + .tgl__track .tgl__knob { transform: translateX(20px); }
.tgl input:focus-visible + .tgl__track { box-shadow: 0 0 0 4px var(--cobalt-wash-2); }
.tgl__text { display: grid; line-height: 1.3; }
.tgl__text b { font-weight: 650; font-size: var(--fs-s); }
.tgl__text small { color: var(--ink-3); font-size: .76rem; }

/* Segmentli seçim */
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.seg__row { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(16, 19, 33, .05); overflow-x: auto; scrollbar-width: none; }
.seg__opt { flex: 1 0 auto; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span { display: grid; place-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: .82rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; cursor: pointer; }
.seg__opt input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(16, 19, 33, .4), 0 0 0 1px var(--rule); }
.seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--cobalt-wash-2); }
.seg__opt--ok input:checked + span { color: var(--sage); }
.seg__opt--warn input:checked + span { color: #9A5A17; }
.seg__opt--sold input:checked + span { background: var(--ink); color: #fff; }

/* Çip filtre */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: rgba(255, 255, 255, .7); font-size: .8rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; transition: all .2s var(--ease); }
.chip em { font-style: normal; font-size: .72rem; color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] em { color: rgba(255, 255, 255, .7); }

/* Arama kutusu */
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 42px; border-radius: 999px; min-height: 46px; }

/* ------------------------------------------------------------------ iletişim kutusu, sayfa, arama */
.dlg { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; color: inherit; overflow: visible; }
.dlg::backdrop { background: rgba(14, 20, 50, .34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.dlg.is-in::backdrop { opacity: 1; }
.dlg__box {
  width: min(440px, calc(100vw - 32px));
  padding: 22px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-pop);
  display: grid; gap: 14px;
  transform: translateY(12px) scale(.98); opacity: 0;
  transition: transform .32s var(--ease), opacity .25s;
}
.dlg.is-in .dlg__box { transform: none; opacity: 1; }
.dlg__title { font-size: 1.15rem; }
.dlg__text { color: var(--ink-2); }
.dlg__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 560px) {
  .dlg:not(.palette):not(.sheet) { margin: auto 0 0; width: 100%; }
  .dlg:not(.palette):not(.sheet) .dlg__box { width: 100%; border-radius: 26px 26px 0 0; padding: 22px 18px calc(18px + var(--safe-b)); transform: translateY(40px); }
  .dlg__actions .btn { flex: 1; }
}

.sheet { margin: auto 0 0; width: 100%; }
.sheet__box {
  width: 100%; max-height: min(88dvh, 820px);
  display: flex; flex-direction: column;
  background: rgba(250, 251, 253, .97);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-pop);
  transform: translateY(100%);
  transition: transform .42s var(--ease);
  padding-bottom: var(--safe-b);
}
.sheet.is-in .sheet__box { transform: none; }
.sheet__grip { width: 44px; height: 5px; border-radius: 99px; background: var(--rule-strong); margin: 10px auto 2px; flex: none; touch-action: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px 6px 22px; touch-action: none; }
.sheet__head h2 { font-size: 1.1rem; }
.sheet__body { overflow-y: auto; padding: 8px 18px 20px; overscroll-behavior: contain; }
@media (min-width: 1024px) {
  .sheet { margin: 0 0 0 auto; height: 100dvh; width: min(520px, 100vw); }
  .sheet__box { height: 100%; max-height: none; border-radius: 26px 0 0 26px; transform: translateX(100%); }
  .sheet__grip { display: none; }
  .sheet__head { padding: 18px 14px 8px 24px; }
  .sheet__body { padding: 8px 24px 24px; }
}

/* Menü sayfası (mobil) */
.menu__search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px; margin-bottom: 14px; border-radius: 16px; border: 1px solid var(--rule-strong); background: #fff; color: var(--ink-3); font-size: .92rem; }
.menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu__tile { display: grid; gap: 8px; align-content: start; min-height: 96px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--rule); text-decoration: none; transition: transform .2s var(--ease); }
.menu__tile:active { transform: scale(.97); }
.menu__tile .ico { width: 24px; height: 24px; color: var(--cobalt); }
.menu__tile b { font-size: .9rem; font-weight: 650; line-height: 1.25; }
.menu__tile small { color: var(--oxblood); font-weight: 700; font-size: .74rem; }
.menu__tile--accent { background: var(--cobalt); color: #fff; }
.menu__tile--accent .ico { color: #fff; }
.menu__foot { display: flex; gap: 8px; margin-top: 16px; }
.menu__foot .btn { flex: 1; }

/* Hızlı arama */
.palette { margin: 8vh auto auto; width: min(640px, calc(100vw - 24px)); }
.palette__box { background: #fff; border-radius: 22px; box-shadow: var(--shadow-pop); overflow: hidden; transform: translateY(-8px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .2s; }
.palette.is-in .palette__box { transform: none; opacity: 1; }
.palette__field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.palette__field input { flex: 1; min-width: 0; min-height: 52px; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--ink); }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: min(56dvh, 460px); overflow-y: auto; }
.palette__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.palette__list li[aria-selected="true"] { background: var(--cobalt-wash); }
.palette__list li em { margin-left: auto; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.palette__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--stone); color: var(--ink-2); flex: none; }
.palette__text { display: grid; min-width: 0; }
.palette__text b { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__text small { color: var(--ink-3); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__none { color: var(--ink-3); cursor: default !important; }
.palette__hint { display: flex; gap: 6px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: .74rem; color: var(--ink-3); }
@media (max-width: 560px) {
  .palette { margin: 0; width: 100vw; height: 100dvh; max-height: none; }
  .palette__box { height: 100%; border-radius: 0; display: flex; flex-direction: column; padding-top: var(--safe-t); }
  .palette__list { flex: 1; max-height: none; }
  .palette__hint { display: none; }
}

/* Bildirimler */
.toasts { position: fixed; z-index: 90; left: 50%; top: calc(10px + var(--safe-t)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
@media (min-width: 1024px) { .toasts { top: auto; bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(16, 19, 33, .94); color: #fff; box-shadow: var(--shadow-pop); font-size: .88rem; font-weight: 550; pointer-events: auto; transform: translateY(-12px); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
@media (min-width: 1024px) { .toast { transform: translateY(12px); } }
.toast.is-in { transform: none; opacity: 1; }
.toast .ico { color: #7CE0B0; }
.toast--error { background: #5E1419; }
.toast--error .ico { color: #FFB4B9; }
.toast--info .ico { color: var(--glow); }
.toast span { flex: 1; }
.toast__act { border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: .8rem; min-height: 36px; padding: 0 14px; border-radius: 999px; }

/* Boş durum ve iskelet */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; }
.empty__art { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--stone)); box-shadow: var(--shadow-1), 0 0 0 1px var(--rule); color: var(--cobalt); }
.empty__art .ico { width: 32px; height: 32px; }
.empty h2 { font-size: 1.1rem; }
.empty p { color: var(--ink-3); max-width: 42ch; font-size: var(--fs-s); }
.skel { display: grid; gap: 10px; }
.skel__row { display: grid; grid-template-columns: 56px 1fr 80px; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .6); }
.skel__row span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--stone) 20%, #F8F9FC 50%, var(--stone) 80%); background-size: 300% 100%; animation: shimmer 1.4s var(--ease-io) infinite; animation-delay: calc(var(--i) * 60ms); }
.skel__row span:first-child { height: 64px; border-radius: 12px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Açılış */
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--porcelain); transition: opacity .4s var(--ease), visibility .4s; }
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__mark { width: 64px; height: 64px; animation: boot 1.6s var(--ease-io) infinite; }
.boot__mark svg { width: 100%; height: 100%; }
@keyframes boot { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.92); } }

/* Google önizlemesi */
.serp { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--rule); font-family: Arial, sans-serif; }
.serp__site { display: flex; align-items: center; gap: 10px; }
.serp__fav { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--stone); font: 700 .6rem var(--font); color: var(--cobalt); }
.serp__site span { display: grid; line-height: 1.25; }
.serp__site b { font-size: 14px; font-weight: 400; color: #202124; }
.serp__site small { font-size: 12px; color: #4d5156; word-break: break-all; }
.serp__title { margin-top: 4px; font-size: 19px; line-height: 1.3; color: #1a0dab; }
.serp__desc { font-size: 14px; line-height: 1.58; color: #4d5156; }

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Görünüm geçişi */
.view { animation: view-in .38s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Kabuk sütunu */
.shell { min-width: 0; }

/* Dokunmatik ekranda küçük düğmeler de en az 44 px dokunma alanı */
@media (pointer: coarse) { .btn--s { min-height: 44px; } }
