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

:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --blue-mid:    #bfdbfe;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --text:        #111827;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --bg:          #f3f6ff;
  --card:        #ffffff;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08);
  --r:           12px;
  --r-sm:        8px;
}

html, body {
  height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}

/* ── SCREEN SYSTEM ─────────────────────────────────── */
.screen { display: none; height: 100dvh; flex-direction: column; overflow: hidden; }
.screen.active { display: flex; }

/* ── HEADER ────────────────────────────────────────── */
.hdr {
  background: var(--blue); color: #fff;
  padding: 0 16px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.hdr-back {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 6px; margin-left: -6px; border-radius: 8px;
  display: flex; align-items: center;
}
.hdr-back:active { background: rgba(255,255,255,.15); }
.hdr-brand { font-size: 18px; font-weight: 700; letter-spacing: .02em; flex: 1; }
.hdr-brand span { font-weight: 300; opacity: .75; }
.hdr-action {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  border-radius: var(--r-sm); padding: 6px 12px; font-size: 13px;
  font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px;
}
.hdr-action:active { background: rgba(255,255,255,.25); }
.hdr-icon {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 6px; border-radius: 8px; display: flex; align-items: center;
}
.hdr-icon:active { background: rgba(255,255,255,.15); }

/* ── SCROLL CONTENT ────────────────────────────────── */
.content { flex: 1; overflow-y: auto; padding: 16px; }
.content-nopad { flex: 1; overflow-y: auto; }

/* ── CARD ──────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px;
}

/* ── VEHICLE LIST ITEM ─────────────────────────────── */
.veh-item {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 10px;
  border-left: 4px solid var(--border);
  padding: 14px 16px; cursor: pointer; transition: box-shadow .15s;
  display: flex; align-items: flex-start; gap: 12px;
}
.veh-item:active { box-shadow: var(--shadow-md); }
.veh-item.status-active  { border-left-color: var(--blue); }
.veh-item.status-ready   { border-left-color: var(--green); }
.veh-item.status-delivered { border-left-color: var(--border); opacity: .7; }
.veh-main { flex: 1; min-width: 0; }
.veh-plate { font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.veh-name  { font-size: 13px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh-meta  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.veh-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ── STATUS BADGE ──────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
}
.badge-active    { background: var(--blue-light); color: var(--blue); }
.badge-ready     { background: var(--green-light); color: var(--green); }
.badge-delivered { background: var(--bg); color: var(--text-muted); }
.badge-pending   { background: #fef3c7; color: #b45309; }
.badge-blocked   { background: #fee2e2; color: var(--red); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── SEARCH BAR ────────────────────────────────────── */
.search-wrap { padding: 12px 16px 4px; position: relative; }
.search-input {
  width: 100%; height: 44px; border-radius: var(--r);
  border: 1.5px solid var(--border); padding: 0 16px 0 42px;
  font-size: 15px; background: var(--card); color: var(--text);
  outline: none; transition: border .15s;
}
.search-input:focus { border-color: var(--blue); }
.search-icon {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}

/* ── TABS ──────────────────────────────────────────── */
.tabs {
  display: flex; padding: 0 16px 10px; gap: 6px;
}
.tab {
  flex: 1; padding: 8px; border-radius: var(--r-sm); border: none;
  background: none; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .15s;
  border: 1.5px solid transparent;
}
.tab.active { background: var(--blue-light); color: var(--blue); border-color: var(--blue-mid); }

/* ── FAB ───────────────────────────────────────────── */
.fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 26px; z-index: 100;
  transition: transform .15s;
}
.fab:active { transform: scale(.93); }

/* ── FORM ──────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 13px; font-size: 15px; color: var(--text);
  background: var(--card); outline: none; transition: border .15s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-section { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; margin: 20px 0 10px; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border-radius: var(--r-sm); border: none;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s;
  width: 100%;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:active { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue-mid); }
.btn-outline:active { background: var(--blue-light); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:active { background: #15803d; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:active { background: #b91c1c; }
.btn-ghost { background: none; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:active { background: var(--bg); }
.btn-sm { padding: 7px 14px; font-size: 13px; width: auto; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── VEHICLE CARD SCREEN ───────────────────────────── */
.vc-hero {
  background: var(--blue); color: #fff;
  padding: 16px 20px 20px;
}
.vc-plate { font-size: 28px; font-weight: 800; letter-spacing: .06em; }
.vc-customer { font-size: 14px; opacity: .85; margin-top: 4px; }
.vc-meta-row {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.vc-meta-chip {
  background: rgba(255,255,255,.15); border-radius: 20px;
  padding: 4px 10px; font-size: 12px; font-weight: 500;
}
/* ── SECTION HEADER ────────────────────────────────── */
.sec-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; margin-top: 4px;
}
.sec-title { font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }
.sec-add { background: var(--blue-light); color: var(--blue); border: none; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sec-add:active { background: var(--blue-mid); }

/* ── JOB ITEM ──────────────────────────────────────── */
.job-item {
  background: var(--bg); border-radius: var(--r-sm);
  padding: 10px 13px; margin-bottom: 7px; border-left: 3px solid var(--border);
}
.job-item.type-labor  { border-left-color: var(--blue); }
.job-item.type-part   { border-left-color: var(--amber); }
.job-title { font-size: 14px; font-weight: 600; color: var(--text); }
.job-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.job-price { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 4px; }
.job-supplier { font-size: 12px; color: var(--text-muted); }

/* ── BOTTOM ACTION BAR ─────────────────────────────── */
.bottom-bar {
  padding: 12px 16px; background: var(--card);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; flex-shrink: 0;
}

/* ── TOTAL ROW ─────────────────────────────────────── */
.total-card {
  background: var(--blue-light); border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.total-label { font-size: 13px; font-weight: 600; color: var(--blue); }
.total-amount { font-size: 20px; font-weight: 800; color: var(--blue); }

/* ── LOGIN ─────────────────────────────────────────── */
.login-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 24px;
}
.login-logo {
  font-size: 36px; font-weight: 800; color: var(--blue);
  letter-spacing: .02em; margin-bottom: 4px;
}
.login-tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 40px; }
.login-form { width: 100%; max-width: 360px; }
.login-form .form-input { font-size: 16px; padding: 14px 16px; }
.login-form .btn { margin-top: 4px; padding: 14px; font-size: 16px; }
.login-error { background: var(--red-light); color: var(--red); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 12px; display: none; }
.login-error.show { display: block; }

/* ── USTA MODE BANNER ──────────────────────────────── */
.usta-banner {
  background: var(--amber-light); border-bottom: 1px solid #fde68a;
  padding: 8px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--amber); font-weight: 600; flex-shrink: 0;
}

/* ── EMPTY STATE ───────────────────────────────────── */
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-mid); }

