/* Müşteri randevu sayfası */
.bk { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* Kapak */
.hero {
  position: relative; padding: calc(22px + env(safe-area-inset-top)) 16px 20px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 60%, #fff 0%) 0%, transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 92%, #000) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%);
  border-radius: 0 0 28px 28px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .07);
}
.hero .logo { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 22px; font-weight: 800; backdrop-filter: blur(6px); }
.hero h1 { font-size: 24px; font-weight: 800; margin-top: 14px; }
.hero .addr { opacity: .85; font-size: 14px; margin-top: 4px; }
.hero .status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .14); padding: 5px 10px; border-radius: 999px; }
.hero .status .dot { background: #4ade80; }
.hero .status.closed .dot { background: #fca5a5; }
.hero .acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.hero .act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; border: 0; cursor: pointer; }
.hero .act svg { width: 20px; height: 20px; }
.hero .act:active { background: rgba(255, 255, 255, .22); }

.sec { padding: 0 16px; margin-top: 20px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-title h2 { font-size: 18px; font-weight: 800; }

/* Adım göstergesi */
.steps { display: flex; gap: 6px; padding: 16px 16px 0; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--brand); }
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 0; }
.topbar h2 { font-size: 17px; font-weight: 800; }
.back { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }
.back svg { width: 20px; height: 20px; }

/* Hızlı tekrar kartı */
.again { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.again .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.again .ico svg { width: 20px; height: 20px; }

/* Hizmet listesi */
.svc { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; width: 100%; text-align: left; }
.svc + .svc { margin-top: 10px; }
.svc .nm { font-weight: 700; }
.svc .meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.svc .pr { font-weight: 800; white-space: nowrap; }
.svc .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: .15s; }
.svc .box svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.svc.on { border-color: var(--brand); background: var(--brand-soft); }
.svc.on .box { background: var(--brand); border-color: var(--brand); }
.svc.on .box svg { opacity: 1; }

/* Personel */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stf { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; }
.stf .avatar { width: 58px; height: 58px; font-size: 20px; }
.stf .nm { font-weight: 700; }
.stf .tt { font-size: 12px; color: var(--ink-3); }
.stf.on { border-color: var(--brand); background: var(--brand-soft); }
.stf.any .avatar { background: var(--ink); color: var(--bg); }
.stf.any { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; }
.stf.any .avatar { width: 48px; height: 48px; }

/* Tarih şeridi */
.dates { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 62px; scroll-snap-align: start; padding: 10px 0 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: center; cursor: pointer; }
.date .dw { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.date .dn { font-size: 20px; font-weight: 800; margin: 2px 0; }
.date .dc { height: 4px; width: 22px; margin: 4px auto 0; border-radius: 2px; background: var(--ok); }
.date .dc.few { background: var(--warn); }
.date.off { opacity: .4; cursor: default; }
.date.off .dc { background: transparent; }
.date.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.date.on .dw { color: inherit; opacity: .85; }
.month-label { font-size: 13px; font-weight: 700; color: var(--ink-3); margin: 0 0 8px; text-transform: capitalize; }

.slot-group h3 { font-size: 13px; font-weight: 700; color: var(--ink-3); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 360px) { .slots { grid-template-columns: repeat(3, 1fr); } }

.first-free { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); cursor: pointer; width: 100%; text-align: left; margin-bottom: 14px; }
.first-free svg { width: 20px; height: 20px; color: var(--brand); }

/* Özet */
.summary .li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary .li:last-child { border-bottom: 0; }
.summary .li span:first-child { color: var(--ink-3); }
.summary .li span:last-child { font-weight: 700; text-align: right; }
.summary .total span:last-child { font-size: 18px; color: var(--brand); }

/* Alt sabit çubuk */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s;
}
.bar.show { transform: none; }
.bar .in { max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar .info { flex: 1; min-width: 0; }
.bar .info b { display: block; font-size: 16px; }
.bar .info span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bar .btn { min-width: 140px; }

/* Onay ekranı */
.done-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin: 36px auto 16px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.done-ico svg { width: 42px; height: 42px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .4s .25s forwards; }
.done-ico.cancel { background: var(--surface-2); color: var(--ink-3); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ticket .top { padding: 18px; background: var(--brand-soft); text-align: center; }
.ticket .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.ticket .body { padding: 6px 18px 12px; }
.acts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hours-list .h { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.hours-list .h:last-child { border: 0; }
.hours-list .h.today { font-weight: 800; color: var(--brand); }
.foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 28px 16px 8px; }
.foot a { color: inherit; font-weight: 700; text-decoration: none; }

.fade-in { animation: fin .25s ease; }
@keyframes fin { from { opacity: 0; transform: translateY(6px); } }
