/* ---------- yazı tipleri (sunucudan, dış servise bağlı değil) ---------- */
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #7d1f46;
  --brand-d: #631637;
  --brand-m: #b03a64;
  --tint: #f8ebef;
  --tint-2: #fdf5f6;
  --bg: #faf6f2;
  --card: #ffffff;
  --ink: #2a1a20;
  --muted: #6f5c64;
  --faint: #9a8990;
  --line: #eae0da;
  --line-2: #f2ebe6;
  --green: #1c7a52;
  --green-d: #156341;
  --green-l: #e3f3ea;
  --wa: #25d366;
  --wa-d: #1fc05c;
  --wa-ink: #06351b;
  --red: #b3322f;
  --red-l: #fbeae8;
  --amber: #8a5a0d;
  --amber-l: #fbf1dc;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(60, 25, 40, .04), 0 6px 20px rgba(60, 25, 40, .05);
  --shadow-l: 0 10px 40px rgba(60, 25, 40, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
h1 { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
a { color: var(--brand); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand-m); outline-offset: 2px; }

.i { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.22em; }

.wrap { max-width: 600px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 440px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.error { color: var(--red); font-size: .95rem; margin: .6em 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px;
  border: 0; border-radius: var(--radius-s);
  background: var(--brand); color: #fff;
  font-weight: 650; font-size: 1rem; text-decoration: none; text-align: center; line-height: 1.2;
  cursor: pointer; transition: background .15s, transform .06s, box-shadow .15s;
}
.btn:hover { background: var(--brand-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 56px; font-size: 1.06rem; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 7px 13px; font-size: .92rem; border-radius: 11px; white-space: nowrap; }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-d); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: var(--wa-d); }
.btn-wa.done { background: var(--green-l); color: var(--green-d); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--tint-2); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #982a27; }
.btn-text { background: none; color: var(--brand); padding: 6px 4px; min-height: 36px; font-weight: 650; }
.btn-text:hover { background: none; text-decoration: underline; }
.danger { color: var(--red) !important; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 11px; background: var(--tint-2); color: var(--brand);
  cursor: pointer; flex: none; text-decoration: none;
}
.icon-btn:hover { background: var(--tint); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.sheet-actions { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- formlar ---------- */
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
label small, .hint { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; font-size: .85rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  min-height: 50px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f5c64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}
input[type=checkbox] { appearance: auto; -webkit-appearance: auto; }
input[type=date], input[type=time] { min-width: 0; }
input::-webkit-date-and-time-value { text-align: left; }
.mini-salon { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--muted); margin: 6px 0 10px; overflow-wrap: anywhere; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-m); box-shadow: 0 0 0 3px var(--tint); }
input.invalid { border-color: var(--red); }
input.invalid:focus { box-shadow: 0 0 0 3px var(--red-l); }
.field-error { color: var(--red) !important; font-weight: 500 !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 2px 0 0; accent-color: var(--brand); }
.pw-field { position: relative; }
.pw-field input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 6px; bottom: 5px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.prefix-input { display: flex; align-items: stretch; margin-top: 6px; }
.prefix-input span {
  display: flex; align-items: center; padding: 0 10px;
  background: var(--bg); border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
  color: var(--muted); font-weight: 400; font-size: .82rem; white-space: nowrap; max-width: 50%; overflow: hidden;
}
.prefix-input input { margin: 0; border-radius: 0 12px 12px 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- marka ---------- */
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.mark img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.monogram {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-m));
  color: #fff; font-family: var(--serif); font-size: 2.1rem; font-weight: 500;
  box-shadow: 0 8px 22px rgba(125, 31, 70, .28);
  overflow: hidden;
}
.monogram img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- profil resmi ---------- */
.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.logo-row .monogram { flex: none; margin: 0; }
.logo-info { min-width: 0; }
.logo-info strong, .logo-info small { display: block; }
.logo-info small { color: var(--muted); margin-top: 2px; }
.logo-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.crop-stage {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 14px auto 12px;
  overflow: hidden; border-radius: 14px; background: var(--line); touch-action: none; cursor: grab; user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(30, 15, 22, .5); border: 2px solid #fff; pointer-events: none; }
.crop-zoom { display: block; font-size: .9rem; color: var(--muted); }
.crop-zoom input { display: block; width: 100%; margin-top: 6px; padding: 0; min-height: 28px; border: 0; border-radius: 0; background: none; box-shadow: none; accent-color: var(--brand); -webkit-appearance: auto; appearance: auto; }

/* ---------- giriş sayfası ---------- */
.auth-hero { padding: 34px 4px 8px; }
.auth-hero h1 { font-size: 2.05rem; margin: 18px 0 8px; }
.auth-hero p { color: var(--muted); font-size: 1.04rem; }
.benefits { list-style: none; padding: 0; margin: 12px 0 22px; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.benefits .i { color: var(--brand); margin-top: 2px; }
.seg { display: flex; background: var(--bg); border-radius: 13px; padding: 4px; margin-bottom: 18px; }
.seg button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 10px; font-weight: 650; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(60, 25, 40, .12); }
.foot-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 18px 0 8px; font-size: .85rem; }
.foot-links a { color: var(--muted); }

