/* Troy Gym — siyah zemin, lime vurgu (troygym.com.tr markası). Telefon önce. */
:root {
  --bg: #0b0b0c; --surface: #17181a; --surface-2: #1f2023; --line: #2a2b2e;
  --text: #f4f4f2; --muted: #a3a59d; --faint: #6f716a;
  --lime: #d3f427; --lime-ink: #0b0b0c; --lime-soft: #2b3108; --lime-text: #eef7bf;
  --warn: #ffb547; --warn-soft: #3a2a0c; --bad: #ff7a6b; --bad-soft: #3a1612;
  --r: 16px; --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--lime); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: 24px; font-weight: 800; font-stretch: 90%; }
h2 { font-size: 17px; font-weight: 800; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* Kabuk */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 8px; max-width: 1200px; width: 100%; margin: 0 auto; }
.topbar .logo img { height: 38px; display: block; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; text-decoration: none; }
.avatar.lime { background: var(--lime); color: var(--lime-ink); }
main.page { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 110px; display: flex; flex-direction: column; gap: 14px; }
body.wide main.page { max-width: 1200px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 6px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(11,11,12,.96); border-top: 1px solid #1f2023; z-index: 10; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.tabbar a.on { color: var(--lime); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar .fab { width: 54px; height: 54px; min-width: 0; margin-top: -24px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); justify-content: center; }
@media (min-width: 900px) {
  body.wide .tabbar { position: static; justify-content: flex-start; gap: 4px; padding: 0 16px 8px; max-width: 1200px; margin: 0 auto; width: 100%; background: transparent; border: 0; }
  body.wide .tabbar a { flex-direction: row; gap: 8px; font-size: 14px; padding: 10px 14px; border-radius: 10px; }
  body.wide .tabbar a.on { background: var(--lime); color: var(--lime-ink); }
  body.wide .tabbar .fab { display: none; }
  body.wide main.page { padding-bottom: 40px; }
}

/* Kartlar */
.card { background: var(--surface); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card.link { text-decoration: none; color: var(--text); }
.card.lime { background: var(--lime); color: var(--lime-ink); }
.card.lime .muted { color: #2d3305; }
.card.outline { background: transparent; border: 1.5px dashed #2f3033; }
.card.ring { box-shadow: inset 0 0 0 1.5px var(--lime); }
.card.note { background: var(--lime-soft); color: var(--lime-text); }
.card.note b, .card.note .who { color: var(--lime); }
.card.warn { background: var(--warn-soft); color: #ffe2b0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.big { font-size: 30px; font-weight: 800; font-stretch: 85%; line-height: 1; }
.huge { font-size: 34px; font-weight: 800; font-stretch: 85%; line-height: 1; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--lime); }
.bar.white > i { background: var(--text); }
.bar.warn > i { background: var(--warn); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.chip.lime { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.chip.soft { background: var(--lime-soft); color: var(--lime); font-weight: 700; }
.chip.warn { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.chip.bad { background: var(--bad-soft); color: var(--bad); font-weight: 700; }
.chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Düğmeler ve formlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--lime); color: var(--lime-ink); border: 0; font-weight: 800; }
.btn.dark { background: var(--lime-ink); color: var(--text); border: 0; }
.btn.ghost-dark { background: transparent; color: var(--lime-ink); border: 1.5px solid var(--lime-ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: #4a2420; }
.btn.block { width: 100%; min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 0; color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
form.inline { display: inline; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; font-size: 15px; padding: 11px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--lime); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--bad); font-size: 12.5px; }

/* Seçim ızgaraları (gün / saat) */
.pick { display: grid; gap: 6px; }
.pick.days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pick.slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick > a, .pick > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.pick > a.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.pick > span.busy { background: transparent; color: #55574f; border-style: dashed; text-decoration: line-through; font-weight: 500; }
.pick .wd { font-size: 11px; font-weight: 500; }
.pick .dn { font-size: 17px; font-weight: 800; }

/* Listeler */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 12px; color: var(--text); text-decoration: none; }
.item.done { opacity: .65; }
.item.now { box-shadow: inset 0 0 0 1.5px var(--lime); background: var(--surface-2); }
.item .time { width: 58px; flex: none; display: flex; flex-direction: column; }
.item .time b { font-size: 17px; }
.item .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .grow b { font-size: 15px; }
.item .end { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Mesajlar */
.messages { display: flex; flex-direction: column; gap: 6px; }
.msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; background: var(--lime-soft); color: var(--lime-text); }
.msg.error { background: var(--bad-soft); color: #ffd0c9; }
.msg.warning { background: var(--warn-soft); color: #ffe2b0; }

/* Yönetim takvimi */
.cal-wrap { background: #121314; border-radius: var(--r); padding: 10px; overflow-x: auto; }
table.cal { border-collapse: separate; border-spacing: 6px; width: 100%; min-width: 640px; }
table.cal th { text-align: left; font-size: 14px; padding: 4px 6px; }
table.cal td.t { font-size: 13px; color: var(--muted); vertical-align: top; padding-top: 8px; width: 58px; }
table.cal td.c { border-radius: 10px; padding: 8px 10px; vertical-align: top; background: #1d1e21; }
table.cal td.c.free { background: transparent; border: 1px dashed #26272a; color: #4a4c46; font-size: 12px; }
table.cal td.c.off { background: transparent; }
table.cal td.c.talep { background: transparent; border: 1.5px dashed var(--lime); color: var(--lime); }
table.cal td.c.now { background: var(--lime); color: var(--lime-ink); }
table.cal td.c.done { opacity: .6; }
table.cal td.c a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
table.cal td.c b { font-size: 13px; }
table.cal td.c span { font-size: 11px; opacity: .8; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #1f2023; font-size: 14px; vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tablebox { overflow-x: auto; }

/* Giriş */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login .box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login img { width: 220px; align-self: center; }
.photo { width: 88px; height: 88px; flex: none; border-radius: 12px; object-fit: cover; background: var(--line); }
.photo.empty { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 11px; text-align: center; }
.sets .move { display: flex; flex-direction: column; gap: 8px; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 12px; padding: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 20px; cursor: pointer; }
.stepper input { width: 80px; text-align: center; background: transparent; border: 0; font-size: 20px; font-weight: 800; min-height: 0; padding: 4px; }
.stepper .u { font-size: 11px; color: var(--muted); text-align: center; }
.spark { display: flex; align-items: flex-end; gap: 8px; height: 110px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.spark div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.spark i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: #3a3c37; }
.spark div:last-child i { background: var(--lime); }
.spark small { font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
details > summary::-webkit-details-marker { display: none; }
