/* ================= Nefes — tasarım sistemi ================= */
:root {
  --bg: #0d0b0a;
  --surface: #171412;
  --surface-2: #201c19;
  --surface-3: #2c2622;
  --line: rgba(255, 238, 226, .07);
  --line-2: rgba(255, 238, 226, .13);
  --text: #f7f0ea;
  --muted: #a69b92;
  --faint: #6e645d;
  --accent: #ff7a52;
  --accent-2: #ffc06a;
  --mint: #7fe3b8;
  --danger: #ff6b6b;
  --grad: linear-gradient(135deg, var(--accent-2), var(--accent));
  --radius: 22px;
  --radius-sm: 14px;
  --tabbar-h: 68px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { display: block; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.glow {
  position: fixed; left: 50%; top: -28vh; width: 140vw; height: 70vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 122, 82, .20), rgba(255, 192, 106, .05) 55%, transparent 75%);
  pointer-events: none; z-index: 0;
}

#app {
  position: relative; z-index: 1;
  max-width: 480px; margin: 0 auto;
  padding: calc(var(--safe-t) + 22px) 18px calc(var(--tabbar-h) + var(--safe-b) + 32px);
}

.view { display: none; }
.view.active { display: block; animation: rise .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- başlık ---------- */
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }
.title { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.pill {
  font-size: 12px; color: var(--muted); white-space: nowrap;
  border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; margin-bottom: 4px;
}
.section-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 30px 2px 12px; }

/* ---------- kahraman sayaç ---------- */
.hero { position: relative; width: min(76vw, 292px); aspect-ratio: 1; margin: 4px auto 18px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.ring-bar {
  fill: none; stroke: url(#rg); stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset .9s cubic-bezier(.3, .7, .3, 1);
  filter: drop-shadow(0 0 9px rgba(255, 122, 82, .5));
}
.hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.days { display: flex; align-items: baseline; gap: 6px; }
#days {
  font-size: clamp(72px, 23vw, 92px); font-weight: 750; letter-spacing: -.055em; line-height: .95;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #ffd2bb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.unit { font-size: 19px; color: var(--muted); font-weight: 600; }
.clock { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .03em; margin-top: 8px; }
.hero-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--faint); margin-top: 6px; }

/* ---------- kartlar ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 650; margin-bottom: 14px; }
.chip-sm {
  display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(255, 192, 106, .1); padding: 4px 9px; border-radius: 999px;
}

.next-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-in { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.next-title { font-size: 18px; font-weight: 700; margin-top: 10px; }
.next-body { font-size: 14px; color: var(--muted); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 12px;
}
.stat-val { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-lbl { font-size: 12px; color: var(--muted); line-height: 1.25; }

/* ---------- "canım çekti" ---------- */
.sos {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 16px 16px 14px; margin: 6px 0 14px;
  border-radius: var(--radius);
  background: var(--grad); color: #2a1208;
  box-shadow: 0 14px 40px -12px rgba(255, 122, 82, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease;
}
.sos:active { transform: scale(.98); }
.sos-icon {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(42, 18, 8, .14);
}
.sos-icon svg { width: 22px; height: 22px; fill: #2a1208; }
.sos-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(42, 18, 8, .35); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sos-text { flex: 1; display: flex; flex-direction: column; }
.sos-text strong { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.sos-text small { font-size: 13px; opacity: .75; font-weight: 550; }
.sos-arrow { width: 22px; height: 22px; fill: none; stroke: #2a1208; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

/* ---------- sebep ---------- */
.reason { position: relative; padding: 18px 20px 16px 22px; border-left: 2px solid var(--accent); margin: 8px 2px 0; }
.reason-mark { position: absolute; left: 10px; top: -6px; font: 700 52px/1 Georgia, serif; color: var(--accent); opacity: .3; }
.reason blockquote { font: italic 500 19px/1.4 Georgia, "Times New Roman", serif; color: var(--text); }
.reason figcaption { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

/* ---------- zaman çizelgesi ---------- */
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-3); border-radius: 2px; }
.tl { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.tl-dot {
  position: relative; z-index: 1; flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 3px;
  background: var(--bg); border: 2px solid var(--surface-3);
}
.tl.done .tl-dot { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px rgba(127, 227, 184, .12); }
.tl.cur .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 122, 82, .16); }
.tl.cur .tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 8px; }
.tl-head strong { font-size: 15px; }
.tl-state { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl.done .tl-state { color: var(--mint); }
.tl-body p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.tl:not(.done):not(.cur) .tl-body { opacity: .55; }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); border: 1px solid rgba(255, 192, 106, .3); padding: 1px 6px; border-radius: 6px; }
.bar { height: 5px; background: var(--surface-3); border-radius: 5px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }

/* ---------- ipuçları ---------- */
.tips { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tips li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.tip-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font-size: 18px; }
.tips strong { font-size: 15px; }
.tips p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- günlük ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; }
.bar-row .bar { margin: 0; height: 8px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.empty { font-size: 14px; color: var(--faint); text-align: center; padding: 10px 0; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 80px; }
.hours i { display: block; background: var(--surface-3); border-radius: 3px 3px 1px 1px; min-height: 3px; }
.hours i.hot { background: var(--grad); }
.hours-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; font-variant-numeric: tabular-nums; }

