/* ============================================================
   SocialTag Gym — üye sayfası (/:slug/gym) ve PT paneli (/gym-yonetim)
   ortak biçimleri. Açık tema; vurgu rengi salonun kendi rengi (--a).
   ============================================================ */

:root {
  --a: #111111;
  --a-yazi: #ffffff;
  --a-yumusak: rgba(17, 17, 17, .08);
  --zemin: #f4f4f6;
  --yuzey: #ffffff;
  --yuzey-2: #f4f4f6;
  --cizgi: rgba(0, 0, 0, .08);
  --cizgi-orta: rgba(0, 0, 0, .14);
  --yazi: #141416;
  --yazi-orta: #3a3a3c;
  --soluk: #6e6e73;
  --olumlu: #1a7f4b;
  --olumlu-bg: rgba(26, 127, 75, .1);
  --uyari: #b45309;
  --uyari-bg: rgba(180, 83, 9, .1);
  --hata: #c9302c;
  --hata-bg: rgba(201, 48, 44, .09);
  --r: 18px;
  --r-s: 12px;
  --golge: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 18px rgba(0, 0, 0, .04);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--zemin);
  color: var(--yazi);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
/* iOS: 16 pikselden küçük alanlar sayfayı yakınlaştırır */
input, select, textarea { font-size: 16px; }
a { color: inherit; }
.gizli { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Üst bar ---------- */
.ust {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(244, 244, 246, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--cizgi);
}
.ust-logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--a); color: var(--a-yazi);
  display: grid; place-items: center; font-weight: 700; overflow: hidden;
}
.ust-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ust-ad { min-width: 0; flex: 1; }
.ust-ad b { display: block; font-size: 15.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust-ad span { display: block; font-size: 12.5px; color: var(--soluk); }
.ust-dugme {
  border: 0; background: var(--yuzey); border-radius: 999px; padding: 8px 12px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: var(--golge);
}

/* ---------- Yerleşim ---------- */
.sayfa { max-width: 680px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.kart {
  background: var(--yuzey); border-radius: var(--r); padding: 18px;
  box-shadow: var(--golge); margin-bottom: 14px;
}
.kart h2, .kart h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.kart-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kart-ust h2, .kart-ust h3 { margin: 0; }
.alt { color: var(--soluk); font-size: 13.5px; margin: 0; }
.baslik-buyuk { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; line-height: 1.15; }
.bolum-baslik { font-size: 13px; font-weight: 700; color: var(--soluk); text-transform: uppercase; letter-spacing: .04em; margin: 22px 4px 8px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 20px; min-height: 48px;
  background: var(--a); color: var(--a-yazi); font-weight: 700; font-size: 15.5px;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.tam { width: 100%; }
.btn.ikincil { background: var(--yuzey-2); color: var(--yazi); }
.btn.cizgili { background: transparent; color: var(--yazi); box-shadow: inset 0 0 0 1px var(--cizgi-orta); }
.btn.tehlike { background: var(--hata-bg); color: var(--hata); }
.btn.kucuk { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn-yazi { border: 0; background: none; padding: 6px 2px; color: var(--soluk); font-weight: 600; cursor: pointer; font-size: 14px; }
.btn-yazi:hover { color: var(--yazi); }
.btn-wa { background: #25D366; color: #fff; }

/* ---------- Form ---------- */
.alan { display: block; margin-bottom: 12px; }
.alan > span { display: block; font-size: 13px; font-weight: 600; color: var(--yazi-orta); margin-bottom: 6px; }
.girdi {
  width: 100%; border: 1px solid var(--cizgi-orta); background: var(--yuzey);
  border-radius: var(--r-s); padding: 12px 14px; min-height: 48px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.girdi:focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-yumusak); }
textarea.girdi { min-height: 90px; resize: vertical; line-height: 1.45; }
.girdi.kod { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.satir { display: flex; gap: 10px; }
.satir > * { flex: 1; min-width: 0; }
.onay { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; margin: 6px 0 14px; }
.onay input { width: 20px; height: 20px; accent-color: var(--a); margin: 1px 0 0; flex: none; }
.uyari-kutu { border-radius: var(--r-s); padding: 11px 13px; font-size: 14px; margin: 0 0 12px; }
.uyari-kutu.hata { background: var(--hata-bg); color: var(--hata); }
.uyari-kutu.bilgi { background: var(--yuzey-2); color: var(--yazi-orta); }
.uyari-kutu.olumlu { background: var(--olumlu-bg); color: var(--olumlu); }
.uyari-kutu.dikkat { background: var(--uyari-bg); color: var(--uyari); }

/* ---------- Giriş ekranı ---------- */
.giris { max-width: 420px; margin: 0 auto; padding: 32px 16px 40px; }
.giris-logo {
  width: 72px; height: 72px; border-radius: 20px; margin: 8px auto 16px;
  background: var(--a); color: var(--a-yazi); display: grid; place-items: center;
  font-weight: 800; font-size: 28px; overflow: hidden; box-shadow: var(--golge);
}
.giris-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.giris h1 { text-align: center; font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
.giris .alt { text-align: center; margin-bottom: 22px; }
.etiket-gym {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--a); color: var(--a-yazi); border-radius: 6px; padding: 2px 7px; vertical-align: 2px;
}

/* ---------- Alt sekme çubuğu ---------- */
.alt-cubuk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--cizgi);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.alt-cubuk-ic { display: flex; width: 100%; max-width: 680px; }
.alt-sekme {
  flex: 1; border: 0; background: none; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; color: var(--soluk); font-size: 11.5px; font-weight: 600; border-radius: 12px;
}
.alt-sekme svg { width: 24px; height: 24px; }
.alt-sekme.aktif { color: var(--yazi); }
.alt-sekme.aktif svg { color: var(--a); }
.rozet {
  position: absolute; top: 2px; font-style: normal; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--hata); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- İstatistik kutuları ---------- */
.ozet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ozet-kutu { background: var(--yuzey); border-radius: var(--r); padding: 14px 12px; box-shadow: var(--golge); min-width: 0; }
.ozet-kutu small { display: block; color: var(--soluk); font-size: 12px; font-weight: 600; }
.ozet-kutu b { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ozet-kutu em { display: block; font-style: normal; font-size: 12px; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ozet-kutu.dikkat b { color: var(--uyari); }
.ozet-kutu.hata b { color: var(--hata); }

/* ---------- Hareket listesi ---------- */
.hareket {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--cizgi);
}
.hareket:first-child { border-top: 0; }
.hareket-tik {
  width: 30px; height: 30px; border-radius: 50%; flex: none; cursor: pointer;
  border: 2px solid var(--cizgi-orta); background: var(--yuzey); display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.hareket-tik svg { width: 16px; height: 16px; color: transparent; }
.hareket.yapildi .hareket-tik { background: var(--a); border-color: var(--a); }
.hareket.yapildi .hareket-tik svg { color: var(--a-yazi); }
.hareket-ic { flex: 1; min-width: 0; }
.hareket-ad { font-weight: 700; }
.hareket.yapildi .hareket-ad { text-decoration: line-through; text-decoration-color: var(--soluk); color: var(--soluk); }
.hareket-detay { font-size: 13.5px; color: var(--soluk); }
.hareket-not { font-size: 13px; color: var(--yazi-orta); margin-top: 2px; }
.agirlik-girdi {
  width: 78px; flex: none; border: 1px solid var(--cizgi-orta); border-radius: 10px;
  padding: 7px 8px; text-align: center; font-size: 16px; background: var(--yuzey-2);
}
.cip-grup { display: flex; flex-wrap: wrap; gap: 6px; }
.cip {
  border: 0; border-radius: 999px; padding: 7px 12px; background: var(--yuzey-2);
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cip.aktif { background: var(--a); color: var(--a-yazi); }
.cip.bos { color: var(--soluk); }
.gun-seridi { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.gun-seridi::-webkit-scrollbar { display: none; }
.gun-seridi .cip { flex: none; min-width: 52px; text-align: center; position: relative; }
.gun-seridi .cip i {
  position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 2px; background: currentColor; opacity: .5;
}

/* ---------- İlerleme ---------- */
.ilerleme { height: 10px; background: var(--yuzey-2); border-radius: 5px; overflow: hidden; }
.ilerleme > i { display: block; height: 100%; background: var(--a); border-radius: 5px; transition: width .3s ease; }
.ilerleme.tamam > i { background: var(--olumlu); }

/* ---------- Grafik ---------- */
.grafik { width: 100%; height: auto; display: block; }
.grafik text { font-size: 10px; fill: var(--soluk); font-family: inherit; }
.grafik .izgara { stroke: var(--cizgi); stroke-width: 1; }
.grafik .cizgi { fill: none; stroke: var(--a); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.grafik .alan-dolgu { fill: var(--a); opacity: .08; }
.grafik .nokta { fill: var(--yuzey); stroke: var(--a); stroke-width: 2; }
.grafik .hedef { stroke: var(--olumlu); stroke-width: 1.5; stroke-dasharray: 5 4; }
.grafik .hedef-yazi { fill: var(--olumlu); font-weight: 700; }
.grafik .cubuk { fill: var(--a); opacity: .85; }
.grafik .cubuk.tamam { fill: var(--olumlu); opacity: .9; }
.grafik-bos { color: var(--soluk); font-size: 14px; text-align: center; padding: 22px 8px; background: var(--yuzey-2); border-radius: var(--r-s); }

/* ---------- Tablo ---------- */
.tablo-kap { overflow-x: auto; margin: 0 -4px; }
.tablo { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tablo th { text-align: left; font-size: 12px; color: var(--soluk); font-weight: 700; padding: 6px 4px; white-space: nowrap; }
.tablo td { padding: 9px 4px; border-top: 1px solid var(--cizgi); white-space: nowrap; }

/* ---------- Beslenme ---------- */
.ogun { padding: 12px 0; border-top: 1px solid var(--cizgi); }
.ogun:first-child { border-top: 0; padding-top: 0; }
.ogun-ust { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ogun-ust b { font-size: 15.5px; }
.ogun-ust span { color: var(--soluk); font-size: 13px; }
.ogun-ust em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--a-yumusak); border-radius: 999px; padding: 2px 8px; }
.ogun-icerik { white-space: pre-line; color: var(--yazi-orta); }

/* ---------- Sohbet ---------- */
.sohbet { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; }
.balon { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.balon small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.balon.ben { align-self: flex-end; background: var(--a); color: var(--a-yazi); border-bottom-right-radius: 6px; }
.balon.o { align-self: flex-start; background: var(--yuzey); border-bottom-left-radius: 6px; box-shadow: var(--golge); }
.sohbet-yaz { display: flex; gap: 8px; align-items: flex-end; }
.sohbet-yaz textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; }
.sohbet-gun { align-self: center; font-size: 12px; color: var(--soluk); font-weight: 600; margin: 8px 0 2px; }

/* ---------- Bilgi satırı ---------- */
.bos-durum { text-align: center; padding: 28px 12px; color: var(--soluk); }
.bos-durum svg { width: 40px; height: 40px; color: var(--cizgi-orta); margin-bottom: 6px; }
.bos-durum b { display: block; color: var(--yazi); font-size: 16px; margin-bottom: 2px; }
.not-satir { font-size: 13px; color: var(--soluk); margin-top: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  background: #1d1d1f; color: #fff; padding: 11px 16px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.gizli { display: block !important; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); }

/* ---------- Yükleniyor ---------- */
.yukleniyor { display: grid; place-items: center; min-height: 60vh; color: var(--soluk); }
.donen { width: 28px; height: 28px; border: 3px solid var(--cizgi-orta); border-top-color: var(--a); border-radius: 50%; animation: don .8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: .001ms !important; }
}
@media (max-width: 380px) {
  .ozet-kutu b { font-size: 19px; }
  .sayfa { padding-left: 12px; padding-right: 12px; }
}

/* v326: PT paneli — aynı minimal stil: koyu gri ana düğme ve seçili durumlar, ince kenarlı kartlar */
:root { --zemin: #F2F2F4; --yuzey-2: #EFEFF2; --yazi: #141416; }
body { background: #F2F2F4; }
.kart { border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 6px 18px rgba(0, 0, 0, .035); }
.btn { background: var(--yazi); color: #fff; }
.cip.aktif { background: var(--yazi); color: #fff; }
.girdi:focus { border-color: var(--yazi); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.grafik .cizgi { stroke: var(--yazi); }
.grafik .alan-dolgu { fill: var(--yazi); }
.grafik .nokta { stroke: var(--yazi); }
.grafik .cubuk { fill: #3A3A3C; }
.ilerleme > i { background: var(--yazi); }
.btn.btn-wa { background: #25D366; color: #fff; }
