:root {
  /* Tema: siyah zemin + altin vurgular (Ahmet Tekeli amblem paletine uyumlu). */
  --bg0: #050506;
  --bg1: #0d0b08;
  --surface: rgba(20, 15, 8, 0.72);
  --surface-solid: #14100a;
  --gold: #c9a04a;
  --gold-2: #e6c274;
  --gold-deep: #8a6d2f;
  --gold-line: rgba(201, 160, 74, 0.32);
  --cream: #f1e6cc;
  --muted: #8a7d63;
  --danger: #c0563f;
  --radius: 12px;
  --navy: #f1e6cc;
  --navy-soft: #8a7d63;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gold-grad: linear-gradient(180deg, #f0d488 0%, #c9a04a 52%, #8a6d2f 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--cream);
  min-height: 100%;
}

/* Siyah zemin + hafif altin parlama */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(201,160,74,0.10), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(201,160,74,0.05), transparent 55%),
    linear-gradient(160deg, #14100a 0%, #050506 55%, #000000 100%);
}

body { display: flex; flex-direction: column; align-items: center; padding: 18px 14px 40px; }
/* iOS ana-ekran (standalone) modu: icerik centik/Dynamic Island ve alt cubugun altina girmesin.
   Tarayicida env() 0 doner -> normal padding korunur. */
body { padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

/* Dil cubugu */
.langbar { display: flex; justify-content: center; gap: 6px; margin-bottom: 8px; }
.lang { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--gold-line); border-radius: 8px; }
.lang.active { color: #140f06; background: var(--gold-grad); border-color: var(--gold-2); }
.lang:hover { color: var(--gold-2); }
.lang.active:hover { color: #140f06; }

/* Ust bar */
.topbar { width: 100%; max-width: 460px; display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.pill {
  display: inline-block; background: rgba(0, 0, 0, 0.35); color: var(--gold);
  text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 16px;
  border-radius: 11px; border: 1px solid var(--gold-line); cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.pill-light { background: rgba(0, 0, 0, 0.35); }
.pill:hover { border-color: var(--gold); color: var(--gold-2); }

/* Kart */
.card {
  width: 100%; max-width: 460px;
  background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-line);
  border-radius: 22px; padding: 28px 28px 30px; position: relative; margin-top: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.card-hero { padding-top: 18px; }

/* Hero banner (anasayfa + yardimci sayfalarda ayni boyut) */
.hero {
  position: relative; width: 100%; border-radius: 16px; overflow: hidden;
  margin-bottom: 20px; background: #0d0b08; border: 1px solid var(--gold-line);
}
.hero-img { display: block; width: 100%; height: auto; }
.hero-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 16px 34px; text-align: center;
  background: radial-gradient(circle at 50% 22%, rgba(201,160,74,0.12), transparent 62%), #0d0b08;
}
.hero-fallback .scissors { width: 70px; height: 70px; }
.h-name {
  font-family: var(--font-serif); font-weight: 700; font-size: 38px; letter-spacing: 4px; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-sub { display: flex; align-items: center; gap: 14px; color: var(--gold); letter-spacing: 6px; font-size: 13px; font-weight: 500; }
.h-sub::before, .h-sub::after { content: ''; width: 38px; height: 1px; background: var(--gold); opacity: .65; }

.brand { text-align: center; font-family: var(--font-serif); font-size: 34px; font-weight: 700; letter-spacing: 2px; margin: 6px 0 0;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { text-align: center; font-size: 15px; font-weight: 500; letter-spacing: 4px; margin: 6px 0 10px; color: var(--gold); }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 15px; font-weight: 600; color: var(--cream); }
.field > span small { font-weight: 400; opacity: 0.7; font-size: 12px; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="email"], input[type="url"],
input[type="password"], input[type="date"], input[type="time"], input[type="number"], select {
  width: 100%; border: 1px solid var(--gold-line); background: rgba(255, 255, 255, 0.05);
  border-radius: 11px; padding: 14px 15px; font-size: 16px; color: var(--cream);
  font-family: inherit; color-scheme: dark;
}
input::placeholder { color: var(--muted); }
select { appearance: none; -webkit-appearance: none; background-image:
  url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a04a' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,160,74,0.35); }

.row { display: flex; gap: 14px; }
.row .field { flex: 1; min-width: 0; }

/* Ozel tarih secici (native takvim yerine, dile/temaya uyumlu) */
.dp { position: relative; }
.dp-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--gold-line); background: rgba(255, 255, 255, 0.05); border-radius: 11px;
  padding: 14px 15px; font-size: 16px; color: var(--cream); font-family: inherit; cursor: pointer; text-align: left; }
.dp-trigger:hover { border-color: var(--gold); }
.dp-trigger .ph { color: var(--muted); }
.dp-trigger svg { color: var(--gold); flex: 0 0 auto; }
.dp-cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 300px; max-width: 100%;
  background: var(--surface-solid); border: 1px solid var(--gold-line); border-radius: 14px; padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-weight: 700; color: var(--gold-2); }
.dp-nav { display: flex; gap: 4px; }
.dp-nav button { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gold-line); color: var(--gold);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 18px; line-height: 1; }
.dp-nav button:hover { border-color: var(--gold); color: var(--gold-2); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-wd { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; font-weight: 700; }
.dp-day { text-align: center; padding: 8px 0; border-radius: 8px; cursor: pointer; font-size: 14px;
  color: var(--cream); border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); }
.dp-day:hover { border-color: var(--gold); color: var(--gold-2); }
.dp-day.sel, .dp-day.sel:hover { background: var(--gold-grad); color: #140f06; font-weight: 700; border-color: var(--gold-2); }
.dp-day.disabled { opacity: 0.3; cursor: not-allowed; background: transparent; }
.dp-day.empty { background: transparent; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 10px; }
.dp-foot button { background: none; border: none; color: var(--gold); font-weight: 600; cursor: pointer; font-size: 13px; }
.dp-foot button:hover { color: var(--gold-2); }

/* Slotlar */
.slots { min-height: 24px; }
.hint { color: var(--muted); font-size: 15px; margin: 6px 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gold-line); border-radius: 10px;
  padding: 12px 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--cream);
  cursor: pointer; font-family: inherit;
}
.slot:hover { border-color: var(--gold); color: var(--gold-2); }
.slot-selected, .slot-selected:hover { background: var(--gold-grad); color: #140f06; border-color: var(--gold-2); }
.slot-disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* Buton */
.btn-primary {
  margin-top: 6px; width: 100%; border: 1px solid rgba(230, 194, 116, 0.7); border-radius: 13px;
  padding: 17px; font-size: 18px; font-weight: 800; letter-spacing: 2px; color: #140f06;
  cursor: pointer; font-family: inherit;
  background: var(--gold-grad);
  box-shadow: 0 10px 28px rgba(201, 160, 74, 0.38), inset 0 1px 0 rgba(240, 212, 136, 0.6);
}
.btn-primary:disabled {
  background: #2a231a; color: #8a7d63; border-color: rgba(201, 160, 74, 0.22);
  cursor: not-allowed; box-shadow: none; filter: none; opacity: 1;
}
.btn-primary:not(:disabled):hover { filter: brightness(1.07); }

/* Instagram CTA (anasayfa, Randevu Al ustu) */
.insta-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  margin-top: 4px; padding: 14px; border-radius: 13px; border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.04); color: var(--gold); font-weight: 600; font-size: 16px;
  text-decoration: none; letter-spacing: 0.3px;
}
.insta-cta:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201, 160, 74, 0.10); }

