/* DL-EKLENTI randevu: ziyaretçi randevu ekranı. Renkler bio sayfanın temasından (--rd-*, Renk::degiskenler). Yazı tipi sayfadan.
   Tek köşe ölçeği: kart --rd-r (sayfanın düğme köşesi), öğe 12px, hap 999px. Hareket: yalnız opacity ve transform, azaltılmış harekette yok. */
.rd { --rd-g: 180ms cubic-bezier(.2, .7, .2, 1); color: var(--rd-baslik); text-align: left; margin: 4px 0 8px; position: relative; font-variant-numeric: tabular-nums;
      background: var(--rd-kap); border: 1px solid var(--rd-cizgi); border-radius: calc(var(--rd-r) + 6px); padding: 18px 16px 16px; box-shadow: var(--rd-golge);
      -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* sayfa zemini görsel ya da desen olabilir: bütün bölme tek kartın içinde, okunurluk zeminden bağımsız */
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
/* :where ile özgüllük sıfır: .rd-btn gibi sınıfların yazı rengini ezmesin (11.11 hata: dolu düğmede yazı zeminle aynı renkteydi) */
:where(.rd) button { font: inherit; color: inherit; }
.rd-ust { margin: 0 0 14px; }
.rd-baslik { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 0; line-height: 1.25; color: var(--rd-baslik); }
.rd-aciklama { font-size: 14px; line-height: 1.5; margin: 6px 0 0; color: var(--rd-metin); opacity: .86; }
.rd-bilgi-hap { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 0 0; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--rd-yuzey); color: var(--rd-metin); text-decoration: none !important; border: 1px solid var(--rd-cizgi); }
.rd-bilgi-hap svg { width: 14px; height: 14px; flex: none; }

/* iskelet (ilk boyama) */
.rd-iskelet { display: flex; flex-direction: column; gap: 10px; }
.rd-iskelet span { height: 64px; border-radius: 14px; background: var(--rd-yuzey); position: relative; overflow: hidden; }
.rd-iskelet span::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--rd-yuzey-2), transparent); animation: rd-isil 1.4s infinite; }
@keyframes rd-isil { to { transform: translateX(100%); } }

/* adımlar */
.rd-adimlar { list-style: none; margin: 0 -16px; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rd-cizgi); }
.rd-adim { border-bottom: 1px solid var(--rd-cizgi); }
.rd-adim:last-child { border-bottom: 0; }
.rd-adim.is-kilitli { opacity: .5; }
.rd-adim-bas { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: left; cursor: pointer; min-height: 58px; }
.rd-adim.is-kilitli .rd-adim-bas { cursor: default; }
.rd-adim-bas:focus-visible { outline: 2px solid var(--rd-baslik); outline-offset: -2px; border-radius: inherit; }
.rd-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; background: var(--rd-yuzey-2); color: var(--rd-baslik); transition: background var(--rd-g), color var(--rd-g); }
.rd-adim.is-acik .rd-no { background: var(--rd-vurgu); color: var(--rd-vurgu-yazi); }
.rd-adim.is-tamam .rd-no { background: var(--rd-vurgu); color: var(--rd-vurgu-yazi); }
.rd-no svg { width: 14px; height: 14px; }
.rd-adim-yazi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-adim-ad { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.rd-adim-ozet { font-size: 13px; color: var(--rd-metin); opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-degistir { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .85; flex: none; }
.rd-adim.is-acik .rd-degistir, .rd-adim.is-kilitli .rd-degistir, .rd-adim:not(.is-tamam) .rd-degistir { display: none; }
.rd-adim-ic { padding: 0 16px 18px; animation: rd-belir 220ms var(--rd-g, ease) both; }
.rd-adim:not(.is-acik) .rd-adim-ic { display: none; }
@keyframes rd-belir { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* hizmetler */
.rd-ipucu { font-size: 13px; color: var(--rd-metin); opacity: .78; margin: 0 0 10px; }
.rd-kat { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--rd-sonuk); margin: 14px 2px 8px; }
.rd-kat:first-child { margin-top: 2px; }
.rd-hizmetler { display: flex; flex-direction: column; gap: 8px; }
.rd-hizmet { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 13px 14px; border-radius: 12px;
             border: 1px solid var(--rd-cizgi); background: var(--rd-yuzey); cursor: pointer; transition: border-color var(--rd-g), background var(--rd-g), transform var(--rd-g); }
.rd-hizmet:active { transform: scale(.99); }
.rd-hizmet:focus-visible { outline: 2px solid var(--rd-baslik); outline-offset: 2px; }
.rd-hizmet[aria-pressed="true"] { border-color: var(--rd-baslik); background: var(--rd-yuzey-2); box-shadow: 0 0 0 1px var(--rd-baslik) inset; }
.rd-hizmet b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.rd-hizmet small { display: block; font-size: 13px; color: var(--rd-metin); opacity: .78; margin-top: 2px; line-height: 1.4; }
.rd-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--rd-metin); }
.rd-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rd-meta svg { width: 13px; height: 13px; opacity: .7; }
.rd-isaret { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--rd-cizgi); display: grid; place-items: center; flex: none; transition: all var(--rd-g); }
.rd-isaret svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: all var(--rd-g); }
.rd-hizmet[aria-pressed="true"] .rd-isaret { background: var(--rd-vurgu); border-color: var(--rd-vurgu); color: var(--rd-vurgu-yazi); }
.rd-hizmet[aria-pressed="true"] .rd-isaret svg { opacity: 1; transform: none; }

