/* Combup: uygulama içinde düşünen asistanın arayüzü */

@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f0ebe3;
  --surface-glass: rgba(255, 255, 255, 0.74);
  --ink: #1b1a17;
  --ink-2: #4a453e;
  --muted: #7d746a;
  --line: #e6dfd4;
  --accent: #d9512c;
  --accent-hover: #bf4221;
  --accent-soft: #fbe5dc;
  --ai-1: #ff6a3d;
  --ai-2: #8b5cf6;
  --ai-3: #ffb547;
  --ai-ink: #6d3fd6;
  --ai-soft: #efe8ff;
  --ok: #2e7d4f;
  --warn: #9a5f12;
  --warn-soft: #faefdb;
  --danger: #b42318;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 26, 23, 0.05), 0 12px 32px rgba(27, 26, 23, 0.07);
  --shadow-lift: 0 2px 4px rgba(27, 26, 23, 0.06), 0 18px 40px rgba(27, 26, 23, 0.13);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a17;
    --surface-2: #27241f;
    --surface-glass: rgba(30, 28, 25, 0.74);
    --ink: #f3efe8;
    --ink-2: #d4ccc1;
    --muted: #a0978c;
    --line: #34302a;
    --accent: #ee7550;
    --accent-hover: #f58b69;
    --accent-soft: #3b241c;
    --ai-1: #ff7d52;
    --ai-2: #a78bfa;
    --ai-3: #ffc266;
    --ai-ink: #c4b0ff;
    --ai-soft: #2a2238;
    --ok: #6fcf97;
    --warn: #e0a654;
    --warn-soft: #3a2c16;
    --danger: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 44px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arka plan aurası: asistan çalışırken yoğunlaşır */
body::before {
  content: "";
  position: fixed;
  inset: -25vh -15vw auto -15vw;
  height: 80vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 32%, color-mix(in srgb, var(--ai-1) 20%, transparent), transparent 70%),
    radial-gradient(34% 42% at 78% 18%, color-mix(in srgb, var(--ai-2) 18%, transparent), transparent 70%),
    radial-gradient(30% 36% at 55% 55%, color-mix(in srgb, var(--ai-3) 13%, transparent), transparent 72%);
  filter: blur(48px);
  opacity: 0.4;
  transition: opacity 1.2s ease;
  animation: aura-drift 22s ease-in-out infinite alternate;
}
body:not([data-agent="idle"])::before { opacity: 0.95; }
body[data-agent="writing"]::before { opacity: 0.7; }

@keyframes aura-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3vw, 2vh, 0) scale(1.06); }
  100% { transform: translate3d(-2vw, 4vh, 0) scale(0.98); }
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ai-2); outline-offset: 2px; border-radius: 6px; }

/* ---- küre: asistanın varlığı ---------------------------------------------------------------------- */

.orb {
  --size: 22px;
  position: relative;
  flex: none;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  isolation: isolate;
}
.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-1));
  animation: spin 7s linear infinite;
  transition: filter 0.6s ease;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 70% 78%, rgba(0, 0, 0, 0.16), transparent 55%);
}
.orb .halo {
  position: absolute;
  inset: -50%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ai-2) 50%, transparent), transparent 65%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s, transform 0.5s;
}

.orb.busy::before,
body:not([data-agent="idle"]) .orb.sync::before { animation-duration: 1.6s; filter: saturate(1.25) brightness(1.05); }
body[data-agent="searching"] .orb.sync::before { animation-duration: 0.9s; filter: saturate(1.4) hue-rotate(-28deg); }
body[data-agent="composing"] .orb.sync::before { animation-duration: 1.2s; filter: saturate(1.4) hue-rotate(24deg); }
body[data-agent="writing"] .orb.sync::before { animation-duration: 3.2s; filter: saturate(1.1); }
.orb.busy .halo,
body:not([data-agent="idle"]) .orb.sync .halo { opacity: 1; transform: scale(1); animation: breathe 1.6s ease-in-out infinite; }
.orb.still::before { animation-play-state: paused; filter: saturate(0.45) brightness(1.04); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(0.75); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 1; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--ink-2) 0%, var(--ink-2) 36%, var(--ai-2) 47%, var(--ai-1) 54%, var(--ink-2) 66%, var(--ink-2) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 2.2s linear infinite;
}
@keyframes shimmer-text {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

.dots::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Yumuşak aç/kapa: grid satırı 1fr ↔ 0fr (JS geçiş süresince .animating ekler) */
.collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.5s var(--ease-out), opacity 0.4s ease;
}
.collapse > .collapse-inner { min-height: 0; }
.collapse.closed > .collapse-inner,
.collapse.animating > .collapse-inner { overflow: hidden; }
.collapse.closed { grid-template-rows: 0fr; opacity: 0; }

/* ---- üst bar ------------------------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .orb { --size: 18px; margin-right: 9px; }
.brand-dot { color: var(--accent); }

.stats { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.top-link {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.top-link:hover { background: var(--surface-2); color: var(--ink); }

.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), background 0.2s, color 0.2s;
}
.ghost:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.ghost.danger { color: var(--danger); }
.ghost.danger:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }

.icon-hanger { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.profile-button { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.profile-button.has-profile { border-color: color-mix(in srgb, var(--ai-2) 40%, var(--line)); }
.profile-button.has-profile::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
  box-shadow: 0 0 0 2px var(--surface);
  animation: pop 0.45s var(--ease-spring) both;
}

/* ---- akış --------------------------------------------------------------------------------------- */

