@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* v1.34.14 — Krem/warm light tema (parlak beyaz değil, göz yormaz) */
:root {
  --primary: #007AFF;            /* SF Blue */
  --primary-light: #0A84FF;
  --bg: #EFEBE0;                 /* warm beige background */
  --surface: #FAF6EC;             /* cream card (saf beyaz değil) */
  --surface-2: #F2EDE2;          /* secondary cream (input bg) */
  --text: #1C1C1E;               /* iOS label */
  --muted: #6E6E73;              /* iOS secondaryLabel */
  --border: rgba(60,60,67,0.14); /* soft separator */
  --success: #34C759;            /* SF Green */
  --warning: #FF9500;            /* SF Orange */
  --error: #FF3B30;              /* SF Red */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { overscroll-behavior: none; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
html { touch-action: manipulation; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hidden { display: none !important; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.muted { color: var(--muted); }
.flex-1 { flex: 1; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ───── Login ───── */
.login-wrap { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 24px) 20px calc(var(--safe-bottom) + 24px); }
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 24px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-card h1 { font-size: 26px; margin-bottom: 4px; text-align: center; }
.login-card h1 span { color: var(--primary-light); font-weight: 500; }
.login-card .muted { text-align: center; margin-bottom: 24px; }

/* ───── Form ───── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.input {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 15px;
}
.input:focus { outline: none; border-color: var(--primary); }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }

/* v1.34.17 — Apple iOS tarzı butonlar (soft shadow + smooth hover/press, krem zemin uyumlu) */
.btn {
  padding: 10px 18px; border-radius: 10px; border: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.18s, color 0.18s, transform 0.1s, box-shadow 0.18s;
  user-select: none;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); filter: brightness(0.95); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary {
  background: var(--primary); color: white; width: 100%;
  box-shadow: 0 1px 2px rgba(0,122,255,0.18), 0 4px 10px rgba(0,122,255,0.22);
}
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 2px 4px rgba(0,122,255,0.22), 0 6px 14px rgba(0,122,255,0.28); }
.btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-secondary:hover { background: var(--surface-2); box-shadow: 0 2px 4px rgba(0,0,0,0.06); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger {
  background: var(--error); color: white;
  box-shadow: 0 1px 2px rgba(255,59,48,0.18), 0 4px 10px rgba(255,59,48,0.22);
}
.btn-danger:hover { filter: brightness(1.05); box-shadow: 0 2px 4px rgba(255,59,48,0.22), 0 6px 14px rgba(255,59,48,0.28); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.err { color: var(--error); margin-top: 12px; font-size: 13px; min-height: 20px; text-align: center; }

/* ───── Layout ───── */
#appView { display: flex; flex-direction: column; min-height: 100vh; }

/* Top app bar — mobilde görünür, desktop'ta gizli */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--safe-top) + 12px) 20px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar .brand { font-size: 17px; font-weight: 700; }
.topbar .brand span { color: var(--primary-light); font-weight: 500; }
.topbar .admin-name { font-size: 12px; color: var(--muted); }
.topbar .logout-btn {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
}

/* Sidebar — DESKTOP ONLY */
.sidebar { display: none; }
.sidebar-refresh { display: none; }
.brand span { color: var(--primary-light); }

/* Bottom nav — MOBILE ONLY (v1.34.21: 7 sütun × 2 satır grid; v1.34.70: iOS Safari fixed jitter fix;
   v1.34.117: appView (flex container) dışına taşındı — body direct child, iOS fixed positioning sağlam) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 6px calc(var(--safe-bottom) + 6px);
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  /* v1.34.70 — iOS Safari address bar collapse/expand sırasında nav'ın yer değiştirmesini engelle:
     GPU compositing ile fixed pozisyonu stabilize eder, scroll sırasında titremeyi azaltır */
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
}
/* v1.34.117: Login öncesi appView gizliyken bottom-nav da gizli olsun (sibling selector) */
#appView.hidden ~ .bottom-nav { display: none !important; }

/* v1.34.118: Kullanıcılar başlığında doğrulama yöntemi istatistik chip'leri */
.auth-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-left: 8px; vertical-align: middle;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.auth-stat.phone {
  background: rgba(74,158,255,0.12); color: #4A9EFF;
  border: 1px solid rgba(74,158,255,0.3);
}
.auth-stat.mail {
  background: rgba(245,158,11,0.12); color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.3);
}
.auth-stat b { font-weight: 700; }
.auth-stat.hidden { display: none; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-size: 10px; text-align: center;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
/* v1.34.22 — Mavi yenile butonu (mobile bottom-nav son slot) */
.bottom-nav a.bn-refresh {
  background: var(--primary); color: white;
  box-shadow: 0 1px 2px rgba(0,122,255,0.28);
}
.bottom-nav a.bn-refresh:hover { background: var(--primary-light); }
.bottom-nav a.bn-refresh.spin .icon { display: inline-block; animation: refresh-spin 0.6s ease; }
.bottom-nav a .icon { font-size: 20px; line-height: 1; }
.bottom-nav a.active { color: var(--primary-light); }
.bottom-nav a .badge {
  position: absolute; top: 2px; right: calc(50% - 18px);
  background: var(--error); color: white;
  min-width: 16px; height: 16px; border-radius: 8px;
  font-size: 10px; font-weight: 700; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.6 } }

