:root {
  --bg: #f4f6fa;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: rgba(12, 20, 39, 0.08);
  --line-strong: rgba(12, 20, 39, 0.12);
  --text: #0c1427;
  --muted: #525e7a;
  --accent: #098fd3;
  --accent-2: #0b2647;
  --accent-soft: rgba(9, 143, 211, 0.12);
  --accent-glow: rgba(9, 143, 211, 0.22);
  --success: #12a36a;
  --success-soft: rgba(18, 163, 106, 0.12);
  --danger: #e25555;
  --danger-soft: rgba(226, 85, 85, 0.12);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.12);
  --radius: 18px;
  --radius-sm: 14px;
  --shadow: 0 8px 24px rgba(11, 38, 71, 0.06);
  --shadow-sm: 0 2px 10px rgba(11, 38, 71, 0.05);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --fs-label: 10px;
  --fs: 12px;
  --fs-ui: 13px;
  --fs-input: 16px;
  --fs-title: 14px;
  --fs-num: 14px;
  --fw: 600;
  --fw-bold: 700;
  --fw-black: 800;
  --space: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}
html {
  height: 100%;
}
body {
  font-family: var(--font);
  font-size: var(--fs);
  font-weight: var(--fw);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(9, 143, 211, 0.12), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(11, 38, 71, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  min-height: 100svh;
}

button,
input,
select,
textarea,
a,
span,
strong,
small,
label,
legend,
p,
h1,
h2,
li {
  font-family: var(--font);
}

.app {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--safe-t) + 10px) 14px calc(var(--nav-h) + var(--safe-b) + 18px);
  position: relative;
  overflow-x: hidden;
}

/* Klavye açıkken alt menüyü gizle — ekstra scroll/inset yok (titreme önlemek için) */
html.kb-open .bottom-nav {
  display: none !important;
}
html.kb-open .app {
  padding-bottom: calc(28px + var(--safe-b));
}
html.kb-open .content > * {
  animation: none !important;
}
html.kb-open .entry-form {
  padding-bottom: 160px;
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes sheetIn {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes navBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.content > * {
  animation: fadeUp 0.45s var(--ease) both;
}
.content > *:nth-child(1) { animation-delay: 0.02s; }
.content > *:nth-child(2) { animation-delay: 0.06s; }
.content > *:nth-child(3) { animation-delay: 0.1s; }
.content > *:nth-child(4) { animation-delay: 0.14s; }
.content > *:nth-child(5) { animation-delay: 0.18s; }
.content > *:nth-child(6) { animation-delay: 0.22s; }
.content > *:nth-child(7) { animation-delay: 0.26s; }

/* ---------- Lock ---------- */
.lock-screen {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-t) + 28px) 18px calc(var(--safe-b) + 28px);
  overflow: hidden;
  background:
    linear-gradient(165deg, #e8f4fb 0%, #f4f6fa 42%, #eef2f8 100%);
}
.lock-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.lock-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  will-change: transform;
}
.lock-orb-a {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle at 35% 35%, rgba(9, 143, 211, 0.42), rgba(9, 143, 211, 0.05) 62%, transparent 72%);
  animation: lockFloatA 9s ease-in-out infinite;
}
.lock-orb-b {
  width: 240px;
  height: 240px;
  bottom: -40px;
  left: -70px;
  background: radial-gradient(circle at 40% 40%, rgba(11, 38, 71, 0.22), rgba(11, 38, 71, 0.04) 60%, transparent 72%);
  animation: lockFloatB 11s ease-in-out infinite;
}
.lock-orb-c {
  width: 160px;
  height: 160px;
  top: 42%;
  left: 58%;
  background: radial-gradient(circle at 50% 50%, rgba(9, 143, 211, 0.18), transparent 70%);
  animation: lockFloatC 8s ease-in-out infinite;
}
.lock-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 38, 71, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 38, 71, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
  animation: lockGridDrift 18s linear infinite;
}
.lock-sheen {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  animation: lockSheen 7s ease-in-out infinite;
}
.lock-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  padding: 30px 22px 20px;
  display: grid;
  gap: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 48px rgba(11, 38, 71, 0.1);
  animation: lockCardIn 0.7s var(--ease) both;
}
.lock-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 2px;
}
.lock-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0ea5e0 0%, #098fd3 45%, #0b2647 120%);
  box-shadow:
    0 10px 28px rgba(9, 143, 211, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  animation: lockMarkIn 0.75s var(--ease) both, lockMarkPulse 3.2s ease-in-out 0.9s infinite;
}
.lock-card h1 {
  margin: 0;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-2);
  animation: lockFadeUp 0.65s var(--ease) 0.12s both;
}
.lock-brand p,
.lock-card > p:not(.lock-foot) {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  animation: lockFadeUp 0.65s var(--ease) 0.2s both;
}
.lock-form,
.lock-card form {
  display: grid;
  gap: 10px;
  animation: lockFadeUp 0.65s var(--ease) 0.28s both;
}
.lock-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.lock-card input {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(247, 249, 252, 0.95);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: 0.35em;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lock-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-1px);
}
.lock-submit,
.lock-screen .btn-primary {
  width: 100%;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}