/* ── TOAST ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 500; opacity: 0; transition: all .25s; z-index: 999;
  white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.green { background: var(--green); }
.toast.red   { background: var(--red); }

/* ── MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: flex-end; z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  width: 100%; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 20px 20px 32px; max-height: 85vh; overflow-y: auto;
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.modal-close {
  position: absolute; right: 20px; top: 20px;
  background: var(--bg); border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ── SUPER ADMIN ───────────────────────────────────── */
.sa-service-card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 10px; border-left: 4px solid var(--blue);
  cursor: pointer;
}
.sa-service-name { font-size: 16px; font-weight: 700; }
.sa-service-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.sa-stats { display: flex; gap: 12px; margin-top: 10px; }
.sa-stat { background: var(--bg); border-radius: var(--r-sm); padding: 6px 12px; text-align: center; flex: 1; }
.sa-stat-val { font-size: 18px; font-weight: 800; color: var(--blue); }
.sa-stat-lbl { font-size: 11px; color: var(--text-muted); }
.sa-service-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.team-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.team-row:last-child { border-bottom: none; }
.team-name { font-size: 14px; font-weight: 700; }
.team-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.team-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ── PHOTOS ────────────────────────────────────────── */
.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 10px;
}
.photo-thumb {
  position: relative; aspect-ratio: 1; border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg); cursor: pointer;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none;
  font-size: 13px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.photo-viewer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.photo-viewer-overlay.open { display: flex; }
.photo-viewer-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.photo-viewer-close {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  border: none; font-size: 22px; cursor: pointer;
}

/* ── CHECKLIST ─────────────────────────────────────── */
.checklist-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.checklist-item.checked span { text-decoration: line-through; color: var(--text-muted); }
.checklist-tpl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.checklist-tpl-row:last-child { border-bottom: none; }
.checklist-tpl-remove {
  background: none; border: none; color: var(--red); font-size: 18px;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}