/* ---------- metin sayfaları ---------- */
.prose h1 { margin-top: 14px; }
.prose h2 { margin-top: 1.5em; }
.prose p, .prose li { color: #4b3840; font-size: .97rem; }
.prose ul { padding-left: 20px; }
.draft-note { background: var(--amber-l); color: var(--amber); border-radius: var(--radius-s); padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; }

/* ---------- panel ---------- */
body.panel { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(250, 246, 242, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 600px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 10px; min-height: 58px; }
.topbar-in strong { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: center;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  padding: 4px 4px env(safe-area-inset-bottom);
}
.tabbar button {
  position: relative; flex: 1; max-width: 120px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 8px; border: 0; background: none;
  font-size: .72rem; font-weight: 650; color: var(--faint); cursor: pointer;
}
.tabbar .i { width: 23px; height: 23px; }
.tabbar button.active { color: var(--brand); }
.badge {
  position: absolute; top: 2px; left: calc(50% + 6px);
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: .7rem; line-height: 19px; text-align: center; font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.page-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-size: 1.55rem; }
.count { background: var(--tint); color: var(--brand); font-family: var(--sans); font-size: .85rem; font-weight: 700; border-radius: 20px; padding: 2px 11px; }
.loading { text-align: center; color: var(--muted); padding: 56px 0; }
.section-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 2px 10px; }

.empty { text-align: center; padding: 44px 18px; }
.empty-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand); }
.empty-ico .i { width: 28px; height: 28px; }
.empty h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 340px; margin: 0 auto 16px; }

.nudge { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, var(--tint), var(--tint-2)); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 14px; }
.nudge > .i { color: var(--brand); width: 24px; height: 24px; margin-top: 2px; }
.nudge p { margin: 2px 0 10px; font-size: .92rem; color: var(--muted); }
.nudge b { display: block; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; }
.checklist .done .tick { background: var(--green); border-color: var(--green); }
.checklist .done span.t { color: var(--muted); text-decoration: line-through; }
.checklist .t { flex: 1; font-size: .96rem; }
.checklist .i { width: 14px; height: 14px; }

/* talep kartı */
.appt-when { display: flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 650; font-size: .96rem; margin-bottom: 6px; }
.appt-name { font-size: 1.14rem; font-weight: 700; line-height: 1.3; }
.appt-sub { color: var(--muted); font-size: .95rem; }
.appt .row { margin-top: 14px; }
.note { display: flex; gap: 8px; background: var(--bg); border-radius: 11px; padding: 9px 11px; margin-top: 9px; font-size: .93rem; color: #4b3840; }
.note .i { color: var(--faint); margin-top: 2px; }
.contact-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .94rem; }
.contact-row a.num { color: inherit; text-decoration: none; }
.mini-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.expiry { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .84rem; color: var(--amber); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; margin-top: 7px; }
.tag + .tag { margin-left: 4px; }
.tag-amber { background: var(--amber-l); color: var(--amber); }
.tag-red { background: var(--red-l); color: var(--red); }
.tag-green { background: var(--green-l); color: var(--green-d); }
.tag-plain { background: var(--line-2); color: var(--muted); }