.lock-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: lockBtnSheen 3.8s ease-in-out 1.2s infinite;
}
.lock-foot {
  margin: 2px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  opacity: 0.85;
  animation: lockFadeUp 0.65s var(--ease) 0.38s both;
}
.lock-note { font-size: 0.78rem !important; }
.lock-screen .toast {
  animation: lockFadeUp 0.45s var(--ease) both;
}
.lock-card-auth {
  width: min(400px, 100%);
}
.auth-form .lock-label {
  text-align: left;
  margin-top: 2px;
}
.auth-form input {
  text-align: left;
  letter-spacing: 0;
  font-size: 1rem;
}
.lock-foot a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.menu-user-card {
  display: grid;
  gap: 2px;
  padding: 14px 14px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(9, 143, 211, 0.1), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--line);
  position: relative;
}
.menu-user-card strong {
  font-size: var(--fs-title);
  color: var(--accent-2);
}
.menu-user-card span {
  color: var(--muted);
  font-size: var(--fs);
}
.role-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.role-badge.is-admin {
  background: rgba(11, 38, 71, 0.12);
  color: #0b2647;
}
.status-badge.is-on {
  background: var(--success-soft);
  color: var(--success);
}
.status-badge.is-off {
  background: var(--warn-soft);
  color: var(--warn);
}
.admin-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.admin-user-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}
.admin-user-card.is-pending {
  border-color: rgba(217, 119, 6, 0.28);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.06), var(--surface));
}
.admin-user-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.admin-user-head strong {
  display: block;
  font-size: var(--fs-title);
  color: var(--accent-2);
}
.admin-user-head span {
  display: block;
  color: var(--muted);
  font-size: var(--fs);
  margin-top: 2px;
  word-break: break-all;
}
.admin-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.admin-user-tags .role-badge,
.admin-user-tags .status-badge {
  margin-top: 0;
}
.admin-user-meta {
  color: var(--muted);
  font-size: 11px;
}
.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-sm {
  min-height: 36px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  width: auto !important;
}
.btn-ghost {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger-soft {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 85, 85, 0.25);
  background: var(--danger-soft);
  color: var(--danger);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@keyframes lockFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.06); }
}
@keyframes lockFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -16px) scale(1.08); }
}
@keyframes lockFloatC {
  0%, 100% { transform: translate(0, 0); opacity: 0.7; }
  50% { transform: translate(-20px, 14px); opacity: 1; }
}
@keyframes lockGridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(28px); }
}
@keyframes lockSheen {
  0%, 100% { transform: translateX(-8%) rotate(8deg); opacity: 0.15; }
  50% { transform: translateX(8%) rotate(8deg); opacity: 0.4; }
}
@keyframes lockCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes lockMarkIn {
  from { opacity: 0; transform: scale(0.7) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}
@keyframes lockMarkPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(9, 143, 211, 0.35), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
  50% { box-shadow: 0 14px 34px rgba(9, 143, 211, 0.48), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
}
@keyframes lockFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes lockBtnSheen {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

/* ---------- Header ---------- */
.topbar { margin-bottom: 14px; }
.topbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-row.title-only h1 { text-align: left; padding-left: 2px; }
.topbar-spacer {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}
.topbar-grow {
  flex: 1;
  min-width: 0;
}
.topbar h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.btn-link {
  display: block;
  text-align: center;
  margin-top: 4px;
  padding: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.back-link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease;
}
.back-link:active { transform: scale(0.96); }
.back-link[hidden],
.header-plus[hidden] { display: none !important; }
.header-plus {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(9, 143, 211, 0.22);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(11, 38, 71, 0.06);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.header-plus:active {
  transform: scale(0.94);
  background: rgba(9, 143, 211, 0.08);
  border-color: rgba(9, 143, 211, 0.35);
}
a.back-link { text-decoration: none; display: inline-flex; align-items: center; }
.menu-logout {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

/* ---------- Period ---------- */
.period-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.period-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
}
.period-tabs a,
.period-tabs button {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.period-tabs a.active,
.period-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.period-arrow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 1.3rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.period-arrow:active { transform: scale(0.95); background: var(--accent-soft); }
.icon-circle {
  font-family: inherit;
  cursor: pointer;
}
button.icon-circle { appearance: none; }
.period-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 6px;
}
.period-meta {
  text-align: center;
  display: grid;
  gap: 1px;
}
.period-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.period-meta strong {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--accent-2);
}

/* ---------- Content ---------- */
.content { display: grid; gap: 12px; }
.month-chip {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.datetime-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(9, 143, 211, 0.14), rgba(255, 255, 255, 0.95) 48%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.datetime-card.compact { padding: 12px 14px; }
.datetime-date { display: grid; gap: 2px; min-width: 0; }
.datetime-date strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-2);
}
.datetime-date span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.datetime-clock {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  flex-shrink: 0;
}
.datetime-card.compact .datetime-clock { font-size: 1.18rem; }
.time-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.toast {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 4px;
  animation: fadeUp .3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.toast-success {
  background: var(--success-soft);
  color: #0b7a4f;
  border: 1px solid rgba(18, 163, 106, 0.2);
}
.toast-error {
  background: var(--danger-soft);
  color: #b42323;
  border: 1px solid rgba(226, 85, 85, 0.2);
}
.toast a { color: inherit; font-weight: 800; }

/* ---------- Report / metrics ---------- */
.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.metric-row article {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.metric-row article:last-child { border-right: 0; }
.metric-row article.net {
  background: linear-gradient(180deg, rgba(9, 143, 211, 0.1), transparent);
}
.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.metric-row strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
  color: var(--accent-2);
}
.metric-row.net-first article.net strong { font-size: 1.15rem; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.detail-grid > div {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.detail-grid > div:nth-child(2n) { border-right: 0; }
.detail-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.detail-grid strong {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--accent-2);
}

.pos { color: var(--success); }
.neg { color: var(--danger); }

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.92rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-fill {
  background: var(--accent-2);
  color: #ebf8ff;
  box-shadow: 0 10px 20px rgba(11, 38, 71, 0.18);
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .2s ease;
}
.link-row:active { transform: scale(0.985); }
.link-row span { color: var(--accent); }
.link-row.tight { min-height: 40px; font-size: .88rem; }

/* ---------- Panels / lists ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.empty a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.list { list-style: none; margin: 0; padding: 0; }
.list > li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  transition: background .2s ease;
}
.list > li:first-child { border-top: 0; }
.list > li:active { background: var(--bg-soft); }
.list-main { min-width: 0; flex: 1; }
.list-main strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 3px;
  color: var(--accent-2);
}
.list-main small {
  color: var(--muted);
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.amount {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Çalışma (home) — kompakt ---------- */
.home {
  display: grid;
  gap: 8px;
}
.home > * {
  animation: fadeUp 0.35s var(--ease) both;
}
.home > *:nth-child(1) { animation-delay: 0.02s; }
.home > *:nth-child(2) { animation-delay: 0.05s; }
.home > *:nth-child(3) { animation-delay: 0.08s; }
.home > *:nth-child(4) { animation-delay: 0.11s; }
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(9, 143, 211, 0.14);
  background: linear-gradient(160deg, #0b2647 0%, #0e3a63 55%, #098fd3 140%);
  color: #f4f9ff;
  box-shadow: 0 8px 18px rgba(11, 38, 71, 0.14);
}
.home-eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.home-hero-date strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.home-hero-clock {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 0.96;
}
.home-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}
.home-status.mode-online {
  border-color: rgba(18, 163, 106, 0.22);
}
.home-status.mode-offline {
  border-color: rgba(226, 85, 85, 0.18);
}
.home-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
}
.home-status.mode-online .home-status-pill {
  background: var(--success-soft);
  color: #0b7a4f;
}
.home-status.mode-offline .home-status-pill {
  background: var(--danger-soft);
  color: #b42323;
}
.home-status-head small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-align: right;
  max-width: 55%;
}
.home-status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.home-status-actions form,
.home-status form,
.home-alert form {
  margin: 0;
}
.home-btn {
  width: 100%;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.home-btn:active { transform: scale(0.98); }
.home-btn.online.active {
  background: var(--success);
  border-color: transparent;
  color: #fff;
}
.home-btn.offline.active {
  background: var(--danger);
  border-color: transparent;
  color: #fff;
}
.home-btn.ghost {
  background: var(--surface-2);
  color: var(--muted);
  border-style: dashed;
  font-size: 0.8rem;
  min-height: 36px;
}
.home-btn.arrived {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  min-height: 40px;
}
.home-alert {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(9, 143, 211, 0.08);
  border: 1px solid rgba(9, 143, 211, 0.14);
}
.home-alert.trip {
  background: var(--warn-soft);
  border-color: rgba(217, 119, 6, 0.18);
}
.home-alert > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.home-alert span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.home-alert strong {
  color: var(--accent-2);
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.home-alert.trip strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  text-align: right;
}
.home-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.home-stat-row > div {
  background: var(--bg-soft);
  border-radius: 11px;
  padding: 7px 6px;
  text-align: center;
}
.home-stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.home-stat-row strong {
  display: block;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.home-money {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}
.home-money-net {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(9, 143, 211, 0.1), rgba(11, 38, 71, 0.03));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.home-money-net span,
.home-money-split span,
.home-kasa-top span,
.home-kasa-split span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.home-money-net strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  line-height: 1.1;
}
.home-money-net strong.pos { color: #0b7a4f; }
.home-money-net strong.neg { color: #b42323; }
.home-money-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.home-money-split > div {
  border-radius: 11px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}
.home-money-split .in { background: var(--success-soft); }
.home-money-split .out { background: var(--danger-soft); }
.home-money-split strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.home-money-split .in strong { color: #0b7a4f; }
.home-money-split .out strong { color: #b42323; }
.home-extra-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.home-kasa {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(9, 143, 211, 0.16);
  background: linear-gradient(180deg, #fff, #f3f9ff);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.home-kasa:active { transform: scale(0.99); }
.home-kasa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-kasa-top > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
}
.home-kasa-top strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.home-kasa-go {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}
.home-kasa-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.home-kasa-split > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}
.home-kasa-split strong {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- Entry forms (KM / Gider) ---------- */
.entry-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s var(--ease) both;
}
.entry-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.entry-form.expense .entry-head {
  background: linear-gradient(180deg, #fff7f7, #fff);
}
.entry-head-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}
.entry-form.expense .entry-head-icon {
  background: var(--danger-soft);
  color: var(--danger);
}
.entry-head-icon svg { width: 18px; height: 18px; }
.entry-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.entry-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.entry-body {
  display: grid;
  gap: 14px;
  padding: 16px 14px 14px;
}
.entry-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.entry-label,
.entry-field > legend.entry-label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  float: none;
}
.entry-label em,
.entry-field.optional .entry-label em {
  font-style: normal;
  font-weight: 600;
  color: #8a95a8;
  margin-left: 4px;
}
.entry-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background .15s ease;
}
.entry-control:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.entry-control input,
.entry-control select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  margin: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.entry-control input::placeholder {
  color: #9aa6b8;
  font-weight: 550;
}
.entry-control input[type="date"] {
  display: block;
  width: 100%;
  color-scheme: light;
  line-height: 44px;
}
.entry-control input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  min-height: 44px;
  line-height: 44px;
  padding: 0;
}
.entry-control input[type="date"]::-webkit-datetime-edit {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}
.entry-control input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
.entry-control input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  opacity: 0.55;
}
.entry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.entry-row > .entry-field { min-width: 0; }
.entry-form .segment { gap: 6px; }
.entry-form .seg span {
  min-height: 40px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 750;
  background: #fff;
}
.entry-form .seg input:checked + span {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(9, 143, 211, 0.2);
}
.entry-form.expense .seg input:checked + span {
  background: var(--danger);
  box-shadow: 0 4px 10px rgba(226, 85, 85, 0.18);
}
.entry-hint {
  margin: -2px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}
.entry-actions {
  display: grid;
  gap: 4px;
  padding: 0 14px 12px;
}
.entry-submit {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(9, 143, 211, 0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry-submit.expense {
  background: var(--danger);
  box-shadow: 0 8px 16px rgba(226, 85, 85, 0.2);
}
.entry-submit:active {
  transform: scale(0.98);
}
.entry-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 10px;
}
.entry-cancel:active {
  background: var(--bg-soft);
}

@media (max-width: 380px) {
  .entry-body { padding: 12px; gap: 10px; }
  .entry-field input,
  .entry-field select { min-height: 42px; font-size: 0.9rem; }
  .entry-form .seg span { min-height: 38px; font-size: 0.8rem; }
}

/* ---------- Hareketler feed ---------- */
.hareket-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}
.hareket-summary-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.hareket-summary-main span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hareket-summary-main strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hareket-summary-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hareket-summary-chips > div {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 10px 11px;
  display: grid;
  gap: 3px;
}
.hareket-summary-chips span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.hareket-summary-chips strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hareket-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.hareket-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hareket-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.hareket-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.hareket-item.is-expense::before {
  background: #ef4444;
}
.hareket-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}
.hareket-card:active {
  background: var(--bg-soft);
}
.hareket-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 143, 211, 0.1);
  color: var(--accent);
}
.hareket-item.is-expense .hareket-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.hareket-icon svg {
  width: 18px;
  height: 18px;
}
.hareket-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.hareket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hareket-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.hareket-title strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}
.hareket-note {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}
.hareket-note-inline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.hareket-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}
.hareket-meta-row span {
  position: relative;
}
.hareket-meta-row span + span::before {
  content: "·";
  margin-right: 10px;
  opacity: 0.55;
}
.hareket-row {
  display: flex;
  align-items: stretch;
}
.hareket-row .hareket-card {
  flex: 1;
  min-width: 0;
}
.hareket-actions {
  display: flex;
  align-items: center;
  padding: 0 10px 0 0;
  margin: 0;
  border-left: 1px solid var(--line);
  background: rgba(244, 246, 250, 0.65);
}
.hareket-actions .icon-btn {
  width: 36px;
  height: 36px;
}