/* ── INVENTORY ─────────────────────────────────────── */
.inv-row {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.inv-row.low { border-left: 4px solid var(--red); }
.inv-name { font-size: 14px; font-weight: 700; }
.inv-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.inv-qty { font-size: 18px; font-weight: 800; color: var(--blue); }
.inv-row.low .inv-qty { color: var(--red); }
.inv-actions { display: flex; gap: 6px; }

/* ── PERFORMANCE ───────────────────────────────────── */
.perf-row {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.perf-name { font-size: 14px; font-weight: 700; }
.perf-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.perf-revenue { font-size: 17px; font-weight: 800; color: var(--green); }

/* ── CUSTOMERS ─────────────────────────────────────── */
.cust-row {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cust-name { font-size: 15px; font-weight: 700; }
.cust-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cust-count { font-size: 12px; color: var(--blue); font-weight: 700; }

/* ── PLATE ENTRY ───────────────────────────────────── */
.plate-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 24px; gap: 20px;
}
.plate-input-big {
  font-size: 32px; font-weight: 800; letter-spacing: .1em;
  text-align: center; text-transform: uppercase; border: 2.5px solid var(--border);
  border-radius: var(--r); padding: 16px; width: 100%; max-width: 340px;
  color: var(--text); background: var(--card); outline: none;
}
.plate-input-big:focus { border-color: var(--blue); }

/* ── KM BADGE ──────────────────────────────────────── */
.km-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.km-card { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; }
.km-card-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.km-card-val { font-size: 17px; font-weight: 800; color: var(--text); margin-top: 2px; }

/* ── LOADING ───────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; height: 100px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--blue-mid); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (min-width: 520px) {
  .screen { width: 100%; max-width: 480px; margin: 0 auto; }
  body { display: flex; justify-content: center; }
}

/* ── KIOSK (TABLET) KUTUCUKLARI ────────────────────── */
.kiosk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px;
}
.kiosk-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 28px 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  min-height: 130px; position: relative;
}
.kiosk-card:active { background: var(--bg); }
.kiosk-card-icon { font-size: 32px; line-height: 1; }
.kiosk-card-label { font-size: 15px; font-weight: 700; color: var(--text); text-align: center; }
.kiosk-card-soon {
  position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700;
  color: var(--amber); background: var(--amber-light); padding: 2px 7px; border-radius: 20px;
}
.kiosk-card[disabled], .kiosk-card.disabled { opacity: .5; pointer-events: none; }

/* ── USTA SEÇİMİ ───────────────────────────────────── */
.usta-select-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-sm);
  margin-bottom: 8px; cursor: pointer; font-size: 15px; font-weight: 600;
}
.usta-select-row.selected { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }

/* ── ARIZA TESPİTİ ─────────────────────────────────── */
.fd-count { font-size: 12px; font-weight: 700; color: var(--red); }
.fd-card { padding: 12px 12px 10px; margin-bottom: 10px; background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%); }
.fd-tabs { display: flex; background: var(--blue-light); border-radius: 10px; padding: 4px; margin-bottom: 6px; }
.fd-tab { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-mid); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fd-tab.active { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.fd-tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; }
.fd-hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.fd-empty { color: var(--text-muted); font-size: 13px; padding: 4px 0 12px; }

