/* ===========================================================
   Akış — Konuşma & Akıcılık Antrenmanı
   Tasarım yönü: sakin / editöryel wellness — derin teal + sıcak kum,
   karakterli serif (Fraunces) + temiz sans (Plus Jakarta Sans).
   =========================================================== */

/* ---------- Tasarım tokenları ---------- */
:root {
  /* tipografi */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 1.4rem + 3vw, 2.75rem);

  /* spacing & radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 999px;
  --gap: 16px;

  --dur: 240ms;
  --dur-slow: 520ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* akış vurgu renkleri (kategori) */
  --teal: oklch(64% 0.12 195);
  --coral: oklch(70% 0.16 30);
  --violet: oklch(62% 0.15 295);
  --amber: oklch(76% 0.14 75);
  --sky: oklch(68% 0.12 240);
  --rose: oklch(67% 0.15 12);
}

/* ---------- Açık tema ---------- */
:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: oklch(97% 0.012 95);
  --bg-2: oklch(94% 0.018 95);
  --surface: oklch(99.5% 0.004 95);
  --surface-2: oklch(96.5% 0.01 95);
  --elev-shadow: 0 1px 2px oklch(40% 0.03 90 / 0.05), 0 12px 30px oklch(40% 0.04 90 / 0.08);
  --soft-shadow: 0 6px 20px oklch(40% 0.04 90 / 0.07);

  --text: oklch(24% 0.02 90);
  --text-2: oklch(44% 0.02 90);
  --text-3: oklch(50% 0.018 90);
  --line: oklch(88% 0.012 95);
  --line-2: oklch(82% 0.015 95);

  --primary: oklch(52% 0.11 195);
  --primary-ink: oklch(99% 0.01 195);
  --primary-soft: oklch(93% 0.04 195);

  --ring-track: oklch(90% 0.015 95);
  --grain-opacity: 0.035;
}

/* ---------- Koyu tema ---------- */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: oklch(20% 0.022 250);
  --bg-2: oklch(24% 0.026 250);
  --surface: oklch(26% 0.026 255);
  --surface-2: oklch(30% 0.03 255);
  --elev-shadow: 0 1px 2px oklch(0% 0 0 / 0.3), 0 18px 40px oklch(0% 0 0 / 0.4);
  --soft-shadow: 0 8px 26px oklch(0% 0 0 / 0.32);

  --text: oklch(95% 0.012 250);
  --text-2: oklch(78% 0.02 250);
  --text-3: oklch(64% 0.022 250);
  --line: oklch(34% 0.026 255);
  --line-2: oklch(40% 0.03 255);

  --primary: oklch(74% 0.12 195);
  --primary-ink: oklch(18% 0.03 250);
  --primary-soft: oklch(34% 0.05 220);

  --teal: oklch(72% 0.13 195);
  --coral: oklch(74% 0.15 32);
  --violet: oklch(72% 0.14 295);
  --amber: oklch(80% 0.13 78);
  --sky: oklch(74% 0.12 240);
  --rose: oklch(74% 0.15 14);

  --ring-track: oklch(33% 0.025 255);
  --grain-opacity: 0.05;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-soft); }

/* atmosfer: ince grain dokusu */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Uygulama kabuğu ---------- */
.app {
  position: relative; z-index: 1;
  max-width: 520px; margin-inline: auto; min-height: 100dvh;
  padding-bottom: 92px;
}
.screen { padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 8px; animation: rise var(--dur-slow) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Üst başlık ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  box-shadow: var(--soft-shadow);
}
.brand h1 {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl);
  letter-spacing: -0.02em; line-height: 1;
}
.brand small { display: block; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .02em; }

.icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-full); flex: none;
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--soft-shadow);
  color: var(--text-2); transition: transform var(--dur) var(--ease), color var(--dur);
}
.icon-btn:hover { transform: translateY(-1px); color: var(--text); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Tipografik yardımcılar ---------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.02em; }
.muted { color: var(--text-2); }