.feed {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 200px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
body.resetting .feed { opacity: 0; transform: translateY(8px); }

.feed > * { scroll-margin: 84px 0 170px; }

.hero {
  padding: 7vh 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* yatay karuseller sütunu genişletmesin */
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.55s var(--ease-out), opacity 0.4s ease, transform 0.55s var(--ease-out), padding 0.55s var(--ease-out);
}
.hero-inner { min-height: 0; min-width: 0; }
.hero-inner > :not(.trends, .discover) { max-width: 820px; }
.hero.leaving { grid-template-rows: 0fr; opacity: 0; transform: translateY(-18px) scale(0.99); padding-block: 0; pointer-events: none; }
.hero.leaving .hero-inner { overflow: hidden; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  padding: 6px 15px 6px 7px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid color-mix(in srgb, var(--ai-2) 18%, var(--line));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--ink-2);
  animation: rise 0.7s var(--ease-out) both;
}
.hero-badge .orb { --size: 26px; }
.hero-badge strong { font-weight: 600; color: var(--ink); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  animation: rise 0.8s 0.06s var(--ease-out) both;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(95deg, var(--ai-1), var(--ai-2) 58%, var(--ai-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.hero-inner > p { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; max-width: 660px; animation: rise 0.8s 0.12s var(--ease-out) both; }

.suggestions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding-bottom: 6px; }

.suggestion {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-glass);
  color: var(--ink-2);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s, color 0.25s;
  animation: rise 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 220ms);
}
.suggestion::before { content: "✦ "; color: var(--ai-2); }
.suggestion::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--ai-2) 13%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.suggestion:hover { border-color: color-mix(in srgb, var(--ai-2) 45%, var(--line)); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.suggestion:hover::after { transform: translateX(100%); }

.msg-user {
  margin: 30px 0 10px auto;
  max-width: min(680px, 88%);
  width: fit-content;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 16px;
  border-radius: 20px 20px 5px 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: bubble-in 0.5s var(--ease-spring) both;
  transform-origin: bottom right;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.turn { margin: 16px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.turn > * { scroll-margin: 84px 0 170px; }

/* ---- düşünme paneli ----------------------------------------------------------------------------- */

.thought { align-self: stretch; max-width: 760px; animation: rise 0.5s var(--ease-out) both; }

.thought-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  color: var(--ink-2);
  cursor: default;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.thought-head .orb { --size: 20px; }
.thought-head .label { font-weight: 550; }
.thought-head .timer { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.thought-head .chev { width: 16px; height: 16px; color: var(--muted); transition: transform 0.35s var(--ease-out); }

.thought-head { position: relative; }
.thought-head::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-angle), var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: ring 2.2s linear infinite paused;
  transition: opacity 0.7s ease;
}
.thought.live .thought-head {
  background: var(--surface-glass);
  border-color: transparent;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ai-2) 7%, transparent), 0 0 26px color-mix(in srgb, var(--ai-2) 16%, transparent);
}
.thought.live .thought-head::before { opacity: 1; animation-play-state: running; }
.thought.live .chev { display: none; }
.thought.done .thought-head { cursor: pointer; }
.thought.done .thought-head:hover { background: var(--surface-glass); border-color: var(--line); }
.thought.open .chev { transform: rotate(180deg); }
.thought.empty .thought-head { cursor: default; }
.thought.empty .thought-head:hover { background: transparent; border-color: transparent; }
.thought.empty .chev { display: none; }

.thought-body {
  position: relative;
  margin: 8px 0 2px 16px;
  padding: 2px 0 2px 20px;
}
.thought-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--ai-2), color-mix(in srgb, var(--ai-1) 55%, transparent), transparent);
}
.thought-text {
  max-height: 132px;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.thought-text.clipped {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 100%);
}
.thought-text p { margin: 0 0 6px; }
.thought-text p.h { color: var(--ink-2); font-weight: 600; margin-top: 8px; }
.thought-text ul { margin: 0 0 6px; padding-left: 18px; }
.thought-text strong { color: var(--ink-2); font-weight: 600; }
.thought.open .thought-text { max-height: 340px; overflow-y: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }

.tok { animation: tok-in 0.34s ease-out both; }
@keyframes tok-in {
  from { opacity: 0.08; filter: blur(2px); }
  to { opacity: 1; filter: none; }
}

/* ---- adım satırları ----------------------------------------------------------------------------- */

.step {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  animation: rise 0.45s var(--ease-out) both;
}
.step .icon { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.step .icon .orb { --size: 15px; }
.step .label { font-weight: 500; }
.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  color: var(--ok);
  font-size: 10.5px;
  font-weight: 700;
  animation: pop 0.45s var(--ease-spring) both;
}
.check.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.step.error { color: var(--danger); }
.step .chips.inline { margin: 0; min-height: 0; gap: 5px; }
.step .chips.inline .chip { font-size: 12px; padding: 2px 9px; }

/* ---- yanıt metni -------------------------------------------------------------------------------- */

.answer { max-width: 760px; color: var(--ink); overflow-wrap: break-word; }
.answer p { margin: 0 0 10px; }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0; }
.answer p.h { font-weight: 650; font-size: 15.5px; margin: 14px 0 6px; }
.answer ul { margin: 4px 0 10px; padding-left: 20px; }
.answer li { margin: 3px 0; }
.answer li::marker { color: var(--ai-2); }
.answer strong { font-weight: 620; }
.answer .ref { animation: tok-in 0.55s ease both; }

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.16em;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--ai-1), var(--ai-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--ai-2) 55%, transparent);
  animation: caret 1s ease-in-out infinite;
}
@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ref {
  border: 0;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92em;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.ref:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.turn-footer {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  animation: rise 0.6s var(--ease-out) both;
}
.turn-footer .spark { color: var(--ai-2); }

/* ---- sonuç blokları ----------------------------------------------------------------------------- */

.block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  animation: block-in 0.6s var(--ease-out) both;
  transition: border-color 0.5s ease, padding 0.45s var(--ease-out), box-shadow 0.45s ease, background 0.45s ease;
}
@keyframes block-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.block.searching { border-color: color-mix(in srgb, var(--ai-2) 32%, var(--line)); }
.block.searching::after,
.block.refreshing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--ai-2) 10%, transparent) 45%, color-mix(in srgb, var(--ai-1) 8%, transparent) 55%, transparent 75%);
  background-size: 220% 100%;
  animation: sweep 1.7s ease-in-out infinite;
}
.block.refreshing::after { animation-duration: 1s; }
@keyframes sweep {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.block-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 6px;
}
.block.searching .block-eyebrow { color: var(--ai-ink); }
.block-eyebrow .orb { --size: 14px; }
.block-eyebrow .check { width: 16px; height: 16px; font-size: 9.5px; letter-spacing: 0; }

.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.block-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.block-head .kicker { display: none; color: var(--muted); font-weight: 500; }
.block-meta { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.block-meta strong { color: var(--ink); font-weight: 650; }
.expand {
  display: none;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ai-ink);
}
.expand svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }

/* Aday arama blokları: asistan seçim ya da kombin gösterince kompakt ve katlanabilir olur */
.block.results.compact { padding: 11px 16px; box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.block.results.compact .block-eyebrow { display: none; }
.block.results.compact .block-head { cursor: pointer; align-items: center; flex-wrap: nowrap; }
.block.results.compact .block-head h3 { font-size: 14px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block.results.compact .kicker { display: inline; }
.block.results.compact .block-meta { margin-left: auto; white-space: nowrap; }
.block.results.compact .block-meta .shown { display: none; }
.block.results.compact .expand { display: inline-flex; }
.block.results.compact.expanded .expand svg { transform: rotate(180deg); }
.block.results.compact .body > .collapse-inner > :first-child { margin-top: 12px; }

.notice {
  margin-top: 10px;
  font-size: 13px;
  color: var(--warn);
  background: var(--warn-soft);
  padding: 6px 10px;
  border-radius: 8px;
  width: fit-content;
  animation: rise 0.4s var(--ease-out) both;
}
.notice.error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 14px; min-height: 26px; }
.chips-label { font-size: 12px; font-weight: 600; color: var(--ai-ink); margin-right: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-2);
  transition: background 0.35s, box-shadow 0.35s, opacity 0.3s, transform 0.3s var(--ease-out);
}
.chip.pop { animation: chip-pop 0.55s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 95ms + 120ms); }
.chip.ai { background: var(--ai-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ai-2) 24%, transparent); }
.chip .sw { width: 11px; height: 11px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.chip.removable { padding-right: 5px; }
.chip button {
  border: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}
.chip button.pop-in { animation: pop 0.4s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 60ms); }
.chip button:hover { background: var(--ink); color: var(--bg); }
.chip.leaving { opacity: 0; transform: scale(0.75); }
@keyframes chip-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.7); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 18px 14px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.grid.dim { opacity: 0.45; filter: saturate(0.6); }

