/* ==========================================================================
   DARK RANDEVU — müşterinin randevu sayfası
   Fikir: bilet ve sefer tarifesi. İşletmenin rengi sayfanın başını doldurur,
   hizmetler tarife satırları gibi dizilir, seçimler üstteki şeritte birikir,
   sonunda damgalı ve koparma çizgili bir randevu bileti çıkar.
   Yazı: Bricolage Grotesque (başlık ve metin) + JetBrains Mono (saat, süre, numara).
   ========================================================================== */
:root {
  --accent: #b98a1e; --on: #fff;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: 20px;
}
body[data-theme="krem"], body:not([data-theme]) {
  --bg: #f3f2ed; --card: #fff; --ink: #131312; --ink-2: #45443f; --mute: #86847b;
  --line: rgba(19, 19, 18, .12); --hatch: rgba(19, 19, 18, .07);
  --acc: color-mix(in srgb, var(--accent) 88%, #000); --shadow: 0 1px 0 rgba(19, 19, 18, .04), 0 14px 40px -18px rgba(19, 19, 18, .28);
}
body[data-theme="gece"] {
  --bg: #0d0d0e; --card: #18181a; --ink: #f4f3ee; --ink-2: #c5c3bb; --mute: #8a8880;
  --line: rgba(244, 243, 238, .13); --hatch: rgba(244, 243, 238, .07);
  --acc: color-mix(in srgb, var(--accent) 62%, #fff); --shadow: 0 0 0 1px var(--line), 0 20px 50px -20px #000;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 450 15.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, dl, dd, dt { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
::selection { background: var(--accent); color: var(--on); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.lbl { font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- marka alanı: işletmenin rengi, üzerinde tek renge indirilmiş kapak fotoğrafı ---------- */
.brand { position: relative; isolation: isolate; overflow: hidden; background: var(--accent); color: var(--on); padding: 18px var(--pad) 26px; min-height: min(62vh, 470px); display: flex; flex-direction: column; }
.brand__ph { position: absolute; inset: 0; z-index: -1; }
.brand__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: luminosity; opacity: .55; animation: drift 18s var(--ease) both; }
.brand__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--accent) 88%, #000) 100%); }
@keyframes drift { from { transform: scale(1.14); } }
.brand__top { display: flex; align-items: center; gap: 10px; font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--on); flex: none; }
.brand__live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 6px; border: 1px solid color-mix(in srgb, var(--on) 45%, transparent); border-radius: 99px; }
.brand__live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.brand h1 { margin-top: auto; padding-top: 60px; font: 700 clamp(44px, 13.5vw, 84px)/.9 var(--sans); letter-spacing: -.045em; text-wrap: balance; animation: up .9s var(--ease) both; }
.brand__tag { margin-top: 14px; max-width: 30ch; font-size: 16.5px; line-height: 1.4; opacity: .88; animation: up .9s .08s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
.notice { margin: 12px var(--pad) 0; padding: 10px 14px; border: 1px dashed var(--acc); border-radius: 12px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- şerit: adımlar ve o ana kadar seçilenler (canlı bilet koçanı) ---------- */
.rail { position: sticky; top: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.rail__seg { position: relative; display: grid; gap: 3px; align-content: start; padding: 11px 8px 11px 12px; min-width: 0; border-left: 1px dashed var(--line); text-align: left; }
.rail__seg:first-child { border-left: 0; padding-left: var(--pad); }
.rail__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.rail__seg.is-done::before, .rail__seg.is-on::before { transform: scaleX(1); }
.rail__seg.is-done::before { opacity: .35; }
.rail__seg .lbl { white-space: nowrap; overflow: hidden; letter-spacing: .08em; }
.rail__seg b { font: 650 13px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail__seg[disabled] { cursor: default; }
.rail__seg[disabled] .lbl, .rail__seg[disabled] b { opacity: .38; }
.rail__seg.is-on .lbl { color: var(--acc); }

/* ---------- adım ---------- */
.pane { padding: 30px var(--pad) 46px; animation: up .55s var(--ease) both; }
.pane__q { font: 700 clamp(31px, 9vw, 44px)/1 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.pane__hint { margin-top: 9px; color: var(--mute); font-size: 14.5px; max-width: 44ch; }
.pane__body { margin-top: 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* hizmetler: tarife satırları */
.board { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.svc { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.board > li:last-child .svc { border-bottom: 0; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); transform: scaleY(0); transition: transform .3s var(--ease); }
.svc:active, .svc.is-on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.svc.is-on::before { transform: scaleY(1); }
.svc__dur { display: grid; justify-items: center; gap: 1px; border-right: 1px dashed var(--line); padding: 3px 0; }
.svc__dur b { font: 600 22px/1 var(--mono); letter-spacing: -.04em; }
.svc__dur span { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.svc__name { display: block; font-weight: 650; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
.svc__desc { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.svc__price { font: 600 15px/1 var(--mono); white-space: nowrap; letter-spacing: -.02em; }
.svc__price i { font-style: normal; font-size: .8em; margin-left: 3px; color: var(--mute); }
.svc__go { color: var(--mute); display: grid; }

/* kişiler */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.person { display: grid; gap: 12px; align-content: space-between; min-height: 148px; padding: 14px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .25s, transform .3s var(--ease); }
.person:active { transform: scale(.97); }
.person.is-on { border-color: var(--acc); }
.person__av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--accent); color: var(--on); font: 700 22px/1 var(--sans); }
.person__av--any { background: none; border: 1.5px dashed var(--mute); color: var(--mute); font: 500 20px/1 var(--mono); }
.person b { display: block; font-weight: 650; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.person small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mute); line-height: 1.35; }

/* günler: takvim yaprakları */
.month { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.month b { font: 650 15px/1 var(--sans); }
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 14px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: var(--pad); }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 60px; height: 84px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); display: grid; grid-template-rows: 26px 1fr; overflow: hidden; scroll-snap-align: start; transition: transform .3s var(--ease), background-color .25s, color .25s; }
.day span { display: grid; place-items: center; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); border-bottom: 1px dashed var(--line); }
.day b { display: grid; place-items: center; font: 600 25px/1 var(--mono); letter-spacing: -.05em; }
.day.is-on { background: var(--accent); color: var(--on); transform: translateY(-4px); }
.day.is-on span { color: inherit; border-color: color-mix(in srgb, var(--on) 40%, transparent); }
.day[disabled] { box-shadow: none; cursor: default; background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--hatch) 5px 6px); color: var(--mute); }
.day[disabled] b { opacity: .5; }

/* saatler */
.slots { margin-top: 12px; min-height: 96px; }
.slots__part { margin-top: 20px; }
.slots__part h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { height: 46px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font: 600 15.5px/1 var(--mono); letter-spacing: -.02em; text-align: center; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.slot:active { transform: scale(.94); }
.slot.is-on { background: var(--accent); color: var(--on); }
.slots__note { padding: 30px 0 8px; color: var(--mute); font-size: 15px; }
.dots3 { display: inline-flex; gap: 5px; }
.dots3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: live 1s infinite; }
.dots3 i:nth-child(2) { animation-delay: .2s; } .dots3 i:nth-child(3) { animation-delay: .4s; }

/* bilgiler */
.form { display: grid; gap: 14px; }
.fld { display: grid; gap: 7px; }
.fld input, .fld textarea { width: 100%; background: var(--card); border: 0; box-shadow: var(--shadow); border-radius: 14px; padding: 15px 16px; font-size: 16.5px; font-weight: 500; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline-color: var(--acc); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--mute); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; width: 100%; padding: 0 12px 0 24px; border-radius: 16px; background: var(--accent); color: var(--on); font-weight: 700; font-size: 17px; letter-spacing: -.01em; transition: transform .25s var(--ease), opacity .2s; }
.cta span { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--on) 18%, transparent); transition: transform .3s var(--ease); }
.cta:active { transform: scale(.98); }
.cta:hover span { transform: translateX(3px); }
.cta[disabled] { opacity: .55; }
.msg { color: #c5321f; font-weight: 600; font-size: 14.5px; min-height: 22px; }
body[data-theme="gece"] .msg { color: #ff8a7a; }
.fine { font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.empty { padding: 60px var(--pad); color: var(--mute); font-size: 17px; }

/* ---------- bilet ---------- */
.done { padding: 30px var(--pad) 46px; }
.ticket { position: relative; max-width: 420px; margin: 0 auto; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); animation: print 1s var(--ease) both; transform-origin: top center; }
@keyframes print { from { opacity: 0; transform: translateY(-26px) rotate(-1.5deg); } }
.ticket__top { position: relative; background: var(--accent); color: var(--on); border-radius: 22px 22px 0 0; padding: 18px 20px 22px; min-height: 118px; overflow: hidden; }
.ticket__top .lbl { color: inherit; opacity: .75; }
.ticket__top h2 { margin-top: 8px; font: 700 25px/1 var(--sans); letter-spacing: -.03em; max-width: 12ch; text-wrap: balance; }
.stamp { position: absolute; right: 14px; top: 16px; padding: 8px 11px 7px; border: 2px solid currentColor; border-radius: 9px; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(7deg); animation: thunk .5s .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.stamp--wait { border-style: dashed; }
@keyframes thunk { from { opacity: 0; transform: rotate(7deg) scale(1.9); } }
.ticket__body { padding: 20px 20px 18px; }
.ticket__when { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ticket__date { font: 650 18px/1.2 var(--sans); letter-spacing: -.015em; }
.ticket__time { font: 600 56px/.86 var(--mono); letter-spacing: -.07em; }
.ticket__grid { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ticket__grid dd { margin-top: 4px; font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.ticket__grid .wide { grid-column: 1 / -1; }
.tear { position: relative; height: 22px; }
.tear::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed var(--line); }
.tear i { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tear i:first-child { left: -11px; } .tear i:last-child { right: -11px; }
body[data-theme="gece"] .tear i { box-shadow: inset 0 0 0 1px var(--line); }
.ticket__stub { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 20px; }
.bars { display: flex; align-items: stretch; gap: 2px; height: 38px; flex: 1; max-width: 200px; }
.bars i { background: var(--ink); border-radius: 1px; }
.ticket__no { text-align: right; }
.ticket__no b { display: block; font: 600 15px/1.3 var(--mono); letter-spacing: .08em; }
.ticket.is-off .ticket__top { background: var(--mute); }
.ticket.is-off .ticket__time, .ticket.is-off .ticket__date { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .45; }
.ticket.is-off .bars { opacity: .25; }
.done__note { max-width: 420px; margin: 20px auto 0; color: var(--ink-2); font-size: 15px; }
.done__acts { max-width: 420px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ghost { height: 50px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-weight: 650; font-size: 14.5px; display: grid; place-items: center; text-decoration: none; text-align: center; }
.ghost--wide { grid-column: 1 / -1; }
.ghost--quiet { background: none; box-shadow: none; color: var(--mute); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; height: 42px; }

/* ---------- işletme bilgileri ---------- */
.info { padding: 34px var(--pad) calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 26px; }
.info__about { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; max-width: 40ch; }
.info__cols { display: grid; gap: 26px; }
.hours { margin-top: 10px; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font: 500 13.5px/1.3 var(--mono); letter-spacing: -.01em; color: var(--ink-2); }
.hours div.is-today { color: var(--ink); font-weight: 700; }
.hours div.is-today span:first-child::after { content: " · bugün"; color: var(--acc); }
.hours div.is-closed span:last-child { color: var(--mute); }
.contact { margin-top: 10px; display: grid; gap: 8px; }
.contact a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.contact a small { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); flex: none; }
.credit { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--mute); }
.credit a { color: var(--ink-2); font-weight: 700; text-decoration: none; }

/* ---------- sayfa yok / kapalı ---------- */
.lost { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; gap: 14px; padding: 40px 28px; max-width: 520px; margin: 0 auto; }
.lost__mark { width: 46px; height: 46px; border-radius: 12px; background: repeating-linear-gradient(-45deg, transparent 0 5px, var(--ink) 5px 7px); }
.lost h1 { font: 700 40px/1 var(--sans); letter-spacing: -.04em; }
.lost p { color: var(--mute); font-size: 16px; max-width: 34ch; }

/* ---------- geniş ekran: solda marka, sağda akış ---------- */
@media (min-width: 940px) {
  .app { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); min-height: 100vh; }
  .brand { position: sticky; top: 0; height: 100vh; min-height: 0; padding: 32px 40px 44px; }
  .brand h1 { font-size: clamp(60px, 6.4vw, 104px); }
  .brand__tag { font-size: 19px; }
  .flow { --pad: clamp(28px, 5vw, 72px); max-width: 760px; }
  .pane { padding-top: 44px; min-height: 56vh; }
  .info__cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