/* ---------- Bugün — kahraman kart ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 24px;
  color: #fff; box-shadow: var(--elev-shadow);
  background: linear-gradient(150deg, oklch(52% 0.13 205), oklch(60% 0.12 175));
  isolation: isolate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-size: cover; background-position: center;
  background-image: var(--hero-img, none); mix-blend-mode: soft-light;
}
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); margin: 6px 0 4px; letter-spacing: -0.02em; }
.hero p { color: rgba(255,255,255,.9); font-size: var(--text-sm); max-width: 32ch; }
.hero-row { display: flex; align-items: center; gap: 18px; margin-top: 20px; }

/* ilerleme halkası */
.ring { --p: 0; width: 86px; height: 86px; flex: none; position: relative; display: grid; place-items: center; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 8; }
.ring .bar {
  fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: var(--circ); stroke-dashoffset: calc(var(--circ) - var(--circ) * var(--p));
  transition: stroke-dashoffset var(--dur-slow) var(--ease);
}
.ring b { position: absolute; font-family: var(--font-display); font-size: var(--text-xl); }
.ring b small { font-size: 10px; font-weight: 600; opacity: .8; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-full); font-weight: 700; font-size: var(--text-sm);
  background: var(--primary); color: var(--primary-ink);
  box-shadow: var(--soft-shadow); transition: transform var(--dur) var(--ease), filter var(--dur);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: scale(0.97); }
.btn.block { display: flex; width: 100%; }
.btn.lg { padding: 17px 26px; font-size: var(--text-base); }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: var(--soft-shadow); }
.btn.on-hero { background: #fff; color: oklch(45% 0.1 200); }

/* ---------- Streak / istatistik şeridi ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 6px; }
.stat {
  background: var(--surface); border-radius: var(--r-md); padding: 14px 14px 12px;
  box-shadow: var(--soft-shadow); border: 1px solid var(--line);
}
.stat .n { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; }
.stat .l { font-size: 11px; color: var(--text-3); font-weight: 600; margin-top: 5px; letter-spacing: .02em; }
.stat .n .flame { font-size: 1rem; }

/* ---------- Bölüm başlığı satırı ---------- */
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 6px 14px; }
.row-head h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.02em; }
.row-head a { font-size: var(--text-sm); color: var(--primary); font-weight: 700; padding: 8px 6px; margin: -8px -6px; }

/* ---------- Günün egzersiz listesi ---------- */
.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; box-shadow: var(--soft-shadow);
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.ex-item:hover { transform: translateX(3px); border-color: var(--line-2); }
.ex-item:active { transform: scale(0.99); }
.ex-emoji {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-size: 22px; background: var(--accent-soft, var(--surface-2));
}
.ex-item .meta { flex: 1; min-width: 0; }
.ex-item .meta b { font-weight: 700; font-size: var(--text-base); display: block; letter-spacing: -0.01em; }
.ex-item .meta span { color: var(--text-3); font-size: var(--text-xs); }
.ex-item .dur { font-size: var(--text-xs); color: var(--text-3); font-weight: 600; flex: none; }
.ex-check {
  width: 26px; height: 26px; border-radius: var(--r-full); flex: none;
  border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent;
  transition: all var(--dur) var(--ease);
}
.ex-item.done .ex-check { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.ex-item.done .meta b { color: var(--text-2); }
.ex-check svg { width: 15px; height: 15px; }

/* ---------- Kategori kartları ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cat-card {
  position: relative; overflow: hidden; text-align: left;
  border-radius: var(--r-lg); padding: 18px; min-height: 148px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--soft-shadow);
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card:active { transform: scale(0.98); }
.cat-card .blob {
  position: absolute; width: 120px; height: 120px; right: -30px; top: -34px; border-radius: 50%;
  background: var(--accent); opacity: .18; filter: blur(6px);
}
.cat-card .ci { font-size: 26px; position: relative; }
.cat-card h4 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); position: relative; }
.cat-card p { font-size: var(--text-xs); color: var(--text-2); position: relative; margin-top: 2px; }
.cat-card .pill {
  align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: var(--r-full); color: var(--accent);
  background: var(--accent-soft); position: relative; margin-top: 8px;
}

/* kategori vurgu eşleştirme */
.accent-teal   { --accent: var(--teal);   --accent-soft: color-mix(in oklab, var(--teal) 16%, var(--surface)); }
.accent-coral  { --accent: var(--coral);  --accent-soft: color-mix(in oklab, var(--coral) 16%, var(--surface)); }
.accent-violet { --accent: var(--violet); --accent-soft: color-mix(in oklab, var(--violet) 16%, var(--surface)); }
.accent-amber  { --accent: var(--amber);  --accent-soft: color-mix(in oklab, var(--amber) 18%, var(--surface)); }
.accent-sky    { --accent: var(--sky);    --accent-soft: color-mix(in oklab, var(--sky) 16%, var(--surface)); }
.accent-rose   { --accent: var(--rose);   --accent-soft: color-mix(in oklab, var(--rose) 16%, var(--surface)); }

/* ---------- Kategori detay başlığı ---------- */
.cat-hero {
  border-radius: var(--r-xl); overflow: hidden; position: relative; margin-bottom: 18px;
  min-height: 150px; display: flex; align-items: flex-end; padding: 18px; color: #fff;
  box-shadow: var(--elev-shadow);
  background: linear-gradient(160deg, var(--accent), color-mix(in oklab, var(--accent) 55%, #000));
}
.cat-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .42; mix-blend-mode: soft-light;
  background: var(--cat-img, none) center/cover;
}
.cat-hero .ch-in { position: relative; z-index: 1; }
.cat-hero h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); }
.cat-hero p { font-size: var(--text-sm); color: rgba(255,255,255,.92); max-width: 34ch; }