.card { cursor: pointer; border-radius: var(--radius-sm); outline: none; min-width: 0; scroll-margin: 90px 0 170px; }
.card.reveal { animation: card-in 0.65s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.grid.quick .card.reveal { animation-duration: 0.45s; animation-delay: calc(var(--i, 0) * 22ms); }
.card:hover .media { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card:hover .media img.loaded { transform: scale(1.04); }
.card:focus-visible { outline: 2px solid var(--ai-2); outline-offset: 4px; }
.card.flash .media { box-shadow: 0 0 0 3px var(--ai-2), 0 0 28px color-mix(in srgb, var(--ai-2) 55%, transparent); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease-out), opacity 0.55s ease;
}
.media img.loaded { opacity: 1; transform: none; }
.media.noimg::after { content: "Görsel yok"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }

.media.loading,
.card.skeleton .media,
.skel-line,
.skel-block {
  background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--line) 70%, var(--ai-soft)) 50%, var(--surface-2) 70%);
  background-size: 250% 100%;
  animation: skel 1.4s ease-in-out infinite;
}
.card.skeleton { cursor: default; animation: rise 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.card.skeleton .media { animation-delay: calc(var(--i, 0) * 90ms); }
.skel-line { height: 10px; border-radius: 6px; margin-top: 9px; }
.skel-line.short { width: 55%; }
.skel-block { border-radius: 10px; }
@keyframes skel {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

.badge {
  position: absolute;
  z-index: 1;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge.source { left: 8px; background: rgba(255, 255, 255, 0.9); color: #1b1a17; }
.badge.discount { right: 8px; background: var(--accent); color: #fff; }

.info { padding: 9px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.info .brand-name { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .title { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.title-link { color: inherit; text-decoration: none; }
.card:hover .title-link { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 3px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; margin-top: 2px; }
.price strong { font-size: 15px; font-weight: 650; }
.price s { color: var(--muted); font-size: 12px; }
.price .promo { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 0 6px; border-radius: 6px; }

.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; min-width: 0; }
.swatches { display: flex; gap: 3px; align-items: center; flex: none; }
.swatches i { width: 11px; height: 11px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.swatches small { font-size: 11px; color: var(--muted); margin-left: 2px; }
.swatches button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.swatches button i { width: 12px; height: 12px; }
.swatches button:hover { transform: scale(1.15); }
.swatches button.active { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.sizes { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.more {
  display: block;
  margin: 18px auto 2px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), opacity 0.2s;
}
.more:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.more:disabled { opacity: 0.6; cursor: progress; transform: none; }

.empty { color: var(--muted); font-size: 14px; padding: 8px 0; margin: 0; }

/* ---- asistanın seçimi ve kombin ----------------------------------------------------------------- */

.picks,
.outfit {
  background: linear-gradient(160deg, var(--surface) 50%, color-mix(in srgb, var(--ai-soft) 70%, var(--accent-soft)));
  padding: 22px;
}
.picks::before,
.outfit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ring-angle), var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: ring 2.6s linear infinite paused;
  transition: opacity 0.9s ease;
}
.picks.glow::before,
.picks.composing::before,
.outfit.composing::before,
.outfit.glow::before { opacity: 1; animation-play-state: running; }
@keyframes ring { to { --ring-angle: 360deg; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ai-ink);
}
.eyebrow .orb { --size: 14px; }
.picks h3,
.outfit h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 4px 0 6px; letter-spacing: -0.02em; }
.outfit .note { margin: 0 0 16px; color: var(--ink-2); max-width: 720px; animation: rise 0.6s var(--ease-out) both; }

.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 14px; }
.piece { min-width: 0; }
.piece-role { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 6px; }
.piece.reveal,
.pick.reveal { animation: card-in 0.7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 120ms + 60ms); }

.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px 16px; margin-top: 16px; }
.pick { min-width: 0; display: flex; flex-direction: column; }
.pick .reason {
  margin: 8px 2px 0;
  padding-left: 10px;
  border-left: 2px solid color-mix(in srgb, var(--ai-2) 45%, transparent);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.outfit-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
}
.outfit-total strong { font-size: 22px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.outfit-total .dots { font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---- yazma alanı ve asistan durumu -------------------------------------------------------------- */

.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 34px 16px 16px;
  background: linear-gradient(to top, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent));
}

.agent-bar {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 22px);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid color-mix(in srgb, var(--ai-2) 26%, var(--line));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-spring);
}
.agent-bar.visible { opacity: 1; transform: translate(-50%, 0); }
.agent-bar .orb { --size: 20px; }
.agent-bar .state { overflow: hidden; text-overflow: ellipsis; max-width: min(520px, 58vw); font-weight: 500; }
.agent-bar .timer { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.composer-inner {
  position: relative;
  width: min(820px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 8px 8px 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s, box-shadow 0.45s;
}
.composer-inner::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 25px;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-angle), var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  animation: ring 2.4s linear infinite paused;
  transition: opacity 0.6s ease;
}
.composer-inner:focus-within { border-color: color-mix(in srgb, var(--ai-2) 45%, var(--line)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--ai-2) 10%, transparent); }
body.streaming .composer-inner { border-color: transparent; box-shadow: var(--shadow), 0 0 34px color-mix(in srgb, var(--ai-2) 24%, transparent); }
body.streaming .composer-inner::before { opacity: 1; animation-play-state: running; }

.composer-inner > .orb { --size: 24px; margin: 0 0 8px 2px; }

.composer textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  padding: 9px 0;
  max-height: 160px;
  line-height: 1.45;
}
.composer textarea::placeholder { color: var(--muted); }

