/* Harici font yok: Google @import sayfayı dakikalarca bekletebiliyor; sistem fontları anında yüklenir */
:root {
  --bg-deep: #08090c;
  --bg-elevated: #0e1016;
  --surface: #13161f;
  --surface-2: #1a1e2a;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 100, 0.22);
  --text: #f2f3f7;
  --text-muted: #8b919d;
  --gold: #e0bc5e;
  --gold-soft: #c9a54a;
  --gold-dim: #8a7030;
  --gold-glow: rgba(224, 188, 94, 0.35);
  --danger: #f07167;
  --danger-bg: rgba(240, 113, 103, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
}

/* ——— Login / auth ——— */
.auth-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(224, 188, 94, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(90, 110, 180, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(224, 188, 94, 0.06) 0%, transparent 40%),
    var(--bg-deep);
  pointer-events: none;
  z-index: 0;
}

/* SVG feTurbulence bazı makinelerde ağır; hafif nokta deseni ucuz */
.auth-noise {
  position: fixed;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.22) 1px,
    transparent 0
  );
  background-size: 20px 20px;
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 960px) {
  .auth-showcase {
    min-height: auto;
    padding-bottom: 1.5rem;
  }
}

.auth-showcase__mesh {
  position: absolute;
  inset: 10% 15% auto -10%;
  height: min(70vh, 520px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(224, 188, 94, 0.12), transparent 55%),
    conic-gradient(from 140deg at 50% 50%, rgba(224, 188, 94, 0.08), transparent 35%, rgba(100, 120, 200, 0.06), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.auth-showcase__content {
  position: relative;
  max-width: 32rem;
  margin-top: clamp(1rem, 8vh, 4rem);
}

.auth-showcase__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.auth-showcase__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(242, 243, 247, 0.88) 45%, var(--gold) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-showcase__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 28rem;
}

.auth-showcase__ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.auth-showcase__ticks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: rgba(242, 243, 247, 0.78);
}

.auth-showcase__ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  box-shadow: 0 0 12px var(--gold-glow);
}

.auth-showcase__footer {
  position: relative;
  padding-top: 2rem;
}

.auth-showcase__mark {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

@media (max-width: 960px) {
  .auth-showcase__footer {
    display: none;
  }
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.2) 0%, var(--bg-deep) 100%);
}

@media (max-width: 960px) {
  .auth-main {
    padding-top: 0;
    align-items: flex-start;
  }
}