/* ---------- Geri / sayfa başlığı ---------- */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.back-btn { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--soft-shadow); display: grid; place-items: center; }
.back-btn svg { width: 20px; height: 20px; }
.page-head h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); }

/* ---------- Alt sekme menüsü ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 520px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; color: var(--text-3); font-size: 10.5px; font-weight: 600; border-radius: var(--r-md); transition: color var(--dur); }
.tab svg { width: 23px; height: 23px; transition: transform var(--dur) var(--ease); }
.tab.active { color: var(--primary); }
.tab.active svg { transform: translateY(-2px); }

/* ===========================================================
   Egzersiz oynatıcı (tam ekran sheet)
   =========================================================== */
.player {
  position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column;
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-2), var(--bg));
  max-width: 520px; margin-inline: auto;
}
.player.open { display: flex; animation: rise var(--dur) var(--ease) both; }
.player-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 6px; }
.player-top .step-dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: all var(--dur) var(--ease); }
.dot.active { background: var(--primary); width: 22px; border-radius: var(--r-full); }
.dot.done { background: var(--primary); opacity: .5; }

.player-body { flex: 1; overflow-y: auto; padding: 8px 24px 20px; display: flex; flex-direction: column; }
.player .kicker { text-align: center; color: var(--accent, var(--primary)); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.player h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); text-align: center; letter-spacing: -0.02em; margin-top: 4px; }
.player .goal { text-align: center; color: var(--text-2); font-size: var(--text-sm); max-width: 36ch; margin: 8px auto 0; }

