/* tirasol – telefona göre tasarlanmış, bağımlılıksız küçük stil dosyası */
:root {
  --ink: #1f2328;
  --ink-2: #57606a;
  --line: #e3ddd5;
  --bg: #f6f3ef;
  --card: #ffffff;
  --accent: #b4472e;
  --accent-ink: #ffffff;
  --accent-soft: #f6e4de;
  --ok: #1f7a4d;
  --ok-soft: #e1f2e8;
  --err: #b42318;
  --err-soft: #fde8e6;
  --radius: 14px;
  --tap: 48px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; font-size: 16px; line-height: 1.45; }
h1 { font-size: 1.45rem; margin: 0 0 .35rem; }
h2 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* Üst çubuk */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top));
  background: var(--ink); color: #fff;
}
.brand { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.brand b { color: #f0a58f; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar form { margin: 0; }
.link-btn { background: none; border: 0; color: #cfd6dd; font: inherit; padding: .4rem 0; cursor: pointer; }
.chip { color: #fff; text-decoration: none; background: rgba(255,255,255,.12); padding: .3rem .75rem; border-radius: 999px; font-size: .9rem; }

/* Sayfa */
.page { max-width: 560px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.page.wide, body.wide .page { max-width: 820px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.card.narrow { max-width: 420px; margin: 2rem auto; }

/* Form */
.field { display: block; margin-bottom: .9rem; }
.field > span:first-child { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field .hint { display: block; color: var(--ink-2); font-size: .85rem; margin-top: .25rem; font-weight: 400; }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=time], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .8rem;
  font: inherit; color: inherit; background: #fff;
  border: 1px solid #cfc6bb; border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field-error, .validation-summary-errors { color: var(--err); font-size: .875rem; }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.input-validation-error { border-color: var(--err) !important; }
.check { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap); padding: .6rem 1.1rem;
  font: inherit; font-weight: 600; text-decoration: none;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--err); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: .35rem .8rem; font-size: .9rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

/* Altta sabit ana buton (kurulum adımları) */
.sticky-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: .75rem 1rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom));
  background: rgba(246,243,239,.96); border-top: 1px solid var(--line);
}
.sticky-actions .inner { max-width: 560px; margin: 0 auto; display: flex; gap: .6rem; }
.sticky-actions .btn { flex: 1; }

/* Uyarılar */
.alert { padding: .75rem .9rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-info { background: var(--accent-soft); color: #7a2e1d; }

/* Kurulum ilerlemesi */
.steps { display: flex; gap: .3rem; margin: .25rem 0 1rem; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps span.done { background: var(--accent); }
.step-label { color: var(--ink-2); font-size: .85rem; margin-bottom: .25rem; }

/* Listeler */
.rows { display: flex; flex-direction: column; gap: .5rem; }
.row { display: flex; gap: .5rem; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.row input[type=number] { width: 64px; flex: none; padding-left: .5rem; padding-right: .4rem; text-align: center; }
.row .unit { color: var(--ink-2); font-size: .85rem; flex: none; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--ink-2); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.badge { display: inline-block; font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: var(--line); color: var(--ink-2); font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--accent-soft); color: var(--accent); }

/* Menü kartları */
.menu { display: grid; gap: .6rem; }
.menu a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu a::after { content: "›"; color: var(--ink-2); font-size: 1.4rem; }

/* Çalışma saatleri */
.day { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.day:last-child { border-bottom: 0; }
.day-times { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .4rem; }
.day-times label { font-size: .8rem; color: var(--ink-2); }
.day.closed .day-times { display: none; }

/* Link ve QR */
.link-box { display: flex; gap: .5rem; align-items: center; background: var(--bg); border: 1px dashed #cfc6bb; border-radius: 10px; padding: .6rem .75rem; word-break: break-all; font-weight: 600; }
.qr { display: flex; justify-content: center; padding: 1rem; background: #fff; }
.qr svg { width: 220px; height: 220px; }
.staff-pick { display: grid; gap: .6rem; }
.staff-pick button { min-height: 64px; font-size: 1.15rem; }

/* ---------------- Müşteri randevu sayfası ---------------- */
.shop-head { margin: .25rem 0 1rem; }
.shop-head h1 { margin-bottom: .1rem; }
.greet { font-size: 1.1rem; margin: 0; }
.section-title { font-size: 1rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 1.25rem 0 .5rem; }
.label { font-weight: 700; margin-bottom: .6rem; }
.center { text-align: center; }

.svc-list { display: flex; flex-direction: column; gap: .4rem; }
.svc { display: flex; align-items: center; gap: .75rem; min-height: 54px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.svc input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.svc-name { flex: 1; font-weight: 600; }
.svc-min { color: var(--ink-2); font-size: .875rem; }
.svc:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; background: #fff; }
.chip-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

.summary { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.summary a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.summary a:last-child { border-bottom: 0; }
.summary span { color: var(--ink-2); font-size: .9rem; }
.summary strong { text-align: right; }
.summary a::after { content: "değiştir"; color: var(--accent); font-size: .8rem; align-self: center; margin-left: .25rem; }

.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day-chip { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; min-height: 64px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.day-chip span { font-size: .75rem; color: var(--ink-2); text-transform: capitalize; }
.day-chip strong { font-size: .95rem; }
.day-chip.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-chip.selected span { color: #cfd6dd; }
.day-chip.disabled { opacity: .4; }

.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.time { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.time:active { background: var(--accent-soft); }
.time.suggested { border: 2px solid var(--accent); background: var(--accent-soft); }

.appt { border-left: 5px solid var(--line); }
.appt.ok { border-left-color: var(--ok); }
.appt.wait { border-left-color: #d29922; }
.appt.bad { border-left-color: var(--err); opacity: .85; }
.appt-status { font-weight: 700; margin-bottom: .2rem; }
.appt-when { font-size: 1.1rem; font-weight: 600; text-transform: capitalize; }
.success-card { border-color: var(--ok); background: var(--ok-soft); }
.success-card h2 { margin-top: 0; color: var(--ok); }

/* ---------------- Berber paneli ---------------- */
.live-banner, .live-toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  top: calc(env(safe-area-inset-top) + 64px);
  padding: .7rem 1.1rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700;
  background: var(--ink); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 92vw;
}
.live-toast { animation: fadeout 5s forwards; }
@keyframes fadeout { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

.daynav { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 1rem; }
.daynav .title { flex: 1; text-align: center; font-weight: 700; text-transform: capitalize; }
.daynav a { min-width: 44px; }
.filter { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1rem; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter a { flex: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.filter a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.req { border-left: 5px solid #d29922; }
.req-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.req-when { font-size: 1.15rem; font-weight: 700; text-transform: capitalize; }
.req-who { font-size: 1.05rem; font-weight: 600; margin: .15rem 0; }
.req-note { background: var(--bg); border-radius: 8px; padding: .4rem .6rem; margin: .4rem 0; font-size: .92rem; }
.req-actions { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.req-actions form { margin: 0; display: contents; }
.req-actions .btn { width: 100%; padding-left: .4rem; padding-right: .4rem; }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li a, .agenda li > div { display: grid; grid-template-columns: 64px 1fr auto; gap: .6rem; align-items: center; padding: .7rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.agenda li:last-child a, .agenda li:last-child > div { border-bottom: 0; }
.agenda .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda .t small { display: block; font-weight: 400; color: var(--ink-2); font-size: .78rem; }
.agenda .who { font-weight: 600; }
.agenda .what { color: var(--ink-2); font-size: .88rem; }
.agenda .block .who { color: var(--ink-2); font-style: italic; }
.agenda .past { opacity: .55; }
.agenda .now a { background: var(--accent-soft); border-radius: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.Pending { background: #d29922; } .dot.Confirmed { background: var(--ok); } .dot.Completed { background: #8c959f; }
.dot.NoShow { background: var(--err); } .dot.Block { background: #cfc6bb; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.quick .btn { min-height: 56px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; }
.seg { display: flex; gap: .4rem; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 64px; }

table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.simple th { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