.send {
  flex: none;
  min-width: 68px;
  border: 0;
  border-radius: 17px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
}
.send:hover { background: var(--accent); color: #fff; }
.send:active { transform: scale(0.96); }
.send.stop { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.send.stop:hover { background: var(--ink); color: var(--bg); }
.send.stop::before { content: "■"; margin-right: 6px; font-size: 0.75em; vertical-align: 0.1em; }

.hint {
  width: min(820px, 100%);
  margin: 7px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---- günlük sorgu hakkı ------------------------------------------------------------------------- */

.quota-meter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  animation: rise 0.45s var(--ease-out) both;
}
.quota-dots { display: inline-flex; gap: 3px; }
.quota-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  transition: background 0.4s ease, transform 0.4s var(--ease-spring);
}
.quota-dots i.on { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); }
.quota-meter.last { color: var(--accent); }
.quota-meter.last .quota-dots i.on { animation: breathe 1.4s ease-in-out infinite; }
.quota-meter.premium { color: var(--ai-ink); }
.quota-invite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 28%, var(--line));
  border-radius: 999px;
  background: var(--ai-soft);
  color: var(--ai-ink);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.quota-invite:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--ai-2) 18%, transparent); }
.quota-invite .spark { color: var(--ai-2); }

.plan-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--ai-1), var(--ai-2));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.quota-meter .plan-badge { margin-left: 0; }

/* Hak bitince yazma alanının yerine kilit satırı */
.composer.locked .composer-inner { border-style: dashed; box-shadow: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.composer.locked .composer-inner > textarea,
.composer.locked .composer-inner > .send,
.composer.locked .composer-inner > .profile-pill { display: none; }
.lock-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 2px; animation: rise 0.45s var(--ease-out) both; }
.lock-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--warn-soft); color: var(--warn); }
.lock-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lock-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.lock-text strong { font-size: 14px; font-weight: 650; }
.lock-text > span { font-size: 12.5px; color: var(--muted); }
.premium-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 35%, var(--line));
  border-radius: 14px;
  background: var(--ai-soft);
  color: var(--ai-ink);
  font-size: 13px;
  font-weight: 650;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s;
}
.premium-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--ai-2) 20%, transparent); }
.premium-chip .soon, .soon-badge {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ai-2) 30%, var(--line));
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ai-ink);
}
.soon-badge { margin-left: 4px; }

/* ---- ürün paneli -------------------------------------------------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 14, 12, 0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  width: min(540px, 100%);
  background: var(--surface);
  box-shadow: -14px 0 48px rgba(0, 0, 0, 0.2);
  transform: translateX(104%);
  transition: transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open { transform: translateX(0); visibility: visible; transition: transform 0.55s var(--ease-out), visibility 0s; }

.drawer-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), border-color 0.2s;
}
.drawer-close:hover { transform: rotate(90deg); border-color: var(--ink-2); }

.drawer-body { padding: 18px 24px 40px; clear: both; }
.drawer-body > * { animation: rise 0.5s var(--ease-out) both; }
.drawer-body > *:nth-child(2) { animation-delay: 50ms; }
.drawer-body > *:nth-child(3) { animation-delay: 90ms; }
.drawer-body > *:nth-child(4) { animation-delay: 120ms; }
.drawer-body > *:nth-child(n + 5) { animation-delay: 150ms; }

.gallery-main {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  transition: opacity 0.55s ease, transform 0.9s var(--ease-out), filter 0.55s ease;
}
.gallery-main img.in { opacity: 1; transform: none; filter: none; }

.thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 54px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--surface-2); transition: border-color 0.25s, transform 0.25s var(--ease-out); }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs button.active { border-color: var(--ai-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.d-source { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--accent); }
.d-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0; }
.d-brand { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.d-price { margin: 14px 0 4px; }
.d-price strong { font-size: 24px; }
.d-rating { font-size: 13px; color: var(--ink-2); }

.d-section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 20px 0 8px; }

.color-options { display: flex; flex-wrap: wrap; gap: 6px; }
.color-option { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; transition: border-color 0.2s, box-shadow 0.2s; }
.color-option i { width: 16px; height: 16px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.color-option.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.size-list { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 42px; text-align: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; animation: pop 0.4s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 25ms); }
.size.out { color: var(--muted); text-decoration: line-through; background: var(--surface-2); border-color: transparent; }
.size.low { border-color: var(--warn); color: var(--warn); }
.size.unknown { border-style: dashed; }
.size-legend { font-size: 12px; color: var(--muted); margin-top: 6px; }

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-out);
}
.cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.d-page {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.d-page:hover { border-color: color-mix(in srgb, var(--ai-2) 45%, var(--line)); color: var(--ink); transform: translateY(-1px); }

.updated { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }

#drawer details { border-top: 1px solid var(--line); padding: 12px 0; }
#drawer details:first-of-type { margin-top: 18px; }
#drawer summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
#drawer summary::-webkit-details-marker { display: none; }
#drawer summary::after { content: "+"; color: var(--muted); }
#drawer details[open] summary::after { content: "–"; }
#drawer dl { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 13.5px; }
#drawer dt { color: var(--muted); }
#drawer dd { margin: 0; overflow-wrap: anywhere; }
#drawer .desc { white-space: pre-line; font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.history { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.history li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); }

.offers-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.offers-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.offers-list a:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.offers-list .cheaper strong { color: var(--ok); }
.offers-list small { color: var(--muted); font-size: 12px; margin-left: 6px; }

/* ---- görsel benzerler (kart düğmesi ve ürün paneli) ---------------------------------------------------- */

.similar-btn {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.25s var(--ease-out), background 0.2s;
}
.similar-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.similar-btn:hover { background: var(--bg); transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .similar-btn { opacity: 0; transform: translateY(4px); }
  .card:hover .similar-btn, .card:focus-within .similar-btn, .similar-btn:focus-visible { opacity: 1; transform: none; }
}