.activity-list > li {
  padding: 0;
  gap: 0;
}
.standalone-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.standalone-list > li,
.standalone-list .activity-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 0 !important;
  border-top: 1px solid var(--line);
}
.standalone-list > li:first-child {
  border-top: 1px solid var(--line);
}
.menu-section-label {
  margin: 10px 4px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.menu-section-label:first-child {
  margin-top: 0;
}
.activity-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
}
.activity-card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}
.activity-row .activity-card {
  padding-right: 8px;
}
.activity-card:active {
  background: var(--bg-soft);
}
.activity-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 6px;
}
.activity-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-top strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.activity-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.activity-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.activity-chevron {
  color: #9aa6b5;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.activity-card.detailed {
  display: grid;
  gap: 10px;
  align-items: stretch;
  padding: 14px;
}
.activity-row .activity-card.detailed {
  padding-right: 10px;
}
.trip-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.trip-card-km {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.trip-card-km strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.03em;
}
.trip-card-note {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}
.trip-card-note.muted {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}
.trip-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 8px;
}
.trip-card-grid > div {
  text-align: center;
  min-width: 0;
}
.trip-card-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.trip-card-grid strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.trip-card-date {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 0;
  flex: 0 0 auto;
}
.list-actions form { margin: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.badge.cash {
  background: var(--warn-soft);
  color: #b45309;
}
.badge.kredi {
  background: #fef3c7;
  color: #92400e;
}
.badge.iban {
  background: var(--accent-soft);
  color: #0369a1;
}
.badge.expense {
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}
.icon-btn.edit {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
}
.icon-btn:active { transform: scale(0.92); }

.time-pill {
  flex-shrink: 0;
}

/* ---------- Menu ---------- */
.menu-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  border-top: 1px solid var(--line);
  transition: background .2s ease;
}
.menu-list a:first-child { border-top: 0; }
.menu-list a:active { background: var(--bg-soft); }
.menu-list a span:last-child { color: var(--muted); font-size: 0.85rem; }
.footer-note {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.footer-note code { color: var(--accent); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.form-card label,
.form-card fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}
.form-card legend { margin-bottom: 6px; }
.form-card input,
.form-card select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card input:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-card label { min-width: 0; overflow: hidden; }
.form-card input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.row2 > label { min-width: 0; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segment.segment-3 { grid-template-columns: 1fr 1fr 1fr; }
.segment.segment-3 .seg span { font-size: .72rem; padding: 0 4px; line-height: 1.15; text-align: center; }
.entry-form .segment.segment-3 .seg span { font-size: .72rem; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 750;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.seg input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.btn-primary {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-2);
  color: #ebf8ff;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 10px 22px rgba(11, 38, 71, 0.2);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(11, 38, 71, 0.16);
}

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 8px var(--safe-b);
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .22s var(--ease), opacity .18s ease;
  z-index: 40;
  box-shadow: 0 -8px 28px rgba(11, 38, 71, 0.06);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  transition: color .2s ease;
}
.bottom-nav a.active {
  color: var(--accent);
  animation: navBounce .35s var(--ease);
}
.bottom-nav svg { width: 21px; height: 21px; }
.bottom-nav .fab,
button.fab {
  width: 52px;
  height: 52px;
  margin-top: -14px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(9, 143, 211, 0.28);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  line-height: 0;
  transition: transform .18s var(--ease), box-shadow .2s ease, background .15s ease;
}
.bottom-nav .fab svg,
button.fab svg {
  width: 22px;
  height: 22px;
  display: block;
}
.bottom-nav .fab:active,
button.fab:active {
  transform: scale(0.94) translateY(1px);
  box-shadow: 0 4px 12px rgba(9, 143, 211, 0.22);
  background: #087db8;
}

/* ---------- Status ---------- */
.status-toggle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}
.status-now {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}
.status-dot.on {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
  animation: pulseSoft 2s ease infinite;
}
.status-dot.off {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}
.status-dot.idle {
  background: #94a3b8;
  box-shadow: none;
}
.status-now strong {
  display: block;
  font-size: 1rem;
  color: var(--accent-2);
}
.status-now small {
  color: var(--muted);
  font-size: .78rem;
}
.status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.status-actions form { margin: 0; }
.btn-status {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-status:active { transform: scale(0.97); }
.btn-status.online.active {
  background: var(--success-soft);
  border-color: rgba(18, 163, 106, 0.35);
  color: var(--success);
}
.btn-status.offline.active {
  background: var(--danger-soft);
  border-color: rgba(226, 85, 85, 0.35);
  color: var(--danger);
}
.status-stop-form { margin: 0; }
.btn-status.stop {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
  font-weight: 650;
  font-size: .9rem;
}
.btn-status.stop:active {
  border-color: var(--text);
  color: var(--text);
}
.wait-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9, 143, 211, 0.14), var(--bg-soft));
  border: 1px solid rgba(9, 143, 211, 0.2);
}
.wait-live.on-trip {
  background: linear-gradient(135deg, rgba(18, 163, 106, 0.12), var(--bg-soft));
  border-color: rgba(18, 163, 106, 0.25);
  flex-direction: column;
  align-items: flex-start;
}
.wait-live.on-trip strong {
  font-size: .9rem;
  color: var(--success);
  font-weight: 700;
}
.wait-live span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}
.wait-live strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.btn-status.arrived {
  background: var(--accent-soft);
  border-color: rgba(9, 143, 211, 0.4);
  color: var(--accent);
  font-weight: 800;
}
.hour-list .list-main strong {
  font-variant-numeric: tabular-nums;
}
.status-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.status-mini div {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}
.status-mini span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  margin-bottom: 3px;
}
.status-mini strong {
  font-size: .82rem;
  color: var(--accent-2);
}