/* Sosyal medya (Instagram + YouTube + TikTok, Randevu Al ustu) */
.socials { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.social-row { display: flex; gap: 10px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.04); color: var(--gold); font-weight: 600; font-size: 15px;
  text-decoration: none;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(201, 160, 74, 0.10); }

/* Alert */
.alert { border-radius: 11px; padding: 12px 14px; font-size: 15px; font-weight: 500; margin-bottom: 14px; border: 1px solid transparent; }
.alert-error { background: rgba(192, 86, 63, 0.16); color: #ecb6a6; border-color: rgba(192, 86, 63, 0.4); }
.alert-ok { background: rgba(122, 164, 110, 0.16); color: #bcd9b3; border-color: rgba(122, 164, 110, 0.4); }

/* Yardimci */
.site-footer { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 12px; }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; max-width: 600px; }
.foot-link { color: var(--gold); text-decoration: none; font-size: 13px; }
.foot-link a { color: var(--gold); text-decoration: underline; }
.foot-link:hover { color: var(--gold-2); }
.foot-copy { color: var(--muted); font-size: 13px; }
.link { color: var(--gold); font-weight: 600; }
.link:hover { color: var(--gold-2); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Tablolar */
.table { width: 100%; border-collapse: collapse; background: var(--surface-solid); border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid rgba(201,160,74,0.16); font-size: 14px; color: var(--cream); }
.table th { background: rgba(201, 160, 74, 0.10); color: var(--gold); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table input, .table select { background: rgba(255,255,255,0.05); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-booked { background: rgba(201, 160, 74, 0.18); color: var(--gold-2); }
.badge-cancelled { background: rgba(192, 86, 63, 0.2); color: #e6a08e; }
.badge-completed { background: rgba(122, 164, 110, 0.2); color: #bcd9b3; }
.cancel-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.row-cancelled td { opacity: 0.62; }
.row-cancelled td .badge, .row-cancelled td .cancel-meta { opacity: 1; }

/* Genis sayfa (admin) */
.page { width: 100%; max-width: 920px; }
.panel { background: var(--surface); backdrop-filter: blur(14px); border: 1px solid var(--gold-line);
  border-radius: 16px; padding: 22px; margin-bottom: 18px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.panel h2 { margin-top: 0; color: var(--gold); font-family: var(--font-serif); font-weight: 600; letter-spacing: 1px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.btn-sm { padding: 9px 13px; font-size: 13px; border-radius: 9px; border: 1px solid var(--gold-line); cursor: pointer;
  background: rgba(0,0,0,0.35); color: var(--gold); font-weight: 600; font-family: inherit; text-decoration: none; display: inline-block; }
.btn-sm:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-danger { background: rgba(192,86,63,0.85); border-color: rgba(192,86,63,0.6); color: #fff; }
.btn-danger:hover { background: #c0563f; color: #fff; }
.btn-gold { background: var(--gold-grad); color: #140f06; border: none; font-weight: 700; }
.btn-gold:hover { filter: brightness(1.06); color: #140f06; }
.inline-form { display: inline; }
.form-inline-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.form-inline-row .field { gap: 4px; }
.form-inline-row .field > span { font-size: 12px; color: var(--muted); }
.form-inline-row input, .form-inline-row select { padding: 9px 10px; font-size: 14px; }
h1.page-title { color: var(--gold); font-family: var(--font-serif); font-weight: 600; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Genis tablolari saran kaydirma kutusu */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }

/* Admin duzenlenebilir liste: kart yapisi */
.alist { display: flex; flex-direction: column; gap: 10px; }
.acard { background: var(--surface-solid); border: 1px solid var(--gold-line); border-radius: 12px; padding: 12px 14px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.acell { display: flex; flex-direction: column; gap: 4px; flex: 1 1 120px; }
.acell.grow { flex: 2 1 170px; min-width: 140px; }
.acell.narrow { flex: 0 1 90px; }
.alabel { font-size: 11px; font-weight: 700; color: var(--muted); }
.acard .day-name { font-weight: 700; color: var(--gold-2); padding: 8px 0; font-size: 15px; }
.acard input[type="text"], .acard input[type="number"], .acard input[type="time"], .acard select {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gold-line); box-shadow: none;
  padding: 9px 10px; font-size: 15px; border-radius: 9px; width: 100%; }
.acell input[type="checkbox"] { width: 22px; height: 22px; margin: 8px 0; accent-color: var(--gold); }
.acard-actions { display: flex; gap: 8px; align-items: flex-end; margin-left: auto; }

/* Calisma saatleri: kompakt tek-satir tasarim (mobile-first) */
.wh-list { display: flex; flex-direction: column; gap: 6px; }
.wh-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface-solid);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
}
.wh-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; margin: 0; }
.wh-toggle input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); flex-shrink: 0; }
.wh-day { font-weight: 700; color: var(--gold-2); font-size: 13px; letter-spacing: 0.4px; }
.wh-times { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; transition: opacity 0.15s; }
.wh-grp { display: inline-flex; align-items: center; gap: 4px; }
.wh-times input[type="time"] {
  padding: 5px 7px; font-size: 12px; width: auto; min-width: 78px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--gold-line);
  border-radius: 7px; color: var(--cream); font-family: inherit; color-scheme: dark;
}
.wh-times input[type="time"]:focus { border-color: var(--gold); outline: none; }
.wh-sep { color: var(--muted); font-weight: 700; padding: 0 1px; }
.wh-lbl { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; margin-right: 3px; }
.wh-row[data-open="0"] .wh-times { opacity: 0.35; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) { .page { max-width: 100%; } }

@media (max-width: 640px) {
  body { padding: 12px 10px 32px; }
  body { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .card { max-width: 100%; margin-top: 8px; padding: 22px 16px 22px; border-radius: 20px; }
  .card-hero { padding-top: 14px; }
  .brand { font-size: 28px; }
  .h-name { font-size: 28px; letter-spacing: 3px; }
  .brand-sub { font-size: 13px; letter-spacing: 3px; }
  .row { flex-direction: column; gap: 16px; }
  .field > span { font-size: 15px; }
  .topbar { flex-wrap: wrap; max-width: 100%; }
  .pill { font-size: 13px; padding: 9px 13px; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 7px; }
  .page { padding: 0 2px; }
  .page-title { font-size: 24px; }
  .panel { padding: 16px 14px; }
  /* ---- Admin panel — mobilde kompakt yeniden tasarim ---- */
  h1.page-title { font-size: 20px; letter-spacing: 1px; margin: 6px 0 10px; }
  .panel { padding: 12px 11px; margin-bottom: 14px; border-radius: 11px; }
  .panel h2 { font-size: 15.5px; letter-spacing: 0.5px; margin: 0 0 10px; }
  .admin-nav { gap: 5px; margin-bottom: 14px; }
  .admin-nav .btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
  .hint { font-size: 13px; }
  .alert { font-size: 13px; padding: 9px 11px; margin-bottom: 10px; }

  /* Compact .acard (personel, hizmetler, kapatmalar — tum admin liste kartlari) */
  .acard { flex-direction: row; flex-wrap: wrap; align-items: flex-end; padding: 9px 10px; gap: 8px; border-radius: 10px; }
  .acell { flex: 1 1 calc(50% - 4px); width: auto; min-width: 0; gap: 3px; }
  .acell.grow { flex: 1 1 100%; }
  .acell.narrow { flex: 0 1 auto; min-width: 72px; }
  .alabel { font-size: 10px; letter-spacing: 0.3px; }
  .acard .day-name { font-size: 13px; padding: 3px 0; font-weight: 700; }
  .acard input[type="text"], .acard input[type="number"],
  .acard input[type="time"], .acard input[type="tel"], .acard input[type="password"], .acard select {
    padding: 6px 8px; font-size: 12px; border-radius: 6px; width: 100%;
  }
  .acell input[type="checkbox"] { width: 17px; height: 17px; margin: 4px 0; }
  .acard .btn-sm { width: auto; padding: 6px 12px; font-size: 12px; margin-top: 4px; }

  /* Compact .form-inline-row (tum admin ekleme + filtre formlari) */
  .form-inline-row { flex-direction: row; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
  .form-inline-row .field { flex: 1 1 calc(50% - 6px); width: auto; gap: 2px; min-width: 0; }
  .form-inline-row .field.grow { flex: 1 1 100%; }
  .form-inline-row .field.narrow { flex: 0 1 auto; min-width: 70px; }
  .form-inline-row .field > span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
  .form-inline-row input[type="text"], .form-inline-row input[type="tel"],
  .form-inline-row input[type="number"], .form-inline-row input[type="url"],
  .form-inline-row input[type="date"], .form-inline-row input[type="time"],
  .form-inline-row input[type="email"], .form-inline-row select {
    padding: 6px 7px; font-size: 12px; border-radius: 6px; width: 100%; box-sizing: border-box;
  }
  .form-inline-row button { padding: 7px 14px; font-size: 12.5px; margin-top: 4px; width: auto; }

  /* iOS Safari: native date/time input, dar hucrede -webkit gorunumuyle sag
     border'i kirpiyor ve genisligi zorluyor. appearance:none ile CSS kutusuna
     cevir -> tam border + hucreye sigar. Kaybolan takvim ikonunu arka planla
     geri koy. Yalnizca mobil media icinde -> masaustu native picker etkilenmez. */
  .form-inline-row input[type="date"], .form-inline-row input[type="time"] {
    -webkit-appearance: none; appearance: none; min-width: 0;
  }
  .form-inline-row input[type="date"] {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a04a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center; padding-right: 26px;
  }

  /* Tablolari mobilde kart-gorunumune cevir (data-label ile) */
  .table-wrap { overflow-x: visible; border-radius: 0; }
  .table { min-width: 0; background: transparent; border-radius: 0; }
  .table thead { display: none; }
  .table tbody, .table tr { display: block; }
  .table tr {
    background: var(--surface-solid); border: 1px solid var(--gold-line);
    border-radius: 9px; margin-bottom: 7px; padding: 6px 9px;
  }
  .table td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 3px 0; border: none; font-size: 12px; gap: 8px; text-align: right;
  }
  .table td::before {
    content: attr(data-label);
    font-size: 9.5px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.4px;
    flex-shrink: 0; text-align: left;
  }
  .table td.td-actions,
  .table td:last-child {
    justify-content: flex-end; padding-top: 6px;
    border-top: 1px solid rgba(201,160,74,0.16); margin-top: 4px;
  }
  .table td.td-actions::before,
  .table td:last-child::before { display: none; }
  .table td[data-label] { text-align: right; }

  /* Ozet (dashboard) — kartlar sagdan sola: etiket sagda, deger solda */
  .dashboard-panel .table td { flex-direction: row-reverse; text-align: left; }
  .dashboard-panel .table td::before { text-align: right; }
  .dashboard-panel .table td[data-label] { text-align: left; }

  /* Compact form input on mobile — genelde */
  input[type="text"], input[type="tel"], input[type="email"], input[type="url"],
  input[type="password"], input[type="date"], input[type="time"], input[type="number"], select,
  .dp-trigger { padding: 11px 13px; font-size: 15px; border-radius: 10px; }
  .form { gap: 12px; }

  /* Ust bar/pill kompakt */
  .topbar { gap: 6px; margin-bottom: 8px; }
  .pill { padding: 7px 11px; font-size: 12px; }

  /* Calisma saatleri: mobilde daha da sıkı — 7 gun tek ekranda sigsin */
  .wh-row { grid-template-columns: 92px 1fr; gap: 8px; padding: 7px 9px; border-radius: 9px; }
  .wh-day { font-size: 12px; letter-spacing: 0.3px; }
  .wh-times { gap: 6px; }
  .wh-times input[type="time"] { padding: 3px 5px; font-size: 11px; min-width: 68px; border-radius: 6px; }
  .wh-lbl { font-size: 9px; margin-right: 2px; }
  .wh-toggle input[type="checkbox"] { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
  .brand, .h-name { font-size: 24px; }
  .card { padding: 20px 14px 20px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ========== Responsive gorunurluk yardimcilari ========== */
.mobile-only { display: none; }
.desktop-only { display: block; }
@media (max-width: 640px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

/* ========== Kullanicilar: mobil kompakt kart ========== */
.user-m-list { display: flex; flex-direction: column; gap: 8px; }
.user-m {
  background: var(--surface-solid); border: 1px solid var(--gold-line);
  border-radius: 10px; padding: 9px 11px;
  display: flex; flex-direction: column; gap: 4px;
}
.user-m-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-m-name { font-weight: 700; color: var(--cream); font-size: 14px; }
.user-m-email { font-size: 12px; color: var(--muted); word-break: break-all; }
.user-m-meta { font-size: 11px; color: var(--muted); }
.user-m-meta span { white-space: nowrap; }
.user-m .btn-sm { padding: 5px 9px !important; font-size: 11px !important; }

/* ========== Hizmetler ozel: EN/RU cevirileri mobilde 50/50 yan yana ========== */
@media (max-width: 640px) {
  .svc-card .svc-tr, .svc-new .svc-tr { flex: 1 1 calc(50% - 3px); }
}

/* ========== ADMIN PANELI — ikonlu izgara menu + BUGUN karti (gumus tema) ========== */
/* Baslik — ortali, hafif parlaklik */
.hub-title {
  text-align: center; font-family: inherit; font-weight: 800;
  letter-spacing: 2px; font-size: 30px; margin: 2px 0 20px; text-transform: uppercase;
  color: var(--gold-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Ikon izgarasi — 3 sutun */
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 0 0 18px; }
.nav-tile {
  display: flex; align-items: center; gap: 11px; min-width: 0;
  padding: 15px 15px; border-radius: 13px; text-decoration: none;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  color: var(--gold); font-weight: 700; font-size: 14.5px; letter-spacing: .2px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform .13s ease, border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.nav-tile svg { width: 21px; height: 21px; flex: 0 0 auto; stroke: currentColor; color: var(--gold-2); opacity: .92; }
.nav-tile span { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
.nav-tile:hover {
  border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(201, 160, 74, 0.14), rgba(201, 160, 74, 0.045));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-tile:hover svg { opacity: 1; }
.nav-tile.active { border-color: var(--gold-2); background: rgba(201, 160, 74, 0.12); color: var(--gold-2); }

/* BUGUN karti */
.today-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 30px 20px; border-radius: 15px; border: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 160, 74, 0.10), transparent 60%),
    var(--surface-solid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}
/* cok hafif damask dokusu — altin tonu, sadece "his" icin */
.today-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23c9a04a' stroke-width='1.2'><path d='M30 6c7 8 7 16 0 24-7-8-7-16 0-24zM30 54c-7-8-7-16 0-24 7 8 7 16 0 24zM6 30c8-7 16-7 24 0-8 7-16 7-24 0zM54 30c-8 7-16 7-24 0 8-7 16-7 24 0z'/><circle cx='30' cy='30' r='2'/></g></svg>");
  background-size: 64px 64px;
}
.today-card > * { position: relative; }
.today-card h2 {
  font-family: inherit; font-weight: 800; letter-spacing: 7px; font-size: 23px; margin: 0 0 10px;
  text-transform: uppercase; color: var(--gold-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.today-card .today-empty { color: var(--gold); margin: 0; font-size: 15px; font-weight: 600; }
.today-card .today-date { color: var(--gold); margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.today-card .sep { width: 70px; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
/* Randevu varsa: tablo sola yaslansin, baslik ortali kalsin */
.today-card.has-rows { text-align: left; padding: 22px 18px; }
.today-card.has-rows h2, .today-card.has-rows .today-date { text-align: center; }

/* Mobil — 3 sutun ama daha siki (gorseldeki gibi), ikon ustte */
@media (max-width: 560px) {
  .hub-title { font-size: 23px; letter-spacing: 3px; margin: 0 0 14px; }
  .admin-grid { gap: 8px; }
  .nav-tile { flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 13px 8px; font-size: 12px; }
  .nav-tile svg { width: 22px; height: 22px; }
  .today-card { padding: 24px 16px; }
  .today-card h2 { font-size: 19px; letter-spacing: 5px; }
  .today-card .today-empty { font-size: 13.5px; }
}

/* ========== ADMIN ALT SAYFALARI — gumus yuzey ve baslik cilasi ========== */
.page .panel {
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 160, 74, 0.10), transparent 60%),
    var(--surface);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page .panel h2 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.page .acard {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page .acard:focus-within {
  border-color: var(--gold);
}

.page .wh-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page .user-m {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page .btn-sm:not(.btn-gold):not(.btn-danger) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ========== ADMIN MASAUSTU SIDEBAR + RANDEVU KARTLARI ========== */
@media (min-width: 861px) {
  .page.admin-layout {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
    max-width: 1040px;
  }

  .page.admin-layout > .admin-side {
    grid-column: 1;
    grid-row: 1 / span 100;
    position: sticky;
    top: 16px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    background:
      radial-gradient(circle at 50% -10%, rgba(201, 160, 74, 0.10), transparent 60%),
      var(--surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .page.admin-layout > .admin-side::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23c9a04a' stroke-width='1.2'><path d='M30 6c7 8 7 16 0 24-7-8-7-16 0-24zM30 54c-7-8-7-16 0-24 7 8 7 16 0 24zM6 30c8-7 16-7 24 0-8 7-16 7-24 0zM54 30c-8 7-16 7-24 0 8-7 16-7 24 0z'/><circle cx='30' cy='30' r='2'/></g></svg>");
    background-size: 64px 64px;
  }

  .page.admin-layout > .admin-side > * { position: relative; }

  .admin-side .hub-title {
    text-align: left;
    font-size: 20px;
    letter-spacing: 3px;
    margin: 2px 0 14px;
  }

  .admin-side .admin-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
  }

  .admin-side .nav-tile { padding: 12px 13px; }

  .page.admin-layout > :not(.admin-side) {
    grid-column: 2;
    min-width: 0;
  }
}

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.appt-card {
  padding: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.appt-card.is-cancelled { opacity: .72; }

.appt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appt-when { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.appt-date { color: var(--gold-2); font-weight: 700; }
.appt-time { color: var(--gold); font-weight: 600; }
.appt-card-body { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.appt-row { display: flex; align-items: baseline; gap: 10px; }
.appt-lbl { min-width: 74px; color: var(--muted); font-size: 12px; font-weight: 600; }
.appt-val { min-width: 0; color: var(--cream); font-weight: 600; overflow-wrap: anywhere; }
.appt-cancel-meta { color: var(--danger); font-size: 11px; margin-top: 2px; }
.appt-card-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ========== PERSONEL LISTESI — native accordion ========== */
.page .staff-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.page .staff-item {
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color .15s;
}

.page details[open].staff-item { border-color: var(--gold); }

.page .staff-sum {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.page .staff-sum::-webkit-details-marker { display: none; }

.page .staff-sum::after {
  content: '›';
  margin-left: auto;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  transition: transform .15s;
}

.page details[open].staff-item .staff-sum::after { transform: rotate(90deg); }
.page .staff-name { min-width: 0; color: var(--cream); font-weight: 700; overflow-wrap: anywhere; }
.page .staff-flag { color: var(--muted); font-size: 12px; font-weight: 600; }

.page .staff-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 16px 16px;
  border-top: 1px solid var(--gold-line);
}

.page .staff-detail > .form { padding-top: 14px; }
.page .staff-detail > form:last-child { align-self: flex-end; }

.page .staff-active {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--cream);
  cursor: pointer;
}

.page .staff-active input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--gold);
}

/* ========== RANDEVULAR — sayfalama ========== */
.appt-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.appt-pager-info {
  color: var(--muted);
  font-size: 13px;
}

.btn-sm.is-disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

/* ================================================================
   TEMA — Aydınlık mod (data-theme="light"). Karanlık mod = :root default.
   Renk paleti (altın-siyah) korunur; sadece yüzey/metin uyarlanır.
   ================================================================ */
:root { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg0: #faf6ee;
  --bg1: #fffbf3;
  --surface: rgba(255, 253, 246, 0.88);
  --surface-solid: #ffffff;
  --cream: #241a08;
  --muted: #7a6a48;
  --gold-line: rgba(138, 109, 47, 0.28);
  --gold: #8a6d2f;
  --gold-2: #a77f37;
  --gold-deep: #5a4519;
}
html[data-theme="light"] body { color: var(--cream); }
html[data-theme="light"] .bg {
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(167,127,55,0.14), transparent 60%),
    radial-gradient(1200px 700px at 50% 120%, rgba(167,127,55,0.06), transparent 55%),
    linear-gradient(160deg, #fdf7ea 0%, #f5eddc 55%, #ede2c8 100%);
}
html[data-theme="light"] .card { box-shadow: 0 20px 45px rgba(90, 69, 25, 0.15); }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea {
  background: #ffffff; color: #241a08; color-scheme: light;
}
html[data-theme="light"] input::placeholder { color: #a89373; }
html[data-theme="light"] .pill { background: rgba(255, 253, 246, 0.75); color: var(--gold-deep); }
html[data-theme="light"] .lang { color: var(--muted); }
html[data-theme="light"] .lang.active { color: #fff; background: linear-gradient(180deg, #a77f37, #8a6d2f); }
html[data-theme="light"] .brand-logo { filter: none; }

/* Tema toggle içindeki iki simgeden yalnızca birini göster */
.ic-sun { display: none; }
.ic-moon { display: inline; }
html[data-theme="light"] .ic-sun { display: inline; }
html[data-theme="light"] .ic-moon { display: none; }
.lang-theme { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; cursor: pointer; }

/* ================================================================
   ANASAYFA — Kademe (wizard) + PWA butonu + logo
   ================================================================ */
.card-wizard { padding: 22px 22px 26px; }
.brand-block { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; }
.brand-logo { display: block; width: 170px; height: auto; max-width: 60%; }

.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 4px 0 16px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid var(--gold-line); cursor: pointer;
  background: rgba(255,255,255,0.04); color: var(--cream);
}
.cta-outline:hover { border-color: var(--gold); color: var(--gold-2); }
.cta-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff; border-color: transparent;
}
.cta-ig:hover { filter: brightness(1.05); }

.stepper { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0; margin: 6px 0 18px; }
.st-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--gold-line);
  color: var(--muted); transition: background .2s, color .2s, border-color .2s;
}
.st-dot.active { background: linear-gradient(180deg, #e6c274, #8a6d2f); color: #fff; border-color: transparent; box-shadow: 0 0 0 3px rgba(201,160,74,0.18); }
.st-dot.done { color: var(--gold); border-color: var(--gold); }
.st-line { flex: 0 1 28px; height: 1px; background: var(--gold-line); }

.wz-title { text-align: center; margin: 6px 0 2px; font-size: 24px; font-weight: 700; color: var(--cream); }
.wz-sub { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 14px; }

.wz-list { display: flex; flex-direction: column; gap: 10px; }
.wz-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--gold-line);
  border-radius: 14px; padding: 14px 16px; color: var(--cream); text-align: left; cursor: pointer;
  font-family: inherit; font-size: 15px; transition: border-color .15s, background .15s;
}
.wz-item:hover { border-color: var(--gold); background: rgba(201,160,74,0.08); }
.wi-l { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.wi-title { font-weight: 700; font-size: 15px; color: var(--cream); display: flex; align-items: center; gap: 8px; }
.wi-title .ic { color: var(--gold); flex-shrink: 0; }
.wi-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.wi-r { font-weight: 700; color: var(--gold-2); font-size: 15px; white-space: nowrap; }

.wi-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: rgba(201,160,74,0.15);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.wi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wi-avatar-fallback { font-weight: 800; font-size: 20px; color: var(--gold-2); }
.wi-avatar-any { background: linear-gradient(180deg, #e6c274, #8a6d2f); color: #fff; }

.wz-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--gold-line); border-radius: 10px;
  color: var(--gold); font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 14px; padding: 9px 14px; margin-top: 16px; align-self: flex-start;
}
.wz-back:hover { border-color: var(--gold); color: var(--gold-2); }

/* Takvim */
.wz-cal { background: rgba(255,255,255,0.04); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-lbl { font-weight: 700; color: var(--cream); }
.cal-nav { background: none; border: none; color: var(--cream); font-size: 18px; cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.cal-nav:hover { background: rgba(201,160,74,0.15); color: var(--gold-2); }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-cell {
  aspect-ratio: 1 / 1; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--cream); font-family: inherit; font-size: 14px;
  border-radius: 10px; cursor: pointer;
}
.cal-cell:not(.cal-empty):not(.cal-past):hover { background: rgba(201,160,74,0.20); color: var(--gold-2); }
.cal-empty { cursor: default; }
.cal-past { color: var(--muted); opacity: 0.35; cursor: not-allowed; }
.cal-today { background: linear-gradient(180deg, #e6c274, #8a6d2f); color: #fff; font-weight: 700; }

/* Saat gridi (wizard versiyonu; global .slot varsa uyum saglar) */
.wz-slots { margin-top: 4px; }
.slot-grid-any .slot-any { flex-direction: column; gap: 2px; padding: 10px 8px; line-height: 1.1; }
.slot-any .slot-time { font-weight: 700; font-size: 15px; }
.slot-any .slot-staff { font-size: 11px; color: var(--muted); }
.wz-hint { color: var(--muted); text-align: center; margin: 14px 0; }

/* Bilgiler adimi */
.wz-form { display: flex; flex-direction: column; gap: 14px; }
.wz-kvkk { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.wz-kvkk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-2); flex-shrink: 0; }
.wz-kvkk span { flex: 1; }
.wz-summary {
  margin-top: 4px; padding: 14px; border-radius: 14px;
  background: rgba(201,160,74,0.08); border: 1px solid var(--gold-line);
}
.wz-summary h3 { margin: 0 0 8px; font-size: 15px; color: var(--gold-2); }
.wz-summary div { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; color: var(--cream); }
.wz-summary svg { color: var(--gold); flex-shrink: 0; }

/* Install modal (iOS/desteklemeyen tarayici yardim) */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--surface-solid); color: var(--cream);
  border-radius: 16px; padding: 22px 22px 18px; max-width: 400px; width: 100%;
  border: 1px solid var(--gold-line); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
}
.modal-card h3 { margin: 0 0 12px; color: var(--gold-2); }
.modal-card p { margin: 8px 0; line-height: 1.5; font-size: 14px; }
.modal-card .muted { color: var(--muted); font-size: 13px; }
.modal-x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; padding: 4px 10px;
}
.modal-x:hover { color: var(--cream); }

/* Admin — personel foto */
.staff-avatar-xs { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 8px; vertical-align: middle; }
.staff-photo-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-top: 1px dashed var(--gold-line); margin-top: 8px;
}
.staff-photo-preview {
  width: 70px; height: 70px; border-radius: 50%; overflow: hidden;
  background: rgba(201,160,74,0.10); border: 1px solid var(--gold-line);
  display: inline-flex; align-items: center; justify-content: center;
}
.staff-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.staff-photo-empty { color: var(--muted); font-size: 11px; }
.staff-photo-form { display: inline-flex; }
.btn-file { position: relative; cursor: pointer; }
.btn-file input[type="file"] { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* Bildirim toggle butonu */
.notify-on { border-color: var(--gold); color: var(--gold-2); }

/* Uyari sarsintisi (gun dolu penceresi) — modal karti + tum ekran kisa titrer */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
.modal-card.shake, body.shake { animation: shake 0.55s cubic-bezier(.36,.07,.19,.97) both; }

/* ================================================================
   RANDEVU OZETI TABLOSU (Randevu Alindi + iptal sayfasi) — .table-kv
   Masaustu: klasik iki sutun. Mobil: tek kutu, satir basina etiket solda deger sagda.
   ================================================================ */
.table-kv th { white-space: nowrap; width: 1%; }
@media (max-width: 640px) {
  .table.table-kv { background: var(--surface-solid); border: 1px solid var(--gold-line); border-radius: 12px; padding: 4px 14px; }
  .table.table-kv tr {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: transparent; border: none; border-radius: 0; margin: 0; padding: 11px 0;
    border-bottom: 1px solid rgba(201,160,74,0.16);
  }
  .table.table-kv tr:last-child { border-bottom: none; }
  .table.table-kv th { background: transparent; padding: 0; font-size: 13px; color: var(--muted); width: auto; }
  .table.table-kv td { display: block; padding: 0; border: none; font-size: 14.5px; color: var(--cream); text-align: right; }
  .table.table-kv td:last-child { border-top: none; margin-top: 0; padding-top: 0; }
}

/* ================================================================
   AYDINLIK TEMA — okunurluk duzeltmeleri (acik zeminde soluk kalanlar)
   ================================================================ */
html[data-theme="light"] .alert-ok {
  background: rgba(122, 164, 110, 0.18); color: #3d6632; border-color: rgba(84, 128, 72, 0.5);
}
html[data-theme="light"] .alert-error {
  background: rgba(192, 86, 63, 0.14); color: #9c3a24; border-color: rgba(192, 86, 63, 0.45);
}
html[data-theme="light"] .btn-sm:not(.btn-gold):not(.btn-danger) {
  background: #fffdf6; color: var(--gold-deep); border-color: rgba(138, 109, 47, 0.4);
  box-shadow: 0 2px 8px rgba(90, 69, 25, 0.12);
}
html[data-theme="light"] .btn-sm:not(.btn-gold):not(.btn-danger):hover {
  border-color: var(--gold); color: var(--gold);
}
html[data-theme="light"] .wz-back { background: #fffdf6; }

/* ================================================================
   MASAUSTU — genis ekranda kart telefon seridi gibi kalmasin
   ================================================================ */
@media (min-width: 861px) {
  .topbar { max-width: 640px; }
  .card { max-width: 640px; padding: 32px 40px 36px; }
  .card-wizard { padding: 28px 36px 32px; }
  .brand-logo { width: 190px; }
}

/* ---- Sifre goster/gizle (goz butonu) ---- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--muted);
}
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--gold); }

/* ---- Personele ozel calisma saatleri ---- */
.staff-hours-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wh-custom .wh-lbl { margin-left: 2px; }
.wh-row[data-custom="0"] .wh-times { opacity: 0.35; }
.wh-row[data-custom="0"] .wh-times input { pointer-events: none; }

/* ---- Randevularim: gecmis randevular kapali baslar ---- */
.past-appts { margin-top: 18px; }
.past-appts > summary { cursor: pointer; list-style: none; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 0; user-select: none; }
.past-appts > summary::-webkit-details-marker { display: none; }
.past-appts > summary::before { content: '▸ '; color: var(--gold); }
.past-appts[open] > summary::before { content: '▾ '; }
.past-appts .appt-list { margin-top: 6px; }