.d-similar { margin-top: 22px; padding-top: 4px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.d-similar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; }
.d-similar-title { outline: none; }
.d-similar-note { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 38%);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.sim-rail .empty { grid-column: 1 / -1; margin: 4px 0; color: var(--muted); font-size: 13px; }
.sim-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}
.sim-card.skeleton { height: 230px; border-radius: 12px; background: var(--surface-2); animation: skel 1.4s ease-in-out infinite; }
.sim-media { position: relative; display: block; aspect-ratio: 3 / 4; margin-bottom: 6px; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.sim-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.sim-media img.loaded { opacity: 1; }
.sim-media.noimg::after { content: "Görsel yok"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.sim-card:hover .sim-media img.loaded { transform: scale(1.03); }
.sim-tier { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.sim-card.tier-near .sim-tier { color: var(--ink); }
.sim-card.tier-near .sim-tier::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: var(--ai-2); }
.sim-brand { overflow: hidden; font-size: 13px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.sim-title { overflow: hidden; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.sim-why { overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.sim-price { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sim-meta { overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.sim-save { color: var(--ok); font-size: 11.5px; font-weight: 600; }
.sim-card:focus-visible { outline: 2px solid var(--ai-2); outline-offset: 3px; border-radius: 12px; }

/* ---- trendler ----------------------------------------------------------------------------------- */

.trends { margin-top: 46px; animation: rise 0.8s 0.32s var(--ease-out) both; }
.trends-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.trends-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.trends-head .spark { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trends-lead { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); isolation: isolate; }
.seg-indicator {
  position: absolute;
  z-index: -1;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring);
}
.seg.tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--muted); transition: color 0.25s; }
.seg.tabs button[aria-selected="true"] { color: var(--ink); }
.seg.tabs:not(.ready) button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.trends-body { display: flex; flex-direction: column; gap: 36px; transition: opacity 0.3s ease, filter 0.3s ease; }
.trends-body.refreshing { opacity: 0.45; filter: saturate(0.7); pointer-events: none; }
.trends-empty { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- keşfet (kategori ve mağaza sayfalarına iç bağlantılar) ---------------------------------------- */

.discover { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); animation: rise 0.8s 0.4s var(--ease-out) both; }
.discover-head { margin-bottom: 18px; }
.discover-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.discover-head .spark { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.discover-lead { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.discover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; }
.discover-col h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.discover-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.discover-col a { display: inline-block; padding: 2px 0; color: var(--ink-2); font-size: 14px; text-decoration: none; transition: color 0.2s, transform 0.2s var(--ease-out); }
.discover-col a:hover { color: var(--ink); transform: translateX(2px); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ai-2) 45%, transparent); text-underline-offset: 3px; }

/* Ana sayfa alt bilgisi: fiyatlandırma ve yasal sayfalar */

.t-section { min-width: 0; animation: rise 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.t-head h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.t-sub { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 760px; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.theme-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  padding: 0 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
  animation: card-in 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.theme-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--ai-2) 35%, var(--line)); }
.theme-tile:hover .collage img.loaded { transform: scale(1.05); }
.collage {
  position: relative;
  display: grid;
  gap: 2px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ai-1) 22%, var(--surface-2)), color-mix(in srgb, var(--ai-2) 22%, var(--surface-2)));
}
.collage.n1 { grid-template-columns: 1fr; }
.collage.n2 { grid-template-columns: 1fr 1fr; }
.collage.n3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 > img:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; opacity: 0; transition: opacity 0.6s ease, transform 0.6s var(--ease-out); }
.collage img.loaded { opacity: 1; }
.theme-kind { margin: 11px 14px 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ai-ink); }
.theme-label { margin: 2px 14px 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.theme-meta { margin: 3px 14px 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.theme-meta b { font-weight: 650; color: var(--ink-2); }

.trend-searches { display: flex; flex-wrap: wrap; gap: 8px; }
.trend-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  animation: chip-pop 0.5s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.trend-chip::before { content: "↗"; color: var(--ai-2); font-weight: 700; }
.trend-chip small { color: var(--muted); font-size: 12px; }
.trend-chip:hover { border-color: color-mix(in srgb, var(--ai-2) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 184px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.carousel.at-end { -webkit-mask-image: none; mask-image: none; }
.carousel > .card { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 6px; flex: none; }
.carousel-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s var(--ease-out);
}
.carousel-nav button:hover:not(:disabled) { border-color: var(--ink-2); transform: translateY(-1px); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; }
.skel-tile { border-radius: var(--radius); aspect-ratio: 4 / 3.9; }
.skel-head { height: 16px; width: 220px; border-radius: 8px; margin-bottom: 8px; }
.skel-head.sub { height: 11px; width: 420px; max-width: 80%; margin-bottom: 14px; }

/* ---- kart ekleri: diğer mağaza, ilan sayısı, öneri etiketi -------------------------------------- */

.brand-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.brand-row .brand-name { min-width: 0; }
.listings { flex: none; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.offer {
  display: block;
  max-width: 100%;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer strong { font-weight: 650; }
.offer small { color: var(--muted); font-size: 11px; }
.offer:hover { text-decoration: underline; }
.offer.cheaper { color: var(--ok); }
.offer.cheaper::before { content: "↓ "; font-weight: 700; }
.tag-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  max-width: calc(100% - 16px);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(100deg, var(--ai-1), var(--ai-2));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ai-2) 35%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: chip-pop 0.5s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 120ms + 420ms);
}

.block-actions { display: flex; align-items: center; gap: 8px; }
.ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 35%, var(--line));
  background: var(--ai-soft);
  color: var(--ai-ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.ask:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--ai-2) 22%, transparent); }
.ask:disabled { opacity: 0.5; cursor: not-allowed; }
.block.results.compact .block-actions { display: none; }

/* Tamamlanamayan araç çağrısı: sessiz, kısa bir satır */
.block.failed { padding: 12px 16px; box-shadow: none; border-style: dashed; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.block.failed::before, .block.failed::after { display: none; }
.block.failed .block-eyebrow, .block.failed .eyebrow { color: var(--warn); margin-bottom: 2px; }
.block.failed .block-head h3, .block.failed h3 { font-family: var(--font-text); font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0; }
.block.failed .pieces, .block.failed .pick-list, .block.failed .outfit-total, .block.failed .note { display: none; }
.fail-note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---- beden profili ------------------------------------------------------------------------------ */

.profile-pill {
  flex: none;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 30%, var(--line));
  background: var(--ai-soft);
  color: var(--ai-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  animation: chip-pop 0.5s var(--ease-spring) both;
}
.profile-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--ai-2) 20%, transparent); }

.profile-panel .drawer-body { padding-top: 22px; }
.profile-panel .eyebrow { margin-top: 6px; }
.p-lead { color: var(--ink-2); font-size: 14px; margin: 6px 0 20px; }
#profileForm { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { padding: 0; font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.field > legend { margin-bottom: 6px; }
.field input:not([type="radio"]) {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:not([type="radio"]):focus { outline: none; border-color: color-mix(in srgb, var(--ai-2) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ai-2) 12%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg.choice { display: flex; width: 100%; }
.seg.choice label { position: relative; flex: 1; cursor: pointer; }
.seg.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg.choice span { display: block; text-align: center; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--muted); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.seg.choice input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06); }
.seg.choice input:focus-visible + span { outline: 2px solid var(--ai-2); outline-offset: 1px; }
.optional { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.optional summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; }
.optional summary::-webkit-details-marker { display: none; }
.optional summary::after { content: "+"; margin-left: auto; color: var(--muted); }
.optional[open] summary::after { content: "–"; }
.optional summary small { font-size: 12px; font-weight: 500; color: var(--muted); }
.optional > .field-row, .optional > .field { margin-top: 12px; }