/* nefes orbu */
.orb-wrap { display: grid; place-items: center; margin: 14px auto; min-height: 240px; position: relative; }
.orb {
  width: 180px; height: 180px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 30%, color-mix(in oklab, var(--accent, var(--primary)) 70%, #fff), var(--accent, var(--primary)) 60%, color-mix(in oklab, var(--accent, var(--primary)) 60%, #000));
  box-shadow: 0 20px 60px color-mix(in oklab, var(--accent, var(--primary)) 45%, transparent);
  transition: transform var(--orb-dur, 4s) var(--ease), box-shadow var(--orb-dur, 4s) var(--ease);
  transform: scale(var(--orb-scale, 0.62));
}
.orb::after { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--accent, var(--primary)) 40%, transparent); opacity: .5; }
.orb-phase { color: #fff; font-weight: 700; font-size: var(--text-lg); text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.orb-count { position: absolute; bottom: 6px; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: var(--text-sm); font-weight: 600; }

/* zamanlayıcı dairesi (timed) */
.timer { display: grid; place-items: center; margin: 18px auto; position: relative; width: 220px; height: 220px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer .t-track { fill: none; stroke: var(--ring-track); stroke-width: 10; }
.timer .t-bar { fill: none; stroke: var(--accent, var(--primary)); stroke-width: 10; stroke-linecap: round; stroke-dasharray: var(--tcirc); stroke-dashoffset: var(--toff, 0); transition: stroke-dashoffset 1s linear; }
.timer .t-num { position: absolute; font-family: var(--font-display); font-size: 3rem; font-variant-numeric: tabular-nums; }

/* uygulama içeriği (adımlar / kelimeler) */
.practice-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--soft-shadow); margin-top: 6px; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--text); }
.steps li .num { flex: none; width: 25px; height: 25px; border-radius: 50%; background: var(--accent-soft, var(--primary-soft)); color: var(--accent, var(--primary)); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.chips { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.chip-line {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; font-size: var(--text-base); line-height: 1.5;
}
.chip-line.big { font-family: var(--font-display); font-size: var(--text-lg); }
.tips { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tip { display: flex; gap: 9px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-2); }
.tip svg { width: 17px; height: 17px; color: var(--amber); flex: none; margin-top: 2px; }
.source-line { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 18px; }

.player-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; gap: 12px; border-top: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(10px); }
.player-foot .btn { flex: 1; }

/* ---------- Tamamlandı ekranı ---------- */
.done-screen { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 30px) 30px 30px; }
.done-screen .big-emoji { font-size: 64px; animation: pop var(--dur-slow) var(--ease) both; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.done-screen h2 { font-family: var(--font-display); font-size: var(--text-3xl); }

/* ---------- Ayarlar ---------- */
.set-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--soft-shadow); margin-bottom: 18px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-row .si { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.set-row .si svg { width: 19px; height: 19px; color: var(--text-2); }
.set-row .st { flex: 1; }
.set-row .st b { font-weight: 600; display: block; font-size: var(--text-base); }
.set-row .st span { font-size: var(--text-xs); color: var(--text-3); }

/* toggle */
.switch { width: 52px; height: 30px; border-radius: var(--r-full); background: var(--line-2); position: relative; flex: none; transition: background var(--dur) var(--ease); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform var(--dur) var(--ease); }
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(22px); }

/* segmented (tema seçimi) */
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--r-full); padding: 4px; }
.seg button { flex: 1; padding: 7px 10px; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: 700; color: var(--text-3); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--soft-shadow); }

/* ---------- İlerleme ekranı ---------- */
.week-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--soft-shadow); margin-bottom: 14px; }
.week-card .wh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.week-card .wh b { font-family: var(--font-display); font-size: var(--text-lg); }
.week-card .wh span { font-size: var(--text-xs); color: var(--text-3); font-weight: 600; }
.day-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-dot { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: var(--text-xs); font-weight: 800; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); transition: transform var(--dur) var(--ease); }
.day-dot:active { transform: scale(0.9); }
.day-dot.done { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.day-dot.today { box-shadow: 0 0 0 2px var(--primary); color: var(--primary); }

.info-card { background: var(--primary-soft); border-radius: var(--r-lg); padding: 18px; font-size: var(--text-sm); color: var(--text); display: flex; gap: 12px; }
.info-card svg { width: 22px; height: 22px; color: var(--primary); flex: none; }

/* yardımcı */
.spacer-lg { height: 26px; }
.center-note { text-align: center; color: var(--text-3); font-size: var(--text-xs); padding: 16px; }
/* ---------- 150 günlük ızgara ---------- */
.day-dots.dots-30 { grid-template-columns: repeat(6, 1fr); gap: 7px; }
.dots-30 .day-dot { font-size: 11px; border-radius: 10px; }

/* ---------- tekerleme etiketi ---------- */
.tw-tag { display: inline-block; font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: var(--accent, var(--primary)); background: var(--accent-soft, var(--primary-soft)); padding: 2px 7px; border-radius: var(--r-full); margin-right: 8px; vertical-align: middle; }

/* ---------- sesli okuma parçası ---------- */
.reading-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); margin-bottom: 8px; color: var(--accent, var(--text)); }
.reading-text { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.7; color: var(--text); }

/* ===========================================================
   BİLİŞSEL — Düşün ve Anlat (görsel + kayıt + AI)
   =========================================================== */
.cog-img {
  flex: none; height: 178px; border-radius: var(--r-lg); margin: 6px 0 14px; position: relative; overflow: hidden;
  background-color: var(--accent, var(--primary)); background-size: cover; background-position: center;
  box-shadow: var(--elev-shadow);
}
.cog-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%); }
.cog-day { position: absolute; z-index: 1; left: 12px; bottom: 10px; color: #fff; font-weight: 700; font-size: var(--text-sm);
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: var(--r-full); }
.cog-prompt { background: var(--accent-soft, var(--primary-soft)); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 14px; }
.cog-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--primary)); }
.cog-prompt p { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.4; margin-top: 6px; color: var(--text); }

