/* Toprak Nabzı demo: mobil öncelikli tasarım */

/* ---------- Renk değişkenleri (açık tema) ---------- */
:root {
  --green-900: #1f4d36;
  --green-700: #2e7d4f;
  --orange: #d98c2b;
  --blue: #2f6db5;
  --bg: #eef3ec;
  --surface: #ffffff;
  --surface-2: #e6eee4;
  --text: #13241a;
  --muted: #4f6156;
  --line: #cfdbd1;
  --primary: #2e7d4f;
  --primary-ink: #ffffff;
  --water: #2f6db5;
  --water-soft: #dce9f8;
  --deep: #8a5a2b;
  --sun: #c97a12;
  --good: #23703f;
  --soon: #a85f0d;
  --now: #b3261e;
  --good-bg: #dff1e5;
  --soon-bg: #fcebd2;
  --now-bg: #fbe0dd;
  --fill-good: #2e7d4f;
  --fill-soon: #b8680f;
  --fill-now: #c0392b;
  --shadow: 0 1px 2px rgba(19, 36, 26, .06), 0 4px 14px rgba(19, 36, 26, .07);
  --radius: 18px;
  --tab-h: 68px;
  color-scheme: light;
}

/* Koyu tema: sistem ayarı */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1712;
    --surface: #15231b;
    --surface-2: #1d3126;
    --text: #e7f0e9;
    --muted: #a3b8aa;
    --line: #2a4235;
    --primary: #379a60;
    --water: #6aa3e8;
    --water-soft: #1b2f47;
    --deep: #d39a62;
    --sun: #eaa543;
    --good: #67c98c;
    --soon: #f0aa4b;
    --now: #f07a6c;
    --good-bg: #1a3826;
    --soon-bg: #3a2a12;
    --now-bg: #3d1b18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
/* Koyu tema: Ayarlar'dan seçildi */
:root[data-theme="dark"] {
  --bg: #0d1712;
  --surface: #15231b;
  --surface-2: #1d3126;
  --text: #e7f0e9;
  --muted: #a3b8aa;
  --line: #2a4235;
  --primary: #379a60;
  --water: #6aa3e8;
  --water-soft: #1b2f47;
  --deep: #d39a62;
  --sun: #eaa543;
  --good: #67c98c;
  --soon: #f0aa4b;
  --now: #f07a6c;
  --good-bg: #1a3826;
  --soon-bg: #3a2a12;
  --now-bg: #3d1b18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .6em; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wide { width: 100%; }
.stack { display: grid; gap: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Yerleşim ---------- */
#app { min-height: 100vh; }
#sidebar { display: none; }
#main { min-width: 0; }
#view {
  padding: 16px;
  padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom));
  max-width: 1180px;
  margin: 0 auto;
}
body:not(.authed) #view { padding-bottom: 32px; }

#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 4px;
  min-height: 60px;
  padding: 6px 12px;
  padding-top: calc(6px + env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
}
#topTitle { font-size: 1.2rem; margin: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.icon-btn .ic { width: 26px; height: 26px; }

/* Alt sekme çubuğu (telefon) */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
body.authed #tabbar { display: grid; }
body.kb-open #tabbar, body.welcome-mode #tabbar { display: none; }
#tabbar a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tab-h);
  color: var(--muted); text-decoration: none;
  font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.15;
  padding: 6px 2px;
}
#tabbar a .ic { width: 28px; height: 28px; }
#tabbar a.on { color: var(--primary); }
#tabbar a.on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; border-radius: 0 0 4px 4px; background: var(--primary); }
#tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }

.badge {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--fill-now); color: #fff;
  font-size: .8rem; font-weight: 800; line-height: 1;
}