.estimate {
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 24%, var(--line));
  background: linear-gradient(160deg, var(--surface) 40%, color-mix(in srgb, var(--ai-soft) 85%, transparent));
  transition: opacity 0.2s;
}
.estimate.empty { display: flex; align-items: center; border-style: dashed; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.estimate.loading { opacity: 0.7; }
.est-title { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ai-ink); }
.est-title .orb { --size: 14px; }
.est-summary { margin: 6px 0 10px; font-size: 15px; font-weight: 600; }
.est-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.est-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.est-item .k { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.est-item strong { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.est-item strong.changed { animation: pop 0.45s var(--ease-spring) both; }
.src { align-self: flex-start; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.src.user { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.est-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.form-error { margin: 0; font-size: 13px; color: var(--danger); }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.primary {
  border: 0;
  border-radius: 14px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-out);
}
.primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.privacy { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--muted); }
.privacy svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary:disabled { opacity: 0.6; cursor: progress; transform: none; }
.primary.wide { width: 100%; margin-top: 4px; }
.danger-solid { background: var(--danger); color: #fff; }
.danger-solid:hover { background: color-mix(in srgb, var(--danger) 82%, #000); color: #fff; }

/* ---- kenar çubuğu: sohbet geçmişi ve hesap ------------------------------------------------------ */

:root { --sidebar-w: 272px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; }

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 26;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px 10px;
  background: color-mix(in srgb, var(--surface) 72%, var(--bg));
  border-right: 1px solid var(--line);
}
.sb-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 4px 0 8px; }
.sb-head .brand { font-size: 23px; }
.sb-close { display: none; font-size: 24px; }
.sb-new {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}
.sb-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sb-new:hover { border-color: color-mix(in srgb, var(--ai-2) 45%, var(--line)); box-shadow: 0 6px 18px color-mix(in srgb, var(--ai-2) 14%, transparent); transform: translateY(-1px); }
.sb-search { position: relative; display: block; }
.sb-search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.sb-search input {
  width: 100%;
  padding: 8px 10px 8px 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sb-search input:focus { border-color: color-mix(in srgb, var(--ai-2) 45%, var(--line)); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-2) 12%, transparent); }

.sb-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 2px 4px 8px; scrollbar-width: thin; }
.sb-group + .sb-group { margin-top: 12px; }
.sb-group-title { margin: 6px 8px 4px; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sb-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-item { position: relative; display: flex; align-items: center; min-height: 36px; border-radius: 10px; transition: background 0.2s; }
.chat-item:hover, .chat-item:focus-within { background: var(--surface-2); }
.chat-item.active { background: color-mix(in srgb, var(--ai-soft) 88%, var(--surface)); }
.chat-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(to bottom, var(--ai-1), var(--ai-2)); }
.chat-link { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 8px 4px 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.chat-link:focus-visible { outline-offset: -2px; }
.chat-item.active .chat-link { color: var(--ink); font-weight: 550; }
.chat-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-time { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); animation: breathe 1.4s ease-in-out infinite; }
.chat-more {
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s, background 0.2s, color 0.2s;
}
.chat-item:hover .chat-more, .chat-item:focus-within .chat-more, .chat-more[aria-expanded="true"] { opacity: 1; }
.chat-more:hover { background: var(--line); color: var(--ink); }
@media (hover: none) { .chat-more { opacity: 0.75; } }
.chat-rename {
  flex: 1;
  min-width: 0;
  margin: 3px 4px 3px 6px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 55%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai-2) 12%, transparent);
}
.sb-empty { margin: 22px 10px; font-size: 13px; color: var(--muted); text-align: center; }
.sb-skel { height: 30px; margin: 7px 6px; border-radius: 9px; }
.sb-skel:nth-child(3n + 2) { width: 72%; }

.sb-account { display: flex; flex-direction: column; gap: 10px; padding: 12px 4px 2px; border-top: 1px solid var(--line); }
.sb-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sb-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-auth-actions .primary, .sb-auth-actions .ghost { padding: 9px 10px; border-radius: 11px; font-size: 13.5px; }
.account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ai-2) 30%, transparent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.account-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.account-text strong { display: flex; align-items: center; min-width: 0; font-size: 13.5px; font-weight: 600; }
.account-text strong .plan-badge { flex: none; }
.account-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-text > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.sidebar-scrim { display: none; }

/* ---- açılır menü, pencereler, bildirimler ------------------------------------------------------- */

.menu {
  position: fixed;
  z-index: 70;
  min-width: 190px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  animation: menu-in 0.18s var(--ease-out) both;
}
@keyframes menu-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 14px; text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }

.modal {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal.small { width: min(390px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(15, 14, 12, 0.42); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 0.34s var(--ease-spring) both; }
.modal[open]::backdrop { animation: fade-in 0.3s ease both; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-body { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px; }
.modal-close { position: absolute; top: 12px; right: 12px; font-size: 24px; }
.modal-title { margin: 0; padding-right: 36px; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.confirm-message { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal-actions .ghost, .modal-actions .primary { padding: 10px 18px; border-radius: 12px; font-size: 14px; }
.auth-lead { margin: -4px 0 2px; color: var(--ink-2); font-size: 14px; }
.auth-gate {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 30%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--ai-soft) 90%, var(--surface)), var(--surface));
  font-size: 13px;
  line-height: 1.45;
  animation: rise 0.4s var(--ease-out) both;
}
.auth-gate strong { display: block; color: var(--ink); font-weight: 650; text-wrap: balance; }
.auth-gate-mark { flex: none; color: var(--ai-2); font-size: 15px; line-height: 1.3; }
.auth-gate-message { display: block; margin-top: 2px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Premium tanıtımı (satın alma yok; yakında) */
.premium-lead { margin: -4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.premium-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 28%, var(--line));
  background: var(--surface);
}
.premium-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ai-2) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.premium-perks { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.premium-perks li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.premium-perks strong { display: block; color: var(--ink); font-weight: 650; }
.perk-mark { flex: none; color: var(--ai-2); line-height: 1.45; }
.premium-note { position: relative; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.premium-note a { color: var(--ai-ink); }
.premium-price { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 0 12px; }
.premium-price strong { font-family: var(--font-display); font-size: 32px; font-weight: 650; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.premium-price span { font-size: 13px; color: var(--muted); }
.premium-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 16px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.premium-cta:disabled { cursor: not-allowed; opacity: 0.55; }
.premium-cta .soon {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 22%, transparent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.modal-actions a.ghost { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.auth-tabs { width: 100%; }
.auth-tabs button { flex: 1; }
.auth-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.field > label { font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.field > span small, .field > label small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.password-row { position: relative; }
.password-row input { padding-right: 84px !important; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.pw-toggle:hover { color: var(--ink); }
.field-error { margin: -4px 0 0; font-size: 12.5px; color: var(--danger); }
.field-hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.consent { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.consent-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ai-2); }
.consent-text summary { margin-left: 28px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ai-ink); }
.consent-text p { margin: 6px 0 0 28px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.consent .field-error { margin: 2px 0 0 28px; }
.auth-form .field input[aria-invalid="true"], .auth-form input[type="checkbox"][aria-invalid="true"] { border-color: var(--danger); outline-color: var(--danger); }

/* Google ile giriş: Google'ın düğme renk kuralları (açık: beyaz zemin, #747775 çerçeve; koyu: #131314 zemin) */
.google-btn {
  --g-bg: #ffffff;
  --g-line: #747775;
  --g-ink: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--g-line);
  border-radius: 12px;
  background: var(--g-bg);
  color: var(--g-ink);
  font: 600 14.5px/1.2 var(--font-text);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.google-btn:hover { background: color-mix(in srgb, var(--g-ink) 5%, var(--g-bg)); box-shadow: var(--shadow); }
.google-btn:active { transform: translateY(1px); }
.google-btn:focus-visible { outline: 2px solid var(--ai-2); outline-offset: 2px; }
.google-g { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) {
  .google-btn { --g-bg: #131314; --g-line: #8e918f; --g-ink: #e3e3e3; }
}
.auth-google { display: flex; flex-direction: column; gap: 8px; }
.auth-google-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sb-google { min-height: 40px; margin-bottom: 8px; font-size: 13.5px; border-radius: 11px; }

.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 118px;
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
  transition: bottom 0.35s var(--ease-out);
}
body:has(.agent-bar.visible) .toasts { bottom: 158px; }  /* asistan durum çubuğunun üstünde kalır */
.toast {
  max-width: min(460px, 100%);
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  box-shadow: var(--shadow-lift);
  pointer-events: auto;
  animation: toast-in 0.42s var(--ease-spring) both;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---- geçmiş sohbetin yeniden çizimi ------------------------------------------------------------- */

.replay, .replay *, .replay *::before, .replay *::after { animation: none !important; transition: none !important; }
html.opening-chat .hero { display: none; }
.feed-skeleton { display: flex; flex-direction: column; gap: 14px; padding-top: 30px; }
.sk-bubble { align-self: flex-end; width: min(420px, 70%); height: 44px; border-radius: 20px 20px 5px 20px; }
.sk-line { width: min(620px, 90%); height: 14px; border-radius: 8px; }
.sk-line.short { width: min(380px, 60%); }
.sk-card { height: 220px; border-radius: var(--radius); }
.turn-footer.interrupted { color: var(--warn); }
.turn-footer.interrupted .spark { color: var(--warn); }
.feed-error { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 40px 0; color: var(--ink-2); }

/* ---- fotoğraftan kombin: yazma alanındaki giriş düğmesi (sahnenin kendisi photo-outfit.css) ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.photo-btn {
  flex: none;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  margin: 0 0 1px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s, background 0.2s;
}
.photo-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.photo-btn:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
.photo-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.composer.locked .composer-inner > .photo-btn { display: none; }

@media (max-width: 640px) {
  .photo-btn { width: 38px; padding: 0; justify-content: center; }
  .photo-btn-text { display: none; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--sidebar-w); }
  .composer, .toasts { left: var(--sidebar-w); }
  .top-brand, .top-new { display: none; }
}

@media (max-width: 1023.98px) {
  .menu-button { display: inline-grid; margin-left: -6px; }
  .sb-close { display: inline-grid; }
  .sidebar {
    z-index: 45;
    width: min(320px, 86vw);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.18);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  }
  body.sidebar-open .sidebar { transform: none; visibility: visible; transition: transform 0.45s var(--ease-out), visibility 0s; }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(15, 14, 12, 0.34);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
}

/* ---- duyarlı ------------------------------------------------------------------------------------ */

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .feed { padding-top: 16px; }
  .hero { padding-top: 3vh; }
  .hero-badge { margin-bottom: 16px; font-size: 12.5px; }
  .hero-inner > p { font-size: 15.5px; margin-bottom: 22px; }
  .wide-only { display: none; }
  .topbar { gap: 8px; }
  .profile-button { padding-inline: 11px; }
  .trends { margin-top: 34px; }
  .trends-head h2 { font-size: 25px; }
  .theme-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 64%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 30px; margin-bottom: -18px; }
  .theme-tile { scroll-snap-align: start; }
  .carousel { grid-auto-columns: 46%; gap: 10px; }
  .carousel-nav { display: none; }
  .t-head { margin-bottom: 10px; }
  .field-row { gap: 10px; }
  .profile-pill .pp-prefix { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .grid > .card.skeleton:nth-child(n + 5) { display: none; }
  .pieces, .pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .block { padding: 14px; border-radius: 15px; }
  .picks, .outfit { padding: 16px; }
  .picks h3, .outfit h3 { font-size: 22px; }
  .stats, .top-link { display: none; }
  .topbar .profile-button { margin-left: auto; }
  .brand { font-size: 22px; }
  .drawer-body { padding: 14px 16px 40px; }
  .composer { padding: 28px 10px 10px; }
  .agent-bar { bottom: calc(100% - 20px); }
  .agent-bar .state { max-width: 62vw; }
  .thought-body { margin-left: 10px; padding-left: 14px; }
  .composer-inner > .orb { display: none; }
  .modal-body { padding: 20px 18px; }
  .modal-title { font-size: 23px; }
  .toasts { bottom: 126px; }
  body:has(.agent-bar.visible) .toasts { bottom: 165px; }
  .lock-row { gap: 9px; }
  .lock-icon { width: 30px; height: 30px; }
  .lock-text strong { font-size: 13px; }
  .lock-text > span { font-size: 11.5px; }
  .lock-extra { display: none; }
  .premium-chip { padding: 7px 10px; font-size: 12px; }
  .premium-chip .soon { display: none; }
  .discover { margin-top: 42px; }
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .media img { opacity: 1; transform: none; }
}
.auth-google-note a, .consent-text a { color: var(--ai-ink); }

/* ---- görsel ekleme: "+" menüsü, önizleme, sürükle-bırak ----------------------------------------- */

.composer-inner { flex-wrap: wrap; }
.add-btn svg { stroke-width: 2; }

.add-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(360px, calc(100vw - 32px));
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom left;
  transition: opacity 0.2s ease, transform 0.28s var(--ease-out);
}
.add-menu.open { opacity: 1; transform: none; }

.add-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 0.18s ease;
}
.add-item:hover, .add-item:focus-visible { background: var(--surface-2); }
.add-icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--ai-soft); color: var(--ai-ink); }
.add-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.add-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.add-title { font-size: 14px; font-weight: 600; }
.add-desc { font-size: 12.5px; color: var(--muted); }
.add-last { margin-left: auto; align-self: center; font-size: 11px; font-weight: 600; color: var(--ai-ink); background: var(--ai-soft); border-radius: 999px; padding: 2px 8px; }

.attach { width: 100%; order: -1; display: flex; flex-direction: column; gap: 8px; margin: 2px 2px 6px; }
.attach-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  animation: rise 0.4s var(--ease-out) both;
}
.attach-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
.attach-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.attach-label { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-note { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach.busy .attach-note { color: var(--ai-ink); }
.attach.failed .attach-card { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.attach.failed .attach-note { color: var(--danger); }
.attach-remove {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.attach-remove:hover { background: var(--surface); color: var(--ink); }
.attach-remove svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.attach-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ai-2) 26%, var(--line));
  background: var(--ai-soft);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.attach-chip.ghost { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.attach-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--ai-2) 18%, transparent); }

.drop-hint {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1.5px dashed color-mix(in srgb, var(--ai-2) 55%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, var(--ai-soft));
  color: var(--ai-ink);
  font-size: 13.5px;
  font-weight: 600;
  pointer-events: none;
}

.msg-user.with-photo { display: flex; align-items: center; gap: 10px; }
.msg-photo { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 22%, transparent); }
.msg-photo img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; display: block; }
.msg-photo.empty svg { width: 20px; height: 20px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.8; }
.msg-photo-label { font-size: 12px; opacity: 0.85; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.engine-pick { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.engine-pick select { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 11.5px; padding: 2px 6px; }

/* ---- derin arama aşamaları ---------------------------------------------------------------------- */

.block.stages { padding: 14px 16px; }
.stage-head { display: flex; align-items: center; gap: 8px; }
.stage-head .orb { --size: 16px; }
.stage-title { font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.stage-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 2px 4px; border-radius: 8px; }
.stage-toggle:hover { color: var(--ink); }
.stage-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.stage-toggle svg { transition: transform 0.3s var(--ease-out); }

.stage-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stage-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), color 0.3s;
}
.stage-row.in { opacity: 1; transform: none; }
.stage-mark { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.stage-row.done .stage-mark { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ai-2) 45%, var(--line)); background: color-mix(in srgb, var(--ai-2) 16%, transparent); }
.stage-row.done .stage-mark::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--ai-2); }
.stage-row.running .stage-mark { animation: pulse-mark 1.1s ease-in-out infinite; }
.stage-row.running .stage-label { color: var(--muted); }
.stage-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; flex: 1; }
.stage-label { overflow-wrap: anywhere; }
.stage-detail { font-size: 12px; color: var(--muted); }
.stage-count { margin-left: auto; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage-row.note .stage-count, .stage-row.widen .stage-count { font-weight: 600; color: var(--ink-2); }
.stage-row.widen .stage-label { color: var(--warn); }
.block.stages.done .stage-row { color: var(--ink-2); }

.stage-details { padding: 12px 0 2px; border-top: 1px solid var(--line); margin-top: 10px; }
.stage-detail-label { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stage-detail-list { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; margin: 10px 0 0; font-size: 12.5px; }
.stage-detail-list dt { color: var(--ink-2); }
.stage-detail-list dd { margin: 0; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.stage-upsell { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); }
.stage-upsell a { color: var(--ai-ink); font-weight: 600; }

@keyframes pulse-mark {
  0%, 100% { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ai-2) 40%, var(--line)); }
  50% { box-shadow: inset 0 0 0 1.5px var(--ai-2), 0 0 0 4px color-mix(in srgb, var(--ai-2) 12%, transparent); }
}