.reset-sessions-panel .muted-note {
  color: var(--muted);
  font-size: .82rem;
  margin: 0 0 10px;
  line-height: 1.35;
  padding: 0 14px;
}
.reset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}
.reset-actions form { margin: 0; }
.reset-actions .btn {
  width: 100%;
  min-height: 44px;
}
.btn.danger-outline {
  border: 1px solid rgba(226, 85, 85, .35);
  color: var(--danger);
  background: var(--danger-soft);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.filter-row a {
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background .2s ease, color .2s ease;
}
.filter-row a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.search-form input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  box-shadow: var(--shadow-sm);
}
.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-form button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-2);
  color: #ebf8ff;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
}
.hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--warn-soft);
  color: #b45309;
  font-size: .82rem;
}
.hint-text {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.wallet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.wallet-card header {
  margin-bottom: 8px;
}
.wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
  font-size: .78rem;
}
.wallet-row span { color: var(--muted); }
.wallet-row strong { font-size: .84rem; font-weight: 800; }
.wallet-row.total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.wallet-row.bal strong { color: var(--accent-2); }
.kasa-balance { margin-top: 4px; }
.z-pdf-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 12px;
  box-sizing: border-box;
}
.form-card-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--text);
}
.list-main .muted {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}
.empty-cta {
  display: inline-flex !important;
  margin-top: 12px;
  padding: 0 16px;
  width: auto;
  min-width: 160px;
  color: #ebf8ff !important;
}