.fd-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; }
.fd-item:active { background: var(--bg); }
.fd-item.sev-red, .fd-cp-item.sev-red { border-left-color: var(--red); }
.fd-item.sev-amber, .fd-cp-item.sev-amber { border-left-color: #f59e0b; }
.fd-item.sev-green, .fd-cp-item.sev-green { border-left-color: var(--green); }
.fd-item-body { flex: 1; min-width: 0; }
.fd-item-title { font-size: 14px; font-weight: 700; }
.fd-item-note { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.fd-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.fd-item-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.fd-noprice { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.fd-sev-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.fd-sev-pill.sev-red { background: var(--red-light); color: var(--red); }
.fd-sev-pill.sev-amber { background: var(--amber-light); color: #b45309; }
.fd-sev-pill.sev-green { background: var(--green-light); color: var(--green); }
.fd-status { padding: 2px 8px; border-radius: 10px; font-weight: 600; background: var(--bg); color: var(--text-mid); }
.fd-status.st-sent { background: var(--blue-light); color: var(--blue); }
.fd-status.st-approved { background: var(--green-light); color: var(--green); }
.fd-status.st-rejected { background: #f3f4f6; color: var(--text-muted); text-decoration: line-through; }
.fd-thumb { width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #0f172a; display: flex; align-items: center; justify-content: center; }
.fd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sev-group { display: flex; gap: 8px; }
.sev-btn { flex: 1; padding: 10px 6px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 700; color: var(--text-mid); cursor: pointer; }
.sev-btn[data-sev="red"].active { background: var(--red); border-color: var(--red); color: #fff; }
.sev-btn[data-sev="amber"].active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.sev-btn[data-sev="green"].active { background: var(--green); border-color: var(--green); color: #fff; }
.sev-btn:disabled { opacity: .6; cursor: default; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fd-chip { border: 1px solid var(--blue-mid); background: var(--blue-light); color: var(--blue); border-radius: 16px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.fd-chip:active { background: var(--blue-mid); }
.fd-media { position: relative; margin-bottom: 8px; border-radius: var(--r-sm); overflow: hidden; background: #0f172a; }
.fd-media video, .fd-media img { width: 100%; max-height: 260px; display: block; object-fit: contain; }
.fd-media-remove { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 14px; padding: 4px 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.fd-locked-note { font-size: 13px; color: #1e40af; background: var(--blue-light); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 10px; }

/* müşteri portalı */
.fd-banner { background: var(--amber-light); color: #92400e; border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.fd-legend { display: flex; justify-content: center; gap: 14px; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.fd-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.fd-legend i.sev-red { background: var(--red); } .fd-legend i.sev-amber { background: #f59e0b; } .fd-legend i.sev-green { background: var(--green); }
.fd-cp-item { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: var(--r); padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.fd-cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fd-cp-head .fd-sev-pill { margin-top: 4px; }
.fd-cp-price { font-size: 17px; font-weight: 800; white-space: nowrap; text-align: right; }
.fd-cp-note { font-size: 14px; color: var(--text-mid); margin-top: 8px; }
.fd-cp-media { width: 100%; max-height: 320px; object-fit: contain; background: #0f172a; border-radius: var(--r-sm); margin-top: 10px; display: block; }
.fd-cp-actions { display: flex; gap: 10px; margin-top: 12px; }
.fd-cp-actions .btn { flex: 1; }
.fd-cp-state { margin-top: 10px; font-size: 13px; font-weight: 700; }
.fd-cp-state.ok { color: var(--green); }
.fd-cp-state.no { color: var(--text-muted); }
.fd-flash { animation: fd-flash 1.2s ease; }
@keyframes fd-flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px rgba(37,99,235,.45); } }
@media (prefers-reduced-motion: reduce) { .fd-flash { animation: none; } }

/* ── GİRİŞ SEKMELERİ ───────────────────────────────── */
.login-tabs { display: flex; width: 100%; max-width: 360px; background: var(--blue-light); border-radius: 12px; padding: 4px; margin: -20px 0 20px; }
.login-tab { flex: 1; border: 0; background: transparent; padding: 10px 4px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-mid); cursor: pointer; }
.login-tab.active { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.login-info { font-size: 14px; color: var(--text-mid); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; line-height: 1.5; }
.login-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.login-links { display: flex; justify-content: space-between; margin-top: 14px; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.login-ok { background: var(--green-light); color: var(--green); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.fd-intro { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; line-height: 1.5; }

/* ── USTA ANA EKRANI ───────────────────────────────── */
.uh-hello { font-size: 20px; font-weight: 800; margin: 4px 0 12px; }
.uh-hello small { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.uh-new { margin-bottom: 14px; padding: 14px; font-size: 16px; }
.uh-tabs { margin-bottom: 10px; }
.uh-veh { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); }
.uh-veh:active { background: var(--bg); }
.uh-veh-plate { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.uh-veh-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.uh-veh-body { flex: 1; min-width: 0; }
.uh-veh-flag { font-size: 11px; font-weight: 700; color: var(--red); background: var(--red-light); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }

/* ── MÜŞTERİ: ARAÇLARIM + BİLDİRİM ─────────────────── */
.mv-item { display: flex; align-items: center; gap: 10px; }
.mv-item .uh-veh { margin-bottom: 0; }
.mv-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; }
.mv-remove { border: 1px solid var(--border); background: var(--card); color: var(--text-muted); border-radius: var(--r); width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mv-add { margin-top: 16px; }
.mv-add-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.mv-staff { display: block; margin: 20px auto 8px; color: var(--text-muted); font-weight: 500; font-size: 13px; }
.cp-notify { display: flex; align-items: center; gap: 10px; background: var(--blue-light); color: #1e40af; border: 1px solid var(--blue-mid); border-radius: var(--r); padding: 12px; margin-bottom: 14px; }
.cp-notify svg { flex-shrink: 0; }
.cp-notify-text { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.4; }
.cp-notify .btn { width: auto; flex-shrink: 0; }

/* ── YENİ MENÜ YAPISI ──────────────────────────────── */
.hdr-pill { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 16px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hdr-pill:active { background: rgba(255,255,255,.3); }
.dash-scroll { flex: 1; overflow-y: auto; padding-bottom: 150px; }
.dash-today { margin: 12px 16px 4px; background: var(--card); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.dt-title { font-size: 12px; font-weight: 800; color: var(--text-muted); letter-spacing: .06em; margin-bottom: 8px; }
.dt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dt-stat { background: var(--bg); border-radius: 10px; padding: 8px 4px; text-align: center; border: 0; cursor: pointer; font: inherit; color: inherit; }
.dt-stat b { display: block; font-size: 18px; line-height: 1.2; }
.dt-stat small { display: block; font-size: 10.5px; color: var(--text-muted); font-weight: 600; line-height: 1.2; }
.dt-todo { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; text-align: left; border-radius: 10px; padding: 9px 11px; margin-top: 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--amber-light); color: #92400e; }
.dt-todo.blue { background: var(--blue-light); color: #1e40af; }
.dt-todo em { font-style: normal; color: var(--blue); font-weight: 800; white-space: nowrap; }
.veh-tag { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 10px; padding: 2px 8px; margin-top: 6px; }
.veh-tag.amber { background: var(--amber-light); color: #b45309; }
.veh-tag.blue { background: var(--blue-light); color: var(--blue); }
.fab.fab-label { width: auto; height: 48px; border-radius: 26px; padding: 0 18px; font-size: 15px; font-weight: 800; gap: 6px; }
body.has-nav .fab { bottom: 84px; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--border); display: flex; z-index: 150; box-shadow: 0 -2px 10px rgba(0,0,0,.04); }
.bottom-nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-muted); cursor: pointer; position: relative; }
.bottom-nav button svg { width: 23px; height: 23px; }
.bottom-nav button.active { color: var(--blue); }
.nav-dot { position: absolute; top: 9px; left: 58%; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
body.has-nav .screen.active .content { padding-bottom: 90px; }

.menu-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.menu-row { width: 100%; display: flex; align-items: center; gap: 8px; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row > span:first-child { flex: 1; }
.menu-row:active { background: var(--bg); }
.mr-chev { color: var(--text-muted); flex-shrink: 0; }
.set-group { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 10px; }
.set-group > summary { list-style: none; padding: 15px 16px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.set-group > summary::-webkit-details-marker { display: none; }
.set-group > summary::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.set-group[open] > summary::after { transform: rotate(-135deg); }
.set-group-body { padding: 0 16px 16px; }

/* araç kartı: aşama çizgisi + sekmeler */
.stage { margin-top: 12px; }
.stage-bars { display: flex; gap: 4px; }
.stage-bars i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
.stage-bars i.on { background: #fff; }
.stage-labels { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .9; margin-top: 4px; font-weight: 600; }
.stage-labels span.cur { opacity: 1; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.vc-tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; margin: -16px -16px 14px; }
.vc-tab { flex: 1; border: 0; background: none; padding: 13px 4px 11px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent; cursor: pointer; }
.vc-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.vc-tab i { font-style: normal; background: var(--red); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.fee-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.fee-line span { color: var(--text-muted); }
.fee-line b { white-space: nowrap; }
.fee-line[hidden] { display: none; }

/* müşteri ekranı */
.cp-status { background: var(--card); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.cp-status h2 { font-size: 19px; font-weight: 800; }
.cp-status .cps-sub { font-size: 13px; color: var(--text-muted); margin-top: 1px; }
.cp-status .cps-msg { font-size: 14px; margin-top: 8px; line-height: 1.45; }
.csteps { display: flex; justify-content: space-between; margin-top: 14px; position: relative; }
.csteps::before { content: ''; position: absolute; left: 16px; right: 16px; top: 10px; height: 3px; background: var(--border); }
.cstep { position: relative; text-align: center; width: 58px; font-size: 10.5px; font-weight: 700; color: var(--text-muted); }
.cstep i { display: block; width: 23px; height: 23px; border-radius: 50%; margin: 0 auto 4px; background: #fff; border: 3px solid var(--border); }
.cstep.done i { background: var(--green); border-color: var(--green); }
.cstep.now i { border-color: #f59e0b; box-shadow: 0 0 0 4px var(--amber-light); }
.cstep.now { color: #b45309; }
.cstep.now.ready i { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.cstep.now.ready { color: var(--green); }
.cp-more { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 10px; }
.cp-more > summary { list-style: none; padding: 14px 16px; font-size: 14.5px; font-weight: 700; color: var(--text-mid); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.cp-more > summary::-webkit-details-marker { display: none; }
.cp-more > summary::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: rotate(-45deg); margin-right: 4px; transition: transform .2s; }
.cp-more[open] > summary::after { transform: rotate(45deg); }
.cp-more-body { padding: 0 16px 14px; }
.cp-listen { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 14px; }
.md-p { margin: 0 0 8px; line-height: 1.55; }
.md-list { margin: 4px 0 10px; padding-left: 18px; line-height: 1.55; }
.md-list li { margin-bottom: 8px; }
.perm-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--text-mid); cursor: pointer; }
.perm-toggle input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ── Akıllı kontrol listesi ───────────────────────── */
.insp-sec { background: var(--card); border-radius: var(--r-sm, 10px); margin-bottom: 8px; overflow: hidden; border: 1px solid var(--border); }
.insp-sec > summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 800; font-size: 15px; cursor: pointer; list-style: none; background: var(--bg); }
.insp-sec > summary::-webkit-details-marker { display: none; }
.insp-count { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.insp-item { padding: 10px 12px; border-top: 1px solid var(--border); }
.insp-item.is-urgent { background: rgba(220,38,38,.05); } .insp-item.is-soon { background: rgba(245,158,11,.07); }
.insp-row { display: flex; align-items: center; gap: 8px; }
.insp-label { flex: 1; font-size: 14px; line-height: 1.35; }
.insp-btns { display: flex; gap: 6px; flex-shrink: 0; }
.insp-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--card); font-size: 18px; font-weight: 800; color: var(--text-muted); cursor: pointer; }
.insp-btn.on-ok { background: var(--green); border-color: var(--green); color: #fff; }
.insp-btn.on-soon { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.insp-btn.on-urgent { background: var(--red); border-color: var(--red); color: #fff; }
.insp-btn:disabled { cursor: default; }
.insp-ops { margin-top: 8px; padding-left: 4px; }
.insp-op { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.insp-op input { width: 20px; height: 20px; accent-color: var(--blue); flex-shrink: 0; }
.insp-op span { flex: 1; } .insp-op em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--text-mid); }
.insp-other { display: flex; gap: 8px; margin-top: 6px; } .insp-other .form-input { height: 40px; }
.insp-rep { font-size: 14px; padding: 3px 0; } .insp-rep.red { color: var(--red); } .insp-rep.amber { color: #b45309; } .insp-rep.green { color: var(--green); }
.vi-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; } .vi-row span { color: var(--text-muted); } .vi-row b { text-align: right; }

/* Dosyanın SONUNDA olmalı: .bottom-nav / .fab temel kurallarını ezmesi gerekiyor. */
/* Bilgisayar (işveren masaüstünde de kullanır): daha geniş sütun, alt menü ve
   + düğmesi sütuna hizalı — ekranın en kenarına yapışmaz. */
@media (min-width: 900px) {
  .screen { max-width: 760px; }
  .bottom-nav { left: 50%; right: auto; width: 760px; transform: translateX(-50%);
    border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 14px 14px 0 0; }
  .fab { right: calc(50% - 360px); }
}