.cog-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.mic-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; justify-content: center;
  width: 138px; height: 138px; border-radius: 50%; background: var(--accent, var(--primary)); color: #fff;
  box-shadow: 0 14px 36px color-mix(in oklab, var(--accent, var(--primary)) 45%, transparent); font-weight: 700; font-size: var(--text-xs);
  transition: transform var(--dur) var(--ease), filter var(--dur); text-align: center; padding: 10px; }
.mic-btn svg { width: 38px; height: 38px; }
.mic-btn:hover { transform: translateY(-2px) scale(1.02); }
.mic-btn:active { transform: scale(0.96); }
.mic-btn.recording { background: var(--coral); animation: recPulse 1.4s ease-in-out infinite; }
.mic-btn.recording span { font-variant-numeric: tabular-nums; font-size: var(--text-base); }
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--coral) 55%, transparent); } 50% { box-shadow: 0 0 0 18px color-mix(in oklab, var(--coral) 0%, transparent); } }

.cog-type-link { color: var(--text-3); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.cog-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; font-size: var(--text-sm); color: var(--text-2); text-align: center; width: 100%; }
.cog-input { width: 100%; min-height: 120px; resize: vertical; border-radius: var(--r-md); border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--text); padding: 13px 15px; font: inherit; font-size: var(--text-base); line-height: 1.55; }
.cog-input:focus { outline: none; border-color: var(--accent, var(--primary)); }
.cog-trans-label { display: flex; align-items: center; gap: 8px; align-self: flex-start; font-size: var(--text-sm); font-weight: 600; color: var(--text-2); }
.cog-trans-label svg { width: 16px; height: 16px; }
.cog-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-2); font-size: var(--text-sm); padding: 22px; }
.cog-loading svg { width: 34px; height: 34px; color: var(--accent, var(--primary)); animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* AI değerlendirme kartı */
.eval-card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--soft-shadow); }
.eval-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.eval-score { flex: none; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
  color: var(--accent, var(--primary)); background: var(--accent-soft, var(--primary-soft)); }
.eval-score small { font-size: .7rem; color: var(--text-3); }
.eval-ozet { font-size: var(--text-sm); color: var(--text); line-height: 1.5; }
.scores { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.score-h { display: flex; justify-content: space-between; font-size: var(--text-xs); font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.score-track { height: 8px; border-radius: var(--r-full); background: var(--ring-track); overflow: hidden; }
.score-track i { display: block; height: 100%; border-radius: var(--r-full); background: var(--accent, var(--primary)); transition: width var(--dur-slow) var(--ease); }
.score-track i.lo { background: var(--coral); }
.score-track i.mid { background: var(--amber); }
.score-track i.hi { background: var(--teal); }
.eval-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.eval-sec h5 { font-size: var(--text-sm); font-weight: 700; margin-bottom: 6px; }
.eval-sec ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: var(--text-sm); color: var(--text-2); }
.eval-better { font-family: var(--font-display); font-size: var(--text-base); font-style: italic; color: var(--text); background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.eval-level { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, var(--primary)); background: var(--accent-soft, var(--primary-soft)); padding: 3px 10px; border-radius: var(--r-full); margin-bottom: 6px; }
.eval-sec.hw { background: var(--accent-soft, var(--primary-soft)); border-radius: var(--r-md); padding: 12px 14px; border-top: none; }
.eval-sec.hw h5 { color: var(--accent, var(--primary)); }
.eval-sec.hw p { font-size: var(--text-sm); color: var(--text); }

/* ---------- Günün Tekerlemesi (3 etap × 3 tekrar) ---------- */
.tw-letter { flex: none; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 6px 0 16px; padding: 12px 26px; border-radius: var(--r-lg); background: var(--accent-soft, var(--primary-soft));
  color: var(--accent, var(--primary)); font-family: var(--font-display); font-weight: 600; font-size: 3rem; line-height: 1; box-shadow: var(--soft-shadow); }
.tw-letter small { font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 9px; }
.tw-text { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.55; color: var(--text); }
.tw-stages { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tw-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; box-shadow: var(--soft-shadow); transition: border-color var(--dur) var(--ease), background var(--dur); }
.tw-stage.done { border-color: var(--accent, var(--primary)); background: color-mix(in oklab, var(--accent, var(--primary)) 8%, var(--surface)); }
.tw-stage-h { display: flex; align-items: center; gap: 12px; }
.tw-stage-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--accent-soft, var(--primary-soft)); color: var(--accent, var(--primary)); transition: all var(--dur); }
.tw-stage.done .tw-stage-n { background: var(--accent, var(--primary)); color: #fff; }
.tw-stage-h b { font-size: var(--text-base); display: block; letter-spacing: -0.01em; }
.tw-stage-h span { font-size: var(--text-xs); color: var(--text-3); }
.tw-reps { display: flex; gap: 12px; margin-top: 12px; padding-left: 42px; }
.tw-rep { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface-2); position: relative; transition: transform var(--dur) var(--ease), background var(--dur), border-color var(--dur); }
.tw-rep:hover { border-color: var(--accent, var(--primary)); }
.tw-rep:active { transform: scale(0.88); }
.tw-rep.done { background: var(--accent, var(--primary)); border-color: var(--accent, var(--primary)); }
.tw-rep.done::after { content: ''; position: absolute; left: 50%; top: 47%; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); }