.cancel-card { display: flex; gap: 12px; align-items: flex-start; background: var(--red-l); border-radius: var(--radius); padding: 14px 15px; margin-bottom: 12px; }
.cancel-card > .i { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.cancel-card .body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cancel-card b { display: block; }
.cancel-card p { margin: 2px 0 0; font-size: .93rem; color: #6b3a38; }

/* takvim özeti */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border-radius: 15px; box-shadow: var(--shadow); padding: 12px 13px; min-width: 0; }
.stat span { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.stat strong { display: block; font-size: 1.28rem; font-family: var(--serif); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat em { display: block; font-style: normal; font-size: .76rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* hafta şeridi */
.week-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 10px 14px; margin-bottom: 14px; }
.week-head { display: flex; align-items: center; gap: 4px; padding: 0 2px 10px; }
.week-head h2 { flex: 1; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; padding-left: 4px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wd {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-height: 66px; padding: 7px 0 9px; border: 0; border-radius: 12px; background: none; cursor: pointer;
}
.wd span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.wd strong { font-size: 1.08rem; font-weight: 650; }
.wd .pip { display: block; min-width: 18px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--tint); color: var(--brand); font-size: .68rem; font-weight: 700; line-height: 16px; text-align: center; }
.wd .pip.none { background: none; }
.wd:hover { background: var(--tint-2); }
.wd.today strong { color: var(--brand); }
.wd.off span, .wd.off strong { color: var(--faint); }
.wd.active { background: var(--brand); }
.wd.active span, .wd.active strong { color: #fff; }
.wd.active .pip { background: rgba(255, 255, 255, .22); color: #fff; }
.wd.active .pip.none { background: none; }
.view-toggle { display: flex; background: var(--bg); border-radius: 11px; padding: 3px; }
.view-toggle button { border: 0; background: none; border-radius: 9px; padding: 6px 12px; font-size: .85rem; font-weight: 650; color: var(--muted); cursor: pointer; }
.view-toggle button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(60, 25, 40, .12); }

/* gün akışı */
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 2px 12px; }
.day-head h2 { margin: 0; font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
.day-head .small { color: var(--muted); }
.agenda { display: grid; gap: 8px; }
.ag { display: flex; gap: 12px; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; }
.ag-time { flex: 0 0 48px; font-weight: 700; font-size: .98rem; line-height: 1.25; padding-top: 1px; }
.ag-time small { display: block; font-weight: 500; color: var(--faint); font-size: .8rem; }
.ag-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ag-appt {
  background: var(--card); border-radius: 15px; box-shadow: var(--shadow); padding: 13px 14px; cursor: pointer;
  border-left: 4px solid var(--brand);
}
.ag-appt:hover { box-shadow: 0 2px 4px rgba(60, 25, 40, .06), 0 8px 24px rgba(60, 25, 40, .09); }
.ag-appt.pending { border-left-color: #d29a33; }
.ag-appt.cancelled, .ag-appt.no_show { border-left-color: var(--line); background: #fdfbfa; }
.ag-appt.cancelled .ag-name { text-decoration: line-through; color: var(--muted); }
.ag-appt.past { opacity: .72; }
.ag-name { font-weight: 700; line-height: 1.3; }
.ag-sub { color: var(--muted); font-size: .92rem; }
.ag-closed { align-items: center; background: repeating-linear-gradient(135deg, #f5efea, #f5efea 7px, #f0e8e2 7px, #f0e8e2 14px); border-radius: 13px; padding: 10px 14px; color: var(--muted); font-size: .92rem; }
.ag-closed .ag-body { font-weight: 600; }
.ag-closed .x-mini { border: 0; background: rgba(255, 255, 255, .8); color: var(--muted); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.ag-gap {
  align-items: center; justify-content: space-between; padding: 9px 14px; border-radius: 13px;
  border: 1.5px dashed var(--line); background: none; color: var(--muted); font-size: .9rem; cursor: pointer;
}
.ag-gap:hover { border-color: var(--brand-m); color: var(--brand); background: var(--tint-2); }
.ag-gap .i { color: var(--brand); }
.closed-banner { display: flex; align-items: center; gap: 12px; background: var(--amber-l); color: var(--amber); border-radius: 15px; padding: 13px 15px; margin-bottom: 10px; font-weight: 600; }
.closed-banner span { flex: 1; }
.week-list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; margin: 18px 2px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.week-list h3 small { font-family: var(--sans); font-weight: 500; color: var(--muted); font-size: .84rem; }

/* randevu detayı */
.detail-head { padding-right: 34px; }
.detail-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 4px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.info-list { margin: 12px 0 4px; }
.info { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .97rem; align-items: flex-start; overflow-wrap: anywhere; }
.info:first-child { border-top: 0; }
.info .i { color: var(--faint); margin-top: 2px; }
.action-list { display: grid; gap: 8px; margin-top: 14px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* hizmet seçimi (salon formu) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 40px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  font-size: .92rem; font-weight: 550; cursor: pointer;
}
.chip:hover { border-color: var(--brand-m); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:disabled { opacity: .4; cursor: default; }
.slot-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 7px; margin-top: 8px; max-height: 190px; overflow-y: auto; padding: 2px; }
.slot-chips .chip { justify-content: center; padding: 7px 4px; }
.form-label { font-weight: 600; font-size: .95rem; display: block; }
.total-line { font-size: .86rem; color: var(--muted); margin-top: 7px; }

/* müşteri listesi */
.search { position: relative; margin-bottom: 12px; }
.search .i { position: absolute; left: 14px; top: 16px; color: var(--faint); }
.search input { margin: 0; padding-left: 42px; }
.person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: var(--card); text-align: left; cursor: pointer; border-top: 1px solid var(--line-2); }
.person:first-child { border-top: 0; }
.person:hover { background: var(--tint-2); }
.people { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand); font-family: var(--serif); font-weight: 600; font-size: 1.1rem; flex: none; }
.person .who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.person .who b { display: block; line-height: 1.25; }
.person .who small { color: var(--muted); font-size: .85rem; }
.person > .i { color: var(--faint); }
.history { margin-top: 10px; }
.history-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .93rem; }
.history-row b { font-weight: 600; display: block; }
.history-row small { color: var(--muted); }
.stat-line { display: flex; gap: 18px; margin: 10px 0 2px; }
.stat-line div strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.stat-line div span { font-size: .78rem; color: var(--muted); }

/* linkim */
.linkbox { background: var(--tint-2); border: 1.5px solid var(--tint); border-radius: 13px; padding: 14px; font-weight: 650; word-break: break-all; color: var(--brand); margin-bottom: 12px; }
.msg-preview { white-space: pre-wrap; background: #e9f9ec; border-radius: 14px 14px 14px 3px; padding: 12px 14px; font-size: .94rem; margin: 10px 0; overflow-wrap: anywhere; }
.steps { padding-left: 22px; margin: 10px 0; }
.steps li { margin-bottom: 5px; }
#qr { display: inline-block; padding: 14px; background: #fff; margin: 6px 0 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
#qr img, #qr canvas { display: block; max-width: 100%; }

/* ayarlar */
details.set { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
details.set > summary {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700;
}
details.set > summary::-webkit-details-marker { display: none; }
details.set > summary .s-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
details.set > summary .s-t { flex: 1; min-width: 0; }
details.set > summary small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 1px; }
details.set > summary .chev { color: var(--faint); transition: transform .15s; }
details.set[open] > summary .chev { transform: rotate(90deg); }
.set-body { padding: 2px 18px 18px; }
.svc-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.svc-row:first-child { border-top: 0; }
.svc-main { flex: 1; min-width: 0; border: 0; background: none; text-align: left; cursor: pointer; padding: 6px 2px; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.svc-main > span:first-child { flex: 1; min-width: 0; }
.svc-main strong { display: block; font-weight: 650; }
.svc-main small { color: var(--muted); }
.svc-main .price { font-weight: 650; white-space: nowrap; }
.svc-main .price.none { color: var(--faint); font-weight: 500; font-size: .85rem; }
.order-btns { display: flex; flex-direction: column; gap: 3px; }
.order-btns button { width: 30px; height: 24px; border: 0; background: var(--bg); border-radius: 7px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.order-btns button:disabled { opacity: .3; cursor: default; }
.order-btns .i { width: 14px; height: 14px; }

.hour-row { padding: 12px 0; border-top: 1px solid var(--line-2); }
.hour-row:first-child { border-top: 0; }
.hour-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hour-row .toggle { margin: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1 0 130px; }
.hour-times { display: flex; align-items: center; gap: 6px; }
.hour-times input { width: 104px; margin: 0; min-height: 44px; padding: 6px 8px; text-align: center; }
.closed-label { display: none; color: var(--faint); font-weight: 600; font-size: .92rem; }
.hour-row.is-closed .hour-times, .hour-row.is-closed .break-line { display: none; }
.hour-row.is-closed .closed-label { display: block; }
.break-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.hour-row .hour-times { min-width: 0; max-width: 100%; }
.hour-row .hour-times input { flex: 1 1 88px; width: auto; min-width: 0; }
.hour-row [data-break-times] { flex: 1 1 100%; }
.hour-top .hour-times { flex: 1 1 100%; }
@media (min-width: 420px) { .hour-top .hour-times { flex: 0 1 auto; } .hour-row [data-break-times] { flex: 0 1 auto; } }
.break-link { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: .88rem; cursor: pointer; padding: 3px 0; }
.break-line label { margin: 0; font-size: .88rem; color: var(--muted); font-weight: 600; }

.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.tg { position: relative; width: 44px; height: 26px; background: #d9cfca; border-radius: 13px; transition: background .15s; flex: 0 0 auto; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .tg { background: var(--green); }
.toggle input:checked + .tg::after { transform: translateX(18px); }
.toggle input:focus-visible + .tg { box-shadow: 0 0 0 3px var(--tint); }

.closure-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.closure-form input { margin: 0; }
.closure-form .btn { grid-column: 1 / -1; }
.closure { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); overflow-wrap: anywhere; }
.x { border: 0; background: var(--red-l); color: var(--red); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }

/* ---------- müşteri sayfası ---------- */
body.book { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.hero { text-align: center; padding: 30px 18px 22px; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.hero h1 { margin-bottom: 4px; font-size: 1.85rem; overflow-wrap: anywhere; }
.hero .about { color: var(--muted); max-width: 420px; margin: 0 auto 8px; }
.hero-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: rgba(255,255,255,.9);
  box-shadow: 0 1px 3px rgba(60,25,40,.09); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600;
  max-width: 100%; overflow-wrap: anywhere; text-align: left;
}
.pill .i { color: var(--brand); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 2px 0 16px; }
.stepper .st { display: flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 650; color: var(--faint); }
.stepper .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; font-size: .78rem; font-weight: 700; }
.stepper .st.on { color: var(--brand); }
.stepper .st.on .dot { background: var(--brand); }
.stepper .st.done .dot { background: var(--green); }
.stepper .st.done { color: var(--muted); }
.stepper .dot .i { width: 13px; height: 13px; }
.stepper .bar { width: 22px; height: 2px; background: var(--line); border-radius: 2px; }
.step-title { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; margin: 2px 2px 3px; }
.step-sub { color: var(--muted); margin: 0 2px 14px; font-size: .94rem; }

.svc-pick {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px; margin-bottom: 9px;
  border: 1.5px solid transparent; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
  text-align: left; cursor: pointer; transition: border-color .12s, background .12s;
  overflow-wrap: anywhere;
}
.svc-pick .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; transition: background .12s, border-color .12s; }
.svc-pick .box .i { width: 15px; height: 15px; }
.svc-pick .info-c { flex: 1; min-width: 0; }
.svc-pick strong { font-weight: 650; }
.svc-pick small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .86rem; margin-top: 1px; }
.svc-pick .p { font-weight: 700; white-space: nowrap; }
.svc-pick.active { border-color: var(--brand); background: var(--tint-2); }
.svc-pick.active .box { background: var(--brand); border-color: var(--brand); }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(60, 25, 40, .07);
}
.bottom-in { max-width: 568px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.bottom-in .sum { flex: 1; min-width: 0; line-height: 1.25; }
.bottom-in .sum b { display: block; }
.bottom-in .sum small { color: var(--muted); }
.bottom-in .btn { flex: none; padding: 10px 26px; }

.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 11px 14px; margin-bottom: 14px; font-size: .93rem; overflow-wrap: anywhere; }
.picked > div { min-width: 0; }
.picked .btn { flex-shrink: 0; overflow-wrap: normal; }
.picked b { display: block; line-height: 1.3; }
.picked small { color: var(--muted); }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px 12px; margin: 0 -16px 6px; scrollbar-width: none; scroll-behavior: smooth; }
.daystrip::-webkit-scrollbar { display: none; }
.daychip {
  flex: 0 0 auto; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; min-height: 80px; padding: 7px 4px;
  border: 1.5px solid transparent; border-radius: 15px; background: #fff; box-shadow: var(--shadow);
  cursor: pointer;
}
.daychip span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.daychip strong { font-size: 1.3rem; font-weight: 650; line-height: 1.25; }
.daychip em { font-style: normal; font-size: .68rem; color: var(--muted); }
.daychip.active { background: var(--brand); color: #fff; }
.daychip.active span, .daychip.active em { color: #fff; }
.daychip:disabled { background: transparent; box-shadow: none; opacity: .5; cursor: default; }
.slots-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-height: 120px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 650; cursor: pointer; transition: background .1s, border-color .1s;
}
.slot:hover { border-color: var(--brand-m); background: var(--tint-2); }
.slot.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(60, 25, 40, .25); }
.slot-group { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); font-weight: 700; margin-top: 8px; letter-spacing: .03em; }
.slot-group:first-child { margin-top: 0; }
.no-slots { text-align: center; padding: 18px 8px; color: var(--muted); }
.summary { background: var(--tint-2); border-radius: 14px; padding: 4px 14px; margin-bottom: 18px; }
.summary .line { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--tint); font-weight: 600; font-size: .96rem; overflow-wrap: anywhere; }
.summary .line:first-child { border-top: 0; }
.summary .line .i { color: var(--brand); margin-top: 2px; }
.summary .line .v { flex: 1; min-width: 0; }
.summary .edit { border: 0; background: none; color: var(--brand); font-weight: 650; font-size: .85rem; cursor: pointer; padding: 0; white-space: nowrap; }
.consent { font-size: .82rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

.status-hero { text-align: center; padding: 30px 16px 20px; }
.status-ico { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.status-ico .i { width: 36px; height: 36px; }
.status-hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
.status-hero p { margin: 0 auto; max-width: 360px; }
.status-hero.amber .status-ico { background: var(--amber-l); color: var(--amber); }
.status-hero.green .status-ico { background: var(--green-l); color: var(--green-d); }
.status-hero.red .status-ico { background: var(--red-l); color: var(--red); }
.status-hero.plain .status-ico { background: var(--line-2); color: var(--muted); }
.detail { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; }
.detail:last-child { border-bottom: 0; }
.detail span { color: var(--muted); flex: none; }
.detail strong { text-align: right; font-weight: 650; min-width: 0; }
.stack { display: grid; gap: 10px; margin-bottom: 12px; }
.welcome { background: linear-gradient(135deg, var(--tint), var(--tint-2)); }
.mine-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mine-card > .i:first-child { color: var(--brand); }
.mine-card > span { flex: 1; min-width: 0; font-size: .94rem; }
.mine-card > .i:last-child { color: var(--faint); }

/* ---------- açılır pencere & bildirim ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(42, 26, 32, .46);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s;
}
.sheet {
  position: relative;
  width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  animation: up .22s cubic-bezier(.2, .8, .3, 1);
  overflow-wrap: anywhere;
}
.sheet h2 { margin-top: 6px; }
.sheet > h2:first-of-type { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; padding-right: 30px; }
.grabber { display: block; width: 42px; height: 4px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
@media (min-width: 620px) {
  .overlay { align-items: center; padding: 20px; }
  .sheet { border-radius: 24px; padding-top: 20px; }
  .grabber { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 13px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-l); text-align: center;
  animation: toast-in .2s ease-out;
}
@keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* geniş ekranda panelde yan menü */
@media (min-width: 960px) {
  body.panel { padding: 0 0 40px 96px; }
  .tabbar { top: 0; right: auto; width: 96px; flex-direction: column; justify-content: flex-start; gap: 4px; border-top: 0; border-right: 1px solid var(--line); padding: 72px 6px 12px; }
  .tabbar button { flex: none; max-width: none; padding: 12px 2px; border-radius: 12px; }
  .tabbar button.active { background: var(--tint-2); }
  .toast { bottom: 40px; }
}