.auth-card {
  position: relative;
  width: min(100%, 400px);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(26, 30, 42, 0.92) 0%, rgba(19, 22, 31, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(224, 188, 94, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-card__head {
  margin-bottom: 1.5rem;
}

.auth-card__badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(224, 188, 94, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
}

.auth-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(8, 9, 12, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: rgba(139, 145, 157, 0.55);
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.input:focus {
  outline: none;
  border-color: rgba(224, 188, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(224, 188, 94, 0.12);
}

.input--lg {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  min-height: 44px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  color: #1a1508;
  background: linear-gradient(165deg, #f0d78c 0%, var(--gold) 35%, var(--gold-soft) 100%);
  box-shadow: 0 4px 20px rgba(224, 188, 94, 0.25);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 28px rgba(224, 188, 94, 0.32);
}

.btn--primary:active {
  transform: scale(0.99);
}

.btn--lg {
  padding: 0.95rem 1.35rem;
  min-height: 52px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  flex-shrink: 0;
  opacity: 0.85;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
}

.flash__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(240, 113, 103, 0.25);
  color: #ffc9c4;
}

.flash--error {
  background: var(--danger-bg);
  border: 1px solid rgba(240, 113, 103, 0.35);
  color: #ffc4bf;
}

/* ——— Admin layout ——— */
.admin-body {
  position: relative;
  display: flex;
  min-height: 100vh;
  background: var(--bg-deep);
}

.admin-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(224, 188, 94, 0.06) 0%, transparent 50%),
    var(--bg-deep);
  pointer-events: none;
  z-index: 0;
}

.admin-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: relative;
  z-index: 2;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.35rem 1rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, rgba(14, 16, 22, 0.98) 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2);
}

.sidebar__top {
  margin-bottom: 1.75rem;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.sidebar__brand:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #1a1508;
  background: linear-gradient(145deg, #f0d78c, var(--gold-soft));
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(224, 188, 94, 0.22);
}

.sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sidebar__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar__brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar__section {
  margin: 0 0 0.5rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}

.sidebar__section--spaced {
  margin-top: 1rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  color: rgba(242, 243, 247, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar__link-icon {
  display: flex;
  opacity: 0.65;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar__link:hover .sidebar__link-icon {
  opacity: 0.9;
}

.sidebar__link.is-active {
  background: linear-gradient(90deg, rgba(224, 188, 94, 0.14), rgba(224, 188, 94, 0.04));
  color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold-soft);
}

.sidebar__link.is-active .sidebar__link-icon {
  opacity: 1;
  color: var(--gold);
}

.sidebar__link--quick {
  border: 1px solid rgba(224, 188, 94, 0.2);
  background: rgba(224, 188, 94, 0.06);
}

.sidebar__link--quick:hover {
  background: rgba(224, 188, 94, 0.1);
  border-color: rgba(224, 188, 94, 0.28);
}

.sidebar__link--quick.is-active {
  border-color: rgba(224, 188, 94, 0.35);
}

.sidebar__soon {
  margin-top: 0.75rem;
  padding: 0.85rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.sidebar__soon-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.sidebar__bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn--sidebar-logout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn--sidebar-logout:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.main {
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
  max-width: 1200px;
}

.main__header {
  margin-bottom: 1.75rem;
}

.main__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.main__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.main__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.main__meta-strong {
  color: rgba(242, 243, 247, 0.92);
  font-weight: 600;
}

.panel {
  position: relative;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  max-width: 720px;
  overflow: hidden;
}

.panel--accent {
  padding-left: 1.75rem;
}

.panel--accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 3px 0 0 3px;
}

.panel__icon {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.25rem;
  color: rgba(224, 188, 94, 0.35);
  pointer-events: none;
}

.panel__text {
  margin: 0;
  padding-right: 2rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.panel__text strong {
  color: var(--text);
  font-weight: 600;
}

.main__header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.main--narrow {
  max-width: 560px;
}

.main--wide {
  max-width: 1100px;
}

/* ——— Sayfa başlığı (admin içerik) ——— */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-head__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.page-head__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-head__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-head--solo {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.page-head__main {
  min-width: 0;
}

/* Liste sayfaları — tek ana CTA (büyük dokunma alanı, açıklamalı) */
.list-primary-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem 1.15rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(224, 188, 94, 0.22);
  background:
    linear-gradient(135deg, rgba(224, 188, 94, 0.1) 0%, transparent 42%),
    linear-gradient(165deg, rgba(26, 30, 42, 0.9), rgba(14, 16, 22, 0.96));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.list-primary-cta:hover {
  border-color: rgba(224, 188, 94, 0.38);
  box-shadow:
    0 0 0 1px rgba(224, 188, 94, 0.08) inset,
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(224, 188, 94, 0.08);
  transform: translateY(-1px);
}

.list-primary-cta:active {
  transform: translateY(0);
}

.list-primary-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.list-primary-cta__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 48%,
    transparent 56%
  );
  pointer-events: none;
}

.list-primary-cta__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 30% 28%, rgba(224, 188, 94, 0.22), rgba(224, 188, 94, 0.05));
  border: 1px solid rgba(224, 188, 94, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.list-primary-cta__copy {
  position: relative;
  z-index: 1;
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.list-primary-cta__kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.list-primary-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.list-primary-cta__subline {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 38rem;
}

.list-primary-cta__action {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1508;
  background: linear-gradient(165deg, #f0d78c 0%, var(--gold) 40%, var(--gold-soft) 100%);
  box-shadow: 0 4px 18px rgba(224, 188, 94, 0.28);
}

.list-primary-cta:hover .list-primary-cta__action {
  filter: brightness(1.05);
  box-shadow: 0 6px 22px rgba(224, 188, 94, 0.35);
}

.list-primary-cta__action-arrow {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.9;
}

@media (max-width: 540px) {
  .list-primary-cta {
    padding: 1rem 1rem 1rem 1rem;
  }

  .list-primary-cta__action {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 52px;
  }
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn--header {
  flex-shrink: 0;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  min-height: 36px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* ——— Arama paneli ——— */
.search-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(145deg, rgba(26, 30, 42, 0.65), rgba(19, 22, 31, 0.9));
  border: 1px solid rgba(224, 188, 94, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.search-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.search-panel__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field--grow {
  flex: 1;
  min-width: min(100%, 240px);
}

/* ——— Müşteri listesi görünüm seçici ——— */
.customer-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.customer-results-toolbar__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.view-toggle {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.15rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.view-toggle__btn svg {
  display: block;
  pointer-events: none;
}

.view-toggle__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.view-toggle__btn.is-active {
  color: #1a1510;
  background: linear-gradient(145deg, #f0d78c, var(--gold-soft));
  box-shadow: 0 2px 12px var(--gold-glow);
}

.customer-view-panel[hidden] {
  display: none !important;
}

.customer-list-wrap {
  margin-top: 0;
}

.customer-list__name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.customer-list__avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #1a1508;
  background: linear-gradient(145deg, #f0d78c, var(--gold-soft));
  border-radius: 10px;
}

.customer-list__plates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 280px;
}

/* ——— Müşteri kartları ——— */
.customer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
}

.customer-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem;
  background: linear-gradient(165deg, rgba(22, 25, 34, 0.95), rgba(14, 16, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-card:hover {
  border-color: rgba(224, 188, 94, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.customer-card__top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.customer-card__avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #1a1508;
  background: linear-gradient(145deg, #f0d78c, var(--gold-soft));
  border-radius: 12px;
}

.customer-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.customer-card__contact {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.customer-card__vehicles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 2.5rem;
}

.customer-card__no-car {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.customer-card__car {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-soft);
}

.customer-card__car--off {
  opacity: 0.5;
  border-left-color: var(--text-muted);
}

.customer-card__car-plate {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.customer-card__car-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.customer-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.customer-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.customer-card__sil-form {
  display: inline;
  margin: 0;
}

.customer-card__time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ——— Araç listesi tablo sarmalayıcı ——— */
.arac-table-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(224, 188, 94, 0.1);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.data-table--lux th {
  background: linear-gradient(180deg, rgba(224, 188, 94, 0.08), rgba(0, 0, 0, 0.15));
  color: rgba(242, 243, 247, 0.75);
  border-bottom-color: rgba(224, 188, 94, 0.15);
}

.data-table--lux tbody tr:hover {
  background: rgba(224, 188, 94, 0.04);
}

.arac-plate {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ——— Form sheet ——— */
.sheet {
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

.sheet--spaced {
  margin-top: 0.5rem;
}

.sheet--form {
  padding: 0;
  border: none;
  background: transparent;
}

.sheet__section-title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.sheet__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sheet__badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(224, 188, 94, 0.1);
  border: 1px solid rgba(224, 188, 94, 0.25);
  color: var(--gold);
}

.sheet__grid {
  display: grid;
  gap: 1rem;
}

.sheet__grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.sheet__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ——— Gelir: filtre + KPI ——— */
.income-filter-sheet {
  margin-bottom: 1.25rem;
}

.income-filter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.income-filter__field {
  flex: 1 1 160px;
  max-width: 220px;
}

.income-filter__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.income-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.income-kpi {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.income-kpi--total {
  border-color: rgba(224, 188, 94, 0.28);
  background: linear-gradient(145deg, rgba(224, 188, 94, 0.07), var(--surface));
}

.income-kpi__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.income-kpi__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.income-kpi__value--expense {
  color: rgba(240, 113, 103, 0.95);
}

.income-kpi--total-expense {
  border-color: rgba(240, 113, 103, 0.25);
  background: linear-gradient(145deg, rgba(240, 113, 103, 0.08), var(--surface));
}

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field--checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--gold-soft);
}

.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.field--inline span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.business-hours-table-wrap {
  margin-bottom: 0.5rem;
}

.business-hours-table .input--lg {
  max-width: 9rem;
}

.business-hours-row--closed .js-business-open,
.business-hours-row--closed .js-business-close {
  opacity: 0.45;
}

.business-hours-hint {
  margin-top: 0.75rem;
}

.plate-input {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}

/* ——— Araç kartları (müşteri düzenle) ——— */
.vehicle-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}

.vehicle-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-card--inactive {
  opacity: 0.55;
}

.vehicle-card__plate {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.vehicle-card__meta {
  font-size: 0.85rem;
  color: rgba(242, 243, 247, 0.82);
  margin-bottom: 0.35rem;
}

.vehicle-card__notes {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.vehicle-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-card__foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.vehicle-card__sil-form {
  display: inline;
  margin: 0;
}

/* ——— Karar kartı (araç ekleyelim mi) ——— */
.decision-card {
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem 1.75rem;
  text-align: center;
  background: linear-gradient(165deg, rgba(26, 30, 42, 0.95), rgba(14, 16, 22, 0.98));
  border: 1px solid rgba(224, 188, 94, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.decision-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1508;
  background: linear-gradient(145deg, #f0d78c, var(--gold-soft));
  border-radius: 50%;
}

.decision-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.decision-card__name {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.decision-card__question {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.decision-card__question strong {
  color: var(--text);
}

.decision-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.decision-card__hint {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ——— Boş durum ——— */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.empty-state__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.empty-state .btn {
  margin-top: 0.35rem;
  padding: 0.9rem 1.6rem;
  min-height: 52px;
  font-size: 1.02rem;
}

.empty-state--picker {
  margin-top: 1.5rem;
}

.wizard-banner {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  background: linear-gradient(90deg, rgba(224, 188, 94, 0.12), transparent);
  border: 1px solid rgba(224, 188, 94, 0.22);
  border-radius: var(--radius-md);
}

.hint-callout {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hint-callout--soft {
  background: rgba(255, 255, 255, 0.03);
}

.hint-callout p {
  margin: 0 0 0.65rem;
}

.hint-callout p:last-child {
  margin-bottom: 0;
}

.hint-callout__actions {
  margin-top: 0.85rem !important;
}

.picker-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.field--inline-grow {
  flex: 1 1 220px;
  margin: 0;
  min-width: 0;
}

.picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.picker-list__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.picker-list__row:hover {
  border-color: rgba(224, 188, 94, 0.28);
  background: var(--surface-2);
}

.picker-list__name {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
}

.picker-list__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.picker-list__chevron {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--gold-soft);
  line-height: 1;
}

.empty-hint {
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.empty-hint a {
  color: var(--gold);
  font-weight: 600;
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

a.btn {
  text-decoration: none;
}

.btn--ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.flash--success {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: rgba(120, 200, 140, 0.12);
  border: 1px solid rgba(120, 200, 140, 0.35);
  color: #b8e6c8;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 220px);
}

.toolbar__field--narrow {
  min-width: 140px;
}

.toolbar__field--grow {
  flex: 1;
  min-width: min(100%, 280px);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
}

.data-table__plates {
  max-width: 220px;
}

.data-table__muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.data-table__actions {
  white-space: nowrap;
}

.plate-tag {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: rgba(224, 188, 94, 0.12);
  border: 1px solid rgba(224, 188, 94, 0.25);
  color: var(--gold);
}

.plate-tag--off {
  opacity: 0.45;
  text-decoration: line-through;
}

.plate-cell {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
}

.badge--ok {
  background: rgba(120, 200, 140, 0.15);
  color: #9ed9ae;
}

.badge--off {
  background: rgba(139, 145, 157, 0.15);
  color: var(--text-muted);
}

.link-action {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.link-action:hover {
  text-decoration: underline;
}

.link-action--sub {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
}

.data-table__row-links {
  margin-top: 0.25rem;
}

.table-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.table-row-actions__form {
  display: inline;
  margin: 0;
}

.table-action-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text-muted);
}

.table-action-btn:hover {
  color: var(--danger);
}

.table-action-btn--danger {
  color: var(--danger);
  text-decoration: none;
}

.table-action-btn--danger:hover {
  filter: brightness(1.08);
  text-decoration: underline;
}

.btn--danger {
  color: #fff;
  background: linear-gradient(165deg, #e85a52, #c4443d);
  border: 1px solid rgba(240, 113, 103, 0.5);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn--danger:hover {
  filter: brightness(1.06);
}

.btn--danger-ghost {
  color: var(--danger);
  background: transparent;
  border: 1px solid rgba(240, 113, 103, 0.35);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn--danger-ghost:hover {
  background: var(--danger-bg);
  border-color: rgba(240, 113, 103, 0.5);
}

.danger-zone {
  border-color: rgba(240, 113, 103, 0.22);
  background: linear-gradient(165deg, rgba(240, 113, 103, 0.06), rgba(14, 16, 22, 0.5));
}

.danger-zone__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--danger);
}

.danger-zone__text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 40rem;
}

.vehicle-form-danger {
  margin-top: 1.5rem;
}

.form-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.input--textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .admin-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar__top {
    margin-bottom: 0;
    flex: 1 1 auto;
  }

  .sidebar__nav {
    flex: 1 1 100%;
    order: 3;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .sidebar__section {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .sidebar__soon {
    margin-top: 0;
    flex: 1 1 200px;
  }

  .sidebar__bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: auto;
  }

  .btn--sidebar-logout {
    width: auto;
    min-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