/* ---------- Sheet ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 39, .42);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .2s ease;
}
.sheet-backdrop[hidden] { display: none !important; }
.sheet {
  width: min(430px, 100%);
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(18px + var(--safe-b));
  display: grid;
  gap: 8px;
  box-shadow: 0 -12px 40px rgba(11, 38, 71, 0.16);
  animation: sheetIn .32s var(--ease);
}
.sheet-title {
  margin: 0 0 6px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.sheet-btn {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-2);
  color: #ebf8ff;
  text-decoration: none;
  font-weight: 800;
  transition: transform .15s ease;
}
.sheet-btn:active { transform: scale(0.98); }
.sheet-btn.ghost {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.sheet-cancel {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 480px) {
  .app {
    margin-top: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    min-height: calc(100svh - 36px);
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(244,246,250,.9));
    box-shadow: var(--shadow);
  }
  .bottom-nav {
    width: min(430px, 100%);
    border-radius: 0 0 28px 28px;
  }
}

/* ========== Tek tipografi ölçeği ========== */
.app,
.lock-screen,
.sheet,
.sheet-backdrop,
button,
input,
select,
textarea,
a,
span,
strong,
small,
label,
legend,
p,
h1,
h2,
li,
div {
  font-family: var(--font) !important;
}

/* Gövde */
body,
.list-main small,
.activity-note,
.hareket-note,
.hareket-note-inline,
.hint-text,
.hint,
.muted-note,
.footer-note,
.entry-head span,
.home-alert span,
.home-alert.trip strong,
.toast {
  font-size: var(--fs) !important;
  font-weight: var(--fw) !important;
}

