/* =====================================================================
   VITA — Tasarım sistemi (saf CSS3, mobil öncelikli)
   ===================================================================== */
@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #687653; --primary-dark: #4f5b3e; --primary-deep: #2f3826; --secondary: #899779;
  --bg: #f5f2ec; --bg-2: #ede8de; --surface: #fff; --text: #252820; --muted: #85877e; --line: #e6e1d6;
  --accent: #d9a46f; --accent-soft: #f6e7d6; --sage-soft: #e7ebdf; --lilac-soft: #ece7f1; --lilac: #8d7aa8;
  --ok: #5f8a4a; --ok-soft: #e4eedc; --warn: #c98a2e; --warn-soft: #fbefd9; --bad: #b5523b; --bad-soft: #f7e1da; --na: #a3a59c; --na-soft: #efeee9;
  --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --sh: 0 1px 2px rgba(37,40,32,.04), 0 10px 28px -12px rgba(37,40,32,.14);
  --sh-lift: 0 16px 36px -14px rgba(47,56,38,.45);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 74px; --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(26px, 6vw, 34px); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 28px; height: 28px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Uygulama kabuğu ---------- */
.shell { min-height: 100dvh; }
.main { padding: 18px 18px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 560px; margin: 0 auto; animation: fade-up .35s ease-out both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.topbar .back { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh); }
.page-title { font-size: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--muted); }

/* Alt navigasyon (mobil) */
.bottom-nav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 40; height: var(--nav-h); max-width: 536px; margin: 0 auto;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 26px; box-shadow: 0 10px 30px -10px rgba(37,40,32,.25); display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 6px; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 18px; transition: color .2s; }
.bottom-nav a .ic { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--primary-deep); }
.bottom-nav a.active .dot { background: var(--primary); }
.bottom-nav .dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }

