/*
 * Haberler (web) — iOS uygulamasının SwiftUI arayüzünü birebir taklit eder:
 * inline gezinme çubuğu, arama alanı, insetGrouped liste, alt sayfalar
 * (sheet), iOS anahtarları ve sistem renkleri (açık/koyu).
 */

:root {
  color-scheme: light;
  --bg: #F2F2F7;                         /* systemGroupedBackground */
  --plain: #FFFFFF;                      /* systemBackground */
  --cell: #FFFFFF;                       /* secondarySystemGroupedBackground */
  --cell-pressed: #D1D1D6;
  --placeholder: #F2F2F7;                /* secondarySystemBackground */
  --label: #000000;
  --secondary: rgba(60, 60, 67, 0.6);
  --tertiary: rgba(60, 60, 67, 0.3);
  --separator: rgba(60, 60, 67, 0.29);
  --fill: rgba(118, 118, 128, 0.12);     /* arama alanı */
  --switch-off: rgba(120, 120, 128, 0.16);
  --accent: #007AFF;
  --indigo: #5856D6;
  --purple: #AF52DE;
  --orange: #FF9500;
  --yellow: #FFCC00;
  --green: #34C759;
  --red: #FF3B30;
  --bar: rgba(249, 249, 249, 0.82);
  --backdrop: rgba(0, 0, 0, 0.2);
  --shadow: rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --plain: #000000;
    --cell: #1C1C1E;
    --cell-pressed: #3A3A3C;
    --placeholder: #1C1C1E;
    --label: #FFFFFF;
    --secondary: rgba(235, 235, 245, 0.6);
    --tertiary: rgba(235, 235, 245, 0.3);
    --separator: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24);
    --switch-off: rgba(120, 120, 128, 0.32);
    --accent: #0A84FF;
    --indigo: #5E5CE6;
    --purple: #BF5AF2;
    --orange: #FF9F0A;
    --yellow: #FFD60A;
    --green: #30D158;
    --red: #FF453A;
    --bar: rgba(22, 22, 22, 0.82);
    --backdrop: rgba(0, 0, 0, 0.45);
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --plain: #000000;
  --cell: #1C1C1E;
  --cell-pressed: #3A3A3C;
  --placeholder: #1C1C1E;
  --label: #FFFFFF;
  --secondary: rgba(235, 235, 245, 0.6);
  --tertiary: rgba(235, 235, 245, 0.3);
  --separator: rgba(84, 84, 88, 0.6);
  --fill: rgba(118, 118, 128, 0.24);
  --switch-off: rgba(120, 120, 128, 0.32);
  --accent: #0A84FF;
  --indigo: #5E5CE6;
  --purple: #BF5AF2;
  --orange: #FF9F0A;
  --yellow: #FFD60A;
  --green: #30D158;
  --red: #FF453A;
  --bar: rgba(22, 22, 22, 0.82);
  --backdrop: rgba(0, 0, 0, 0.45);
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

[hidden] { display: none !important; }

/* MARK: - Ekranlar ve geçişler (NavigationStack push/pop) */

.screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s;
  will-change: transform;
}

.screen.pushed-away { transform: translateX(-30%); filter: brightness(0.92); }
.screen.detail { transform: translateX(100%); box-shadow: -4px 0 16px var(--shadow); }
.screen.detail.shown { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .screen, .sheet { transition: none !important; }
}

/* Yükleniyor / hata ekranı listede değil, düz arka planda durur. */
#list-screen.plain { background: var(--plain); }

.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(44px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.content { max-width: 720px; margin: 0 auto; }

/* MARK: - Gezinme çubuğu (inline başlık) */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;             /* JS, kaydırma çubuğu genişliği kadar içeri çeker */
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}

.navbar.scrolled {
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0.5px 0 var(--separator);
}

.navbar-inner {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  max-width: 720px;
  margin: 0 auto;
}

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  pointer-events: none;
  white-space: nowrap;
}

.nav-side { display: flex; align-items: center; z-index: 1; }
.nav-left { gap: 25px; }
.nav-right { gap: 26.7px; }
#sources-btn { width: 28px; }
#sources-btn svg { width: 28px; height: 28px; }
#categories-btn { margin-right: 1.4px; }

.nav-icon-btn {
  /* Kutu simgeyle aynı genişlikte: görünen kenar = kutu kenarı, böylece
     sağ ve sol düğmeler kenara eşit uzaklıkta durur. */
  width: 24px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: opacity 0.15s, color 0.2s;
}
.nav-icon-btn svg { width: 24px; height: 24px; }
.nav-icon-btn.secondary { color: var(--secondary); }
.nav-icon-btn.indigo { color: var(--indigo); }
.nav-icon-btn:active, .back-btn:active, .done-btn:active, .link-btn:active { opacity: 0.35; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: -8px;
  color: var(--accent);
  font-size: 17px;
}
.back-chevron svg { width: 13px; height: 21px; display: block; }