/* Masaüstü: sol menü */
@media (min-width: 900px) {
  body.authed #app { display: grid; grid-template-columns: 270px 1fr; }
  body.authed #sidebar {
    display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: 0; height: 100vh;
    padding: 20px 14px;
    background: linear-gradient(180deg, var(--green-900), #173a29);
    color: #fff;
  }
  body.authed #tabbar { display: none; }
  #view { padding: 24px 28px 40px; }
  body.authed #view { padding-bottom: 40px; }
  .desk-only { display: inline-flex !important; }
  .fab { display: none !important; }
}
.side-brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; padding: 6px 6px 18px; }
.side-brand b { display: block; font-size: 1.25rem; }
.side-brand small { display: block; opacity: .8; font-size: .8rem; line-height: 1.3; }
.side-nav { display: grid; gap: 4px; }
.side-nav a {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 14px; border-radius: 14px;
  color: #e3efe6; text-decoration: none; font-weight: 600;
}
.side-nav a .ic { width: 24px; height: 24px; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); }
.side-nav a.on { background: rgba(255, 255, 255, .16); color: #fff; }
.side-nav .badge { margin-left: auto; }
.side-user { margin-top: auto; display: grid; gap: 8px; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.side-user span { font-weight: 700; }
.side-user small { display: block; font-weight: 400; opacity: .75; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 18px;
  border: 2px solid transparent; border-radius: 14px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-sm { min-height: 44px; padding: 6px 12px; font-size: .92rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.btn-xl { min-height: 60px; font-size: 1.15rem; padding: 12px 22px; }
.btn-xxl { min-height: 72px; font-size: 1.3rem; padding: 14px 28px; border-radius: 18px; }
.btn-xl .ic, .btn-xxl .ic { width: 26px; height: 26px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--orange); color: #1b1206; }
.btn-water { background: var(--blue); color: #fff; }
.btn-danger { background: var(--fill-now); color: #fff; }
.btn-gray { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-outline { background: transparent; color: var(--primary); border-color: currentColor; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-white { background: #fff; color: var(--green-900); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-danger-ghost { background: transparent; color: var(--now); border-color: currentColor; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.desk-only { display: none !important; }

/* Seçim çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 16px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-weight: 600; cursor: pointer;
}
.chip.on, .chip:has(input:checked) { border-color: var(--primary); background: var(--good-bg); color: var(--good); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.chip-crop { padding-left: 8px; }
.chip-crop .crop-ic { width: 34px; height: 34px; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 16px; background: var(--surface-2); }
.seg-btn { min-height: 44px; padding: 6px 14px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg-btn.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.15rem; margin-bottom: 10px; }
.sub-title { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin: 18px 0 8px; }
.narrow { max-width: 560px; margin: 0 auto; }
.note-card p { display: flex; gap: 10px; align-items: flex-start; }
.info-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px;
  background: var(--water-soft); color: var(--text); font-size: .95rem;
}
.warn { padding: 10px 12px; border-radius: 12px; background: var(--soon-bg); color: var(--soon); font-weight: 700; margin-top: 10px; }
.empty { text-align: center; padding: 32px 18px; }
.empty-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--good-bg); color: var(--primary); margin-bottom: 10px; }
.empty-icon .ic { width: 44px; height: 44px; }
.empty .btn { margin-top: 12px; }

/* Durum etiketleri */
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.pill-good, .pill-n-approved { background: var(--good-bg); color: var(--good); }
.pill-soon, .pill-n-pending { background: var(--soon-bg); color: var(--soon); }
.pill-now { background: var(--now-bg); color: var(--now); }
.pill-n-postponed { background: var(--surface-2); color: var(--muted); }
.pill-n-auto { background: var(--water-soft); color: var(--water); }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; padding: 0; }
.field legend { margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--surface); font-size: 1.05rem;
}
.field input:focus, .field select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--good-bg); }
.field input[readonly] { background: var(--surface-2); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-err { color: var(--now); font-weight: 700; margin: 0; min-height: 0; }
.form-err:empty { display: none; }
.code-input { font-size: 1.6rem !important; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; text-align: center; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.demo-box { display: grid; gap: 8px; }

/* ---------- Karşılama ---------- */
body.welcome-mode { background: linear-gradient(160deg, var(--green-900), var(--green-700) 70%); }
body.welcome-mode .demo-foot .demo-tag { color: rgba(255, 255, 255, .8); }
.welcome {
  min-height: calc(100vh - 90px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; gap: 6px;
  max-width: 440px; margin: 0 auto;
  padding-top: env(safe-area-inset-top);
}
.welcome-logo { width: 120px; height: 120px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); margin: 18px 0 8px; }
.welcome-title { font-size: 2.4rem; margin: 0; letter-spacing: -.01em; }
.welcome-slogan { font-size: 1.2rem; opacity: .92; margin-bottom: 22px; }
.welcome-actions { display: grid; gap: 12px; width: 100%; }
.welcome-about { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 12px; color: #fff; font-weight: 600; }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .2); }
.lang-btn { min-height: 44px; padding: 6px 12px; border: 0; border-radius: 12px; background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.lang-btn.on { background: #fff; color: var(--green-900); }

/* ---------- Tarlalarım ---------- */
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.greet h2 { font-size: 1.6rem; margin: 0; }
.greet p { margin: 2px 0 0; color: var(--muted); font-size: 1.05rem; }
.field-list { display: grid; gap: 0; }
@media (min-width: 700px) { .field-list { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.field-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  color: var(--text); text-decoration: none;
  border-left: 8px solid var(--fill-good);
}
.field-card.fc-soon { border-left-color: var(--fill-soon); }
.field-card.fc-now { border-left-color: var(--fill-now); }
.field-card h3 { margin: 0 0 2px; font-size: 1.15rem; }
.field-card p { margin: 0; }
.fc-body { min-width: 0; }
.fc-right { display: grid; justify-items: end; gap: 2px; text-align: right; }
.fc-lab { font-size: .78rem; color: var(--muted); }
.big-num { font-size: 2rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.fc-badge { position: absolute; top: -8px; right: -6px; }
.crop-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); }
.crop-badge.lg { width: 64px; height: 64px; }
.crop-ic { width: 38px; height: 38px; }
.crop-badge.lg .crop-ic { width: 46px; height: 46px; }
.running-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-right: 6px; animation: pulse 1.2s infinite; }
.save-box { display: flex; gap: 14px; align-items: flex-start; background: var(--water-soft); border-color: transparent; }
.save-box h3 { margin: 0 0 4px; }
.save-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; }
.save-ic .ic { width: 28px; height: 28px; }
.fab {
  position: fixed; z-index: 25;
  right: 18px; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--orange); color: #1b1206;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.fab .ic { width: 32px; height: 32px; stroke-width: 2.6; }
body.kb-open .fab { display: none; }

/* ---------- Tarla detayı ---------- */
.field-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.field-head h2 { margin: 0; }
.field-head p { margin: 0; }
.fh-mode { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (min-width: 700px) { .field-head { grid-template-columns: auto 1fr auto; } .fh-mode { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 4px; } }
.field-grid { display: grid; gap: 0 16px; }
@media (min-width: 1100px) { .field-grid { grid-template-columns: 1.05fr 1fr; } }
.col { min-width: 0; }

.rec { border-left: 8px solid var(--fill-good); }
.rec.rec-soon { border-left-color: var(--fill-soon); }
.rec.rec-now { border-left-color: var(--fill-now); }
.rec.rec-water { border-left-color: var(--blue); }
.rec-text { font-size: 1.2rem; line-height: 1.4; }
.rec-text .ic { width: 26px; height: 26px; color: var(--primary); }
.why { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.why summary, .fold summary {
  display: flex; align-items: center; min-height: 48px;
  font-weight: 700; color: var(--primary); cursor: pointer; list-style: none;
}
.why summary::-webkit-details-marker, .fold summary::-webkit-details-marker { display: none; }
.why summary::before, .fold summary::before { content: "▸"; display: inline-block; width: 1.2em; transition: transform .2s; }
.why[open] summary::before, .fold[open] summary::before { transform: rotate(90deg); }
.why ol { margin: 4px 0 10px; padding-left: 1.4em; display: grid; gap: 8px; }
.fold summary { font-size: 1.1rem; color: var(--text); }

/* Bölge haritası */
.zone-map { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.zone {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-height: 112px; padding: 10px 4px;
  border: 3px solid transparent; border-radius: 16px;
  color: #fff; cursor: pointer; text-align: center;
  background: var(--fill-good);
  transition: transform .1s;
}
.zone.zf-soon { background: var(--fill-soon); }
.zone.zf-now { background: var(--fill-now); }
.zone.sel { border-color: var(--text); box-shadow: 0 0 0 3px var(--surface) inset; transform: translateY(-2px); }
.zone.wet { background-image: linear-gradient(180deg, rgba(47, 109, 181, 0) 30%, rgba(47, 109, 181, .9)); background-size: 100% 220%; animation: wet 2s linear infinite; }
.z-id { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: .95rem; opacity: .95; }
.z-id .drop-mini { width: 12px; fill: #fff; }
.z-m { font-size: 1.55rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.z-s { font-size: .72rem; font-weight: 700; line-height: 1.15; opacity: .95; }
@media (min-width: 480px) { .z-m { font-size: 1.8rem; } .z-s { font-size: .8rem; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; color: var(--muted); font-size: .85rem; align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.dot.zf-good { background: var(--fill-good); }
.dot.zf-soon { background: var(--fill-soon); }
.dot.zf-now { background: var(--fill-now); }
.ln { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.ln-20 { background: var(--water); }
.ln-50 { background: repeating-linear-gradient(90deg, var(--deep) 0 6px, transparent 6px 9px); }
.ln-sun { background: var(--sun); }
.ln-et0 { background: repeating-linear-gradient(90deg, var(--sun) 0 6px, transparent 6px 9px); }
.ln-etc { background: var(--primary); }
.sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sq-rain { background: var(--water); opacity: .75; }
.drop-mini { width: 11px; height: 14px; fill: var(--water); vertical-align: -2px; }

/* Bölge detayı */
.zd-top { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
@media (min-width: 480px) { .zd-top { grid-template-columns: 150px 1fr; } }
.gauge { width: 150px; margin: 0 auto; }
.gauge svg { width: 150px; height: 150px; display: block; }
.g-track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.g-val { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray .6s; }
.gv-good { stroke: var(--fill-good); }
.gv-soon { stroke: var(--fill-soon); }
.gv-now { stroke: var(--fill-now); }
.g-num { font-size: 30px; font-weight: 800; fill: var(--text); }
.g-lab { font-size: 10px; fill: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.stat-ic { grid-row: 1 / 3; display: grid; place-items: center; color: var(--primary); }
.stat-lab { font-size: .8rem; color: var(--muted); line-height: 1.2; }
.stat-val { font-size: 1.3rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-val small { font-size: .7rem; font-weight: 600; color: var(--muted); }

.salt-bar { position: relative; height: 22px; border-radius: 11px; background: var(--surface-2); overflow: hidden; }
.salt-fill { height: 100%; border-radius: 11px; transition: width .6s; }
.sf-good { background: var(--fill-good); }
.sf-soon { background: var(--fill-soon); }
.sf-now { background: var(--fill-now); }
.salt-mark { position: absolute; top: 0; bottom: 0; left: 80%; width: 3px; background: var(--text); opacity: .7; }
.salt-cap { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* Grafikler */
.chart-wrap { margin: 0 -4px; }
.chart { display: block; width: 100%; height: auto; }
.chart-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; -webkit-overflow-scrolling: touch; }
.chart-scroll .fc-chart { min-width: 620px; }
.chart-scroll .season-chart { min-width: 480px; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-v { stroke-dasharray: 2 4; }
.c-lab { font-size: 12px; fill: var(--muted); }
.c-th { stroke-width: 1.5; stroke-dasharray: 5 5; }
.c-th-good { stroke: var(--fill-good); }
.c-th-now { stroke: var(--fill-now); }
.c-l20 { fill: none; stroke: var(--water); stroke-width: 3; stroke-linejoin: round; }
.c-l50 { fill: none; stroke: var(--deep); stroke-width: 2.5; stroke-dasharray: 7 4; stroke-linejoin: round; }
.c-dot { fill: var(--water); stroke: var(--surface); stroke-width: 2; }
.c-drop { fill: var(--water); }
.fc-today { fill: var(--good-bg); }
.fc-tlab { font-size: 12px; font-weight: 800; fill: var(--primary); }
.fc-rain { fill: var(--water); opacity: .78; }
.fc-val { font-size: 11px; font-weight: 700; fill: var(--water); }
.fc-sun { fill: none; stroke: var(--sun); stroke-width: 2.5; }
.fc-sdot { fill: var(--sun); }
.fc-date { font-size: 12px; font-weight: 700; fill: var(--text); }
.fc-no { font-size: 10.5px; font-weight: 800; fill: var(--now); }
.s-et0 { fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: 7 4; }
.s-etc { fill: none; stroke: var(--primary); stroke-width: 3; }
.plan { width: 100%; border-collapse: collapse; font-size: .92rem; }
.plan th { text-align: left; white-space: nowrap; padding: 8px 10px 8px 0; vertical-align: top; color: var(--muted); }
.plan td { padding: 8px 0; }
.plan tr + tr { border-top: 1px solid var(--line); }
.plan tr.on th, .plan tr.on td { color: var(--primary); font-weight: 700; }

/* Sulama animasyonu */
.irr-run { border: 2px solid var(--blue); }
.valve { position: relative; background: var(--water-soft); border-radius: 14px; padding: 10px; }
.valve-svg { display: block; width: 100%; max-width: 360px; margin: 0 auto; height: auto; }
.valve-tag { position: absolute; top: 8px; right: 10px; font-size: .8rem; font-weight: 800; color: var(--water); }
.pipe { fill: #8fa6b8; }
.flow { stroke: #fff; stroke-width: 4; stroke-dasharray: 10 10; animation: flow .6s linear infinite; }
.wheel { fill: none; stroke: var(--fill-now); stroke-width: 4; transform-origin: 120px 18px; animation: spin 3s linear infinite; }
.valve-body { fill: #5d7486; }
.fall { fill: var(--blue); animation: fall 1s ease-in infinite; }
.cd-row { font-size: 1.15rem; margin: 10px 0 6px; }
.cd-row b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.progress { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 12px; }
.progress > div { height: 100%; width: 0; background: var(--blue); border-radius: 6px; transition: width 1s linear; }

/* Enerji kutucukları */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 12px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; justify-items: center; }
.tile-ic { color: var(--sun); }
.tile b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile b small { font-size: .7rem; color: var(--muted); }
.tile span:last-child { font-size: .8rem; color: var(--muted); line-height: 1.2; }

/* ---------- Toprak Ekle ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 4px 0 16px; counter-reset: s; }
.steps li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.steps li::after { content: ""; position: absolute; top: 20px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 3px; background: var(--line); border-radius: 2px; }
.steps li:last-child::after { display: none; }
.steps li.done::after { background: var(--primary); }
.st-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); font-size: 1.1rem; }
.steps li.on { color: var(--text); }
.steps li.on .st-num { background: var(--orange); border-color: var(--orange); color: #1b1206; }
.steps li.done .st-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.searching { display: grid; justify-items: center; gap: 8px; padding: 18px 0 6px; font-weight: 700; color: var(--muted); }
.radar { position: relative; display: grid; place-items: center; width: 90px; height: 90px; color: var(--primary); }
.radar i { position: absolute; inset: 0; border: 3px solid var(--primary); border-radius: 50%; opacity: 0; animation: ping 1.5s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .5s; }
.radar i:nth-child(3) { animation-delay: 1s; }
.radar .ic { width: 34px; height: 34px; }
.found { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px; margin-top: 6px; border-radius: 16px; background: var(--good-bg); animation: pop .35s ease-out; }
.found p { margin: 0; }
.found .btn { margin-top: 10px; }
.found-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; }
.found-ic .ic { width: 32px; height: 32px; stroke-width: 3; }
.found-line { font-weight: 800; font-size: 1.1rem; color: var(--good); }
.demo-codes ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.demo-codes li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9rem; color: var(--muted); }
.code-chip { min-height: 44px; padding: 6px 12px; border: 2px dashed var(--primary); border-radius: 10px; background: var(--surface); color: var(--primary); font: 800 .95rem ui-monospace, Consolas, monospace; cursor: pointer; }
.sum-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.sum-head h3, .sum-head p { margin: 0; }
.sum { margin: 0 0 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; font-weight: 700; text-align: right; }
.narrow .card .btn + .btn { margin-top: 8px; }

/* ---------- Bildirimler ---------- */
.notif-list { display: grid; }
.notif.is-pending { border: 2px solid var(--fill-soon); }
.n-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.n-where { font-weight: 700; color: var(--muted); font-size: .92rem; }
.n-msg { font-size: 1.2rem; line-height: 1.45; font-weight: 600; }
.n-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.running { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; margin-top: 10px; border-radius: 12px; background: var(--water-soft); font-weight: 700; }
.sms .phone { max-width: 340px; margin: 0 auto; padding: 14px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.phone-top { text-align: center; font-size: .78rem; font-weight: 800; color: var(--muted); letter-spacing: .05em; margin-bottom: 10px; }
.bubble { position: relative; max-width: 90%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--surface); border: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: .92rem; line-height: 1.4; }
.phone-time { font-size: .75rem; color: var(--muted); margin: 4px 0 0 6px; }

/* ---------- Kooperatif ---------- */
.coop-grid { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .coop-grid { grid-template-columns: 1.3fr 1fr; } }
.tank { position: relative; height: 210px; border: 4px solid var(--water); border-top-width: 0; border-radius: 0 0 26px 26px; background: var(--water-soft); overflow: hidden; }
.water { position: absolute; left: 0; right: 0; bottom: 0; background: var(--blue); transition: height 1s; }
.wave {
  position: absolute; left: 0; top: -14px; width: 200%; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 T90 8 T120 8 V16 H0Z' fill='%232f6db5'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 16px;
  animation: wave 3s linear infinite;
}
.wave.w2 { opacity: .5; top: -10px; animation-duration: 5s; animation-direction: reverse; }
.tank-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tank-label b { font-size: 2.6rem; line-height: 1; }
.big-line { font-size: 1.2rem; font-weight: 800; margin: 12px 0 2px; }
.pump-state { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; color: var(--muted); }
.pump-state.on { color: var(--sun); }
.pump-state .ic { width: 30px; height: 30px; }
.pump-state.on .ic { animation: spin 6s linear infinite; }
.table-wrap { overflow-x: auto; }
.meter { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.meter th, .meter td { padding: 10px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.meter th:first-child { text-align: left; }
.meter thead th { font-size: .82rem; color: var(--muted); }
.meter tbody th small { display: block; font-weight: 600; color: var(--primary); font-size: .78rem; }
.meter tr.me { background: var(--good-bg); }
.meter tr.me th, .meter tr.me td { font-weight: 800; }

/* ---------- Ayarlar ---------- */
.settings { max-width: 720px; margin: 0 auto; }
.fm-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.fm-row input { grid-column: 1 / -1; min-height: 52px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
@media (min-width: 560px) { .fm-row { grid-template-columns: 1fr auto auto; } .fm-row input { grid-column: auto; } }

/* ---------- Hakkında ---------- */
.about { max-width: 820px; margin: 0 auto; }
.about-hero { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; border: 0; }
.about-hero img { border-radius: 18px; }
.about-hero h2 { margin: 0; font-size: 1.6rem; }
.slogan-sm { margin: 0; opacity: .9; }
.about-p { font-size: 1.05rem; line-height: 1.65; margin: 0; }
.big-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .big-stats { grid-template-columns: repeat(4, 1fr); } }
.big-stat { display: grid; gap: 4px; padding: 18px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.big-stat b { font-size: 1.8rem; line-height: 1.1; color: var(--primary); }
.big-stat span { font-size: .88rem; color: var(--muted); line-height: 1.3; }
.event { font-weight: 800; color: var(--muted); }

/* ---------- Alt bilgi ---------- */
.demo-foot { margin-top: 20px; }
.demo-tag { text-align: center; font-size: .8rem; color: var(--muted); margin: 0 0 4px; }

/* ---------- Pencere ve bildirim balonu ---------- */
#modal-root { position: fixed; inset: 0; z-index: 60; display: none; place-items: end center; }
#modal-root.open { display: grid; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); animation: fade .2s; }
.modal {
  position: relative; width: 100%; max-width: 460px;
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: var(--surface); color: var(--text);
  animation: up .25s ease-out;
}
@media (min-width: 600px) { #modal-root { place-items: center; } .modal { border-radius: 24px; padding-bottom: 20px; } }
.modal h2 { font-size: 1.3rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 12px; }
#toast {
  position: fixed; left: 50%; z-index: 70;
  bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px;
  background: #13241a; color: #fff; font-weight: 700; text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { #toast { bottom: 28px; } }
#success { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(13, 23, 18, .55); }
#success.show { display: grid; }
.success-box { display: grid; justify-items: center; gap: 10px; padding: 28px 36px; border-radius: 24px; background: var(--surface); animation: pop .35s ease-out; }
.success-box svg { width: 96px; height: 96px; }
.success-box circle { fill: var(--primary); }
.success-box path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .2s forwards; }
.success-box p { margin: 0; font-size: 1.3rem; font-weight: 800; }

/* ---------- Karşılama: nasıl çalışır ---------- */
.welcome { display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center; max-width: 1100px; }
.w-lang, .w-hero, .how, .welcome-actions, .welcome-about { width: 100%; max-width: 460px; }
.w-lang { display: flex; justify-content: center; }
.w-hero { display: grid; justify-items: center; }
.how { margin: 4px 0 18px; padding: 16px; border-radius: 20px; background: rgba(0, 0, 0, .18); text-align: left; }
.how h2 { font-size: 1.1rem; margin-bottom: 10px; text-align: center; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.how-steps li { display: flex; gap: 10px; align-items: flex-start; }
.how-ic { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.how-ic .ic { width: 24px; height: 24px; }
.how-n { position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #1b1206; font-size: .78rem; }
.how-tx b { display: block; font-size: .95rem; line-height: 1.25; }
.how-tx small { display: block; opacity: .85; font-size: .78rem; line-height: 1.3; }
.how-start { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; text-align: center; }
@media (min-width: 900px) {
  .welcome {
    grid-template-columns: 1fr 1fr; column-gap: 56px; justify-items: stretch;
    grid-template-areas: "lang lang" "hero how" "act how" "about how";
    text-align: left; padding: 24px;
  }
  .w-lang { grid-area: lang; justify-content: flex-end; max-width: none; }
  .w-hero { grid-area: hero; justify-items: start; }
  .how { grid-area: how; align-self: center; max-width: 520px; padding: 26px; }
  .how-steps { grid-template-columns: 1fr; gap: 16px; }
  .how-ic { width: 54px; height: 54px; }
  .how-tx b { font-size: 1.1rem; }
  .how-tx small { font-size: .9rem; }
  .welcome-actions { grid-area: act; }
  .welcome-about { grid-area: about; }
  .welcome-title { font-size: 3rem; }
}

/* ---------- Ekran başı yardım kutusu ---------- */
.help { border-left: 6px solid var(--orange); padding: 6px 16px; }
.help summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; cursor: pointer; list-style: none; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "▾"; margin-left: auto; transition: transform .2s; color: var(--muted); }
.help:not([open]) summary::after { transform: rotate(-90deg); }
.help summary .ic { color: var(--orange); }
.help-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .help-steps { grid-template-columns: repeat(3, 1fr); } }
.help-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--surface-2); font-size: .95rem; }
.hs-n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #1b1206; font-weight: 800; }
.help .btn { margin-bottom: 10px; }

/* ---------- Tarlalarım panosu ---------- */
.dash { display: grid; gap: 0 16px; }
@media (min-width: 1100px) {
  .dash { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .dash .field-list { grid-template-columns: 1fr; }
  .dash-side .m50-col { display: none; }
}
.field-list { grid-template-columns: minmax(0, 1fr) !important; }
.dash, .dash-main, .dash-side { min-width: 0; }
.dash { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .dash { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.field-card { min-width: 0; }
.fc-right .pill { white-space: normal; text-align: center; }
.zs-table th[scope=row] a { display: inline-block; max-width: 9.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.fc-thumb { display: none; }
@media (min-width: 700px) {
  .field-card { grid-template-rows: auto auto; }
  .fc-thumb { display: block; grid-column: 1 / -1; margin: -18px -18px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 5; }
  .field-card { border-left-width: 1px; border-top: 0; overflow: hidden; }
  .field-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--fill-good); }
  .field-card.fc-soon::after { background: var(--fill-soon); }
  .field-card.fc-now::after { background: var(--fill-now); }
}
.thumb { display: block; width: 100%; height: 100%; }
.thumb .sz { opacity: .42; stroke: rgba(255, 255, 255, .8); stroke-width: 3; }
.zs-table td, .zs-table th { font-size: .92rem; }
.zs-table a { font-weight: 700; text-decoration: none; }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* ---------- Uydu haritası ---------- */
.sat-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sat-top .card-title { margin: 0; }
.layer-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-sm { min-height: 44px; padding: 6px 12px; font-size: .92rem; }
.sat { position: relative; aspect-ratio: 8 / 5; border-radius: 14px; overflow: hidden; background: #6b6a4a; margin: 0 -6px; }
.sat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
#s-sat { position: absolute; inset: 0; }
.sat-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sz { stroke: rgba(255, 255, 255, .9); stroke-width: 2.5; stroke-dasharray: 8 5; cursor: pointer; transition: fill-opacity .2s; }
.sz.zf-none { fill: transparent; }
.sz.zf-good { fill: var(--fill-good); fill-opacity: .42; }
.sz.zf-soon { fill: var(--fill-soon); fill-opacity: .5; }
.sz.zf-now { fill: var(--fill-now); fill-opacity: .5; }
.sz:hover, .sz:focus-visible { fill-opacity: .68; outline: none; }
.sz.sel { stroke: #ffd27a; stroke-width: 6; stroke-dasharray: none; }
.sz.wet { animation: wetpoly 1.6s ease-in-out infinite; }
@keyframes wetpoly { 50% { fill: #2f6db5; fill-opacity: .6; } }
.sz-lab text { text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: 5px; stroke-linejoin: round; font-weight: 800; }
.sz-id { font-size: 24px; }
.sz-val { font-size: 34px; }
.sz-unit { font-size: 16px; }
.pipe-main { fill: none; stroke: #e9e4d6; stroke-width: 5; stroke-linejoin: round; opacity: .9; }
.pipe-sub { stroke: #e9e4d6; stroke-width: 3; opacity: .8; }
.pipe-main.flowing, .pipe-sub.flowing { stroke: #7ec3ff; stroke-dasharray: 12 8; animation: flow .6s linear infinite; opacity: 1; }
.valve-dot { fill: #5d7486; stroke: #fff; stroke-width: 2.5; }
.valve-dot.open { fill: #2f9bff; animation: pulse 1s infinite; }
.pump-ic { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.pump-ic.run { animation: pulse 1s infinite; }
.pump-tri { fill: #fff; }
.cable { fill: none; stroke: #ffd27a; stroke-width: 2; stroke-dasharray: 4 4; opacity: .85; }
.gw-mast { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.gw-wave { fill: none; stroke: #ffd27a; stroke-width: 2.5; stroke-linecap: round; animation: pulse 2s infinite; }
.m-lab { font-size: 15px; font-weight: 800; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .65); stroke-width: 4px; stroke-linejoin: round; }
.m-sm { font-size: 12px; font-weight: 700; }
.m-water { font-style: italic; font-size: 17px; }
.sensor { cursor: pointer; }
.s-hit { fill: transparent; }
.s-dot { fill: #fff; stroke: #1f4d36; stroke-width: 3; }
.s-ring { fill: none; stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.sensor.on .s-dot { fill: #ffd27a; }
.s-n { font-size: 11px; font-weight: 900; text-anchor: middle; fill: #1f4d36; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.scale-bg { fill: rgba(0, 0, 0, .45); }
.scale-bar { fill: none; stroke: #fff; stroke-width: 2.5; }
.scale-t { font-size: 12px; font-weight: 800; fill: #fff; text-anchor: middle; }
.cp-bg { fill: rgba(0, 0, 0, .45); }
.cp-n { fill: #fff; }
.cp-t { font-size: 9px; font-weight: 900; fill: #fff; text-anchor: middle; }
.m-panel-sm { display: none; }
@media (max-width: 600px) { .m-lab { font-size: 22px; } .m-sm, .scale, .compass, .m-panel { display: none; } .m-panel-sm { display: inline; } }
.sat-wrap { position: relative; }
.sat-pop {
  position: absolute; z-index: 3; top: 10px; right: 4px; width: 260px;
  padding: 12px; border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .35); font-size: .86rem; animation: pop .2s ease-out;
}
.sat-pop h4 { margin: 0 28px 6px 0; font-size: .98rem; }
.pop-row { display: grid; margin: 0 0 6px; }
.pop-row span { color: var(--muted); }
.pop-meta { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.pop-x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
@media (max-width: 600px) { .sat-pop { position: relative; top: auto; right: auto; width: auto; margin-top: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); } }
.lg-sensor { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #1f4d36; }
.lg-valve { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #5d7486; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.lg-pipe { display: inline-block; width: 22px; height: 5px; border-radius: 3px; background: #c9c2ae; }
.sat-card #s-map { margin-top: 4px; }
.sat-card .zone { min-height: 84px; }

/* Masaüstü yerleşim: harita solda, öneri sağda; telefonda öneri en üstte */
.field-grid { display: flex; flex-direction: column; }
.field-grid .col { display: contents; }
#s-rec { order: 1; } .sat-card { order: 2; } #s-zone { order: 3; } #s-irr { order: 4; } #s-fc { order: 5; } #s-energy { order: 6; } #season { order: 7; }
@media (min-width: 1100px) {
  .field-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 16px; align-items: start; }
  .field-grid .col { display: block; }
}

/* ---------- Bildirim düzeni ve telefon önizlemesi ---------- */
.notif-layout { display: grid; gap: 0 16px; }
@media (min-width: 1100px) { .notif-layout { grid-template-columns: 1fr 380px; align-items: start; } .notif-side { position: sticky; top: 76px; } }
.ok-line { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--good); font-weight: 700; }
.ok-line.auto { color: var(--water); }
.lock { max-width: 340px; margin: 0 auto 10px; padding: 18px 14px 20px; border-radius: 28px; background: linear-gradient(160deg, #22402f, #3b6b52 60%, #2f6db5); }
.lock-time { text-align: center; color: #fff; font-size: 2.4rem; font-weight: 300; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.push { padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .94); color: #13241a; }
.push-head { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #4f6156; margin-bottom: 4px; }
.push-head img { border-radius: 5px; }
.push-t { margin: 0; font-weight: 800; font-size: .95rem; }
.push-m { margin: 2px 0 8px; font-size: .92rem; line-height: 1.4; }
.push-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 12px; overflow: hidden; background: #cfdbd1; }
.push-acts button { min-height: 48px; border: 0; background: #f1f5f0; color: #1f4d36; font-weight: 800; font-size: .88rem; cursor: pointer; }
.push-acts button:first-child { color: #fff; background: #2e7d4f; }
.push-done { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: #23703f; }

/* ---------- Onay penceresi içeriği ---------- */
.cf-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--water-soft); }
.cf-box > .ic { width: 34px; height: 34px; color: var(--water); }
.cf-box p { margin: 0; font-size: 1.05rem; line-height: 1.5; }

/* ---------- Yeni bildirim balonu ---------- */
#banner {
  position: fixed; z-index: 65; left: 12px; right: 12px; top: calc(70px + env(safe-area-inset-top));
  padding: 14px; border-radius: 18px; background: var(--surface); color: var(--text);
  border: 2px solid var(--fill-soon); box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
  transform: translateY(-30px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
}
#banner.show { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { #banner { left: auto; right: 24px; top: 24px; width: 400px; } }
.bn-head { display: flex; align-items: center; gap: 10px; }
.bn-head img { border-radius: 8px; }
.bn-head span { display: grid; flex: 1; line-height: 1.2; }
.bn-head small { color: var(--muted); }
.bn-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.bn-msg { margin: 8px 0 0; font-weight: 600; font-size: 1.02rem; }
#banner .btn-row { margin-top: 10px; }

/* ---------- Rehber tur ---------- */
#tour { position: fixed; inset: 0; z-index: 90; display: none; }
#tour.open { display: block; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(6, 16, 11, .68); outline: 3px solid var(--orange); outline-offset: 2px; transition: all .25s; pointer-events: none; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 24px)); padding: 18px; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); animation: pop .25s ease-out; }
.tour-card.sheet { left: 12px !important; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; }
.tour-card.sheet.sheet-top { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
.tour-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tour-n { margin: 0 0 4px; font-size: .82rem; font-weight: 800; color: var(--orange); }
.tour-dots { display: flex; gap: 6px; margin: 4px 0 12px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { width: 22px; border-radius: 4px; background: var(--orange); }
.tour-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tour-btns .btn-primary { min-width: 120px; }

/* ---------- Grafik ipucu ---------- */
.c-hit { fill: transparent; cursor: crosshair; }
.c-guide { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.c-guide.on { opacity: .5; }
#tip { position: fixed; z-index: 95; padding: 8px 10px; border-radius: 10px; background: #13241a; color: #fff; font-size: .85rem; line-height: 1.4; pointer-events: none; opacity: 0; transition: opacity .12s; max-width: 240px; }
#tip.show { opacity: 1; }

/* ---------- Ana ekran özet kutuları ---------- */
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ov { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 5px solid var(--line); min-width: 0; }
.ov-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--primary); }
.ov-ic .ic { width: 22px; height: 22px; }
.ov-lab { font-size: .8rem; color: var(--muted); font-weight: 700; line-height: 1.2; }
.ov-val { font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ov small { grid-column: 1 / -1; margin-top: 4px; font-size: .78rem; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.ov-good { border-top-color: var(--fill-good); }
.ov-soon { border-top-color: var(--fill-soon); }
.ov-now { border-top-color: var(--fill-now); }
.ov-water { border-top-color: var(--blue); } .ov-water .ov-ic { color: var(--water); }
.ov-wx { border-top-color: var(--sun); } .ov-wx .ov-ic, .ov-sun .ov-ic { color: var(--sun); }
.ov-sun { border-top-color: var(--orange); }
@media (max-width: 420px) { .overview { grid-template-columns: 1fr 1fr; } .ov-val { font-size: 1.25rem; } }

/* ---------- Sensör değerleri haritada ---------- */
.s-val { font-size: 15px; font-weight: 800; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .7); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
@media (max-width: 600px) { .s-val { font-size: 19px; } }

/* ---------- İlk ölçüm, toprak analizi, su kaynağı, paneller ---------- */
.setup-card { border: 2px solid var(--fill-soon); }
.progress.big { height: 16px; border-radius: 8px; }
.progress.big > div { background: var(--fill-soon); transition: width .9s linear; }
.progress .sunbar { background: linear-gradient(90deg, #f0b43c, var(--orange)) !important; }
.setup-steps { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.setup-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.setup-steps li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.setup-steps li.on { color: var(--text); }
.setup-steps li.on i { border-color: var(--fill-soon); border-top-color: transparent; animation: spin 1s linear infinite; }
.setup-steps li.done { color: var(--good); }
.soil-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.soil-i { display: grid; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.soil-i span { font-size: .8rem; color: var(--muted); line-height: 1.25; }
.soil-i b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.txt-soon { color: var(--soon); }
.tank-sm { height: 150px; max-width: 320px; margin: 0 auto; }
.tank-sm .tank-label b { font-size: 2rem; }
.water-card .btn { margin-top: 4px; }
.pnow { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pnow b { font-size: 2.4rem; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.pnow span { color: var(--muted); font-weight: 700; }
.panel-card .tiles { margin-top: 12px; }
.fc-src { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; color: var(--muted); }
.fc-src.live { background: var(--good-bg); color: var(--good); font-weight: 600; }
.fc-temp { font-size: 10.5px; font-weight: 700; fill: var(--muted); }
#s-fc .sat-top .card-title { margin: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.opt-list { display: grid; gap: 10px; }
.opt-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: var(--surface); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card:has(input:checked) { border-color: var(--primary); background: var(--good-bg); }
.opt-card:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.opt-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--primary); }
.opt-ic .ic { width: 28px; height: 28px; }
.opt-tx b { display: block; font-size: 1.05rem; }
.opt-tx small { display: block; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.steps { grid-template-columns: repeat(var(--n, 3), 1fr); }
.steps li .st-lab { font-size: .72rem; }
@media (min-width: 480px) { .steps li .st-lab { font-size: .82rem; } }
#s-setup { order: 0; } #s-soil { order: 3; } #s-water { order: 4; }

/* Kenar menü kısayol ipucu */
.kbd-hint { margin: 4px 0 0; font-size: .72rem; opacity: .65; line-height: 1.4; }

/* ---------- Animasyonlar ---------- */
@keyframes pulse { 50% { opacity: .35; } }
@keyframes wet { from { background-position: 0 0; } to { background-position: 0 -220%; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fall { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.fall { transform-box: fill-box; }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wave { to { transform: translateX(-120px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