/* Etiket / caption */
.entry-label,
.entry-field > legend.entry-label,
.entry-field > span,
.entry-field > legend,
.entry-eyebrow,
.home-eyebrow,
.menu-section-label,
.home-money-net span,
.home-money-split span,
.home-kasa-top span,
.home-kasa-split span,
.home-stat-row span,
.home-status-head small,
.home-extra-row,
.home-tip-row,
.hareket-summary-main span,
.hareket-summary-chips span,
.hareket-pay-row,
.hareket-meta-row,
.metric-row span,
.detail-grid span,
.period-meta span,
.wallet-row span,
.badge,
.time-pill,
.entry-hint,
.entry-label em,
.entry-field.optional .entry-label em,
.segment.segment-3 .seg span,
.entry-form .segment.segment-3 .seg span,
.lock-note {
  font-size: var(--fs-label) !important;
  font-weight: var(--fw-bold) !important;
}

/* Arayüz metni / buton / menü / nav */
.topbar h1,
.back-link,
.btn-link,
.btn-primary,
.btn,
.btn-outline,
.home-btn,
.home-status-pill,
.entry-submit,
.entry-cancel,
.entry-head strong,
.seg span,
.sheet-btn,
.sheet-cancel,
.sheet-title,
.link-row,
.filter-row a,
.search-form button,
.bottom-nav a,
.bottom-nav a span,
.list-main strong,
.hareket-title strong,
.trip-card-km strong,
.activity-top strong,
.panel-head h2,
.form-card-title,
.status-now strong,
.wait-live span,
.wait-live strong,
.lock-card button {
  font-size: var(--fs-ui) !important;
  font-weight: var(--fw-bold) !important;
}

/* Sayılar / tutarlar */
.amount,
.home-money-net strong,
.home-money-split strong,
.home-kasa-top strong,
.home-kasa-split strong,
.home-stat-row strong,
.home-hero-clock,
.home-hero-date strong,
.hareket-summary-main strong,
.hareket-summary-chips strong,
.metric-row strong,
.detail-grid strong,
.wallet-row strong,
.datetime-clock,
.datetime-date strong,
.period-meta strong,
.status-mini strong,
#live-clock {
  font-size: var(--fs-num) !important;
  font-weight: var(--fw-black) !important;
}