/* ---------- Diksiyon tabloları (artikülasyon / ünsüz) ---------- */
.dt-badge { flex: none; align-self: center; display: flex; flex-direction: column; align-items: center;
  margin: 6px 0 14px; padding: 10px 24px; border-radius: var(--r-lg); background: var(--accent-soft, var(--primary-soft));
  color: var(--accent, var(--primary)); font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; line-height: 1; box-shadow: var(--soft-shadow); letter-spacing: .02em; }
.dt-badge small { font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.dtable-wrap { overflow-x: auto; margin: 0 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--soft-shadow); -webkit-overflow-scrolling: touch; }
.dtable { border-collapse: collapse; width: 100%; background: var(--surface); font-variant-numeric: tabular-nums; }
.dtable td { border: 1px solid var(--line); padding: 8px 7px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.dtable.cons td { font-size: 13.5px; padding: 7px 9px; }
.dtable tr:nth-child(even) td { background: color-mix(in oklab, var(--accent, var(--primary)) 5%, var(--surface)); }
.dtable tr.hd td { background: var(--accent-soft, var(--primary-soft)); color: var(--accent, var(--primary)); font-weight: 800; }

/* ---------- Onboarding (profil seçimi) ---------- */
.onb { padding: 34px 22px 40px; text-align: center; animation: rise var(--dur-slow) var(--ease) both; }
.onb-logo { width: 64px; height: 64px; border-radius: 18px; margin: 6px auto 16px; box-shadow: var(--soft-shadow); }
.onb-lead { color: var(--text-2); font-size: var(--text-sm); max-width: 36ch; margin: 8px auto 24px; }
.onb-cards { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.onb-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--soft-shadow); transition: transform var(--dur) var(--ease), border-color var(--dur); }
.onb-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.onb-card:active { transform: scale(0.99); }
.onb-emoji { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 25px; background: var(--accent-soft); }
.onb-tx { flex: 1; min-width: 0; }
.onb-tx b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); display: block; }
.onb-tx p { font-size: var(--text-xs); color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.onb-go { flex: none; color: var(--accent); }
.onb-go svg { width: 22px; height: 22px; }
.onb-note { color: var(--text-3); font-size: 11px; margin-top: 24px; }

/* ---------- AI ana şifre kapısı ---------- */
.pw-gate { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; text-align: center; padding: 8px 0; }
.pw-gate svg { width: 34px; height: 34px; color: var(--accent, var(--primary)); }
.pw-gate p { font-size: var(--text-sm); color: var(--text-2); }
.pw-input { width: 100%; height: 50px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 15px; font: inherit; font-size: var(--text-base); text-align: center; letter-spacing: .05em; }
.pw-input:focus { outline: none; border-color: var(--accent, var(--primary)); }
.pw-err { color: var(--coral); font-size: var(--text-sm); }

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