.main {
  /* v1.34.21: bottom-nav 7 sütun × 2 satır → ~110px nav yüksekliği + buffer */
  flex: 1; padding: 16px 16px calc(var(--safe-bottom) + 130px);
  max-width: 100%; overflow-x: hidden;
}
.view { display: none; animation: fadeIn 0.25s; }
.view.active { display: block; }
.view h2 { font-size: 22px; margin-bottom: 16px; font-weight: 700; }
.view h2 span { font-weight: 400; font-size: 14px; margin-left: 8px; color: var(--muted); }

/* ───── Pending alert ───── */
.pending-alert {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(245,158,11,0.08));
  border: 2px solid var(--error); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 20px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  animation: pulseBorder 3s ease-in-out infinite;
}
@keyframes pulseBorder { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4) } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0) } }
.pending-alert > span:first-child { font-size: 28px; }
.pending-alert > span:last-child { font-size: 20px; color: var(--muted); margin-left: auto; }
.pending-alert .pending-title { font-size: 15px; font-weight: 600; }
.pending-alert .pending-title b { color: var(--error); font-size: 18px; }
.pending-alert .pending-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ───── Stats grid (v1.34.15: kompakt density, ölü alan kaldırıldı) ───── */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.stat-card .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.stat-card .value { font-size: 20px; font-weight: 700; margin-top: 4px; line-height: 1.15; }
.stat-card .value.primary { color: var(--primary-light); }
.stat-card .value.success { color: var(--success); }

/* ───── Filter bar ───── */
.filter-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar .input { flex: 1; min-width: 140px; }

/* ───── Bulk bar ───── */
.bulk-bar {
  background: var(--primary); color: white; padding: 10px 12px;
  border-radius: 10px; margin-bottom: 14px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 13px;
}
.bulk-bar .btn { background: white; color: var(--primary); padding: 8px 12px; font-size: 13px; }
.bulk-bar .btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }

