/* markerGrid — ortak stil.
   Mobil öncelikli: dokunma alanı ≥ 44 px, yatay kaydırma yok, metin kontrastı ≥ 4.5:1.
   Masaüstü (≥ 960 px): sol menü, iki sütunlu form, yan panel (docs/02 §1).
   Görünüm: sahibin verdiği markerGrid tasarım görseli (16.11.2026): açık mavi-gri zemin, gölgeli beyaz kartlar, canlı mavi. */
/* Yazı tipleri: Plus Jakarta Sans ve Caveat (SIL OFL, lisanslar web/assets/fonts) — kendi sunucumuzdan */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-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+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans-latin-800-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/caveat-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+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/caveat-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; }

:root {
  --bg: #F3F6FC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6B82;
  --body-muted: #475569;
  --border: #E4E9F2;
  --input-border: #8792A6; /* form alanı kenarı: beyaza karşı ≥ 3:1 */
  --divider: #EEF2F8;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: #EBF2FF;
  --accent-soft-border: #C7D7FB;
  --warn-bg: #FFF4EA;
  --warn-border: #F3D3B5;
  --warn-text: #8A3B07;
  --error-bg: #FDECEA;
  --error-border: #F1B8B2;
  --error-text: #B42318;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(37, 70, 160, .06);
  --sidebar-w: 248px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--font); overflow-x: hidden; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Sayfa iskeletleri ---------- */
.page { max-width: 560px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 20px; }
.page-wide { max-width: 1080px; }
.brand { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .2px; }
.lead { font-size: 15px; color: var(--muted); }
.page-head { display: flex; flex-direction: column; gap: 4px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* Uygulama: sol menü (masaüstü) / alt menü (telefon) */
.sidebar { display: none; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: stretch;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; max-width: 120px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 10px;
}
.bottom-nav a[aria-current=page] { color: var(--accent); font-weight: 700; }
.has-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 0; max-width: 1080px; margin: 0 auto; }
.mobile-bar .business { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

@media (min-width: 960px) {
  .has-shell { padding-bottom: 0; }
  .bottom-nav, .mobile-bar { display: none; }
  .app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
    background: var(--surface); border-right: 1px solid var(--border); padding: 20px 12px;
  }
  .sidebar .brand { padding: 4px 12px 0; font-size: 18px; }
  .sidebar .business { padding: 0 12px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--divider); margin-bottom: 8px; overflow-wrap: anywhere; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
    color: var(--body-muted); font-size: 15px; font-weight: 500; text-decoration: none;
  }
  .sidebar nav a:hover { background: var(--divider); color: var(--text); }
  .sidebar nav a[aria-current=page] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .sidebar .foot { margin-top: auto; padding: 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--divider); overflow-wrap: anywhere; }
  .main .page { padding: 32px 40px 48px; gap: 24px; }
  .main h1 { font-size: 28px; }
}

/* İki sütun: ana içerik + yan panel (masaüstünde) */
.cols { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .cols-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
}

/* Giriş / kayıt / şifre sayfaları (sahibin verdiği tasarım görseli, 15.11.2026).
   Masaüstü: solda tanıtım paneli (çizim, el yazısı not), sağda beyaz kart. Telefon: yalnızca logo + form. */