.log-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.log-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.log-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.log-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.log-item.win .log-ic { background: rgba(127, 227, 184, .12); color: var(--mint); }
.log-item.slip .log-ic { background: rgba(255, 192, 106, .12); color: var(--accent-2); }
.log-txt { flex: 1; min-width: 0; }
.log-txt strong { display: block; font-size: 14.5px; font-weight: 650; }
.log-txt span { font-size: 12.5px; color: var(--muted); }
.dots { display: flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.dots i.on { background: var(--accent); }

/* ---------- formlar / butonlar ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 13px; color: var(--muted); font-weight: 550; }
.field em { font-style: normal; color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 13px; font-size: 16px; outline: none; resize: vertical; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.primary-btn {
  width: 100%; padding: 16px; border-radius: 16px; font-size: 17px; font-weight: 700;
  background: var(--grad); color: #2a1208; box-shadow: 0 12px 30px -12px rgba(255, 122, 82, .6);
  transition: transform .15s;
}
.primary-btn:active { transform: scale(.98); }
.link-btn { display: block; margin: 12px auto 0; padding: 8px 12px; font-size: 14px; color: var(--muted); font-weight: 550; }
.ghost-btn { width: 100%; margin-top: 18px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; font-weight: 550; }
.danger-btn { width: 100%; padding: 14px; border-radius: 14px; color: var(--danger); background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .2); font-weight: 600; margin-top: 6px; }
.footnote { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 550;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.chip.on { background: rgba(255, 122, 82, .16); border-color: var(--accent); color: #ffd5c4; }
.form-q { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 10px; }

/* ---------- sekme çubuğu ---------- */
.tabbar {
  position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(13, 11, 10, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 11px; font-weight: 600; transition: color .2s; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tab.active { color: var(--text); }
.tab.active svg { stroke: var(--accent); transform: translateY(-1px); }

/* ---------- kriz modu ---------- */
.crisis {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background:
    radial-gradient(120% 70% at 50% 38%, rgba(255, 122, 82, .16), transparent 60%),
    #0b0908;
  opacity: 0; transition: opacity .35s ease;
}
.crisis.open { opacity: 1; }
.crisis-run, .crisis-end {
  max-width: 480px; min-height: 100%; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 14px) 20px calc(var(--safe-b) + 22px);
}
.crisis-end { display: none; justify-content: center; text-align: center; }
.crisis.done .crisis-run { display: none; }
.crisis.done .crisis-end { display: flex; animation: rise .45s cubic-bezier(.2, .7, .2, 1); }

.crisis-top { display: flex; align-items: center; justify-content: space-between; }
.icon-btn, .icon-btn-spacer { width: 44px; height: 44px; flex: none; }
.icon-btn { display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.crisis-timer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.crisis-timer span { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.crisis-progress { width: 120px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.crisis-progress i { display: block; height: 100%; width: 0; background: var(--grad); }

.breath { flex: 1; display: grid; place-items: center; min-height: 270px; }
.orb-wrap { position: relative; width: min(72vw, 280px); aspect-ratio: 1; display: grid; place-items: center; }
.orb, .orb-halo { position: absolute; inset: 0; border-radius: 50%; }
.orb-halo { border: 1px solid var(--line-2); }
.orb {
  background: radial-gradient(circle at 35% 30%, #ffe0b8, var(--accent-2) 30%, var(--accent) 70%, #d9522e);
  box-shadow: 0 0 80px -6px rgba(255, 122, 82, .55), inset 0 -10px 40px rgba(120, 30, 0, .35);
  transform: scale(.5);
}
.orb[data-phase="in"]   { transform: scale(1);  transition: transform 4s cubic-bezier(.45, 0, .4, 1); }
.orb[data-phase="hold"] { transform: scale(1);  transition: transform .2s; }
.orb[data-phase="out"]  { transform: scale(.5); transition: transform 6s cubic-bezier(.45, 0, .4, 1); }
.orb-label { position: relative; display: flex; flex-direction: column; align-items: center; color: #2a1208; text-shadow: 0 1px 0 rgba(255, 255, 255, .2); }
.orb-label strong { font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.orb-label span { font-size: 15px; font-weight: 650; opacity: .7; font-variant-numeric: tabular-nums; min-height: 20px; }

.task-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; text-align: center; }
.task-card p { font-size: 17px; font-weight: 600; margin-top: 10px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.task-card .link-btn { margin-top: 2px; }
.crisis-reason { text-align: center; font: italic 16px/1.4 Georgia, serif; color: var(--muted); margin: 16px 8px; }
.crisis-reason::before { content: "Unutma: "; font-style: normal; font-family: inherit; color: var(--faint); }

.check {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: rgba(127, 227, 184, .12); box-shadow: 0 0 0 10px rgba(127, 227, 184, .05);
}
.check svg { width: 44px; height: 44px; fill: none; stroke: var(--mint); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.crisis.done .check svg { animation: draw .6s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.crisis-end h2 { font-size: 34px; font-weight: 750; letter-spacing: -.03em; }
.crisis-end > .muted { margin-top: 6px; font-size: 15px; }
.log-form { text-align: left; margin: 10px 0 24px; }

/* ---------- alt sayfa ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.sheet-back.open { opacity: 1; }
.sheet {
  width: 100%; max-width: 480px; background: var(--surface-2); border-radius: 26px 26px 0 0;
  border-top: 1px solid var(--line-2);
  padding: 10px 20px calc(var(--safe-b) + 18px);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.sheet-back.open .sheet { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 0 auto 16px; }
.sheet h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.sheet > .muted { font-size: 14.5px; margin-top: 6px; }
.sheet .primary-btn { margin-top: 22px; }

/* ---------- bildirim ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #f7f0ea; color: #1a1210; font-size: 14px; font-weight: 600;
  padding: 11px 16px; border-radius: 14px; max-width: calc(100vw - 40px); width: max-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: all .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .stat-val { font-size: 18px; }
  .bar-row { grid-template-columns: 88px 1fr 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; }
}

/* ================= yapay zekâ ================= */
/* ayarlar */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head .card-title { margin: 0; }
.status { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.status.ok { background: rgba(127, 227, 184, .12); color: var(--mint); }
.status.err { background: rgba(255, 107, 107, .1); color: var(--danger); }
.key-row { display: flex; gap: 8px; }
.key-row input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
.mini-btn { flex: none; padding: 0 14px; border-radius: 12px; background: var(--surface-3); font-size: 14px; font-weight: 600; color: var(--muted); }
.field select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a69b92' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 38px 12px 13px; font: inherit; font-size: 16px; color: var(--text); outline: none;
}
.field select:focus { border-color: var(--accent); }
.secondary-btn { width: 100%; padding: 13px; border-radius: 12px; background: var(--surface-3); font-weight: 650; font-size: 15px; transition: opacity .2s; }
.secondary-btn:disabled { opacity: .5; }
.field-note { font-size: 12.5px; color: var(--faint); line-height: 1.45; }
.field-note.ok { color: var(--mint); }
.field-note.err { color: #ff9b9b; }

/* kriz ekranındaki buton */
.coach-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; margin-top: 10px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-2); transition: transform .15s;
}
.coach-btn:active { transform: scale(.98); }
.coach-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(127, 227, 184, .12); color: var(--mint); }
.coach-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.coach-txt { flex: 1; min-width: 0; }
.coach-txt strong { display: block; font-size: 15.5px; font-weight: 650; }
.coach-txt small { font-size: 12.5px; color: var(--muted); }
.chev { width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* sohbet paneli */
.coach {
  position: fixed; z-index: 55; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh);
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 50% at 50% 0%, rgba(255, 122, 82, .10), transparent 60%), #0e0c0b;
  transform: translateY(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.coach.open { transform: none; }
.coach-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 12px) 16px 12px; border-bottom: 1px solid var(--line); }
.coach-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.coach-title strong { font-size: 16px; font-weight: 700; }
.coach-title span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-orb {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe0b8, var(--accent-2) 30%, var(--accent) 70%, #d9522e);
  box-shadow: 0 0 18px rgba(255, 122, 82, .45);
  animation: breathe 14s cubic-bezier(.45, 0, .4, 1) infinite;
}
@keyframes breathe { 0% { transform: scale(.55); } 28.6% { transform: scale(1); } 57.1% { transform: scale(1); } 100% { transform: scale(.55); } }

.coach-msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .3s cubic-bezier(.2, .7, .2, 1);
}
.msg.model { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #2a1208; font-weight: 550; border-bottom-right-radius: 6px; }
.msg.error { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .25); color: #ffc9c9; }
.msg-act { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--accent-2); }
.typing-dots { display: inline-flex; gap: 5px; padding: 5px 2px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bob 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

.coach-quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.coach-quick::-webkit-scrollbar { display: none; }
.coach-quick .chip { flex: none; white-space: nowrap; font-size: 13.5px; padding: 8px 13px; }

.coach-input {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px calc(var(--safe-b) + 10px); border-top: 1px solid var(--line); background: rgba(13, 11, 10, .92);
}
.coach-input textarea {
  flex: 1; min-width: 0; resize: none; max-height: 120px; height: 44px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 22px;
  padding: 11px 15px; font-size: 16px; line-height: 1.35; outline: none; transition: border-color .2s;
}
.coach-input textarea:focus { border-color: var(--accent); }
.round-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); transition: opacity .2s, background .2s; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.send-btn { background: var(--grad); border: 0; color: #2a1208; }
.send-btn:disabled { opacity: .35; }
.mic-btn.on { background: rgba(255, 107, 107, .15); border-color: var(--danger); color: var(--danger); animation: blink 1.2s ease-in-out infinite; }

/* yedek */
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.form .field-row .secondary-btn { font-size: 14px; padding: 12px 8px; }