/* kişi sayısı (masa) */
.rd-sayac { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 8px 0 4px; }
.rd-sayac button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rd-cizgi); background: var(--rd-yuzey); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.rd-sayac button:disabled { opacity: .35; cursor: default; }
.rd-sayac output { font-size: 34px; font-weight: 700; min-width: 3ch; text-align: center; letter-spacing: -.02em; }
.rd-sayac-alt { text-align: center; font-size: 13px; color: var(--rd-metin); opacity: .78; }

/* personel */
.rd-kisiler { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 4px; scrollbar-width: none; }
.rd-kisiler::-webkit-scrollbar { display: none; }
.rd-kisi { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; padding: 8px 4px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; }
.rd-kisi[aria-pressed="true"] { border-color: var(--rd-baslik); background: var(--rd-yuzey); }
.rd-kisi-foto { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--rk, var(--rd-yuzey-2)); color: #fff; font-weight: 700; font-size: 17px; }
.rd-kisi-foto img { width: 100%; height: 100%; object-fit: cover; }
.rd-kisi-foto.is-herkes { background: var(--rd-yuzey-2); color: var(--rd-baslik); }
.rd-kisi-foto svg { width: 22px; height: 22px; }
.rd-kisi > span:last-child { font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* gün şeridi */
.rd-gunler { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.rd-gunler::-webkit-scrollbar, .rd-kisiler::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.rd .rd-gunler, .rd .rd-kisiler { scrollbar-width: none !important; -ms-overflow-style: none; }
.rd-secim-ozet { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; padding: 10px 12px; border-radius: 12px; background: var(--rd-yuzey); margin: 0 0 12px; }
.rd-secim-ozet svg { width: 16px; height: 16px; flex: none; margin-top: 1px; opacity: .75; }
.rd-secim-ozet b { font-weight: 650; }
.rd-gun { flex: none; scroll-snap-align: start; width: 62px; padding: 9px 4px 8px; border-radius: 12px; border: 1px solid var(--rd-cizgi); background: var(--rd-yuzey); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; transition: all var(--rd-g); }
.rd-gun small { font-size: 11.5px; font-weight: 600; opacity: .75; }
.rd-gun b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.rd-gun em { font-style: normal; font-size: 11px; opacity: .65; }
.rd-gun:disabled { opacity: .38; cursor: default; }
.rd-gun:disabled b { text-decoration: line-through; text-decoration-thickness: 1px; }
.rd-gun[aria-pressed="true"] { background: var(--rd-vurgu); color: var(--rd-vurgu-yazi); border-color: var(--rd-vurgu); }
.rd-gun[aria-pressed="true"] small, .rd-gun[aria-pressed="true"] em { opacity: .9; }
.rd-gun.is-daha { justify-content: center; font-size: 12px; font-weight: 600; }
.rd-gun.is-daha svg { width: 18px; height: 18px; }
.rd-en-yakin { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: none; border: 0; padding: 4px 0; margin: 2px 0 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rd-en-yakin svg { width: 15px; height: 15px; }

/* saatler */
.rd-saatler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 6px; }
/* modern-web C4 (13.11.2026, taslak): saat ızgarası bölmenin genişliğine bakar. Eski kural 360 px ekrandı. Sorgu kabın iç genişliğine bakar: .rd ekrandan 30 px dar, iç boşluk ve çerçeve 34 px, 360 px ekranda 296 px.
   Kapsayıcı sorgusu olmayan tarayıcıda eski kural kalır. */
.rd { container: rd / inline-size; }
@supports not (container-type: inline-size) { @media (max-width: 360px) { .rd-saatler { grid-template-columns: repeat(3, minmax(0, 1fr)); } } }
@container rd (max-width: 296px) { .rd-saatler { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rd-saat { min-height: 44px; border-radius: 10px; border: 1px solid var(--rd-cizgi); background: var(--rd-yuzey); font-weight: 650; font-size: 14.5px; cursor: pointer; transition: all var(--rd-g); }
.rd-saat:active { transform: scale(.97); }
.rd-saat[aria-pressed="true"] { background: var(--rd-vurgu); color: var(--rd-vurgu-yazi); border-color: var(--rd-vurgu); }
/* boş saat yeşil, dolu saat kırmızı ve üstü çizili (seçilemez). Renkler temadan bağımsız anlam taşır, zemin yarı saydam
   olduğu için açık ve koyu temada okunur; seçili saat yine vurgu rengini alır */
.rd-saat:not(.is-dolu):not([aria-pressed="true"]) { border-color: rgba(22, 163, 74, .55); background: rgba(22, 163, 74, .12); }
.rd-saat.is-dolu { border-color: rgba(220, 38, 38, .35); background: rgba(220, 38, 38, .08); color: rgb(220, 38, 38); opacity: .75; text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .9); text-decoration-thickness: 2px; cursor: not-allowed; }
.rd-saat.is-dolu:active { transform: none; }
.rd-saat-aciklama { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; opacity: .8; }
.rd-saat-aciklama span { display: inline-flex; align-items: center; gap: 6px; }
.rd-saat-aciklama span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.rd-saat-aciklama .is-bos::before { background: rgba(22, 163, 74, .45); border: 1px solid rgba(22, 163, 74, .8); }
.rd-saat-aciklama .is-dolu::before { background: rgba(220, 38, 38, .25); border: 1px solid rgba(220, 38, 38, .7); }
.rd-saat:focus-visible, .rd-gun:focus-visible, .rd-kisi:focus-visible { outline: 2px solid var(--rd-baslik); outline-offset: 2px; }
.rd-bos { text-align: center; padding: 20px 8px; font-size: 14px; color: var(--rd-metin); opacity: .82; }
.rd-saat-iskelet { height: 44px; border-radius: 10px; background: var(--rd-yuzey); position: relative; overflow: hidden; }
.rd-saat-iskelet::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--rd-yuzey-2), transparent); animation: rd-isil 1.4s infinite; }