/* Kenar çubuğu (masaüstü) */
.sidebar { display: none; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px 1fr; }
  .sidebar { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 28px 18px; background: var(--surface); border-right: 1px solid var(--line); }
  .sidebar .brand { margin: 0 10px 26px; }
  .sidebar a.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; }
  .sidebar a.nav-item:hover { background: var(--bg); color: var(--text); }
  .sidebar a.nav-item.active { background: var(--sage-soft); color: var(--primary-deep); }
  .sidebar .side-foot { margin-top: auto; }
  .bottom-nav { display: none; }
  .main { max-width: 1080px; padding: 36px 40px 60px; }
  .grid-desk { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
  .grid-desk > .col > * + * { margin-top: 22px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .main { max-width: 680px; } }

.brand { font-weight: 300; font-size: 26px; letter-spacing: .32em; text-transform: lowercase; color: var(--primary-deep); }
.brand.light { color: #fff; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tint-sage { background: var(--sage-soft); box-shadow: none; }
.card.tint-peach { background: var(--accent-soft); box-shadow: none; }
.card.tint-lilac { background: var(--lilac-soft); box-shadow: none; }
.card.dark { background: var(--primary-deep); color: #fff; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 17px; }
.link { color: var(--primary); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }

.greet h1 { font-size: 30px; }
.greet .hello { color: var(--muted); font-size: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; font-weight: 700; box-shadow: var(--sh); flex: none; }

/* Hızlı kategori çipleri (referans 1) */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.quick .bubble { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-deep); transition: transform .2s; }
.quick a:hover .bubble { transform: translateY(-2px); }
.bubble.sage { background: var(--sage-soft); } .bubble.peach { background: var(--accent-soft); color: #9b6a3a; } .bubble.lilac { background: var(--lilac-soft); color: var(--lilac); } .bubble.sand { background: #f3ead7; color: #9b7b3a; }

/* Plan satırları (referans 1 "Today's Plan") */
.plan-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; }
.plan-row.sage { background: linear-gradient(100deg, #6e7d58, #8c9a78); color: #fff; }
.plan-row.peach { background: linear-gradient(100deg, #f4d8b8, #f9e9d7); }
.plan-row.lilac { background: linear-gradient(100deg, #ddd3ea, #ece7f1); }
.plan-row .pi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.22); flex: none; }
.plan-row.peach .pi, .plan-row.lilac .pi { background: rgba(255,255,255,.65); }
.plan-row .t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.plan-row .s { font-size: 12.5px; opacity: .85; }
.play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-deep); color: #fff; flex: none; }
.plan-row.peach .play, .plan-row.lilac .play { background: #fff; color: var(--text); }
.play .ic { width: 16px; height: 16px; }

/* Metrik kutuları */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .metrics.m3 { grid-template-columns: repeat(3, 1fr); } .metrics.m4 { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); min-width: 0; }
.metric .label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.metric .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.metric .value small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.metric .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.metric.na .value { color: var(--na); font-size: 18px; }

/* İlerleme çubuğu & halka */
.bar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar.accent > span { background: var(--accent); } .bar.blue > span { background: #6f97b3; } .bar.lilac > span { background: var(--lilac); }
.ring { --p: 0; --c: var(--primary); width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-2) 0); }
.ring .in { text-align: center; } .ring b { font-size: 22px; display: block; letter-spacing: -.02em; } .ring span { font-size: 11px; color: var(--muted); }

.tracker { display: grid; gap: 14px; }
.track-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; }
.track-row .ti { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--primary-dark); }
.track-row .tl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; gap: 8px; }
.track-row .tl b { font-weight: 700; }
.stepper { display: flex; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.stepper button:active { transform: scale(.94); }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 99px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; background: var(--primary); color: #fff; box-shadow: var(--sh-lift); transition: transform .15s, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { background: var(--primary-dark); } .btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: var(--sh); }
.btn.ghost:hover { background: #fbfaf7; }
.btn.outline { background: transparent; color: var(--primary-deep); border: 1.5px solid var(--primary); box-shadow: none; }
.btn.light { background: #f6f1e8; color: var(--text); box-shadow: none; }
.btn.accent { background: #e17a52; } .btn.accent:hover { background: #cf6a43; }
.btn.danger { background: var(--bad); box-shadow: none; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn .arrow { margin-left: auto; }
.btn.pill-arrow { padding-right: 8px; } .btn.pill-arrow .circ { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; margin-left: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh); cursor: pointer; }

/* ---------- Formlar ---------- */
.field { display: block; }
.field > label, .label-text { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; height: 50px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 84px; padding: 12px 15px; resize: vertical; }
.input:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(137,151,121,.18); }
.input.invalid, .field.has-error .input { border-color: var(--bad); }
.input-unit { position: relative; } .input-unit .input { padding-right: 52px; } .input-unit .u { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 600; pointer-events: none; }
.field-error { color: var(--bad); font-size: 12.5px; margin-top: 6px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 380px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

.choice-grid { display: grid; gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ci { width: 40px; height: 40px; border-radius: 13px; background: var(--bg); display: grid; place-items: center; color: var(--primary-dark); flex: none; }
.choice .ct { font-weight: 700; font-size: 14.5px; } .choice .cs { font-size: 12.5px; color: var(--muted); }
.choice .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.choice:has(input:checked) { border-color: var(--primary); background: #fbfcf8; }
.choice:has(input:checked) .tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(137,151,121,.25); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-2); border-radius: 15px; padding: 4px; gap: 4px; }
.seg label { position: relative; text-align: center; padding: 11px 6px; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--sh); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--secondary); border-radius: 7px; background: var(--surface); flex: none; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--bg-2); transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--primary); } .switch input:checked + span::before { transform: translateX(20px); }

/* ---------- Uyarılar ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 13.5px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert.info { background: var(--sage-soft); color: var(--primary-deep); }
.alert.warn { background: var(--warn-soft); color: #7a531a; }
.alert.bad { background: var(--bad-soft); color: #7d3424; }
.alert.ok { background: var(--ok-soft); color: #355428; }
.alert ul { margin: 6px 0 0; padding-left: 18px; } .alert li + li { margin-top: 4px; }
.disclaimer { display: flex; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.5; align-items: flex-start; }
.toast-wrap { position: fixed; top: 14px; left: 0; right: 0; display: grid; justify-items: center; gap: 8px; z-index: 100; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; max-width: 480px; width: 100%; padding: 13px 16px; border-radius: 16px; background: var(--primary-deep); color: #fff; font-size: 13.5px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); display: flex; gap: 10px; align-items: flex-start; animation: fade-up .3s ease-out both; }
.toast.error { background: #8e3b29; }

/* ---------- Durum rozetleri (postür) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-balanced { background: var(--ok-soft); color: var(--ok); } .st-mild { background: var(--warn-soft); color: #9a6514; }
.st-marked { background: var(--bad-soft); color: var(--bad); } .st-not_assessed { background: var(--na-soft); color: #75776f; }
.st-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.st-dot.balanced { background: var(--ok); } .st-dot.mild { background: var(--warn); } .st-dot.marked { background: var(--bad); } .st-dot.not_assessed { background: var(--na); }
.st-dot .ic { width: 13px; height: 13px; stroke-width: 3; }

/* ---------- Landing ---------- */
.hero { position: relative; min-height: 100dvh; color: #fff; display: flex; flex-direction: column; padding: 26px 24px calc(28px + var(--safe-b)); overflow: hidden;
  background: radial-gradient(120% 70% at 80% 10%, rgba(217,164,111,.55), transparent 60%), radial-gradient(90% 60% at 10% 90%, rgba(137,151,121,.6), transparent 60%), linear-gradient(170deg, #3d3a2f 0%, #2f3826 55%, #1f241a 100%); }
.hero.has-photo { background-image: linear-gradient(180deg, rgba(20,22,16,.15), rgba(20,22,16,.75)), url("../img/hero.jpg"); background-size: cover; background-position: center; }
.hero .figure { position: absolute; right: -40px; bottom: 0; width: min(78vw, 520px); opacity: .9; pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.hero-body { margin-top: auto; position: relative; z-index: 2; max-width: 560px; }
.hero h1 { font-size: clamp(44px, 12vw, 76px); line-height: .98; letter-spacing: -.035em; font-weight: 700; }
.hero .tag { margin-top: 16px; font-size: 18px; opacity: .9; }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .social { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 34px; gap: 16px; }
.hero .social ul { list-style: none; margin: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.4); font-size: 13px; line-height: 1.9; opacity: .85; }
.feature-strip { background: var(--bg); padding: 56px 22px; }
.features { max-width: 1080px; margin: 0 auto; display: grid; gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh); }
.feature .fi { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--sage-soft); color: var(--primary-deep); margin-bottom: 14px; }
.btn.white { background: #fff; color: var(--text); box-shadow: none; }

/* ---------- Auth / Onboarding ---------- */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: 26px 22px; border-radius: var(--r-xl); }
.ob { width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 18px 120px; }
.ob-progress { display: flex; gap: 6px; margin: 14px 0 22px; }
.ob-progress span { height: 5px; flex: 1; border-radius: 99px; background: var(--bg-2); transition: background .3s; }
.ob-progress span.on { background: var(--primary); }
.ob-step { display: none; animation: fade-up .3s ease-out both; }
.ob-step.active { display: block; }
.ob-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 18px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(245,242,236,0), var(--bg) 30%); z-index: 20; }
.ob-foot .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }

/* Ölçüm rehberi */
.measure-layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .measure-layout { grid-template-columns: 280px 1fr; align-items: start; } .measure-guide { position: sticky; top: 24px; } }
.measure-guide { background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh); display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
@media (min-width: 900px) { .measure-guide { grid-template-columns: 1fr; } .measure-guide svg { max-width: 200px; margin: 0 auto; } }
.measure-guide svg .ml { stroke: var(--line); stroke-width: 3; stroke-linecap: round; transition: stroke .2s; }
.measure-guide svg .ml.on { stroke: var(--accent); stroke-width: 4.5; }
.measure-guide .mg-title { font-weight: 700; } .measure-guide .mg-text { font-size: 13px; color: var(--muted); margin-top: 4px; }
.m-field .prev { font-size: 12px; color: var(--muted); margin-top: 5px; }
.m-field .prev b { color: var(--text); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }

/* ---------- Planlar ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 16px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); box-shadow: var(--sh); position: relative; }
.days a b { font-size: 16px; color: var(--text); }
.days a.train::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.days a.active { background: var(--primary); color: rgba(255,255,255,.8); } .days a.active b { color: #fff; } .days a.active.train::after { background: #fff; }
.days a.today:not(.active) { outline: 1.5px solid var(--secondary); }
.ex-list { display: grid; gap: 10px; }
.ex { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh); transition: opacity .2s; }
.ex.done { opacity: .62; }
.ex.done .ex-name { text-decoration: line-through; text-decoration-color: var(--secondary); }
.ex-thumb { width: 64px; height: 64px; border-radius: 15px; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; }
.ex-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.ex-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.done-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: transparent; transition: .2s; }
.done-btn .ic { stroke-width: 3; }
.done-btn:hover { border-color: var(--primary); color: var(--secondary); }
.ex.done .done-btn { background: var(--primary); border-color: var(--primary); color: #fff; }
.done-btn[disabled] { opacity: .35; cursor: not-allowed; }
.cat-warmup { background: linear-gradient(135deg, #e7b48a, #d9a46f); } .cat-mobility { background: linear-gradient(135deg, #a8b496, #899779); }
.cat-posture { background: linear-gradient(135deg, #a898c0, #8d7aa8); } .cat-strength { background: linear-gradient(135deg, #7a8963, #4f5b3e); }
.cat-core { background: linear-gradient(135deg, #8aa3ad, #5f7f8c); } .cat-cardio { background: linear-gradient(135deg, #e3906d, #c7653f); }
.cat-cooldown { background: linear-gradient(135deg, #b8c4a8, #93a183); }
.macro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.macro > div { background: var(--bg); border-radius: 16px; padding: 12px; }
.macro b { font-size: 18px; display: block; } .macro span { font-size: 12px; color: var(--muted); }

/* Egzersiz detayı (koyu — referans 1 üçüncü ekran) */
.ex-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; padding: 22px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center; }
.ex-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,27,21,.05) 20%, rgba(25,27,21,.88)); }
.ex-hero > * { position: relative; }
.ex-hero .figure { position: absolute; right: 8px; top: 8px; width: 55%; opacity: .45; }
.ex-hero h1 { font-size: 34px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); font-size: 12.5px; font-weight: 600; }
.dark-page { background: #1c1f17; color: #f3f0e8; }
.dark-page .card { background: #2a2e24; color: #f3f0e8; box-shadow: none; }
.dark-page .muted { color: #a9ab9f; }
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.form-list li { display: flex; gap: 12px; align-items: flex-start; }
.form-list .n { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }

/* ---------- Postür ---------- */
.p-screen { max-width: 520px; margin: 0 auto; }
.p-hero-icon { width: 92px; height: 92px; margin: 18px auto 20px; color: var(--primary-dark); }
.p-list { display: grid; gap: 14px; margin: 26px 0; }
.p-item { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.p-item .pc { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--sh); color: var(--primary-dark); flex: none; }
.p-rules { display: grid; gap: 14px; }
.p-rule { display: flex; gap: 14px; align-items: center; font-size: 14.5px; }
.p-rule .pc { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: var(--primary-dark); flex: none; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { display: flex; flex-direction: column; gap: 8px; }
.slot .frame { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-2); border: 1.5px dashed #cfc8b8; display: grid; place-items: center; }
.slot .frame img { width: 100%; height: 100%; object-fit: cover; }
.slot .frame .sil { width: 46%; opacity: .35; color: var(--primary-deep); }
.slot.filled .frame { border-style: solid; border-color: var(--primary); }
.slot .slot-label { text-align: center; font-weight: 700; font-size: 13px; }
.slot .slot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slot .slot-actions button, .slot .slot-actions label { height: 36px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--primary-dark); }
.slot .slot-actions input { display: none; }
.slot .remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slot .remove .ic { width: 14px; height: 14px; }

.analyzing { text-align: center; }
.spinner { width: 54px; height: 54px; margin: 8px auto 16px; border-radius: 50%; border: 4px solid var(--bg-2); border-top-color: var(--secondary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-stage { position: relative; margin: 20px auto; max-width: 340px; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.scan-stage canvas { width: 100%; height: auto; }
.scan-stage .corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--primary); }
.scan-stage .c1 { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; } .scan-stage .c2 { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-stage .c3 { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; } .scan-stage .c4 { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-stage .scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--secondary), transparent); animation: scan 2.2s ease-in-out infinite alternate; top: 0; }
@keyframes scan { to { top: 100%; } }

.overall-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--accent-soft); }
.overall-card.balanced { background: var(--ok-soft); } .overall-card.marked { background: var(--bad-soft); } .overall-card.not_assessed { background: var(--na-soft); }
.overall-card .oi { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; color: #9b6a3a; flex: none; }
.overall-card .ol { font-size: 12px; color: var(--muted); } .overall-card .ot { font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.result-grid { display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: start; }
@media (max-width: 380px) { .result-grid { grid-template-columns: 1fr; } }
.photo-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.photo-tabs button { flex: 1; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.photo-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.lm-figure { position: relative; border-radius: 16px; overflow: hidden; background: #eae5da; }
.lm-figure img { width: 100%; height: auto; }
.lm-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lm-figure.no-photo { background: linear-gradient(180deg, #f1ede4, #e6e0d3); }
.lm-figure.no-photo svg { position: static; }
.findings { display: grid; gap: 12px; }
.finding { display: flex; gap: 10px; align-items: flex-start; }
.finding .fl { font-weight: 700; font-size: 13.5px; line-height: 1.25; } .finding .fs { font-size: 12.5px; color: var(--muted); }
.evidence { border-top: 1px solid var(--line); padding-top: 14px; }
.evidence details { border-radius: 14px; background: var(--bg); padding: 12px 14px; }
.evidence details + details { margin-top: 8px; }
.evidence summary { cursor: pointer; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; }
.evidence summary::-webkit-details-marker { display: none; }
.ev { font-size: 13px; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.ev .evh { font-weight: 700; font-size: 12px; color: var(--muted); }
.rec { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }
.rec .ri { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-soft); color: var(--primary-dark); display: grid; place-items: center; flex: none; }

/* Kamera modalı */
.cam-modal { position: fixed; inset: 0; z-index: 90; background: #0e100b; color: #fff; display: flex; flex-direction: column; }
.cam-modal .cam-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.cam-modal .cam-view { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; }
.cam-modal video { max-height: 100%; width: auto; max-width: 100%; }
.cam-modal .guide { position: absolute; inset: 6% 26%; border: 2px dashed rgba(255,255,255,.45); border-radius: 40% 40% 12% 12% / 18% 18% 6% 6%; pointer-events: none; }
.cam-modal .count { position: absolute; font-size: 96px; font-weight: 800; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.cam-modal .cam-bottom { display: flex; justify-content: space-around; align-items: center; padding: 18px 16px calc(22px + var(--safe-b)); }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.2); cursor: pointer; }
.shutter:active { background: rgba(255,255,255,.5); }
.cam-modal .ctl { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 12px; font-weight: 700; }

/* ---------- Grafik & tablolar ---------- */
.chart-box { position: relative; height: 220px; }
.chart-box.sm { height: 170px; }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 130px; }
.week-bars .wb { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.week-bars .wb i { display: block; width: 100%; max-width: 26px; border-radius: 99px; background: #d9d6c9; min-height: 10px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.week-bars .wb.on i { background: var(--primary); }
.week-bars .wb.today { color: var(--text); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.delta-up { color: var(--bad); font-weight: 700; } .delta-down { color: var(--ok); font-weight: 700; } .delta-0 { color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; }
.empty { text-align: center; padding: 30px 18px; }
.empty .ei { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; background: var(--sage-soft); color: var(--primary-dark); display: grid; place-items: center; }
.list-link { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.list-link:last-child { border-bottom: 0; }

/* Yükleniyor durumunda iskelet */
[data-loading] { position: relative; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