/* v1.31.60 — Muhasebe paneli (v1.34.15: kompakt) */
.acc-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.acc-hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.acc-hero-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.acc-hero-value { font-size: 20px; font-weight: 700; line-height: 1.1; margin-bottom: 2px; color: var(--text); letter-spacing: -0.02em; }
.acc-hero-sub { font-size: 11px; color: var(--muted); }
.acc-period-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 6px; }
.acc-period-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.acc-period-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.acc-period-revenue { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.acc-period-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.05); }
.acc-period-row:first-of-type { border-top: none; }
.acc-period-row span { color: var(--muted); }
.acc-period-row b { color: var(--text); font-weight: 600; }
.acc-pending-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; min-width: 130px; transition: border-color .15s; }
.acc-pending-card:hover { border-color: rgba(59,130,246,0.4); }
.acc-pending-num { font-size: 22px; font-weight: 700; color: var(--text); }
.acc-pending-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* v1.34.38 — Son Ödemeler canlı feed */
.acc-payments { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.acc-payment-row {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px;
  padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; align-items: center;
  transition: border-color .15s, transform .1s;
}
.acc-payment-row:hover { border-color: var(--primary); }
.acc-payment-row:active { transform: scale(0.99); }
.acc-payment-name { font-weight: 600; font-size: 13px; color: var(--text); }
.acc-payment-phone { font-size: 11px; font-family: monospace; margin-top: 2px; }
.acc-payment-pkg { font-size: 12px; color: var(--text); font-weight: 500; }
.acc-payment-meta { font-size: 10px; margin-top: 2px; }
.acc-payment-amount { font-weight: 700; font-size: 13px; text-align: right; color: var(--text); white-space: nowrap; }
.acc-payment-time { font-size: 10px; text-align: right; margin-top: 2px; }
@media (max-width: 600px) {
  .acc-payment-row { grid-template-columns: 1fr auto; }
  .acc-payment-mid { display: none; }
}

/* v1.31.55 — Push bildirim istatistikleri çubuğu */
.notify-stats-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 10px; font-size: 12px; flex-wrap: wrap;
}
.notify-stats-bar #notifyStatsText { font-size: 12px; }
.notify-stats-bar #notifyStatsText b { color: var(--text); font-weight: 600; }
.notify-stats-bar .btn { padding: 6px 12px; font-size: 12px; }