.auth-body { --accent: #2F74E0; --accent-hover: #2560C4; --accent-soft: #EEF5FF; background: var(--surface); }
.auth-aside { display: none; }
.auth-main { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px 40px; }
.auth-card { width: 100%; max-width: 548px; display: flex; flex-direction: column; gap: 22px; }
.brand-mark { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.brand-mobile { font-size: 22px; color: #0B1A3E; }
.brand-mobile img { width: 46px; height: 40px; }
.auth-head { display: flex; flex-direction: column; gap: 10px; }
.auth-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; color: #0B1A3E; }
.auth-card .lead { font-size: 16px; color: #5B6478; }
.auth-card form { gap: 22px; }
.auth-card .field { font-size: 15px; font-weight: 600; color: #0B1A3E; gap: 10px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon .field-icon { position: absolute; left: 18px; color: #6B7488; pointer-events: none; }
.auth-card .input-icon input { height: 58px; padding: 0 52px 0 52px; border: 1px solid #D6DDEA; border-radius: 12px; font-size: 16px; }
.auth-card .input-icon input::placeholder { color: #98A1B3; }
.auth-card .input-icon input:focus { border-color: var(--accent); outline: 3px solid rgba(31, 91, 242, .18); outline-offset: 0; }
.eye { position: absolute; right: 6px; width: 46px; height: 46px; border: 0; background: transparent; color: #6B7488; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eye:hover { background: #F1F4FA; color: #0B1A3E; }
.eye .eye-open { display: none; }
.eye[aria-pressed=true] .eye-open { display: block; }
.eye[aria-pressed=true] .eye-closed { display: none; }
.auth-card .check { font-size: 15px; color: #0B1A3E; margin-top: -6px; }
.auth-card .check input { width: 22px; height: 22px; border-radius: 6px; }
.btn-lg { min-height: 62px; border-radius: 12px; font-size: 18px; gap: 12px; }
.auth-card .links a { color: #1E4FD8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 16px; color: #5B6478; font-size: 15px; margin-top: 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #E3E7EF; }
.divider + .links { margin-top: -14px; }

@media (min-width: 960px) {
  .auth-layout { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); min-height: 100vh; }

  /* Sol panel: yumuşak bebe mavisi (sahip: koyu mavi göz yoruyordu, 15.11.2026) */
  .auth-aside {
    display: block; position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; color: #0B1A3E;
    background:
      radial-gradient(820px 560px at 82% 78%, rgba(255, 255, 255, .75), transparent 70%),
      radial-gradient(600px 420px at 0% 0%, rgba(255, 255, 255, .6), transparent 70%),
      linear-gradient(150deg, #E9F3FF 0%, #DAEAFF 50%, #CBE1FF 100%);
  }
  .aside-inner { position: relative; z-index: 2; padding: clamp(32px, 7vh, 66px) 0 0 9%; width: min(91%, 680px); display: flex; flex-direction: column; gap: clamp(16px, 3.6vh, 34px); }
  .brand-mark { color: #0B1A3E; }
  .aside-copy { display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 22px); margin-top: clamp(4px, 2vh, 18px); }
  .eyebrow {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .75); border: 1px solid #C6DAF6;
    font-size: 14px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #2B4C8C;
  }
  .auth-aside h2 { font-size: clamp(30px, min(3vw, 5.6vh), 50px); line-height: 1.14; font-weight: 800; letter-spacing: -.9px; max-width: 720px; }
  .auth-aside h2 em { font-style: normal; color: #2F74E0; }
  .aside-lead { font-size: clamp(16px, 2vh, 18px); line-height: 1.6; color: #3E4C66; max-width: 520px; }
  .aside-points { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 18px); position: relative; z-index: 3; }
  .aside-points li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #1E2B47; }
  .tick { flex: none; width: 26px; height: 26px; border-radius: 13px; background: #4F86F0; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(79, 134, 240, .18); }

  /* Çizim: tasarımdaki gibi sağ altta, maddelerin yanında-altında. Boyutu ekran yüksekliğine bağlı
     (min(46%, 58vh)): kısa ekranda küçülür, metinle çakışmaz. Yer yoksa gizlenir (aşağıdaki kurallar). */
  .aside-art { position: absolute; z-index: 1; right: 0.5%; bottom: 5%; width: min(46%, 58vh); height: auto; }
  .aside-curve { position: absolute; z-index: 1; left: 0; bottom: -90px; width: 330px; height: auto; } /* notun altından geçer */
  .aside-note {
    position: absolute; z-index: 2; left: 11%; bottom: 13%; transform: rotate(-12deg); transform-origin: left bottom;
    font-family: "Caveat", "Segoe Print", cursive; font-size: 26px; font-weight: 500; line-height: 1.05; color: #4A86DE;
  }
  .aside-note-arrow { position: absolute; z-index: 2; left: calc(11% + 108px); bottom: calc(13% - 26px); width: 78px; height: auto; }

  /* Sağ: açık zemin, köşelerde soluk daireler, ortada beyaz kart */
  .auth-main { position: relative; overflow: hidden; align-items: center; padding: clamp(16px, 4vh, 48px) 5%; background: #F4F6FB; }
  .auth-main::before, .auth-main::after { content: ""; position: absolute; border-radius: 50%; background: #E9EFFA; z-index: 0; }
  .auth-main::before { width: 300px; height: 300px; right: -120px; top: -150px; }
  .auth-main::after { width: 260px; height: 260px; right: -130px; bottom: -40px; }
  .auth-card {
    position: relative; z-index: 1; padding: clamp(30px, 6.5vh, 64px) 52px clamp(26px, 5.5vh, 56px); gap: clamp(14px, 2.4vh, 22px); border-radius: 24px; background: #FFFFFF;
    border: 1px solid #EDF0F6; box-shadow: 0 30px 80px rgba(16, 40, 110, .08);
  }
  .brand-mobile { display: none; }
  .auth-card h1 { font-size: clamp(32px, 4.4vh, 40px); }
  .auth-card form { gap: clamp(14px, 2.4vh, 22px); }
  .auth-card .lead { font-size: 17px; }
}
/* Alçak ekranlarda çizim metinle çakışmasın */
@media (min-width: 960px) and (max-height: 820px) {
  .aside-note, .aside-note-arrow, .aside-curve { display: none; }
}
@media (min-width: 960px) and (max-width: 1279px), (min-width: 960px) and (max-height: 640px) {
  .aside-art { display: none; }
}

/* İlk kurulum: ortada, masaüstünde form + açıklama paneli */
.onboarding { max-width: 1040px; }
@media (min-width: 960px) {
  .onboarding { padding: 48px 40px 64px; gap: 28px; }
  .onboarding h1 { font-size: 30px; }
}

/* ---------- Kart ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 960px) { .card { padding: 24px; } }
.card-soft { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.card h2 + p { margin-top: -8px; }

/* ---------- Form ---------- */
form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
.field .help { font-size: 13px; font-weight: 400; color: var(--muted); }
.optional { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--input-border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: 400 16px var(--font);
}
select { padding: 0 12px; }
input[aria-invalid=true] { border: 2px solid var(--error-text); }
input:disabled, select:disabled { background: var(--bg); color: var(--muted); }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit input { padding-right: 56px; }
.input-unit span { position: absolute; right: 14px; color: var(--muted); font-weight: 500; pointer-events: none; }
.field-error { font-size: 13px; font-weight: 500; color: var(--error-text); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.grid-3 > :last-child { grid-column: 1 / -1; }
@media (min-width: 560px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3 > :last-child { grid-column: auto; } }
/* Masaüstünde alanlar iki sütuna yayılır */
.form-grid { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 720px) { .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; align-items: start; } .form-grid .span-2 { grid-column: 1 / -1; } }

.check { display: flex; gap: 12px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 400; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }

fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.choices { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); padding: 13px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice-text { display: flex; flex-direction: column; gap: 3px; }
.choice-title { font-size: 16px; font-weight: 600; }
.choice-desc { font-size: 14px; color: var(--body-muted); line-height: 1.4; }

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--input-border); border-radius: var(--radius); overflow: hidden; }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.segmented span { min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 8px; font-size: 15px; font-weight: 500; background: var(--surface); cursor: pointer; }
.segmented label + label span { border-left: 1px solid var(--input-border); }
.segmented input:checked + span { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; box-shadow: inset 0 0 0 5px #FFFFFF; }

details { border-top: 1px solid var(--divider); }
summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 6px 0 0; flex: none; }
details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.details-body { display: flex; flex-direction: column; gap: 18px; padding: 4px 0 8px; }

/* ---------- Düğmeler ---------- */
button { font: inherit; }
.primary, .secondary {
  min-height: 52px; padding: 0 22px; border-radius: var(--radius-lg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.primary { background: var(--accent); color: #FFFFFF; border: 0; }
.primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--input-border); }
.secondary:hover { background: var(--divider); color: var(--text); }
.primary[aria-busy=true], .secondary[aria-busy=true] { opacity: .7; cursor: progress; }
.link-button { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--accent); font-weight: 500; cursor: pointer; text-decoration: underline; }
.actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) {
  .actions-row { flex-direction: row; align-items: center; }
  .actions-row .primary { min-width: 220px; }
  .fit { align-self: flex-start; }
}
.center { align-self: center; }

/* ---------- Mesajlar: ne oldu + nasıl düzelir ---------- */
.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.alert strong { font-weight: 600; }
.alert-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); }
.alert-error span { color: var(--text); }
.alert-ok { background: var(--accent-soft); border: 1px solid var(--accent-soft-border); color: var(--text); }
.alert-ok strong { color: var(--accent); }
.alert-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }
.alert-warn span { color: var(--text); }
.note { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--body-muted); }

.links { text-align: center; font-size: 15px; }
.links a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 500; }

/* Liste satırı */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--divider); }
.row:last-child { border-bottom: 0; }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.badge { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 3px 8px; white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }

/* İlerleme */
.progress { display: flex; flex-direction: column; gap: 10px; max-width: 420px; width: 100%; }
.progress-label { font-size: 13px; color: var(--muted); }
.progress-bar { height: 6px; background: #E6E8EE; border-radius: 3px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.w-66 { width: 66%; }
.w-100 { width: 100%; }

/* Yan panel: açıklama listesi */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; font-size: 14px; color: var(--body-muted); line-height: 1.45; }
.steps .num { flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--accent); color: #FFFFFF; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { color: var(--text); }

/* ---------- İlk ürün ve sonuç ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.material { gap: 14px; }
.material-title { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.material-title + * { clear: both; }
.sub-title { font-size: 14px; font-weight: 500; }
.result-title { font-size: 26px; line-height: 1.3; }
.result-title strong { color: var(--accent); }
@media (min-width: 960px) { .result-title { font-size: 34px; } }
.line { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--divider); font-size: 15px; }
.line:last-child { border-bottom: 0; }
.line-total { font-weight: 700; }
.price-big { font-size: 32px; font-weight: 700; color: var(--accent); }

/* B-06: örnek veri ve boş ekran */
.card-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.card-warn h2 { color: var(--warn-text); }
.badge-sample { color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed var(--input-border); border-radius: var(--radius-lg); }
.empty p { max-width: 360px; font-size: 16px; color: var(--body-muted); }

/* B-07: listeler (telefonda kart, masaüstünde tablo) */
.page-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.toolbar .search { flex: 1 1 260px; }
input[type=search] {
  width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--input-border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: 400 16px var(--font);
}
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 13px; color: var(--muted); pointer-events: none; }
.only-desktop { display: none; }
@media (min-width: 960px) { .only-desktop { display: block; } .only-mobile { display: none; } }
.cards { display: flex; flex-direction: column; gap: 10px; }
.item-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; color: var(--text); text-decoration: none; }
.item-card:hover { border-color: var(--accent); color: var(--text); }
.item-card.is-low { border-color: var(--warn-border); }
.item-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item-card .name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.item-card .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--body-muted); flex-wrap: wrap; }
.item-card .meta strong { color: var(--text); }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.list td { padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: var(--bg); }
table.list .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.list a { font-weight: 600; text-decoration: none; color: var(--text); }
table.list a:hover { color: var(--accent); text-decoration: underline; }
.badge-low { color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); }
.badge-neg { color: var(--error-text); background: var(--error-bg); border: 1px solid var(--error-border); }
.badge-ok { color: var(--body-muted); background: var(--divider); }
.badge-muted { color: var(--muted); background: var(--divider); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: 22px; background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.danger-zone { border-top: 1px solid var(--divider); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.secondary.danger { color: var(--error-text); border-color: var(--error-border); }
.known-material { font-size: 14px; color: var(--body-muted); background: var(--accent-soft); border-radius: var(--radius); padding: 10px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* B-09: maliyet kartı */
.cost-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--divider); }
.cost-bar span { display: block; height: 100%; }
.seg-1 { background: var(--accent); }
.seg-2 { background: #8EA2E0; }
.seg-3 { background: #B8BDC8; }
.cost-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.cost-legend > div { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; align-items: center; font-size: 13px; color: var(--body-muted); }
.cost-legend strong { font-size: 16px; color: var(--text); }
.cost-legend span:not(.dot) { grid-column: 2; }
.dot { width: 12px; height: 12px; border-radius: 6px; display: inline-block; }

/* B-10: hızlı satış */
:root { --positive: #15803D; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--input-border); border-radius: 22px; background: var(--surface); font-size: 15px; font-weight: 500; cursor: pointer; }
.pick input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; padding: 0 15px; }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; height: 48px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stepper button { height: 100%; border: 0; background: transparent; font-size: 22px; font-weight: 600; cursor: pointer; color: var(--text); }
.stepper button:hover { background: var(--divider); }
.stepper input { height: 46px; border: 0; border-radius: 0; text-align: center; font-weight: 600; padding: 0 4px; }
.line.positive span:last-child { color: var(--positive); font-size: 22px; }
.line.negative span:last-child { color: var(--error-text); font-size: 22px; }
.sidebar .sidebar-cta { margin: 4px 4px 12px; min-height: 48px; }
.sidebar .sidebar-cta[aria-current=page] { background: var(--accent-hover); }
.nav-plus { flex: 0 0 auto !important; width: 56px; height: 56px; min-height: 56px !important; margin-top: -18px; border-radius: 28px !important; background: var(--accent); color: #FFFFFF !important; display: flex !important; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(27, 29, 34, .2); }
input[type=date] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: 400 16px var(--font); }

/* B-11: ana sayfa */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
@media (min-width: 960px) { .stat { padding: 18px; } }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 960px) { .stat-value { font-size: 26px; } }
.stat-note { font-size: 12px; color: var(--muted); min-height: 1em; }
.stat-accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.stat-accent .stat-label, .stat-accent .stat-note { color: #FFFFFF; opacity: .92; }
.month-select { width: auto; min-width: 150px; }
.only-desktop-inline { display: none !important; }
@media (min-width: 960px) { .only-desktop-inline { display: inline-flex !important; } }
/* Telefonda azalan malzemeler son işlemlerden önce (5 saniye ölçütü) */
.home-cols .home-side { order: -1; }
@media (min-width: 960px) { .home-cols .home-side { order: 0; } }
.table-wrap.flat { border: 0; border-radius: 0; margin: 0 -8px; }
.two-line { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.two-line small { font-size: 12px; color: var(--muted); }
.two-line.end { align-items: flex-end; text-align: right; }
.line.recent { min-height: 56px; padding: 6px 0; }
.pos { color: var(--positive); font-size: 13px; font-weight: 600; }
.neg { color: var(--error-text); font-size: 13px; font-weight: 600; }
table.list .pos, table.list .neg { font-size: 15px; }

/* B-16: telefonda [+] menüsü */
button.nav-plus { border: 0; cursor: pointer; padding: 0; }
.plus-sheet {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(27, 29, 34, .22);
}
.sheet-item { display: flex; flex-direction: column; gap: 2px; min-height: 56px; justify-content: center; padding: 10px 16px; border-radius: 12px; text-decoration: none; color: var(--text); background: var(--bg); }
.sheet-item strong { font-size: 17px; }
.sheet-item span { font-size: 13px; color: var(--muted); }
.sheet-primary { background: var(--accent); color: #FFFFFF; }
.sheet-primary span { color: #FFFFFF; opacity: .9; }
@media (min-width: 960px) { .plus-sheet { display: none !important; } }
.uses { display: flex; flex-direction: column; margin-top: 8px; }
/* Kaydet düğmesi formun dışında: telefonda önizlemenin altında; masaüstünde sol sütunda formun altında */
@media (min-width: 960px) { .cols > .submit-under { grid-column: 1; } }

/* Görsel kontrol düzeltmeleri (15.11.2026) */
/* Liste masaüstünde iki kez çiziliyordu: .cards { display:flex } .only-mobile'ı eziyordu */
@media (min-width: 960px) { .only-mobile { display: none !important; } }
@media (max-width: 959px) { .only-desktop { display: none !important; } }
.recent-table td:nth-child(2) { min-width: 200px; }
.recent-table th, .recent-table td { padding-left: 10px; padding-right: 10px; }
.recent-table td:first-child, .recent-table td:nth-child(3) { white-space: nowrap; }
/* Dar yan sütunda üçlü alan sıkışıyordu */
.side .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.side .grid-3 > :last-child { grid-column: 1 / -1; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.chip { padding: 0 12px; font-size: 14px; }
.two-line.end > span:first-child { white-space: nowrap; }
.side { display: flex; flex-direction: column; gap: 20px; }

/* B-12: alım */
.line-card { border-top: 1px solid var(--divider); padding-top: 16px; }
.line-card:first-child { border-top: 0; padding-top: 0; }
details.card.purchase { padding: 0; gap: 0; border-top: 1px solid var(--border); }
details.purchase > summary { min-height: 64px; padding: 12px 16px; color: var(--text); font-size: 15px; font-weight: 500; }
details.purchase > summary strong { white-space: nowrap; }
details.purchase > summary::after { margin-left: 12px; }
.purchase-body { padding: 0 16px 12px; display: flex; flex-direction: column; }
.purchase-body p { font-size: 14px; color: var(--muted); padding-top: 8px; }
@media (min-width: 960px) { details.purchase > summary, .purchase-body { padding-left: 24px; padding-right: 24px; } }
details.purchase > summary .two-line { flex: 1; }

/* B-13: stok */
.stock-tabs { max-width: 420px; }
.stock-tabs a { display: block; text-decoration: none; color: var(--text); }
.stock-tabs a + a span { border-left: 1px solid var(--input-border); }
.stock-tabs a[aria-selected=true] span { background: var(--accent); color: #FFFFFF; font-weight: 600; }
@media (min-width: 960px) { .stats.stats-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.stat-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.stat-warn .stat-note { color: var(--warn-text); font-weight: 600; }
table.list td.pos, table.list td.neg { font-size: 15px; }
/* Telefonda sayım ve maliyet geçmişi uzun hareket listesinden önce */
@media (max-width: 959px) { .kalem-cols .side { order: -1; } }

/* B-17: sepet, satışlar */
.cart-row { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--divider); }
.cart-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-head strong { font-size: 16px; }
.pick input[type=checkbox]:checked + span::before { content: "✓ "; }

/* B-18: satış kanalları */
.field-label { font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.channel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.channel-row:last-child { border-bottom: 0; }
.channel-row .name { font-weight: 600; }
.channel-row .two-line small { display: block; }
.example { padding: 14px 16px; border-radius: var(--radius); }
.example small { color: var(--body-muted); }
#preset-warn strong, #preset-warn span { display: inline; }
.channel-hint { margin-top: 8px; }

/* Üyelik şeridi */
.access-banner { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--warn-bg); border-bottom: 1px solid var(--warn-border); color: var(--warn-text); font-size: 14px; font-weight: 500; }
.access-banner a { font-weight: 700; color: var(--warn-text); min-height: 44px; display: inline-flex; align-items: center; }
.access-banner.expired { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.access-banner.expired a { color: var(--error-text); }
p.neg strong { color: var(--error-text); }

/* Yönetim */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-extend { display: grid; gap: 12px; align-items: end; }
@media (min-width: 960px) { .admin-extend { grid-template-columns: 200px minmax(0, 1fr) auto; } .admin-extend [data-error] { grid-column: 1 / -1; } }
.toolbar input[type=search] { flex: 1; min-width: 0; }
.legal-consent { font-size: 13px; color: #5B6478; text-align: center; margin-top: -6px; }

/* Marka: "marker" lacivert, "Grid" mavi (tasarım görseli, 16.11.2026) */
:root { --brand-ink: #0B1033; --brand-grid: #2563EB; }
.wordmark { color: var(--brand-ink); font-weight: 800; letter-spacing: -.3px; }
.wordmark .wm-grid { color: var(--brand-grid); }

/* Onay (kayıt ve ilk giriş) */
.consent-box { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid #D6DDEA; border-radius: 12px; background: #F8FAFE; }
.consent-box .check { align-items: flex-start; font-size: 14.5px; font-weight: 500; line-height: 1.45; margin: 0; }
.consent-box .check input { flex: none; margin-top: 1px; }
.consent-box a { font-weight: 600; }
.consent-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: #3D4659; font-size: 15px; }
.legal-links { font-size: 13px; color: var(--muted); }

/* ===================================================================
   Yeni görünüm (sahibin tasarım görseli, 16.11.2026)
   Açık zemin, ince gölgeli beyaz kartlar, hap biçimli durum rozetleri,
   sol menünün altında kullanıcı. Önceki kuralların üstüne yazar.
   =================================================================== */
.card, .stat, .table-wrap, .item-card, .choice { border-color: var(--border); box-shadow: var(--shadow); }
.card-soft, .card-warn { box-shadow: none; }
.empty { border-color: #C9D3E4; }
.table-wrap.flat { box-shadow: none; }
.main { min-width: 0; }

/* Düğmeler */
.primary, .secondary { border-radius: var(--radius); min-height: 48px; font-size: 15px; }
.primary { box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.primary:hover { box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.secondary { border-color: #CBD5E4; }
@media (min-width: 960px) { .page-top .primary, .page-top .secondary, .hello .primary { min-height: 44px; padding: 0 18px; } }

/* Tablolar */
table.list { font-size: 14.5px; }
table.list th { background: #F7F9FD; font-size: 12.5px; border-bottom: 1px solid var(--border); }
table.list td { padding: 13px 16px; }
table.list tbody tr:hover { background: #F7FAFF; }
.table-wrap.flat table.list th { background: transparent; }

/* Rozetler: hap biçimi; durum renkleri (Yeterli yeşil, Azaldı turuncu, Eksi kırmızı) */
.badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; border: 0; }
.badge-ok { color: #15803D; background: #E7F7EE; }
.badge-low { color: #B45309; background: #FFF1DE; border: 0; }
.badge-neg { color: #C42B1C; background: #FDECEA; border: 0; }
.badge-muted { color: var(--muted); background: #EEF2F8; }
.badge-sample { border: 0; }
.badge-blue { color: var(--accent); background: var(--accent-soft); }

/* Kanal adı renkli (aynı ad her yerde aynı renk) */
.ch { font-weight: 600; }
.ch-0 { color: #2563EB; } .ch-1 { color: #C2410C; } .ch-2 { color: #BE185D; } .ch-3 { color: #B45309; } .ch-4 { color: #047857; } .ch-5 { color: #6D28D9; }

/* Sol menü */
@media (min-width: 960px) {
  .app { grid-template-columns: 236px minmax(0, 1fr); }
  .sidebar { padding: 22px 14px 16px; gap: 6px; border-right: 1px solid var(--border); }
  .sidebar .brand { padding: 2px 10px 18px; font-size: 19px; }
  .sidebar nav { gap: 4px; }
  .sidebar nav a { min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; color: #3B4658; }
  .sidebar nav a svg { color: #64748B; }
  .sidebar nav a:hover { background: #F3F6FC; }
  .sidebar nav a[aria-current=page] { background: var(--accent-soft); color: var(--accent); }
  .sidebar nav a[aria-current=page] svg { color: var(--accent); }
  .sidebar .user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--divider); min-width: 0; color: var(--text); text-decoration: none; }
  .sidebar .user:hover strong { color: var(--accent); }
  .sidebar .user .who { display: flex; flex-direction: column; min-width: 0; }
  .sidebar .user strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar .user .business { padding: 0; margin: 0; border: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main .page { padding: 28px 36px 48px; }
}
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Telefon */
.mobile-bar .mobile-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; text-decoration: none; }
.mobile-bar .mobile-brand img { width: 28px; height: 25px; }
.bottom-nav { box-shadow: 0 -6px 20px rgba(15, 23, 42, .05); border-top-color: var(--border); }
.nav-plus { box-shadow: 0 8px 18px rgba(37, 99, 235, .35); }

/* ---------- Ana sayfa (tasarım görseli 1) ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hello h1 { font-size: 24px; letter-spacing: -.3px; }
.hello p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
@media (min-width: 960px) { .main .hello h1 { font-size: 28px; } }

.dash { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "kpi" "tip" "chart" "channels" "recent" "top"; }
.dash > * { min-width: 0; }
.a-kpi { grid-area: kpi; } .a-quick { grid-area: quick; } .a-chart { grid-area: chart; } .a-channels { grid-area: channels; }
.a-tip { grid-area: tip; } .a-recent { grid-area: recent; } .a-top { grid-area: top; }
.a-quick { display: none !important; }
@media (min-width: 960px) {
  .a-quick { display: flex !important; }
  .dash { gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 280px;
    grid-template-areas: "kpi kpi kpi" "chart chart channels" "tip quick quick" "recent recent top"; }
}
@media (min-width: 1280px) {
  .dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) 280px;
    grid-template-areas: "kpi kpi quick" "chart channels tip" "recent recent top"; }
}

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: 100%; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--text); text-decoration: none; }
@media (min-width: 960px) { .kpi { padding: 18px 18px 14px; } }
a.kpi:hover { border-color: var(--accent-soft-border); color: var(--text); }
.kpi-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.kpi-icon.blue { background: #EAF1FF; color: #2563EB; }
.kpi-icon.indigo { background: #EEF0FF; color: #4F46E5; }
.kpi-icon.orange { background: #FFF2E2; color: #EA7A0C; }
.kpi-icon.violet { background: #F2EDFF; color: #6D3DF5; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 21px; font-weight: 800; letter-spacing: -.4px; overflow-wrap: anywhere; line-height: 1.2; }
@media (min-width: 960px) { .kpi-value { font-size: 25px; } }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 30px; margin-top: auto; }
.trend { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.trend.up { color: var(--positive); }
.trend.down { color: var(--error-text); }
.kpi-note { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.warn-pill { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #FDECEA; color: #C42B1C; font-size: 12px; font-weight: 700; vertical-align: middle; letter-spacing: 0; }
.spark { flex: none; width: 50%; max-width: 110px; height: 30px; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; font-weight: 700; }
.panel-head a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.chart { position: relative; width: 100%; height: 210px; }
@media (min-width: 960px) { .chart { height: 240px; } }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis { font-size: 11px; fill: #7A879C; font-family: var(--font); }
.chart .grid { stroke: #EEF2F8; stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 24px rgba(15, 23, 42, .12); padding: 7px 11px; font-size: 12px; color: var(--muted); white-space: nowrap; text-align: center; }
.chart-tip strong { display: block; font-size: 14px; color: var(--text); }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { flex: none; width: 124px; height: 124px; }
.donut-legend { flex: 1 1 120px; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; min-width: 0; }
.donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.donut-legend i { width: 10px; height: 10px; border-radius: 50%; }
.donut-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.donut-legend small { color: var(--muted); font-size: 12.5px; font-weight: 600; }

.quick { display: flex; flex-direction: column; gap: 2px; }
.quick a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.quick a:hover { background: #F3F6FC; color: var(--accent); }
.quick a svg { color: var(--accent); }

.tip-card { background: linear-gradient(160deg, #EEF4FF 0%, #E2EBFF 100%); border-color: #D6E2FB; box-shadow: none; }
.tip-card .tip-icon { width: 36px; height: 36px; border-radius: 10px; background: #FFFFFF; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.tip-card h2 { color: var(--accent); font-size: 16px; font-weight: 700; }
.tip-card p { font-size: 14px; color: #33415C; line-height: 1.5; }
.tip-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tip-card li { display: flex; justify-content: space-between; gap: 10px; }
.tip-card li a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tip-card li strong { color: #B45309; white-space: nowrap; font-size: 13.5px; }
.tip-card .go { font-weight: 700; font-size: 14px; text-decoration: none; align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
.tip-card.warn { background: linear-gradient(160deg, #FFF8EE 0%, #FFF0DC 100%); border-color: #F6DDB8; }
.tip-card.warn h2, .tip-card.warn .go { color: #B45309; }
.tip-card.warn .tip-icon { color: #EA7A0C; }

/* Ürün harf karosu (ürün fotoğrafı yok; adın ilk harfi, renk ada göre sabit) */
.tile { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.tile-0 { background: #EAF1FF; color: #2563EB; } .tile-1 { background: #FFF0E6; color: #C2410C; } .tile-2 { background: #FCE8F1; color: #BE185D; }
.tile-3 { background: #E8F7EF; color: #15803D; } .tile-4 { background: #F2EDFF; color: #6D3DF5; } .tile-5 { background: #FFF6DB; color: #A16207; }
.name-with-tile { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.name-with-tile .tile { width: 34px; height: 34px; font-size: 14px; border-radius: 9px; }

/* Ürünler: kart ızgarası (tasarım görseli 3) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; color: var(--text); text-decoration: none; min-width: 0; }
.product-card:hover { border-color: var(--accent-soft-border); color: var(--text); }
.product-card .art { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; border-radius: 0; width: auto; }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.product-card .name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.product-card .sub { font-size: 12.5px; color: var(--muted); }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-card .price-row strong { font-size: 17px; }
.product-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.margin { font-size: 12.5px; font-weight: 700; color: var(--positive); white-space: nowrap; }
.margin.neg { color: var(--error-text); }
.margin.unknown { color: var(--muted); font-weight: 500; }
.lg-sales { background: #2563EB; } .lg-profit { background: #8AB0FA; }
.dc-0 { background: #2563EB; } .dc-1 { background: #EA580C; } .dc-2 { background: #DB2777; } .dc-3 { background: #D97706; } .dc-4 { background: #059669; } .dc-5 { background: #7C3AED; }
/* Masaüstünde ana sayfa ve listeler ekranı doldurur */
@media (min-width: 960px) {
  .page-wide { max-width: 1320px; }
  .hello select, .page-top select { height: 44px; }
  .a-quick { gap: 10px; }
  .a-quick .quick a { min-height: 38px; }
}
/* Özet kartı: eğri tam genişlik, kartlar aynı boyda */
@media (min-width: 960px) {
  .kpi-foot { flex-direction: column; align-items: stretch; gap: 6px; }
  .kpi .spark { width: 100%; max-width: none; height: 46px; }
}

/* P0-1: ana sayfa net kazanç kartında gider dökümü; Ayarlar'da aylık gider satırları */
.kpi-lines { display: flex; flex-direction: column; gap: 2px; }
.expense-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; padding: 6px 0; }
.expense-row .row-main { display: flex; flex-direction: column; min-width: 0; }
.expense-row .row-actions { display: flex; gap: 8px; align-items: center; }
.expense-row .row-actions input { width: 120px; }
#expense-form { margin-top: 16px; }

/* P0-3: önerilen fiyat satırında şu anki fiyatla kalan */
.price-channel { display: flex; flex-direction: column; min-width: 0; }
.price-channel small { font-size: 12.5px; }
.price-channel small.neg { color: var(--error-text); }
/* P0-3: kâr yazısına kanal adı eklendi; dar kartta fiyatın altına iner, taşmaz */
.product-card .price-row { flex-wrap: wrap; row-gap: 2px; }
.product-card .price-row strong { white-space: nowrap; }
.product-card .price-row .margin { white-space: normal; overflow-wrap: anywhere; }