/* form */
.rd-alan { margin-bottom: 12px; }
.rd-alan label, .rd-etiket { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px 2px; }
.rd-girdi { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--rd-cizgi); background: var(--rd-yuzey); color: var(--rd-baslik); padding: 0 14px; font-size: 16px; transition: border-color var(--rd-g), box-shadow var(--rd-g); -webkit-appearance: none; appearance: none; }
textarea.rd-girdi { padding: 12px 14px; min-height: 84px; resize: vertical; line-height: 1.45; }
.rd-girdi::placeholder { color: var(--rd-sonuk); }
.rd-girdi:focus { outline: none; border-color: var(--rd-baslik); box-shadow: 0 0 0 3px var(--rd-vurgu-hafif); }
.rd-tel { display: flex; border: 1px solid var(--rd-cizgi); border-radius: 12px; background: var(--rd-yuzey); overflow: hidden; transition: border-color var(--rd-g), box-shadow var(--rd-g); }
.rd-tel:focus-within { border-color: var(--rd-baslik); box-shadow: 0 0 0 3px var(--rd-vurgu-hafif); }
.rd-tel span { display: grid; place-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; border-right: 1px solid var(--rd-cizgi); color: var(--rd-metin); }
.rd-tel input { border: 0; box-shadow: none !important; border-radius: 0; flex: 1; min-width: 0; }
.rd-kutu-satir { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; margin: 4px 0 12px; cursor: pointer; }
.rd-kutu-satir input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--rd-vurgu); }
.rd-bilgi { font-size: 12.5px; line-height: 1.5; color: var(--rd-metin); opacity: .8; margin: 2px 0 14px; }
.rd-bilgi a { color: inherit; text-decoration: underline; }
.rd-bal { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* özet kartı */
.rd-ozet { border-radius: 12px; background: var(--rd-yuzey); border: 1px solid var(--rd-cizgi); padding: 12px 14px; margin: 0 0 14px; }
.rd-ozet-satir { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 5px 0; }
.rd-ozet-satir + .rd-ozet-satir { border-top: 1px solid var(--rd-cizgi); }
.rd-ozet-satir span { color: var(--rd-metin); opacity: .78; }
.rd-ozet-satir b { font-weight: 650; text-align: right; }

/* kod */
.rd-kod { width: 100%; min-height: 60px; text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .5em; padding-left: .5em; border-radius: 14px; border: 1px solid var(--rd-cizgi); background: var(--rd-yuzey); color: var(--rd-baslik); font-variant-numeric: tabular-nums; }
.rd-kod:focus { outline: none; border-color: var(--rd-baslik); box-shadow: 0 0 0 3px var(--rd-vurgu-hafif); }
.rd-kod-alt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 2px 14px; font-size: 13px; }
.rd-baglanti { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--rd-baslik); }
.rd-baglanti:disabled { opacity: .5; text-decoration: none; cursor: default; }