/* Inputlar — iOS zoom olmasın diye 16px */
input,
select,
textarea,
.entry-control input,
.entry-control select,
.form-card input,
.form-card select,
.lock-card input {
  font-size: var(--fs-input) !important;
  font-weight: var(--fw-bold) !important;
}

/* Nav etiketleri biraz daha küçük kalsın ama aynı aile */
.bottom-nav a {
  font-size: var(--fs-label) !important;
  font-weight: var(--fw-bold) !important;
}

/* Hamburger menü — daha kompakt */
.menu-list a,
.menu-list a span,
.menu-logout {
  font-size: var(--fs) !important;
  font-weight: var(--fw-bold) !important;
}
.menu-list a span:last-child {
  font-size: var(--fs-label) !important;
  font-weight: var(--fw) !important;
}
.menu-section-label {
  font-size: 9px !important;
}

/* Giriş ekranı — marka ve form ölçeği */
.lock-card h1 {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}
.lock-brand p {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: var(--muted);
}
.lock-label {
  font-size: 0.72rem !important;
  font-weight: 750 !important;
}
.lock-card input {
  font-size: 16px !important;
  letter-spacing: 0.35em;
}
.lock-submit,
.lock-card .btn-primary {
  font-size: 0.92rem !important;
  font-weight: 750 !important;
}
.lock-foot {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
}

/* ---------- Gate (login / register) — tagsurucu look ---------- */
.gate {
  --gate-bg: #10140f;
  --gate-ink: #f4f1e8;
  --gate-muted: #a8b09a;
  --gate-line: rgba(244, 241, 232, 0.14);
  --gate-amber: #e3b23c;
  --gate-amber-2: #f0c75a;
  --gate-panel: #171c16;
  --gate-font: "Sora", system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--gate-bg);
  color: var(--gate-ink);
  font-family: var(--gate-font);
  overflow: hidden;
}
.gate-visual {
  position: relative;
  min-height: 42vh;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(227, 178, 60, 0.18), transparent 60%),
    linear-gradient(160deg, #1a2218 0%, #0d120c 55%, #10140f 100%);
}
.gate-road {
  position: absolute;
  left: 18%;
  top: -10%;
  bottom: -20%;
  width: 42%;
  transform: perspective(500px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: center top;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 18%, transparent 82%, rgba(0,0,0,0.35)),
    repeating-linear-gradient(
      180deg,
      #2a3327 0 18px,
      #242c22 18px 36px
    );
  border-left: 3px solid rgba(244, 241, 232, 0.55);
  border-right: 3px solid rgba(244, 241, 232, 0.55);
  opacity: 0.9;
  animation: gateRoad 12s linear infinite;
}
.gate-dash {
  position: absolute;
  left: calc(18% + 21%);
  top: -10%;
  bottom: -20%;
  width: 4px;
  transform: perspective(500px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: center top;
  background: repeating-linear-gradient(
    180deg,
    var(--gate-amber) 0 28px,
    transparent 28px 56px
  );
  filter: drop-shadow(0 0 10px rgba(227, 178, 60, 0.45));
  animation: gateDash 1.8s linear infinite;
}
.gate-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: 12%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 178, 60, 0.35), transparent 70%);
  animation: gatePulse 4.5s ease-in-out infinite;
}
.gate-city {
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background:
    linear-gradient(90deg, transparent 0 8%, #1c2419 8% 14%, transparent 14% 22%, #20281d 22% 29%, transparent 29% 40%, #1a2117 40% 48%, transparent 48% 61%, #222b1e 61% 70%, transparent 70% 82%, #1b2218 82% 90%, transparent 90%),
    linear-gradient(to top, rgba(16, 20, 15, 0.95), transparent);
  opacity: 0.85;
}
.gate-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: calc(var(--safe-t) + 36px) 28px calc(var(--safe-b) + 32px);
  background:
    linear-gradient(180deg, rgba(23, 28, 22, 0.92), rgba(16, 20, 15, 0.98));
  border-left: 1px solid var(--gate-line);
  animation: gatePanelIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gate-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gate-amber);
}
.gate-brand {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--gate-ink);
}
.gate-lead {
  margin: 0 0 6px;
  max-width: 28ch;
  color: var(--gate-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}
.gate-toast {
  margin: 0;
  border-radius: 12px;
}
.gate .toast-success {
  background: rgba(34, 160, 98, 0.18);
  color: #9fe7bf;
}
.gate .toast-error {
  background: rgba(226, 85, 85, 0.18);
  color: #ffb4b4;
}
.gate-form {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.gate-form label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gate-muted);
}
.gate-form input {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid var(--gate-line);
  background: rgba(244, 241, 232, 0.04);
  color: var(--gate-ink);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.gate-form input::placeholder {
  color: rgba(168, 176, 154, 0.55);
}
.gate-form input:focus {
  outline: none;
  border-color: rgba(227, 178, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(227, 178, 60, 0.18);
  background: rgba(244, 241, 232, 0.07);
}
.gate-btn {
  margin-top: 12px;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gate-amber-2), var(--gate-amber) 55%, #c99620);
  color: #1a1405;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(227, 178, 60, 0.22);
  transition: transform .15s ease, filter .15s ease;
}
.gate-btn:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.96);
}
.gate-switch {
  margin: 8px 0 0;
  color: var(--gate-muted);
  font-size: 0.84rem;
  font-weight: 500;
}
.gate-switch a {
  color: var(--gate-amber-2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 199, 90, 0.35);
}
@keyframes gateRoad {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 0 72px; }
}
@keyframes gateDash {
  0% { background-position: 0 0; }
  100% { background-position: 0 84px; }
}
@keyframes gatePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes gatePanelIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 860px) {
  .gate {
    grid-template-columns: 1fr;
    grid-template-rows: 180px 1fr;
  }
  .gate-visual {
    min-height: 180px;
  }
  .gate-panel {
    border-left: 0;
    border-top: 1px solid var(--gate-line);
    padding-top: 28px;
  }
  .gate-brand {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }
}