/* ───── Table (mobile: card list) ───── */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.desktop-only { display: none; }
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card-list .row-card { background: var(--surface); border: 1px solid var(--border); }
.table th, .table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.table th {
  background: var(--surface-2); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

/* Mobilde tabloyu kart listesi olarak göster */
.table-mobile { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.row-card {
  background: var(--surface-2); border-radius: 10px; padding: 12px;
}
.row-card .row-main { display: flex; justify-content: space-between; gap: 8px; }
.row-card .row-title { font-weight: 600; font-size: 15px; }
.row-card .row-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.row-card .row-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.row-card .row-meta b { color: var(--text); font-weight: 600; }
.row-card .row-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.row-card .row-actions .btn { padding: 6px 10px; font-size: 12px; border-radius: 6px; }

.chip {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.chip-success { background: rgba(34,197,94,0.15); color: var(--success); }
.chip-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.chip-error { background: rgba(239,68,68,0.15); color: var(--error); }
.chip-muted { background: rgba(156,163,175,0.15); color: var(--muted); }
.chip-primary { background: rgba(0,87,255,0.15); color: var(--primary-light); }

.icon-btn {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.icon-btn-danger {
  background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35);
}
.icon-btn-danger:hover { background: rgba(239,68,68,0.22); }
.action-cell { white-space: nowrap; }
.action-cell .icon-btn { margin-right: 4px; }
.action-cell .icon-btn:last-child { margin-right: 0; }

/* ───── Transfer cards ───── */
.transfer-list { display: flex; flex-direction: column; gap: 12px; }
.transfer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.transfer-card.pending { border-left: 4px solid var(--warning); }
.transfer-card.approved { border-left: 4px solid var(--success); }
.transfer-card.rejected { border-left: 4px solid var(--error); }
.transfer-user { font-size: 16px; font-weight: 600; }
.transfer-info { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-top: 6px; }
.transfer-info b { color: var(--text); }
.transfer-ref {
  font-family: monospace; background: var(--surface-2);
  padding: 4px 8px; border-radius: 6px; display: inline-block;
  font-size: 11px; margin-top: 8px;
}
.transfer-amount { font-size: 22px; font-weight: 700; color: var(--primary-light); margin-top: 8px; }
.transfer-note {
  background: var(--surface-2); border-radius: 8px; padding: 10px;
  margin-top: 10px; font-size: 13px; color: var(--muted);
}
.transfer-actions { display: flex; flex-direction: row; gap: 8px; margin-top: 12px; }
.transfer-actions .btn { flex: 1; justify-content: center; }

/* ───── v1.31.17 — Modal iOS sheet tarzı (blur backdrop + yumuşak slide) ───── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 100;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-bottom: none;
  border-radius: 20px 20px 0 0; width: 100%; max-width: 520px;
  max-height: 92vh; display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.3s cubic-bezier(.2,.9,.3,1);
  padding-bottom: var(--safe-bottom);
}
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 20px; overflow-y: auto; }

.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; line-height: 1.5; }
.check-row input { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* ───── v1.31.16 — iOS native alert tarzı: geniş, 14px radius, ortalanmış, yeşil/kırmızı ton ───── */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 300px; max-width: 86%;
  padding: 20px 22px; border-radius: 14px;
  background: rgba(245, 245, 247, 0.94);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  color: #1C1C1E; font-size: 16px; font-weight: 600;
  text-align: center; line-height: 1.35; letter-spacing: -0.01em;
  z-index: 9999;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.toast:not(.hidden) { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast.success { background: rgba(220, 252, 231, 0.94); color: #14532D; border-color: rgba(34,197,94,0.22); }
.toast.error   { background: rgba(254, 226, 226, 0.94); color: #7F1D1D; border-color: rgba(239,68,68,0.22); }
/* v1.34.76 — Yenile butonu için 2x boyut (refreshCurrentView toast'ı) */
.toast.big {
  width: 600px; max-width: 92%;
  padding: 40px 44px; border-radius: 22px;
  font-size: 32px;
}

/* v1.31.17 — iOS native alert stilinde askConfirm modal'ı */
.confirm-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.confirm-modal:not(.hidden) { opacity: 1; pointer-events: auto; }
.confirm-card {
  width: 300px; max-width: 86%;
  background: rgba(245, 245, 247, 0.96);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transform: scale(0.92);
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.confirm-modal:not(.hidden) .confirm-card { transform: scale(1); }
.confirm-body-wrap { padding: 20px 20px 18px; text-align: center; color: #1C1C1E; }
.confirm-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; letter-spacing: -0.01em; }
.confirm-body { font-size: 13px; font-weight: 400; color: #333; line-height: 1.4; margin: 0; white-space: pre-wrap; }
.confirm-body:empty { display: none; }
.confirm-buttons { display: flex; border-top: 1px solid rgba(0,0,0,0.1); }
.confirm-btn {
  flex: 1; padding: 11px 8px; background: transparent; border: none;
  font-size: 16px; font-family: inherit; color: #007AFF; cursor: pointer; font-weight: 400;
  min-height: 44px;
}
.confirm-btn:active { background: rgba(0,0,0,0.06); }
.confirm-btn.primary { font-weight: 600; }
.confirm-btn.danger { color: #EF4444; font-weight: 600; }
.confirm-btn + .confirm-btn { border-left: 1px solid rgba(0,0,0,0.1); }

/* v1.31.55 — askPrompt: tek modalda çoklu input */
.confirm-card.prompt-card { width: 340px; }
.confirm-card.prompt-card .confirm-body-wrap { text-align: left; padding: 18px 18px 14px; }
.confirm-card.prompt-card .confirm-title { text-align: center; }
.confirm-card.prompt-card .confirm-body { text-align: center; margin-bottom: 12px; }
.prompt-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.prompt-row { display: flex; flex-direction: column; gap: 4px; }
.prompt-label { font-size: 11px; font-weight: 500; color: #555; text-transform: uppercase; letter-spacing: 0.04em; }
.prompt-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px; border: 1px solid rgba(0,0,0,0.18); border-radius: 8px;
  background: #fff; font-size: 14px; font-family: inherit; color: #1C1C1E;
  outline: none; transition: border-color .15s;
}
.prompt-input:focus { border-color: #007AFF; box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
textarea.prompt-input { resize: none; min-height: 60px; line-height: 1.4; }

/* ───── Config / Bank ───── */
.config-list { display: flex; flex-direction: column; gap: 8px; }
.config-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.config-item .meta .key { font-weight: 600; font-size: 14px; }
.config-item .meta .desc { color: var(--muted); font-size: 12px; margin-top: 2px; }
.config-item .input { width: 100%; }

.bank-card {
  background: linear-gradient(135deg, rgba(0,87,255,0.08), rgba(74,158,255,0.04));
  border: 1px solid rgba(0,87,255,0.3); border-radius: 16px;
  padding: 18px; margin-bottom: 20px;
}
.bank-card h3 { margin-bottom: 4px; font-size: 17px; }

/* ───── User detail ───── */
.user-detail { display: flex; flex-direction: column; gap: 16px; }
.user-detail .sidebar-info {
  background: var(--surface-2); border-radius: 12px; padding: 16px;
}
.user-detail .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.user-detail .section h3 { margin-bottom: 8px; font-size: 13px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.5px; }
.user-detail .section { margin-bottom: 20px; }

/* ───── DESKTOP ≥ 768px: sidebar layout ───── */
@media (min-width: 768px) {
  #appView { flex-direction: row; }
  .topbar { display: none; }
  .bottom-nav { display: none; }
  .sidebar {
    display: flex; flex-direction: column;
    width: 240px; background: var(--surface); border-right: 1px solid var(--border);
    padding: 24px 16px; min-height: 100vh; position: sticky; top: 0;
  }
  .sidebar .brand { font-size: 20px; font-weight: 700; margin-bottom: 24px; padding: 0 8px; }
  .sidebar ul { list-style: none; flex: 1; }
  .sidebar li {
    padding: 12px 14px; border-radius: 10px; cursor: pointer;
    margin-bottom: 4px; color: var(--muted); transition: background 0.15s;
    display: flex; align-items: center; gap: 10px;
  }
  .sidebar li:hover { background: var(--surface-2); color: var(--text); }
  .sidebar li.active { background: var(--primary); color: white; }
  .side-badge {
    background: var(--error); color: white; padding: 2px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 700; margin-left: auto;
    animation: pulse 2s ease-in-out infinite;
  }
  .sidebar-foot { padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .sidebar-foot a { color: var(--primary-light); text-decoration: none; margin-left: auto; }

  /* v1.34.8 — Sidebar yenile butonları (üst + alt). */
  /* v1.34.19 — Renk yeşile geçti (#34C759 SF Green): aktif menü item mavi pill ile karışmasın */
  .sidebar-refresh {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 8px; cursor: pointer;
    color: white; background: var(--success);
    font-size: 12px; font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    user-select: none; align-self: center;
    box-shadow: 0 1px 3px rgba(52,199,89,0.32);
  }
  .sidebar-refresh:hover { background: #2DAE4D; }
  .sidebar-refresh:active { transform: scale(0.96); }
  .sidebar-refresh.spin span { display: inline-block; animation: refresh-spin 0.6s ease; }
  .sidebar-refresh span { font-size: 13px; }
  .sidebar-refresh-top { margin: 4px auto 14px; }
  .sidebar-refresh-bot { margin: 6px auto; }
  @keyframes refresh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  .main { padding: 32px; padding-bottom: 32px; }
  .view h2 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .stat-card { padding: 14px; } .stat-card .value { font-size: 22px; }

  .table { min-width: 0; }
  .table th, .table td { padding: 12px 14px; white-space: nowrap; }
  .desktop-only { display: block; }
  /* Desktop tablo varsa (sibling .desktop-only) mobil kart listesi gizlenir */
  .desktop-only + .card-list, .card-list:has(+ .desktop-only) { display: none; }
  /* Ama yanında desktop tablo yoksa (ör: reklamlar) kartlar gösterilir */

  .user-detail { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }

  .modal-bg { align-items: center; padding: 20px; }
  .modal { border-radius: 16px; max-width: 600px; }

  /* v1.34.9 — Desktop'ta da toast Apple HUD-style ortada (mobile ile birebir) */
}

/* v1.34.10 — Site trafik istatistikleri */
.visits-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.visits-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.visits-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.visits-period-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vp-tab {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 12px;
  font-weight: 600; letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s;
}
.vp-tab:hover { color: var(--text); border-color: var(--primary); }
.vp-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.visits-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.visit-card {
  padding: 14px 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border);
}
.visit-card .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.visit-card .val { font-size: 22px; font-weight: 700; color: var(--text); }
.visit-card .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.visit-card.accent-blue { border-left: 3px solid #3b82f6; }
.visit-card.accent-green { border-left: 3px solid #22c55e; }
.visit-card.accent-amber { border-left: 3px solid #f59e0b; }
.visit-card.accent-purple { border-left: 3px solid #a855f7; }
.visits-breakdown { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
  .visits-breakdown { grid-template-columns: 1fr 1fr; }
  .visits-header { flex-direction: row; justify-content: space-between; align-items: center; }
}
.vb-card {
  padding: 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border);
}
.vb-card h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.vb-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.vb-row:last-child { border-bottom: none; }
.vb-row .name { color: var(--text); }
.vb-row .count { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.vb-bar { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.vb-bar > i { display: block; height: 100%; background: var(--primary); }
.vb-funnel-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.vb-funnel-row:last-child { border-bottom: none; }
.vb-funnel-row .fl-label { font-size: 13px; color: var(--text); }
.vb-funnel-row .fl-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.vb-funnel-row .fl-count { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.vb-funnel-row .fl-pct { font-size: 11px; color: var(--muted); text-align: right; }
.vb-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* v1.34.19 — Versiyon rozeti brand'in yanında inline (eski position:fixed kaldırıldı) */
.brand-version {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-family: monospace; letter-spacing: 0.5px;
  color: rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.05);
  padding: 2px 6px; border-radius: 6px;
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.15s;
  font-weight: 500;
}
.brand-version:hover { background: rgba(0,0,0,0.1); color: rgba(0,0,0,0.7); }
/* Eski .version-badge tanımı v1.34.19'da kaldırıldı (position:fixed alt-orta) */

/* v1.34.68 / v1.34.69 — Bildirim tercihleri modal (toggle + sound select + test) */
.notify-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s, border-color 0.15s;
  font-size: 13px;
  color: var(--text);
  flex-wrap: wrap;
}
.notify-pref-row:hover { background: var(--surface); border-color: rgba(0,122,255,0.3); }
.notify-pref-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1 1 200px;
  min-width: 0;
}
.notify-pref-label { font-weight: 500; }
.notify-pref-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #34C759;
  flex-shrink: 0;
}
.notify-pref-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.notify-sound-select {
  font-size: 12px !important;
  padding: 6px 10px !important;
  min-width: 130px;
  border-radius: 8px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  cursor: pointer;
}
.notify-test-btn {
  background: rgba(0,122,255,0.12);
  color: var(--primary);
  border: 1px solid rgba(0,122,255,0.25);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, transform 0.1s;
}
.notify-test-btn:hover { background: rgba(0,122,255,0.22); }
.notify-test-btn:active { transform: scale(0.95); }
@media (max-width: 520px) {
  .notify-pref-row { flex-direction: column; align-items: stretch; }
  .notify-pref-right { justify-content: flex-end; }
}
.notify-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
  min-width: 36px;
  padding: 0 10px !important;
}
.notify-toggle-sidebar { font-size: 12px !important; }

/* v1.34.70 — Kullanıcılar sayfa pagination */
.users-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}
.users-pagination .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.users-pagination-info {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
}
.users-pagination-info b { color: var(--text); }