/* düğmeler */
.rd-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border-radius: var(--rd-r); border: 0; background: var(--rd-vurgu); color: var(--rd-vurgu-yazi);
          font-size: 16px; font-weight: 700; letter-spacing: -.005em; cursor: pointer; text-decoration: none !important; transition: transform var(--rd-g), opacity var(--rd-g); }
.rd-btn:active { transform: scale(.985); }
.rd-btn:disabled { opacity: .45; cursor: default; transform: none; }
.rd-btn:focus-visible { outline: 2px solid var(--rd-baslik); outline-offset: 3px; }
.rd-btn svg { width: 18px; height: 18px; }
.rd-btn.is-ikincil { background: var(--rd-yuzey); color: var(--rd-baslik); border: 1px solid var(--rd-cizgi); font-weight: 650; min-height: 46px; font-size: 14.5px; }
.rd-btn.is-yukleniyor { position: relative; color: transparent !important; pointer-events: none; }
.rd-btn.is-yukleniyor::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rd-vurgu-yazi); border-right-color: transparent; animation: rd-don .7s linear infinite; }
.rd-btn.is-ikincil.is-yukleniyor::after { border-color: var(--rd-baslik); border-right-color: transparent; }
@keyframes rd-don { to { transform: rotate(360deg); } }
.rd-btnler { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }

/* yapışık devam şeridi */
.rd-serit { position: sticky; bottom: 10px; z-index: 5; margin: 12px 0 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: calc(var(--rd-r) + 4px);
            background: var(--rd-baslik); color: var(--rd-zemin); box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .45); animation: rd-yuksel 220ms cubic-bezier(.2, .7, .2, 1) both; }
.rd-serit[hidden] { display: none; }
.rd-serit-yazi { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.rd-serit-yazi b { display: block; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-serit .rd-btn { width: auto; min-height: 44px; padding: 0 20px; background: var(--rd-zemin); color: var(--rd-baslik); font-size: 15px; flex: none; }
@keyframes rd-yuksel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* hata */
.rd-hata { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; margin: 0 0 12px;
           background: color-mix(in srgb, #e5484d 12%, transparent); color: var(--rd-baslik); border: 1px solid color-mix(in srgb, #e5484d 35%, transparent); }
.rd-hata svg { width: 17px; height: 17px; flex: none; color: #e5484d; margin-top: 1px; }

/* tamam */
.rd-tamam { text-align: center; padding: 10px 4px 4px; animation: rd-belir 260ms ease both; }
.rd-tik { width: 64px; height: 64px; border-radius: 50%; background: var(--rd-vurgu); color: var(--rd-vurgu-yazi); display: grid; place-items: center; margin: 4px auto 14px; animation: rd-tik 420ms cubic-bezier(.2, 1.4, .4, 1) both; }
.rd-tik svg { width: 30px; height: 30px; }
.rd-tik.is-bekle { background: var(--rd-yuzey-2); color: var(--rd-baslik); }
@keyframes rd-tik { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.rd-tamam h3 { font-size: 21px; font-weight: 750; letter-spacing: -.015em; margin: 0 0 4px; }
.rd-tamam > p { font-size: 14px; margin: 0 0 16px; color: var(--rd-metin); opacity: .85; }
.rd-tamam .rd-ozet { text-align: left; }
.rd-not-isletme { font-size: 13.5px; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--rd-yuzey); margin: 0 0 12px; border-left: 3px solid var(--rd-vurgu); }
.rd-iptal-alan { margin-top: 14px; font-size: 12.5px; color: var(--rd-metin); opacity: .85; }
.rd-durum { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--rd-yuzey-2); margin-bottom: 10px; }
.rd-durum::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rd-durum.d-onayli { color: #1f9d55; } .rd-durum.d-bekliyor, .rd-durum.d-odeme_bekliyor { color: #c98a04; } .rd-durum.d-iptal, .rd-durum.d-reddedildi { color: #e5484d; }

/* önceki randevu kartı (bu cihazda) */
.rd-onceki { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--rd-yuzey); border: 1px solid var(--rd-cizgi); margin: 0 0 12px; cursor: pointer; width: 100%; text-align: left; }
.rd-onceki b { display: block; font-size: 14px; } .rd-onceki small { display: block; font-size: 12.5px; opacity: .8; }
.rd-onceki svg { width: 20px; height: 20px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .rd *, .rd *::before, .rd *::after { animation: none !important; transition: none !important; }
}