/* Açık/koyu mod düğmesi: aydınlıkta mor-çivit ay, karanlıkta turuncu-sarı güneş. */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 2px 4px color-mix(in srgb, var(--indigo) 45%, transparent);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.theme-toggle.is-dark {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  box-shadow: 0 2px 4px color-mix(in srgb, var(--orange) 45%, transparent);
}
.theme-toggle:active { transform: scale(0.88); }
.theme-icon { display: inline-flex; }
.theme-icon svg { width: 17px; height: 17px; }
.theme-icon.spin { animation: themeSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes themeSpin {
  from { transform: scale(0.2) rotate(-180deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

/* MARK: - Arama alanı (.searchable) */

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 2px 16px 8px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--secondary);
  cursor: text;
}
.search-icon svg { width: 17px; height: 17px; display: block; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--label);
  font: inherit;
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--secondary); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { color: var(--secondary); display: inline-flex; }
.search-clear svg { width: 17px; height: 17px; }

/* MARK: - Liste (insetGrouped) */

.list-section { margin: 0 20px; }   /* insetGrouped kenar boşluğu (iPhone'da 20 pt) */

.group {
  background: var(--cell);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}

.row-wrap {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.row-wrap + .row-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 124px;          /* ayırıcı metnin başladığı yerden başlar: 20 + 92 + 12 */
  height: 0.5px;
  background: var(--separator);
  z-index: 2;
}

.swipe-action {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  background: var(--indigo);
  color: #fff;
}
.swipe-action button {
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 15px;
  line-height: 18px;
}
.swipe-action svg { width: 22px; height: 22px; }

.row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  /* Sağdaki 39 pt: ok işareti (20 pt kenar + 7 pt ok + 12 pt aralık) */
  padding: 11px 39px 11px 20px;
  background: var(--cell);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.25s;
  z-index: 1;
}
.row.animating { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s; }
.row.pressed { background: var(--cell-pressed); transition: none; }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (hover: hover) {
  .row:hover { background: color-mix(in srgb, var(--cell) 92%, var(--label)); }
}

.row .chevron {
  position: absolute;
  right: 20.3px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tertiary);
  display: flex;
}
.row .chevron svg { width: 8px; height: 13px; }

.row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
}

.row-source {
  margin: 0.07px 0;      /* caption2: 13 / 13,13 */
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  color: var(--accent);
}

.row-title {
  margin: -0.855px 0;    /* headline: 22 / 20,29 */
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  color: var(--label);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.row-summary {
  margin: -1.05px 0;     /* subheadline: 20 / 17,9 */
  font-size: 15px;
  line-height: 20px;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.row-meta {
  margin: -0.84px 0;     /* caption: 16 / 14,32 */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.row-date { font-size: 12px; line-height: 16px; color: var(--secondary); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 13px;
}
.badge svg { width: 11px; height: 11px; }
.badge.translating { color: var(--accent); }
.badge.read { color: var(--green); font-weight: 600; }

/* Haber görseli / favicon / jenerik simge */
.thumb {
  position: relative;
  flex: none;
  width: 92px;
  height: 92px;
  margin: 6px 0;         /* .padding(.vertical, 6): görsel altta da 6 pt boşluk bırakır */
  border-radius: 10px;
  background: var(--placeholder);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}
.thumb img.loaded { opacity: 1; }
.thumb .fallback-icon svg { width: 22px; height: 22px; display: block; }
.thumb .spinner { width: 20px; height: 20px; }

.section-footer {
  padding: 6px 16px 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--secondary);
}
.section-footer.small { font-size: 11px; line-height: 13px; }

/* MARK: - Durum ekranları */

.center-state {
  min-height: calc(100vh - 160px);
  min-height: calc(100dvh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}
.center-state .caption { font-size: 15px; line-height: 20px; color: var(--secondary); }
.center-state.error { gap: 16px; }
.center-state .error-icon { color: var(--secondary); }
.center-state .error-icon svg { width: 48px; height: 42px; display: block; }
.center-state h2 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.center-state p { margin: 0; font-size: 15px; line-height: 20px; color: var(--secondary); max-width: 420px; }

.prominent-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.prominent-btn:active { opacity: 0.6; }

/* iOS ProgressView (8 çubuklu dönen gösterge) */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%238E8E93' stroke-width='4' stroke-linecap='round'%3E%3Cline x1='20' y1='4' x2='20' y2='12' opacity='1'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(45 20 20)' opacity='.3'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(90 20 20)' opacity='.3'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(135 20 20)' opacity='.3'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(180 20 20)' opacity='.35'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(225 20 20)' opacity='.5'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(270 20 20)' opacity='.65'/%3E%3Cline x1='20' y1='4' x2='20' y2='12' transform='rotate(315 20 20)' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: spin 0.8s steps(8) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Aşağı çekip yenileme */
.ptr {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: height 0.25s;
}
.ptr.dragging { transition: none; }
.ptr .spinner { width: 24px; height: 24px; margin-bottom: 10px; animation-play-state: paused; }
.ptr.refreshing .spinner { animation-play-state: running; }

/* MARK: - Detay ekranı */

.detail-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-image {
  width: 100%;
  height: 220px;
  margin: 0;
  border-radius: 12px;
}
@media (min-width: 700px) { .detail-image { height: 340px; } }

.detail-title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-date { font-size: 12px; line-height: 16px; color: var(--secondary); }

.divider { height: 0.5px; background: var(--separator); border: 0; margin: 0; }

.body-text { display: flex; flex-direction: column; gap: 14px; }
.body-text p { margin: 0; font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }

.loading-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--secondary);
}

.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--accent);
  font-size: 15px;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
}
.link-btn svg { width: 18px; height: 18px; flex: none; }
.link-btn .grow { flex: 1; }
.link-btn .chev svg { width: 13px; height: 13px; }

