/* SalonSync — ana sayfa açılış görseli: "randevudan kasaya" akışı.
   Tek randevu üç yerde görünür: müşterinin telefonu → salonun takvimi → kasa fişi.
   Tüm ölçüler cqi (sahne genişliğinin %'si): sahne bir görsel gibi orantılı ölçeklenir.
   Renkler panelin gerçek değerleri (app/globals.css --ss-*). Mercan = o tek randevu. */
.ss-flow {
    --c-canvas: #FBF9F8; --c-surface: #FFFFFF; --c-sunken: #F5F1EE; --c-line: #ECE6E2;
    --c-ink: #151515; --c-ink2: #5C5651; --c-ink3: #736C66;
    --c-coral: #FF6036; --c-coral-strong: #C7390F; --c-coral-wash: #FFF1EB;
    --c-ok: #17734D; --c-ok-wash: #E6F4EC;
    container-type: inline-size;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-width: 320px;
    max-width: 630px;
    aspect-ratio: 100 / 97;
    margin-block: 20px;
    font-family: 'Inter', sans-serif;
    color: var(--c-ink);
    text-align: left;
    line-height: 1.25;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
.ss-flow * { box-sizing: border-box; }
.ss-flow p { margin: 0; }

/* ---- 1 · müşterinin telefonu: online randevu sayfası ---- */
.ss-flow__phone {
    position: absolute; left: 2cqi; top: 0; width: 50cqi; height: 96cqi;
    padding: 1.5cqi; border-radius: 8cqi; background: var(--c-ink);
    box-shadow: 0 5cqi 10cqi -4cqi rgba(74, 32, 12, .38);
}
.ss-flow__screen {
    position: relative; height: 100%; overflow: hidden;
    display: flex; flex-direction: column; gap: 2.6cqi;
    padding: 6.4cqi 3.4cqi 3.4cqi; border-radius: 6.6cqi; background: var(--c-canvas);
}
.ss-flow__screen::before {
    content: ""; position: absolute; top: 1.7cqi; left: 50%; translate: -50% 0;
    width: 12cqi; height: 2.4cqi; border-radius: 2cqi; background: var(--c-ink);
}
.ss-flow__salon { display: flex; align-items: center; gap: 2cqi; }
.ss-flow__avatar {
    flex: none; display: grid; place-items: center; width: 7.4cqi; height: 7.4cqi; border-radius: 50%;
    background: var(--c-ink); color: #fff; font-size: 3.3cqi; font-weight: 700;
}
.ss-flow__salon-name { font-size: 3.3cqi; font-weight: 700; }
.ss-flow__salon-sub { font-size: 2.5cqi; color: var(--c-ink3); }
.ss-flow__service {
    padding: 2.6cqi; border: 1px solid var(--c-line); border-radius: 2.6cqi; background: var(--c-surface);
}
.ss-flow__service-name { font-size: 3.1cqi; font-weight: 600; white-space: nowrap; }
.ss-flow__service-meta {
    display: flex; justify-content: space-between; margin-top: 1cqi;
    font-size: 2.6cqi; color: var(--c-ink2);
}
.ss-flow__service-meta b { color: var(--c-ink); font-weight: 700; }
.ss-flow__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1cqi; }
.ss-flow__day {
    display: grid; justify-items: center; gap: .3cqi; padding: 1.3cqi 0; border-radius: 2cqi;
    font-size: 2.2cqi; color: var(--c-ink3);
}
.ss-flow__day b { font-size: 3cqi; font-weight: 600; color: var(--c-ink); }
.ss-flow__day.is-on { background: var(--c-ink); color: #D9D2CC; }
.ss-flow__day.is-on b { color: #fff; }
.ss-flow__times { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqi; }
.ss-flow__time {
    display: grid; place-items: center; height: 7.2cqi; border: 1px solid var(--c-line); border-radius: 2cqi;
    background: var(--c-surface); font-size: 2.8cqi; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ss-flow__time.is-on { border-color: var(--c-coral); background: var(--c-coral); color: #fff; }
.ss-flow__confirm {
    display: grid; place-items: center; margin-top: auto; height: 9.4cqi; border-radius: 2.6cqi;
    background: var(--c-coral); color: #fff; font-size: 3cqi; font-weight: 600; white-space: nowrap;
}

/* ---- 2 · salonun takvimi: randevu yerine düşer ---- */
.ss-flow__cal {
    position: absolute; z-index: 2; left: 48cqi; top: 19cqi; width: 50cqi;
    border: 1px solid var(--c-line); border-radius: 3.4cqi; background: var(--c-surface);
    box-shadow: 0 4cqi 9cqi -4cqi rgba(74, 32, 12, .32);
}
.ss-flow__cal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2.6cqi 3cqi; border-bottom: 1px solid var(--c-line);
}
.ss-flow__cal-day { font-size: 3.1cqi; font-weight: 700; }
.ss-flow__staff { display: flex; align-items: center; gap: 1.3cqi; font-size: 2.6cqi; color: var(--c-ink2); }
.ss-flow__staff i {
    display: grid; place-items: center; width: 5cqi; height: 5cqi; border-radius: 50%;
    background: var(--c-sunken); color: var(--c-ink); font-size: 2.4cqi; font-weight: 700; font-style: normal;
}
.ss-flow__row {
    display: grid; grid-template-columns: 9cqi 1fr; height: 11.6cqi; padding: 1cqi 1.6cqi 1cqi 0;
}
.ss-flow__row + .ss-flow__row { border-top: 1px solid var(--c-line); }
.ss-flow__hour {
    padding: .4cqi 0 0 2.4cqi; font-size: 2.3cqi; color: var(--c-ink3); font-variant-numeric: tabular-nums;
}
.ss-flow__slot {
    display: flex; flex-direction: column; justify-content: center; gap: .5cqi; min-width: 0;
    padding: 0 2cqi; border-radius: 1.8cqi; background: var(--c-sunken);
}
.ss-flow__slot-name { display: flex; align-items: center; justify-content: space-between; gap: 1cqi; font-size: 2.8cqi; font-weight: 600; white-space: nowrap; }
.ss-flow__slot-svc { font-size: 2.4cqi; color: var(--c-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-flow__slot.is-new { background: var(--c-coral-wash); box-shadow: inset .9cqi 0 0 var(--c-coral); padding-left: 2.8cqi; }
.ss-flow__slot.is-new .ss-flow__slot-name { font-weight: 700; }
.ss-flow__pill {
    padding: .5cqi 1.5cqi; border-radius: 3cqi; background: var(--c-surface);
    color: var(--c-coral-strong); font-size: 2.1cqi; font-weight: 600;
}

/* ---- 3 · kasa: fiş takvimin altından çıkar ---- */
.ss-flow__receipt-wrap {
    position: absolute; z-index: 1; left: 53cqi; top: 60cqi; width: 42cqi;
    filter: drop-shadow(0 3cqi 4cqi rgba(74, 32, 12, .22));
}
.ss-flow__receipt {
    --z: 1.5cqi;
    padding: 8.4cqi 3.4cqi calc(3cqi + var(--z)); background: var(--c-surface);
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x,
                  linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x,
                  linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat;
}
.ss-flow__paid { display: flex; align-items: center; gap: 1.6cqi; font-size: 2.9cqi; font-weight: 700; white-space: nowrap; }
.ss-flow__check {
    flex: none; display: grid; place-items: center; width: 5.6cqi; height: 5.6cqi; border-radius: 50%;
    background: var(--c-ok-wash); color: var(--c-ok);
}
.ss-flow__check svg { width: 3.2cqi; height: 3.2cqi; }
.ss-flow__rule { margin: 2.4cqi 0; border-top: 1px dashed #CFC5BE; }
.ss-flow__line { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqi; font-size: 2.5cqi; color: var(--c-ink2); white-space: nowrap; }
.ss-flow__line + .ss-flow__line { margin-top: 1.4cqi; }
.ss-flow__total { color: var(--c-coral-strong); font-size: 4cqi; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- tek açılış sekansı: seç → takvime düş → fiş çık ---- */
@media (prefers-reduced-motion: no-preference) {
    .ss-flow__time.is-on { animation: ss-flow-pick .35s .9s both; }
    .ss-flow__confirm { animation: ss-flow-press .3s 1.35s both; }
    .ss-flow__slot.is-new { animation: ss-flow-land .5s 1.75s cubic-bezier(.2, .9, .3, 1.2) both; }
    .ss-flow__receipt-wrap { animation: ss-flow-print .7s 2.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes ss-flow-pick { from { border-color: var(--c-line); background: var(--c-surface); color: var(--c-ink); } }
@keyframes ss-flow-press { 50% { scale: .96; } }
@keyframes ss-flow-land { from { opacity: 0; translate: -5cqi 0; } }
@keyframes ss-flow-print { from { opacity: 0; translate: 0 -22cqi; } }
