:root {
  --pembe: #e91e63; --pembe-koyu: #b80f4b; --pembe-soft: #ffe6ee;
  --siyah: #141414; --gri: #6e6e6e; --zemin: #fff8fb; --kart: #fff; --cizgi: #f0e3e9;
  --ok: #2e9e4f; --no: #e53935; --wa: #25d366;
  --golge: 0 4px 14px rgba(20,20,20,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--zemin); color: var(--siyah); line-height: 1.5; }

.hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem; background: linear-gradient(135deg, var(--pembe), var(--pembe-koyu)); color: #fff; }
.hdr h1 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.hdr p { margin: .1rem 0 0; font-size: .85rem; opacity: .9; }
.mini { font: inherit; font-weight: 700; font-size: .8rem; color: var(--pembe-koyu); background: #fff; border: none; padding: .4rem .8rem; border-radius: 999px; cursor: pointer; }

.wrap { max-width: 600px; margin: 0 auto; padding: 1rem; }

/* Giriş / hero */
.hero { text-align: center; padding: 1.5rem .5rem .5rem; }
.hero h2 { margin: 0 0 .4rem; font-size: 1.7rem; font-weight: 800; }
.hero h2 span { color: var(--pembe); }
.hero p { margin: 0; color: var(--gri); }
.giris-kartlar { display: grid; gap: 1rem; margin-top: 1.2rem; }
.gkart { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.6rem 1rem; background: var(--kart); border: 1.5px solid var(--cizgi); border-radius: 18px; box-shadow: var(--golge); cursor: pointer; font: inherit; color: inherit; transition: transform .2s, border-color .2s; }
.gkart:hover { transform: translateY(-3px); border-color: var(--pembe); }
.gkart--alt:hover { border-color: var(--pembe-koyu); }
.gkart__emoji { font-size: 2.2rem; }
.gkart__bas { font-weight: 800; font-size: 1.15rem; }
.gkart__alt { font-size: .85rem; color: var(--gri); }

.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.dt { flex: 1; font: inherit; font-weight: 700; cursor: pointer; padding: .6rem; border: 1.5px solid var(--cizgi); border-radius: 999px; background: #fff; color: var(--gri); }
.dt.aktif { background: var(--pembe); border-color: var(--pembe); color: #fff; }

.search-wrap { margin-bottom: 1rem; }
.uzman-kart { width: 100%; text-align: left; display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; margin-bottom: .6rem; background: var(--kart); border: 1.5px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge); cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s; }
.uzman-kart:hover { border-color: var(--pembe); transform: translateX(3px); }
.uzman-ad { font-weight: 800; }
.uzman-brans { font-size: .85rem; color: var(--gri); }

.card { background: var(--kart); border: 1.5px solid var(--cizgi); border-radius: 16px; box-shadow: var(--golge); padding: 1.2rem; }
.form { display: flex; flex-direction: column; gap: .8rem; }
.form h2, .form h3 { margin: 0 0 .3rem; }
.row { display: flex; flex-direction: column; gap: .3rem; }
.row label { font-weight: 600; font-size: .9rem; }
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
input, select, textarea { font: inherit; padding: .6rem .7rem; border: 1.5px solid var(--cizgi); border-radius: 10px; background: #fff; color: var(--siyah); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pembe); box-shadow: 0 0 0 3px var(--pembe-soft); }
.btn { font: inherit; font-weight: 700; color: #fff; background: var(--pembe); border: none; border-radius: 999px; padding: .75rem; cursor: pointer; }
.btn:hover { background: var(--pembe-koyu); }
.link { background: none; border: none; color: var(--gri); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; align-self: flex-start; }

.slotlar { display: flex; flex-wrap: wrap; gap: .4rem; }
.slot { font: inherit; font-weight: 600; cursor: pointer; padding: .4rem .7rem; border: 1.5px solid var(--cizgi); border-radius: 8px; background: #fff; }
.slot.secili { background: var(--pembe); border-color: var(--pembe); color: #fff; }
.ipuc { color: var(--gri); font-size: .88rem; }

.durum { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.durum--ok { color: var(--ok); }
.durum--no { color: var(--no); }

.liste { display: flex; flex-direction: column; gap: .7rem; }
.bos { color: var(--gri); text-align: center; padding: 1rem; }
.rk { background: var(--kart); border: 1.5px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge); padding: .8rem .9rem; }
.rk__ust { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.rk__zaman { font-weight: 800; }
.rk__alt { margin-top: .3rem; font-size: .88rem; color: var(--gri); }
.rk__eyl { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.eyl { font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; padding: .35rem .8rem; border: none; border-radius: 999px; color: #fff; text-decoration: none; display: inline-block; }
.eyl--ok { background: var(--ok); }
.eyl--no { background: var(--no); }
.eyl--sil { background: var(--gri); }
.eyl--wa { background: var(--wa); }

.rozet { font-size: .72rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; }
.rozet--beklemede { background: #fff3cd; color: #8a6d00; }
.rozet--onayli { background: #e3f6e8; color: var(--ok); }
.rozet--reddedildi { background: #fde7e7; color: var(--no); }

/* Danışan adımları */
.adim-bas { margin: .2rem 0 .2rem; font-size: 1.15rem; font-weight: 800; }
.adim-alt { margin: 0 0 1rem; color: var(--gri); font-size: .9rem; }
.meslek-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.meslek-kart { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.3rem .8rem; background: var(--kart); border: 1.5px solid var(--cizgi); border-radius: 16px; box-shadow: var(--golge); cursor: pointer; font: inherit; color: inherit; transition: transform .15s, border-color .15s; }
.meslek-kart:hover { transform: translateY(-3px); border-color: var(--pembe); }
.meslek-kart__emoji { font-size: 2rem; }
.meslek-kart__ad { font-weight: 800; text-align: center; }
.meslek-kart__say { font-size: .8rem; color: var(--gri); }

/* Haftalık çalışma takvimi editörü */
.row-bas { font-weight: 700; font-size: .95rem; margin-top: .3rem; }
.hafta { display: flex; flex-direction: column; gap: .5rem; }
.hgun { display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: .5rem; padding: .55rem .7rem; border: 1.5px solid var(--cizgi); border-radius: 12px; background: #fff; }
.hgun__sol { display: flex; align-items: center; gap: .5rem; }
.hgun__ad { font-weight: 700; font-size: .92rem; }
.hgun__saat { display: flex; align-items: center; gap: .35rem; justify-content: flex-end; }
.hgun__saat input[type="time"] { width: auto; padding: .35rem .4rem; font-size: .88rem; }
.hgun__saat .tire { color: var(--gri); }
.hgun--kapali { opacity: .55; }
.hgun--kapali .hgun__saat { visibility: hidden; }
/* Toggle */
.switch { position: relative; display: inline-block; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; cursor: pointer; background: #ccc; border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; height: 17px; width: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--pembe); }
.switch input:checked + span::before { transform: translateX(17px); }
.hafta-hizli { display: flex; gap: 1rem; flex-wrap: wrap; }
.mini-link { background: none; border: none; color: var(--pembe-koyu); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: underline; padding: 0; }
.mini-link:disabled { color: #bbb; cursor: not-allowed; text-decoration: none; }

/* Haftalık takvim (sütunlu) */
.hafta-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .2rem 0 .6rem; }
.hafta-etiket { font-weight: 800; font-size: .95rem; }
.takvim-kap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1.5px solid var(--cizgi); }
.takvim { width: 100%; border-collapse: collapse; font-size: .72rem; table-layout: fixed; min-width: 460px; }
.takvim th, .takvim td { border: 1px solid var(--cizgi); text-align: center; padding: .2rem .1rem; height: 30px; overflow: hidden; }
.takvim thead th { background: #e7f3ea; font-weight: 800; }
.takvim thead th small { display: block; font-weight: 500; color: var(--gri); font-size: .68rem; }
.tk-saat { background: #fdeef3; color: var(--pembe-koyu); font-weight: 700; width: 42px; white-space: nowrap; }
.tk-kapali { background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #fff 4px, #fff 8px); }
.tk-gecmis { background: #fafafa; color: #ccc; }
.tk-bos-goster { background: #f3fbf5; }
.tk-bos { cursor: pointer; color: var(--ok); font-weight: 700; }
.tk-bos:hover, .tk-bos:focus { background: var(--pembe-soft); outline: none; }
.tk-dolu { background: #eef1f4; color: var(--siyah); font-weight: 600; font-size: .68rem; }
.tk-dolu--onayli { background: #e3f6e8; }
.tk-dolu--beklemede { background: #fff8e1; }
.tk-gecti { text-decoration: line-through; opacity: .5; }
.tk-secili { background: var(--pembe) !important; color: #fff !important; text-decoration: none; }
.tk-bloke { background: repeating-linear-gradient(45deg, #ececec, #ececec 4px, #f8f8f8 4px, #f8f8f8 8px); color: var(--gri); }
.tk-tik { cursor: context-menu; }

/* Uzman üst bölüm çubuğu */
.u-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.unav { position: relative; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; padding: .5rem .9rem; border: 1.5px solid var(--cizgi); border-radius: 999px; background: #fff; color: var(--gri); }
.unav:hover { border-color: var(--pembe); }
.unav.aktif { background: var(--pembe); border-color: var(--pembe); color: #fff; }
.unav__say { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; margin-left: .35rem; padding: 0 .3rem; background: var(--no); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; }
.unav.aktif .unav__say { background: #fff; color: var(--no); }

/* Paylaşılabilir randevu linki */
.paylas { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; background: var(--pembe-soft); border-radius: 12px; padding: .6rem .8rem; margin-bottom: .6rem; }
.paylas__et { font-weight: 700; font-size: .85rem; }
.paylas__in { flex: 1; min-width: 160px; font-size: .82rem; background: #fff; }

.admin-bar { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1.5px solid var(--cizgi); border-radius: 12px; padding: .6rem .9rem; margin-bottom: 1rem; }
.admin-mail { font-weight: 700; font-size: .9rem; }
.blok-bas { font-size: 1.05rem; margin: 1.4rem 0 .7rem; }
.yukleniyor { text-align: center; color: var(--gri); padding: 2rem; }

/* Onay bekleme / deneme doldu kartı */
.durum-kart { text-align: center; }
.durum-kart__emoji { font-size: 2.6rem; display: block; margin-bottom: .3rem; }
.durum-kart h2 { margin: .2rem 0 .6rem; }
.durum-kart p { color: var(--gri); margin: .4rem 0; }
.deneme-banner { background: #fff3cd; color: #8a6d00; border-radius: 10px; padding: .55rem .8rem; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }

/* Yürüyüş hatırlatıcısı */
.yur-ozet { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.yur-seri { font-weight: 800; font-size: 1.05rem; }
#dt-saglik .card { margin-bottom: 1rem; }
.saglik-uygulama { border: 1.5px solid var(--cizgi); border-radius: 16px; overflow: hidden; box-shadow: var(--golge); background: #fff8fb; }
#saglik-frame { display: block; width: 100%; height: 82vh; min-height: 460px; border: 0; }

/* Takvim hücresi alt menüsü (mobilde dokun → kapat/aç) */
.slot-ov { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 20, 20, .45); }
.slot-sheet { width: 100%; max-width: 420px; background: #fff; border-radius: 18px 18px 0 0; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
.slot-sheet__bas { font-weight: 800; text-align: center; padding: .2rem 0 .4rem; }
.btn-sheet { font: inherit; font-weight: 700; padding: .85rem; border: none; border-radius: 12px; cursor: pointer; color: #fff; }
.btn-sheet--ok { background: var(--ok); }
.btn-sheet--no { background: var(--no); }
.btn-sheet--iptal { background: #eee; color: var(--siyah); }

/* Mobil uyum */
@media (max-width: 480px) {
  .wrap { padding: .75rem; }
  /* Sağlık uygulaması mobilde neredeyse tam ekran (içteki alt menü ekranın dibinde dursun) */
  #saglik-frame { height: calc(100dvh - 150px); min-height: 420px; }
  .hero h2 { font-size: 1.4rem; }
  .gkart { padding: 1.2rem 1rem; }
  .meslek-grid { gap: .6rem; }
  .meslek-kart { padding: 1rem .6rem; }
  .meslek-kart__emoji { font-size: 1.7rem; }
  .card { padding: 1rem; }
  .takvim { font-size: .66rem; min-width: 430px; }
  .takvim th, .takvim td { height: 34px; }   /* dokunmatik için biraz daha yüksek */
  .tk-saat { width: 38px; }
  .hgun { grid-template-columns: 1fr auto; gap: .4rem; padding: .5rem; }
  .hgun__saat input[type="time"] { font-size: .8rem; padding: .3rem; }
  .eyl { font-size: .8rem; padding: .4rem .7rem; }   /* daha kolay dokunulur */
  .rk__eyl { gap: .5rem; }
}
/* Çok dar ekranda meslek kartları tek sütun */
@media (max-width: 360px) { .meslek-grid { grid-template-columns: 1fr; } }