.original-text p {
  margin: 0;
  font-size: 16px;
  line-height: 21px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}

.disclaimer { font-size: 11px; line-height: 13px; color: var(--secondary); }

/* MARK: - Alt sayfa (sheet) */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--backdrop);
  opacity: 0;
  transition: opacity 0.3s;
}
.sheet-backdrop.shown { opacity: 1; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 20px var(--shadow);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1);
  max-width: 100%;
}
.sheet.shown { transform: translateY(0); }
.sheet.medium { height: 50%; height: 50dvh; }
.sheet.large { height: calc(100% - 10px - env(safe-area-inset-top)); }
.sheet.dragging { transition: none; }

/* Geniş ekranda (iPad/masaüstü) ortada form sayfası */
@media (min-width: 700px) {
  .sheet {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 540px;
    border-radius: 12px;
    transform: translate(-50%, calc(-50% + 40px)) ;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.25s;
  }
  .sheet.shown { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.medium { height: 440px; }
  .sheet.large { height: min(720px, calc(100% - 80px)); }
}

.sheet-grabber {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: var(--tertiary);
}

.sheet-navbar {
  position: relative;
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  touch-action: none;
}

.done-btn { color: var(--accent); font-size: 17px; font-weight: 600; }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
}
.sheet-body .group:first-child { margin-top: 0; }

.section-header {
  padding: 22px 16px 7px;
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--secondary);
}
.section-header + .group { margin-top: 0; }
.sheet-body > .section-header:first-child { padding-top: 6px; }

.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.toggle-row + .toggle-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--separator);
}

/* iOS UISwitch */
.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 16px;
  background: var(--switch-off);
  transition: background 0.25s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.3, 1.3, 0.6, 1);
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }
.toggle-row.bounce .switch::after { animation: bounceBack 0.35s; }
@keyframes bounceBack {
  40% { transform: translateX(8px); }
}
.toggle-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* MARK: - Bildirim */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--bar);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px var(--shadow);
  font-size: 15px;
  white-space: nowrap;
}

@media (min-width: 700px) {
  .search { margin-left: 20px; margin-right: 20px; }
  .navbar-inner { padding-left: 20px; padding-right: 20px; }
}

/* MARK: - Hesap: gezinme satırları, formlar */

.sheet-left { min-width: 60px; display: flex; }
.sheet-left .back-btn { margin-left: -8px; }

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 16px;
  text-align: left;
  font-size: 17px;
  line-height: 22px;
  color: var(--label);
  background: transparent;
}
button.nav-row:active { background: var(--cell-pressed); }
.nav-row + .nav-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--separator);
}
.nav-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-row.destructive { color: var(--red); }
.nav-value { color: var(--secondary); }
.nav-chevron { color: var(--tertiary); display: flex; }
.nav-chevron svg { width: 8px; height: 13px; }
.row-delete { color: var(--red); font-size: 17px; padding: 4px 0 4px 12px; }
.row-delete:active { opacity: 0.35; }

.field-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  cursor: text;
}
.field-row + .field-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--separator);
}
.field-label { flex: none; width: 118px; font-size: 17px; }
.field-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--label);
  font: inherit;
  font-size: 17px;              /* 16 pt altı iOS'ta sayfayı yakınlaştırır */
}
.field-row input::placeholder { color: var(--tertiary); }

p.section-footer { margin: 0; padding: 7px 16px 0; }
.form-error, .form-success { margin: 10px 16px 0; font-size: 13px; line-height: 18px; }
.form-error { color: var(--red); }
.form-success { color: var(--green); }

.block-btn {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.block-btn:active { opacity: 0.7; }
.block-btn:disabled { opacity: 0.45; cursor: default; }

/* MARK: - Giriş sayfası */

.login-body { overflow-y: auto; }

.login {
  max-width: 420px;
  margin: 0 auto;
  padding: calc(64px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.login-icon { width: 76px; height: 76px; border-radius: 17px; box-shadow: 0 4px 14px var(--shadow); }
.login-title { margin: 18px 0 4px; font-size: 28px; line-height: 34px; font-weight: 700; }
.login-subtitle { margin: 0 0 28px; font-size: 15px; line-height: 20px; color: var(--secondary); }
.login-form { width: 100%; text-align: left; }
.login-form .group { margin-top: 0; }
.login-note { margin: 22px 0 0; font-size: 13px; line-height: 18px; color: var(--secondary); }