/* ========== Desktop web app (≥900px) — mobilde eski görünüm ========== */
.desk-nav { display: none; }

@media (min-width: 900px) {
  body.body-app {
    background:
      radial-gradient(1000px 480px at 0% -10%, rgba(9, 143, 211, 0.1), transparent 55%),
      radial-gradient(800px 400px at 100% 0%, rgba(11, 38, 71, 0.06), transparent 50%),
      #e8eef6;
  }

  body.body-app .app {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto;
    min-height: calc(100svh - 48px);
    padding: 0;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(11, 38, 71, 0.08);
    overflow: hidden;
  }

  body.body-app .desk-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 16px;
    background: linear-gradient(180deg, #0b2545, #0f3a66 80%, #0b2545);
    color: #e8eef6;
    grid-column: 1;
    grid-row: 1 / -1;
  }
  .desk-nav-brand {
    display: grid;
    gap: 2px;
    margin-bottom: 18px;
    padding: 0 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .desk-nav-brand strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  .desk-nav-brand span {
    font-size: 0.78rem;
    opacity: 0.7;
    font-weight: 600;
  }
  .desk-nav > a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
  }
  .desk-nav > a:hover,
  .desk-nav > a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
  .desk-nav-admin {
    margin-top: 8px;
    border: 1px solid rgba(227, 178, 60, 0.35) !important;
    color: #f0c75a !important;
  }
  .desk-nav-actions {
    margin-top: auto;
    display: grid;
    gap: 8px;
    padding-top: 16px;
  }
  .desk-nav-actions .btn-primary,
  .desk-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1490d8, #098fd3);
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    border: 0;
  }
  .desk-nav-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
  }

  body.body-app .app-stage {
    grid-column: 2;
    min-width: 0;
    padding: 18px 22px 28px;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(243,246,251,0.9), #fff 120px);
  }

  body.body-app .bottom-nav {
    display: none !important;
  }

  body.body-app .content {
    max-width: 920px;
  }

  /* Eski telefon çerçevesini masaüstünde kaldır */
  body.body-app .app {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 899px) {
  .desk-nav { display: none !important; }
  .app-stage { display: contents; }
}

/* ========== Admin panel (/admin) ========== */
.admin-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #e8eef6;
}
.admin-side {
  background: linear-gradient(180deg, #0b2545, #0f3a66);
  color: #f3f6fb;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-brand {
  display: grid;
  gap: 2px;
  padding: 4px 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: inherit;
  text-decoration: none;
}
.admin-brand strong {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.admin-brand span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c75a;
  font-weight: 700;
}
.admin-nav {
  display: grid;
  gap: 4px;
}
.admin-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 700;
}
.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.admin-side-user {
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  gap: 4px;
}
.admin-side-user strong { font-size: 0.95rem; }
.admin-side-user span { font-size: 0.78rem; opacity: 0.7; word-break: break-all; }
.admin-side-user .btn-ghost {
  margin-top: 8px;
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.admin-main {
  padding: 28px clamp(16px, 3vw, 36px) 40px;
  min-width: 0;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.admin-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.admin-top h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--accent-2);
}
.admin-mobile-back { display: none; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.admin-stats span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-2);
}
.admin-stats article.is-warn {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, rgba(217,119,6,0.08), #fff);
}
.admin-panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.admin-panel-head {
  margin-bottom: 16px;
}
.admin-panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.admin-panel-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.admin-table td strong {
  display: block;
  font-weight: 800;
  color: var(--accent-2);
}
.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
  word-break: break-all;
}
.admin-table tr.is-pending {
  background: rgba(217, 119, 6, 0.05);
}
.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-user-list-mobile { display: none; }

@media (max-width: 899px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    display: none;
  }
  .admin-mobile-back { display: inline-flex; }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-table-wrap { display: none; }
  .admin-user-list-mobile { display: grid; }
  .admin-main {
    padding: 18px 14px calc(28px + var(--safe-b));
  }
}

/* Admin kapısı (/admin giriş) */
.admin-gate-layout {
  grid-template-columns: minmax(0, 460px) !important;
  justify-content: center;
}
.admin-gate-card {
  border-top: 4px solid #0b2545;
}
.admin-gate .eyebrow {
  color: #0b2545;
}