@media (max-width: 640px) {
  .add-menu {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    padding: 8px;
    border-radius: 20px;
    transform-origin: bottom center;
  }
  .attach-chip { font-size: 12px; padding: 5px 10px; }
  .msg-photo-label { max-width: 120px; }
  .stage-detail-list { grid-template-columns: 1fr; }
  .stage-detail-list dd { text-align: left; }
}

/* ---- uygulama görünümü: altbilgisiz, sabit yazma alanı, dokunma hedefleri ------------------------ */

/* Yazma alanı alt kenarda: güvenli alan (çentik/gezinme çubuğu) kadar ek dolgu */
.composer { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.hint:empty, .hint:not(:has(> :not([hidden]))) { display: none; }

.menu-sep {
  margin: 6px 6px 2px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-sep:empty { padding-top: 0; margin-bottom: 4px; }
a.menu-item { text-decoration: none; }

.stock-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  /* Tek elle kullanım: dokunma hedefleri en az 44 px */
  .icon-btn { width: 44px; height: 44px; }
  .photo-btn, .add-btn { width: 44px; height: 44px; }
  .attach-remove { width: 40px; height: 40px; }
  .attach-chip { min-height: 38px; display: inline-flex; align-items: center; }
  .stage-toggle { min-height: 38px; }
  .add-item { min-height: 52px; }
  .menu-item { min-height: 44px; }
}

/* ---- geri bildirim ---------------------------------------------------------------------------------- */
/* Satır içi, sessiz: yanıtın altında küçük iki düğme. Olumsuzda nedenler hemen altta açılır. */

.fb-wrap { margin-top: 10px; }
.fb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.fb-ask { margin-right: 2px; }
.fb.done .fb-ask { display: none; }
.fb-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.fb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.fb-btn:hover { background: var(--surface-2); color: var(--ink-2); }
.fb-btn[aria-pressed="true"] { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.fb-btn.down[aria-pressed="true"] { color: var(--accent); }
.fb-state { margin-left: 4px; }
.fb-undo {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.fb-reasons {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.fb-q { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-2); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.fb-chip:hover { border-color: var(--ink-2); }
.fb-chip.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.fb-note { display: flex; gap: 8px; margin-top: 10px; }
.fb-note-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.fb-note-input:focus-visible { outline: 2px solid var(--ai-2); outline-offset: 1px; }
.fb-note-send {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.fb-thanks { font-size: 12.5px; color: var(--muted); }

/* Seyrek genel soru: birkaç başarılı turdan sonra, haftada bir */
.fb-survey {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.fb-survey .fb-wrap { flex: 1; margin-top: 0; }
.fb-dismiss {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.fb-dismiss:hover { background: var(--surface-2); color: var(--ink); }

/* Ürün kartındaki küçük geri bildirim düğmesi: dokunmatikte hep, masaüstünde hover ve odakta */
.card-fb {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease;
}
.card:hover .card-fb, .card:focus-within .card-fb, .card-fb:focus-visible { opacity: 1; }
.card-fb:hover { background: var(--bg); color: var(--ink); }
@media (hover: none) { .card-fb { opacity: 0.85; } }

@media (max-width: 640px) {
  .fb-btn { width: 44px; height: 44px; }
  .fb-chip { min-height: 38px; }
  .fb-note { flex-direction: column; }
  .fb-note-send { min-height: 44px; }
  .card-fb { width: 34px; height: 34px; }
}
