/* ============ Tokenlar ============ */
:root {
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --ink: #0b1020;
  --ink-2: #3a4358;
  --mute: #5f6a84;
  --card: #f2f5fa;
  --line: #e4e9f2;
  --line-2: #d3dbe8;
  --btn: #eef2f8;
  --btn-h: #e2e8f2;
  --acc: #3558f0;
  --acc-h: #2a49d6;
  --acc-2: #1fb6ff;
  --acc-soft: color-mix(in srgb, var(--acc) 11%, transparent);
  --on-acc: #ffffff;
  --glass: rgba(255, 255, 255, .72); --ind: #ffffff;
  --danger: #dc2626;
  --ok: #059669;
  --c1: #3558f0; --c2: #1fb6ff; --c3: #10b981; --c4: #f59e0b; --c5: #ef4444;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sh-2: 0 8px 24px rgba(16, 24, 40, .10);
  --sh-3: 0 20px 50px rgba(16, 24, 40, .16);
  --r-1: .55rem; --r-2: .8rem; --r-3: 1.1rem; --r-4: 1.4rem;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);
  --t-fast: 150ms; --t-mid: 220ms; --t-slow: 300ms;
  /* ray menü ve pricing */
  --rail: 0px;
  --rail-bg: rgba(246, 248, 252, .86);
  --pr-bg: #f5f5f5; --pr-card: #ffffff; --pr-pop: #eff6ff; --pr-hl: #dbeafe; --pr-glow-op: .6; --pr-glow-blend: multiply;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f17; --bg-2: #121522; --ink: #eef0f8; --ink-2: #c3c9da; --mute: #929bb3;
    --card: #171a27; --line: #252a3b; --line-2: #343a52; --btn: #1b1f2e; --btn-h: #262c40;
    --acc: #6d8bff; --acc-h: #85a0ff; --on-acc: #0b1020; --glass: rgba(13, 15, 23, .7); --ind: #2d3450;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 8px 24px rgba(0, 0, 0, .35); --sh-3: 0 20px 50px rgba(0, 0, 0, .5);
    --c1: #7c8fff; --c2: #5ecbff;
    --rail-bg: rgba(18, 21, 34, .86);
    --pr-bg: #0d0f17; --pr-card: #151826; --pr-pop: #141d3a; --pr-hl: #1c2a55; --pr-glow-op: .35; --pr-glow-blend: screen;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f17; --bg-2: #121522; --ink: #eef0f8; --ink-2: #c3c9da; --mute: #929bb3;
  --card: #171a27; --line: #252a3b; --line-2: #343a52; --btn: #1b1f2e; --btn-h: #262c40;
  --acc: #6d8bff; --acc-h: #85a0ff; --on-acc: #0b1020; --glass: rgba(13, 15, 23, .7); --ind: #2d3450;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 8px 24px rgba(0, 0, 0, .35); --sh-3: 0 20px 50px rgba(0, 0, 0, .5);
  --c1: #7c8fff; --c2: #5ecbff;
  --rail-bg: rgba(18, 21, 34, .86);
  --pr-bg: #0d0f17; --pr-card: #151826; --pr-pop: #141d3a; --pr-hl: #1c2a55; --pr-glow-op: .35; --pr-glow-blend: screen;
  color-scheme: dark;
}

/* ============ Temel ============ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 125%; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 .8rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  height: 100dvh; overflow: hidden; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: var(--r-1); }
.i { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h6 { margin: 0; }

/* ============ Buton sistemi ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.2rem; padding: 0 .8rem; border: 0; border-radius: var(--r-2); background: none;
  font-weight: 500; font-size: .74rem; cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform 120ms var(--ease-out), opacity var(--t-fast) ease;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--icon { width: 2.2rem; padding: 0; }
.btn--icon .i { width: 1.1em; height: 1.1em; }
.btn--block { width: 100%; }
.btn--lg { min-height: 2.4rem; font-size: .78rem; font-weight: 600; }
.btn--pill { border-radius: 99px; padding: 0 .8rem 0 .9rem; }
.btn--ghost { color: var(--ink-2); }
.btn--soft { background: var(--btn); color: var(--ink); }
.btn--primary { background: var(--acc); color: var(--on-acc); box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 35%, transparent); }
.btn--outline { border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: var(--btn); color: var(--ink); }
  .btn--soft:hover { background: var(--btn-h); }
  .btn--primary:hover:not(:disabled) { background: var(--acc-h); }
  .btn--outline:hover { border-color: var(--acc); }
  .btn--dark:hover { opacity: .9; }
}
.btn .chev { transition: transform var(--t-mid) var(--ease-out); }
.btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Segment kontrol (kayan gösterge ile) */
.seg { position: relative; display: inline-flex; background: var(--btn); border-radius: var(--r-2); padding: .15rem; gap: .1rem; isolation: isolate; }
.seg button {
  position: relative; z-index: 1; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 2rem; padding: 0 .7rem; border: 0; background: none; border-radius: calc(var(--r-2) - .15rem);
  color: var(--mute); font-size: .72rem; font-weight: 600; cursor: pointer; transition: color var(--t-fast) ease; touch-action: manipulation; white-space: nowrap;
}
.seg button[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: var(--ink); } }
.seg__ind {
  position: absolute; z-index: 0; top: .15rem; bottom: .15rem; left: 0; width: 0;
  border-radius: calc(var(--r-2) - .15rem); background: var(--ind); box-shadow: var(--sh-1);
  transition: transform var(--t-slow) var(--ease-io), width var(--t-slow) var(--ease-io);
}
.seg--sm button { min-height: 1.9rem; }
.seg--sm button[aria-pressed="true"] { background: var(--ind); box-shadow: var(--sh-1); }

/* ============ Yükleme ============ */
/* Logo animasyonu: videodan çıkarılmış 60 karelik şeffaf dizi (10×6) */
.lo { display: inline-block; flex: none; width: var(--s, 6rem); height: var(--s, 6rem); background: url("../assets/aytai-logo-anim.png") 0 0 / 1000% 600% no-repeat; }
/* Açılış: video siyah zeminli olduğu için ekran her temada siyah; kare kadraj filigranı dışarıda bırakır */
#boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: .6rem;
  background: #000; color: #fff; transition: opacity 400ms var(--ease-out), visibility 400ms;
}
#boot.done { opacity: 0; visibility: hidden; }
.boot__vid { width: 10rem; height: 10rem; overflow: hidden; }
.boot__vid video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.18); display: block; }
#boot b { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.boot__bar {
  display: block; width: 6rem; height: 3px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(90deg, transparent, #3b82f6, #22d3ee, transparent) 0 0 / 50% 100% no-repeat, rgba(255, 255, 255, .14);
  animation: load 1.2s var(--ease-io) infinite;
}
@keyframes load { from { background-position: -100% 0, 0 0; } to { background-position: 200% 0, 0 0; } }

/* ============ Arka planlar ============ */
#bg, .fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#bg { opacity: .55; transition: opacity 350ms var(--ease-out); }
#bg.sw { opacity: 0 !important; }
body[data-mode=chat] #bg { opacity: .85; }
body[data-mode=code] #bg { opacity: .38; -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(0,0,0,.2), #000 100%); mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(0,0,0,.2), #000 100%); }
.fx { opacity: 0; transition: opacity 450ms var(--ease-out); }
.fx canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
body[data-mode=code] #ascii { opacity: .85; -webkit-mask-image: radial-gradient(ellipse 42% 38% at 50% 52%, rgba(0,0,0,.3), #000 100%); mask-image: radial-gradient(ellipse 42% 38% at 50% 52%, rgba(0,0,0,.3), #000 100%); }
body[data-mode=image] #flow { opacity: 1; }
body.chatting #bg, body.paged #bg { opacity: .18; }
body[data-mode=code].chatting #ascii, body[data-mode=code].paged #ascii { opacity: .2; }
body[data-mode=image].chatting #flow, body[data-mode=image].paged #flow { opacity: .3; }

/* ============ Üst çubuk ============ */
#bar {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 30; display: flex; align-items: center; gap: .35rem;
  padding: max(.5rem, env(safe-area-inset-top, 0px)) .75rem .5rem;
  transition: background-color var(--t-mid) ease, box-shadow var(--t-mid) ease, left 300ms var(--ease-io);
}
body.chatting #bar, body.paged #bar { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
#ttl { flex: 1; min-width: 0; text-align: center; font-weight: 600; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg--modes { margin-left: .2rem; }
.seg--modes button { min-height: 2rem; }
@media (max-width: 560px) {
  .seg--modes button span { display: none; }
  .seg--modes button { padding: 0 .6rem; min-width: 2.2rem; }
}

/* ============ Ana sahne ============ */
#stage { position: relative; z-index: 1; height: 100dvh; margin-left: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 3.7rem 1rem 0; transition: margin-left 300ms var(--ease-io); }
#stage.home { justify-content: center; padding-bottom: 2.5rem; overflow: auto; }
#msgs {
  flex: 1; min-height: 0; width: 100%; max-width: 44rem; overflow: auto; overscroll-behavior: contain;
  padding: 1rem .25rem 1.5rem; display: flex; flex-direction: column; gap: 1.4rem; scroll-padding-bottom: 2rem;
}
#stage.home #msgs, #stage:not(.home) #hero, #stage:not(.home) #sug, #stage:not(.home) #lst { display: none; }

/* Hero: logo ile başlık arası daraltıldı */
#hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 1.4rem; }
#logo { width: 6.6rem; height: 6.6rem; display: block; margin-bottom: -.4rem; touch-action: manipulation; }
#h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
/* Kodlama modu başlığı: terminal havasında tek aralıklı yazı + yanıp sönen imleç */
body[data-mode="code"] #h1 { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-weight: 600; letter-spacing: -.04em; }
body[data-mode="code"] #h1::before { content: ">_ "; color: var(--acc); }
body[data-mode="code"] #h1::after { content: ""; display: inline-block; width: .5em; height: .9em; margin-left: .12em; vertical-align: -.08em; background: var(--acc); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body[data-mode="code"] #h1::after { animation: none; } }
#sub { margin: .35rem 0 0; color: var(--mute); font-size: .8rem; }

/* ============ Mesaj kutusu ============ */
#comp { position: relative; width: 100%; max-width: 32rem; flex: none; }
#stage:not(.home) #comp { max-width: 44rem; padding-bottom: max(.6rem, env(safe-area-inset-bottom, 0px)); }
#stage:not(.home) #comp::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2rem; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.box {
  border: 1px solid var(--line-2); border-radius: var(--r-4); background: var(--bg);
  box-shadow: var(--sh-2); padding: .65rem .65rem .55rem;
  transition: border-color var(--t-mid) ease, box-shadow var(--t-mid) ease;
}
.box:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, var(--line-2)); box-shadow: var(--sh-2), 0 0 0 4px var(--acc-soft); }
#chips { display: none; gap: .5rem; flex-wrap: wrap; margin-bottom: .55rem; }
.th { position: relative; width: 3rem; height: 3rem; border-radius: var(--r-2); overflow: hidden; background: var(--card); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.fc { position: relative; display: flex; align-items: center; gap: .5rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-2); padding: 0 2rem 0 .6rem; height: 3rem; max-width: 12rem; }
.fc .nm { font-size: .68rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 7rem; }
.fc small { display: block; color: var(--mute); font-size: .6rem; line-height: 1.2; }
.rm { position: absolute; top: .2rem; right: .2rem; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 22, 30, .72); color: #fff; cursor: pointer; }
.rm .i { width: .65rem; height: .65rem; stroke-width: 3; }
.rm::before { content: ""; position: absolute; inset: -.55rem; }
#in { display: block; width: 100%; resize: none; border: 0; background: none; outline: none; padding: .2rem .35rem; max-height: 30dvh; min-height: 1.7rem; line-height: 1.5; font-size: .82rem; }
#in::placeholder { color: var(--mute); }
#tools { display: flex; align-items: center; gap: .35rem; margin-top: .45rem; }
#tools .sp { flex: 1; }
#tools .btn { flex: none; }
#tools .btn--icon { border-radius: 50%; }
#tc { min-width: 0; display: flex; }
.tc { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; white-space: nowrap; padding: 0 .2rem 0 .65rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .72rem; font-weight: 600; animation: pop var(--t-mid) var(--ease-out); }
.tc button { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
/* Model seçici: hap düğme + açılır liste (adlar her zaman görünür) */
.mdl { position: relative; min-width: 0; display: flex; }
.mdl__b { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; min-height: 2.2rem; padding: 0 .55rem 0 .6rem; border: 0; border-radius: 99px; background: var(--btn); color: var(--ink); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; transition: background-color var(--t-fast) ease; }
.mdl__b .i { width: .95em; height: .95em; color: var(--acc); flex: none; }
.mdl__b .chev { color: var(--mute); transition: transform var(--t-fast) var(--ease-out); }
.mdl__b[aria-expanded="true"] .chev { transform: rotate(180deg); }
#mdlName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9rem; }
@media (hover: hover) and (pointer: fine) { .mdl__b:hover { background: var(--btn-h); } }
.mdl__pop { position: absolute; left: 0; bottom: calc(100% + .4rem); z-index: 25; width: 16rem; max-width: calc(100vw - 2rem); padding: .3rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-3); transform-origin: bottom left; animation: pop 180ms var(--ease-out); }
.mdl__pop h6 { margin: .35rem .6rem .25rem; font-size: .6rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mdl__pop ul { list-style: none; margin: 0; padding: 0; outline: none; }
.mdl__pop li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .5rem; padding: .45rem .6rem; border-radius: var(--r-1); cursor: pointer; }
.mdl__pop li b { font-size: .74rem; font-weight: 600; }
.mdl__pop li small { grid-column: 1; color: var(--mute); font-size: .62rem; }
.mdl__pop li .ck { grid-row: 1 / span 2; grid-column: 2; width: .9rem; height: .9rem; color: var(--acc); visibility: hidden; }
.mdl__pop li[aria-selected="true"] .ck { visibility: visible; }
.mdl__pop li.act { background: var(--btn); }
.mdl__pop .vb { display: inline-block; margin-left: .3rem; padding: .02rem .3rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .55rem; font-weight: 700; vertical-align: .08em; }
.tl__ic { display: none; }
body.tool-image #mdlWrap, body.tool-image #thinkTg { display: none; }
.tag-soon[hidden] { display: none; }
#tc:empty { display: none; }
/* Telefonda araç çubuğu sığsın: "Araçlar" simgeye döner, model adı her zaman görünür,
   model listesi mesaj kutusunun tam genişliğinde açılır */
@media (max-width: 560px) {
  #tools { gap: .25rem; }
  #tl { width: 2.2rem; padding: 0; justify-content: center; }
  #tl .tl__t, #tl .chev { display: none; }
  #tl .tl__ic { display: block; width: 1.05rem; height: 1.05rem; }
  .mdl { position: static; flex: 0 1 auto; min-width: 0; }
  .mdl__b { max-width: 100%; padding: 0 .45rem 0 .55rem; }
  .mdl__b > .i:first-child { display: none; }
  #mdlName { min-width: 2.6rem; max-width: none; }
}
/* Telefonda sohbet: avatar sütunu daralır, içerik kenara yapışmaz, geri bildirim tek satır */
@media (max-width: 560px) {
  #msgs { padding: .8rem .35rem 1.2rem; gap: 1.1rem; }
  .m.a { grid-template-columns: 1.5rem 1fr; gap: .5rem; }
  .m.a .av { width: 1.5rem; height: 1.5rem; }
  .m.a .av img { width: 1.05rem; height: 1.05rem; }
  .m.a .body { padding-right: .15rem; }
  .fb { display: flex; width: 100%; }
  .fb__t { gap: .45rem; min-width: 0; padding-left: .6rem; white-space: nowrap; }
  .fb__t span { overflow: hidden; text-overflow: ellipsis; }
  .fb .fb__v { padding: 0 .2rem; }
  .fb .fb__v button, .fb .fb__x { width: 2rem; min-width: 2rem; }
}
@media (hover: none) { #msgs { scrollbar-width: none; } #msgs::-webkit-scrollbar { display: none; } }
/* Dar telefonlarda sesli giriş düğmesi gizlenir: telefon klavyesinin kendi dikte özelliği var, model adına yer açılır */
@media (max-width: 420px) {
  #mic { display: none; }
}
/* Çok dar ekranlarda (360 px ve altı) araç düğmeleri biraz küçülür */
@media (max-width: 380px) {
  #tools .btn--icon, #tl, .think-tg { width: 2rem; min-width: 2rem; height: 2rem; min-height: 2rem; }
  #tools { gap: .2rem; }
  .mdl__pop { left: 0; right: 0; width: auto; max-width: none; transform-origin: bottom center; }
}
/* Düşünme modu düğmesi */
.think-tg .i { width: 1em; height: 1em; }
.think-tg[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); }
@media (max-width: 560px) { .think-tg span { display: none; } .think-tg { width: 2.2rem; padding: 0; justify-content: center; } }
.mtag { align-self: center; margin-left: .3rem; color: var(--mute); font-size: .62rem; font-weight: 600; }
.tl__rs { margin: .4rem 0 0 .6rem; padding: .5rem .7rem; max-height: 11rem; overflow: auto; border-left: 2px solid var(--line); color: var(--mute); font-size: .68rem; font-weight: 400; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
#mic[aria-pressed="true"] { background: var(--danger); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 25%, transparent); } }
.disc { margin: .45rem 0 0; text-align: center; font-size: .6rem; color: var(--mute); }
.disc { line-height: 1.5; text-wrap: balance; }

.pop {
  position: absolute; left: 0; bottom: calc(100% + .4rem); z-index: 20; min-width: 13rem; padding: .3rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-3);
  transform-origin: bottom left; animation: pop 180ms var(--ease-out);
}
.pop button { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 2.2rem; padding: 0 .6rem; border: 0; border-radius: var(--r-1); background: none; font-size: .74rem; cursor: pointer; text-align: left; }
.pop h6 { margin: .35rem .6rem .15rem; font-size: .6rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
@media (hover: hover) and (pointer: fine) { .pop button:hover { background: var(--btn); } }

/* Öneriler */
#sug { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; max-width: 32rem; margin-top: 1.4rem; }
#sug .card-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: .8rem; min-height: 5.4rem;
  text-align: left; border: 1px solid var(--line); border-radius: var(--r-3); background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .76rem; font-weight: 600; line-height: 1.3; cursor: pointer; color: var(--ink);
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-fast) ease, box-shadow var(--t-mid) var(--ease-out);
  animation: rise 320ms var(--ease-out) both;
}
#sug .card-btn:nth-child(2) { animation-delay: 40ms; }
#sug .card-btn:nth-child(3) { animation-delay: 80ms; }
#sug .card-btn .ico { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-1); background: var(--acc-soft); color: var(--acc); }
#sug .card-btn small { display: block; margin-top: .15rem; color: var(--mute); font-weight: 500; font-size: .66rem; }
#sug .card-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { #sug .card-btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: var(--sh-2); } }
#lst { width: 100%; max-width: 32rem; margin-top: .8rem; padding: .3rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg); box-shadow: var(--sh-2); animation: pop 180ms var(--ease-out); }
#lst h6 { margin: .3rem .6rem .2rem; font-size: .6rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
#lst button { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 2.3rem; padding: 0 .6rem; border: 0; border-radius: var(--r-1); background: none; text-align: left; font-size: .76rem; cursor: pointer; }
#lst button .i { color: var(--mute); }
@media (hover: hover) and (pointer: fine) { #lst button:hover { background: var(--btn); } }

/* ============ Sohbet ekranı ============ */
.m { max-width: 100%; overflow-wrap: anywhere; }
.m.in { animation: rise 260ms var(--ease-out) both; }
.m.u { align-self: flex-end; max-width: min(85%, 34rem); padding: .55rem .9rem; border-radius: var(--r-4) var(--r-4) .35rem var(--r-4); background: var(--acc-soft); color: var(--ink); }
.m.a { display: grid; grid-template-columns: 1.7rem 1fr; gap: .7rem; align-items: start; }
.m.a .av { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.m.a .av img { width: 1.2rem; height: 1.2rem; object-fit: contain; }
.m.a .body { min-width: 0; padding-top: .1rem; }
.m img.gen { width: min(24rem, 100%); border-radius: var(--r-3); display: block; background: #fff; margin: .2rem 0 .6rem; box-shadow: var(--sh-2); }
/* Ayt Image sonucu: fotoğraf + indirme düğmesi */
.gen-fig { margin: .2rem 0 .7rem; width: min(28rem, 100%); }
.gen-fig img.gen { width: 100%; height: auto; margin: 0; background: var(--card); animation: genIn 420ms var(--ease-out) both; }
.gen-fig figcaption { display: flex; justify-content: flex-end; margin-top: .45rem; }
.gen-fig .btn { min-height: 2rem; font-size: .7rem; }
.gen-fig .btn .i { width: 1em; height: 1em; }
@keyframes genIn { from { opacity: 0; transform: scale(.97); filter: blur(8px); } }
@media (prefers-reduced-motion: reduce) { .gen-fig img.gen { animation: none; } }
[data-say][aria-pressed="true"] { color: var(--acc); }
/* Ayt Video: sohbette görsel üzerinde sinematik kamera hareketi (indirilen videoyla aynı hareket) */
.gen-vid .kb { position: relative; overflow: hidden; border-radius: var(--r-3); box-shadow: var(--sh-2); background: #000; }
.gen-vid .kb img.gen { border-radius: 0; box-shadow: none; animation: none; transform-origin: 50% 50%; }
.gen-vid .kb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; }
.kb--zoomin img.gen { animation: kbIn 6s ease-in-out infinite alternate !important; }
.kb--zoomout img.gen { animation: kbOut 6s ease-in-out infinite alternate !important; }
.kb--panl img.gen { animation: kbL 6s ease-in-out infinite alternate !important; }
.kb--panr img.gen { animation: kbR 6s ease-in-out infinite alternate !important; }
@keyframes kbIn { from { transform: scale(1); } to { transform: scale(1.2); } }
@keyframes kbOut { from { transform: scale(1.2); } to { transform: scale(1); } }
@keyframes kbL { from { transform: scale(1.12) translateX(4.5%); } to { transform: scale(1.12) translateX(-4.5%); } }
@keyframes kbR { from { transform: scale(1.12) translateX(-4.5%); } to { transform: scale(1.12) translateX(4.5%); } }
.kb__tag { position: absolute; left: .55rem; top: .55rem; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .62rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kb__tag .i { width: .95em; height: .95em; }
.gen-fig figcaption { gap: .4rem; }
@media (prefers-reduced-motion: reduce) { .kb img.gen { animation: none !important; } }

/* ============ Sesli sohbet ============ */
.voice { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; padding: max(.8rem, env(safe-area-inset-top, 0px)) 1rem max(1.2rem, env(safe-area-inset-bottom, 0px)); background: radial-gradient(ellipse 80% 60% at 50% 42%, color-mix(in srgb, var(--acc) 16%, var(--bg)), var(--bg) 70%); color: var(--ink); animation: fade 220ms var(--ease-out); }
.voice[hidden] { display: none; }
.voice__top { display: flex; align-items: center; justify-content: space-between; }
.voice__top h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.voice__top .btn { width: 2.6rem; min-height: 2.6rem; }
.voice__top .btn .i { width: 1.35rem; height: 1.35rem; }
.voice__mid { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.1rem; text-align: center; min-height: 0; }
.voice__orb { position: relative; display: grid; place-items: center; width: 11rem; height: 11rem; }
.voice__orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--acc) 45%, transparent); opacity: 0; }
.voice .voice__vid { position: relative; width: 7.5rem; height: 7.5rem; margin: 0; filter: drop-shadow(0 0 1.2rem color-mix(in srgb, var(--acc) 55%, transparent)); transition: transform 300ms var(--ease-out); }
.voice[data-s="listen"] .voice__orb i, .voice[data-s="rec"] .voice__orb i { animation: vRing 1.8s ease-out infinite; }
.voice[data-s="listen"] .voice__orb i:nth-child(2), .voice[data-s="rec"] .voice__orb i:nth-child(2) { animation-delay: .9s; }
.voice[data-s="rec"] .voice__orb i { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.voice[data-s="think"] .voice__vid.tl__vid { animation: vThink 1.4s ease-in-out infinite; }
.voice[data-s="speak"] .voice__vid.tl__vid { animation: vSpeak .55s ease-in-out infinite alternate; }
.voice[data-s="idle"] .voice__vid.tl__vid { opacity: .75; }
@keyframes vRing { from { opacity: .7; transform: scale(.7); } to { opacity: 0; transform: scale(1.25); } }
@keyframes vThink { 50% { transform: rotate(14deg) scale(.94); } }
@keyframes vSpeak { to { transform: scale(1.1); } }
.voice__state { margin: 0; font-size: 1rem; font-weight: 700; }
.voice__text { margin: 0; max-width: 30rem; min-height: 2.6em; color: var(--mute); font-size: .82rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.voice__bot { display: grid; justify-items: center; gap: .8rem; }
.voice__mic { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border: 0; border-radius: 50%; background: linear-gradient(140deg, var(--acc), var(--acc-2)); color: #fff; cursor: pointer; box-shadow: 0 12px 34px -8px color-mix(in srgb, var(--acc) 70%, transparent); transition: transform 150ms var(--ease-out), background 200ms ease; }
.voice__mic .i { width: 1.7rem; height: 1.7rem; }
.voice__mic:active { transform: scale(.95); }
.voice__mic:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.voice[data-s="listen"] .voice__mic, .voice[data-s="rec"] .voice__mic { background: var(--danger); }
.voice[data-s="think"] .voice__mic { opacity: .5; cursor: progress; }
.voice__sel { display: inline-flex; align-items: center; gap: .4rem; color: var(--mute); font-size: .7rem; font-weight: 600; }
.voice__sel[hidden] { display: none; }
.voice__sel select { min-height: 2rem; padding: 0 .5rem; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--bg); color: var(--ink); font: inherit; font-size: .72rem; }
.voice__hint { margin: 0; max-width: 24rem; color: var(--mute); font-size: .64rem; text-align: center; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .voice__orb i, .voice__vid { animation: none !important; } }
.m code { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: .86em; background: var(--card); padding: .08rem .32rem; border-radius: .35rem; }
.code { margin: .6rem 0; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; background: var(--bg-2); }
.code__h { display: flex; align-items: center; justify-content: space-between; padding: .15rem .3rem .15rem .75rem; border-bottom: 1px solid var(--line); font-size: .64rem; color: var(--mute); font-weight: 600; }
.code__h .btn { min-height: 1.8rem; font-size: .66rem; padding: 0 .55rem; }
.code pre { margin: 0; padding: .75rem .85rem; overflow-x: auto; font-size: .7rem; line-height: 1.55; }
.code pre code { background: none; padding: 0; font-size: 1em; }
/* Markdown yanıtları */
.md { line-height: 1.6; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 .65rem; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 1.05rem 0 .45rem; line-height: 1.3; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.md h1 { font-size: 1.18em; } .md h2 { font-size: 1.1em; } .md h3 { font-size: 1.02em; } .md h4, .md h5, .md h6 { font-size: .95em; }
.md ul, .md ol { margin: 0 0 .65rem; padding-left: 1.35rem; }
.md li { margin: .18rem 0; }
.md li > ul, .md li > ol { margin: .2rem 0 .1rem; }
.md li::marker { color: var(--mute); }
.md ol > li::marker { font-weight: 600; }
.md li.tk { list-style: none; margin-left: -1.2rem; }
.md .tk__b { display: inline-block; width: .85em; height: .85em; margin-right: .45em; vertical-align: -.08em; border: 1.5px solid var(--line-2); border-radius: .22em; }
.md .tk.on .tk__b { background: var(--acc); border-color: var(--acc); box-shadow: inset 0 0 0 2px var(--bg); }
.md a { color: var(--acc); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc) 40%, transparent); text-underline-offset: .15em; overflow-wrap: anywhere; }
.md a:hover { text-decoration-color: currentColor; }
.md blockquote { margin: 0 0 .65rem; padding: .35rem .85rem; border-left: 3px solid var(--acc); border-radius: 0 var(--r-1) var(--r-1) 0; background: var(--acc-soft); color: var(--ink-2); }
.md hr { margin: 1rem 0; border: 0; border-top: 1px solid var(--line); }
.md s { color: var(--mute); }
.md .tbl { margin: .2rem 0 .75rem; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); -webkit-overflow-scrolling: touch; }
.md table { width: 100%; border-collapse: collapse; font-size: .92em; overflow-wrap: normal; }
.md th, .md td { padding: .45rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; min-width: 5.5rem; }
.md th { background: var(--bg-2); font-weight: 700; color: var(--ink); }
.md tbody tr:last-child td { border-bottom: 0; }
.md tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--card) 55%, transparent); }
.md .al-c { text-align: center; } .md .al-r { text-align: right; }
.md .code { margin: .3rem 0 .75rem; }
/* Kod renklendirme (açık tema varsayılan) */
:root { --hl-k: #a626a4; --hl-s: #1f7a3d; --hl-c: #7c8598; --hl-n: #b55a00; --hl-f: #2f5bd8; --hl-t: #b2365a; --hl-a: #8a5a00; --hl-v: #0f7f91; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl-k: #d58cf0; --hl-s: #8fd89a; --hl-c: #7f879d; --hl-n: #f5b06b; --hl-f: #8eb1ff; --hl-t: #ff9cb6; --hl-a: #e8c37a; --hl-v: #6ad6e6; } }
:root[data-theme="dark"] { --hl-k: #d58cf0; --hl-s: #8fd89a; --hl-c: #7f879d; --hl-n: #f5b06b; --hl-f: #8eb1ff; --hl-t: #ff9cb6; --hl-a: #e8c37a; --hl-v: #6ad6e6; }
.hl-k { color: var(--hl-k); } .hl-s { color: var(--hl-s); } .hl-c { color: var(--hl-c); font-style: italic; } .hl-n { color: var(--hl-n); }
.hl-f { color: var(--hl-f); } .hl-t { color: var(--hl-t); } .hl-a { color: var(--hl-a); } .hl-v { color: var(--hl-v); }
.acts { display: flex; gap: .15rem; margin-top: .35rem; margin-left: -.45rem; opacity: .7; transition: opacity var(--t-fast) ease; }
.m.a:hover .acts, .acts:focus-within { opacity: 1; }
.acts .btn { min-height: 1.9rem; width: 1.9rem; }
.acts .btn .i { width: .95em; height: .95em; }
.to-bottom { position: absolute; left: 50%; bottom: 8.6rem; z-index: 5; transform: translateX(-50%); border-radius: 50%; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-2); animation: pop 180ms var(--ease-out); }
.to-bottom:active { transform: translateX(-50%) scale(.95); }

/* Geri bildirim çubuğu (FeedbackBar) */
.fb { display: inline-flex; max-width: 100%; margin-top: .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .72rem; animation: rise 240ms var(--ease-out) both; }
.fb__t { display: flex; flex: 1; align-items: center; gap: .8rem; padding: .3rem .2rem .3rem .8rem; color: var(--ink); font-weight: 500; }
.fb__t .i { color: var(--acc); }
.fb__v { display: flex; align-items: center; gap: .1rem; padding: 0 .5rem; }
.fb__v button, .fb__x { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; border-radius: var(--r-1); background: none; color: var(--mute); cursor: pointer; transition: color var(--t-fast) ease, background-color var(--t-fast) ease; }
.fb__x { border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; width: 2.6rem; height: auto; }
.fb__x .i { width: 1.15em; height: 1.15em; }
@media (hover: hover) and (pointer: fine) { .fb__v button:hover, .fb__x:hover { color: var(--ink); background: var(--btn); } }
.fb-done { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; color: var(--mute); font-size: .68rem; animation: rise 200ms var(--ease-out) both; }
.fb-done .i { color: var(--ok); }

/* Düşünme satırı */
.tl { margin: 0 0 .4rem; font-weight: 500; font-size: .78rem; }
.tl summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; min-height: 1.9rem; color: var(--ink-2); }
.tl summary::-webkit-details-marker { display: none; }
.tl .lo { --s: 1.35em; margin: -.15em 0; }
.tl__g { width: 1.05em; height: 1.05em; color: var(--acc); }
.tl[data-w] .tl__l { background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 45%, transparent) 30%, var(--ink) 50%, color-mix(in srgb, var(--ink) 45%, transparent) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shim 1.8s linear infinite; }
.tl__t { font-variant-numeric: tabular-nums; color: var(--mute); }
.tl__c { color: var(--mute); transition: transform var(--t-mid) var(--ease-out); }
.tl[open] .tl__c { transform: rotate(180deg); }
.tl ul { list-style: none; margin: .25rem 0 0; padding: 0 0 0 .6rem; border-left: 2px solid var(--line); display: grid; gap: .3rem; font-weight: 400; font-size: .74rem; color: var(--ink-2); }
.tl li { display: flex; gap: .5rem; align-items: center; padding-left: .5rem; animation: rise 200ms var(--ease-out) both; }
.tl li.d { color: var(--mute); }
.tl li .i { color: var(--ok); }
.tl li i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--acc); animation: breath 1.4s ease-in-out infinite; }
@keyframes breath { 50% { opacity: .35; } }
@keyframes shim { to { background-position: -125% 0; } }

/* ============ Yan menü (navbar): ray + mobil panel ============ */
#scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .8); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out); }
body.nav #scrim { opacity: 1; pointer-events: auto; }
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(18rem, 86vw); display: flex; flex-direction: column;
  background: var(--bg-2); border-right: 1px solid var(--line); box-shadow: var(--sh-3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-100%); visibility: hidden; transition: transform 300ms var(--ease-out), visibility 300ms;
}
body.nav .rail { transform: none; visibility: visible; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: .3rem; height: 3.2rem; flex: none; padding: max(0px, env(safe-area-inset-top, 0px)) .5rem 0 .75rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 800; font-size: .9rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { flex: none; }
/* Animasyonlu logo (videodan çıkarılmış kare dizisi) + hafif nefes alma parıltısı */
/* Marka logosu (menü ve giriş sayfası): hafifçe salınır ve parlar */
.brand__logo { width: 1.55rem; height: 1.55rem; }
.logo-anim { flex: none; object-fit: contain; filter: drop-shadow(0 0 .2rem rgba(30, 120, 255, .35)); animation: logoSway 5s ease-in-out infinite; }
@keyframes logoSway {
  0%, 100% { transform: rotate(-10deg) scale(1); filter: drop-shadow(0 0 .2rem rgba(30, 120, 255, .3)); }
  50% { transform: rotate(10deg) scale(1.06); filter: drop-shadow(0 0 .5rem rgba(56, 170, 255, .6)); }
}
@media (prefers-reduced-motion: reduce) { .logo-anim { animation: none; } }
/* Düşünürken: logo videosu, arka planı silinmiş şeffaf tuvalde (her iki temada da arka plansız) */
.tl__vid { display: inline-block; flex: none; width: 1.5em; height: 1.5em; margin: -.2em 0; }
.tl__vid canvas { display: block; width: 100%; height: 100%; }
.rail__tg { display: none; }
.rail__nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: .5rem; display: flex; flex-direction: column; gap: .1rem; }
.ri {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 2.2rem; padding: 0 .7rem; border: 0; border-radius: var(--r-2);
  background: none; color: var(--ink-2); font-size: .74rem; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.ri .i { width: 1.1em; height: 1.1em; }
.ri[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }
.ri--new { background: var(--btn); color: var(--ink); margin-bottom: .3rem; }
@media (hover: hover) and (pointer: fine) { .ri:hover:not([aria-current="page"]) { background: var(--btn-h); color: var(--ink); } }
.ri__chev { margin-left: auto; width: .95em !important; height: .95em !important; color: var(--mute); transition: transform 250ms var(--ease-out); }
.ri[aria-expanded="true"] .ri__chev { transform: rotate(90deg); }
/* Açılır grup (Collapsible) */
.coll { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms var(--ease-io); }
.coll.open { grid-template-rows: 1fr; }
.coll > div { overflow: hidden; min-height: 0; }
.coll > div > * { margin-left: .9rem; }
.side__search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem; margin-top: .3rem; }
.field { display: flex; align-items: center; gap: .4rem; min-height: 2rem; padding: 0 .55rem; border-radius: var(--r-1); background: var(--bg); border: 1px solid var(--line); color: var(--mute); }
.field:focus-within { border-color: var(--acc); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: .72rem; }
#cs { min-height: 2rem; max-width: 5.2rem; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--bg); padding: 0 .3rem; font-size: .68rem; }
#list { display: flex; flex-direction: column; gap: .05rem; padding: .3rem 0; }
.it { position: relative; display: flex; align-items: center; min-height: 2.2rem; padding: .1rem .1rem .1rem .55rem; border-radius: var(--r-1); cursor: pointer; transition: background-color var(--t-fast) ease; }
.it.on { background: var(--btn); }
.it.on::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 3px; border-radius: 3px; background: var(--acc); }
.it .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; font-weight: 500; }
.it small { display: block; color: var(--mute); font-size: .58rem; font-weight: 400; }
.it .btn { width: 1.8rem; min-height: 1.8rem; opacity: 0; color: var(--mute); }
.it .btn.pinned { opacity: 1; color: var(--acc); }
.it:hover .btn, .it:focus-within .btn, .it.on .btn { opacity: 1; }
@media (hover: none) { .it .btn { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .it:hover { background: var(--btn); } }
.empty { color: var(--mute); padding: .4rem .5rem; font-size: .68rem; }
.set { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .4rem .5rem; padding: .4rem 0 .5rem; }
.set__l { font-size: .64rem; color: var(--mute); font-weight: 600; }
.rail__foot { flex: none; padding: .5rem; border-top: 1px solid var(--line); }
.ri--acct { min-height: 2.6rem; padding: 0 .4rem; }
.av-c { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: linear-gradient(140deg, var(--acc), var(--acc-2)); color: #fff; font-size: .68rem; font-weight: 800; }
.av-c .i { width: .95em; height: .95em; }
.acct__t { display: grid; min-width: 0; line-height: 1.25; }
.acct__t b { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.acct__t small { color: var(--mute); font-size: .6rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sheet__x { margin-left: auto; }
/* Sol üst gezinme (menü düğmesi, logo, daraltma) daha büyük ve kolay tıklanır */
#menu, #nw { width: 2.6rem; min-height: 2.6rem; }
#menu .i, #nw .i { width: 1.4rem; height: 1.4rem; }
.rail__head { height: 3.6rem; }
.brand { gap: .6rem; font-size: 1.12rem; }
.brand__logo { width: 2.05rem; height: 2.05rem; }
.brand .beta { font-size: .56rem; }
.rail__tg, .sheet__x { width: 2.5rem; min-height: 2.5rem; }
.rail__tg .i, .sheet__x .i { width: 1.35rem; height: 1.35rem; }
@media (min-width: 1024px) { body:not(.rail-open) .ri { min-height: 2.5rem; } body:not(.rail-open) .ri > .i { width: 1.15rem; height: 1.15rem; } }

/* Masaüstü: kalıcı, daraltılabilir ray (64px ↔ 256px, 300ms ease-in-out) */
@media (min-width: 1024px) {
  body { --rail: 3.2rem; }
  body.rail-open { --rail: 12.8rem; }
  .rail { width: var(--rail); transform: none; visibility: visible; box-shadow: none; background: var(--rail-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: width 300ms var(--ease-io); z-index: 31; }
  .rail__tg { display: inline-flex; flex: none; }
  .sheet__x, #scrim { display: none; }
  body:not(.paged) #menu { display: none; }
  body:not(.rail-open) .rail .rt, body:not(.rail-open) .rail .coll { display: none; }
  body:not(.rail-open) .rail__head { padding: 0 .5rem; justify-content: center; }
  body:not(.rail-open) .brand { display: none; }
  body:not(.rail-open) .ri { justify-content: center; padding: 0; }
  body:not(.rail-open) .ri--acct { padding: 0; }
  .page { left: var(--rail) !important; transition: left 300ms var(--ease-io); }
}

/* ============ Sayfalar ============ */
.page { position: fixed; inset: 0; z-index: 10; overflow: auto; padding: max(3.8rem, calc(env(safe-area-inset-top, 0px) + 3.4rem)) 1rem 2.5rem; animation: fade 220ms var(--ease-out); }
#dataView { background: var(--bg); }
body.paged #stage, body.soon-on #stage { visibility: hidden; }

/* ============ Ayt Image 2.0 yakında ============ */
.soon { display: grid; place-items: center; overflow: hidden; padding: 3.7rem 1rem 1.5rem; background: var(--bg); }
.soon[hidden] { display: none; }
.soon .soon__wall { position: absolute; inset: 0; width: auto; height: auto; }
.soon__card { position: relative; z-index: 2; display: grid; justify-items: center; gap: .55rem; width: 100%; max-width: 21rem; padding: 1.4rem 1.3rem 1.3rem; text-align: center; border: 1px solid var(--line); border-radius: var(--r-3); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--sh-3); animation: pop 320ms var(--ease-out); }
.soon__gif { width: 7.5rem; height: 7.5rem; object-fit: contain; image-rendering: pixelated; border-radius: var(--r-2); background: #0b0b0b; }
.soon__badge { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.soon__dot { width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; animation: soonDot 1.4s ease-in-out infinite; }
@keyframes soonDot { 50% { opacity: .25; } }
.soon__card h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; outline: none; }
.soon__card p { margin: 0 0 .35rem; color: var(--mute); font-size: .76rem; line-height: 1.55; }
.soon__card .btn .i { width: 1em; height: 1em; }
.tag-soon { margin-left: .3rem; padding: .02rem .3rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .5rem; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .tag-soon { display: none; } }

/* DriftWall */
.drift-wall { position: relative; width: 100%; height: 100%; overflow: hidden; perspective: var(--dw-perspective, 1200px); perspective-origin: 50% 50%; -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%); mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 var(--dw-edge), transparent 100%); }
.drift-wall__plane { position: absolute; top: 50%; left: 50%; display: flex; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.drift-wall__col { position: relative; width: calc(var(--dw-tile-w) + var(--dw-gap)); transform-style: preserve-3d; }
.drift-wall__track { display: flex; flex-direction: column; will-change: transform; transform-style: preserve-3d; }
.drift-wall__tile { position: relative; display: block; width: 100%; height: calc(var(--dw-tile-h) + var(--dw-gap)); flex: 0 0 auto; transform-style: preserve-3d; cursor: pointer; }
.drift-wall__inner { position: absolute; inset: calc(var(--dw-gap) / 2); display: block; border-radius: var(--dw-radius); overflow: hidden; background: var(--card); opacity: var(--dw-dim); transform: translateZ(0); pointer-events: none; transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s cubic-bezier(.22, 1, .36, 1); }
.drift-wall__tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: filter .42s cubic-bezier(.22, 1, .36, 1); user-select: none; -webkit-user-drag: none; }
.drift-wall__overlay { position: absolute; inset: 0; background: var(--bg); opacity: .42; transition: opacity .42s cubic-bezier(.22, 1, .36, 1); }
.drift-wall__tile.is-active .drift-wall__inner { opacity: 1; transform: translateZ(var(--dw-lift)); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7); }
.drift-wall__tile.is-active img { filter: saturate(1.05); }
.drift-wall__tile.is-active .drift-wall__overlay { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .drift-wall__plane, .drift-wall__track { will-change: auto; } .soon__dot { animation: none; } }
.page__in { width: 100%; max-width: 58rem; margin: 0 auto; }
.page h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-bottom: .8rem; outline: none; }

/* ============ Pricing section ============ */
.page--pricing { background: var(--pr-bg); padding-left: 0; padding-right: 0; padding-bottom: 0; }
.pr { position: relative; min-height: 100%; padding: 1.6rem .8rem 2rem; }
.pr__glow { position: absolute; top: 0; left: 10%; right: 10%; height: 100%; z-index: 0; pointer-events: none; background: radial-gradient(circle at center, #206ce8 0%, transparent 70%); opacity: var(--pr-glow-op); mix-blend-mode: var(--pr-glow-blend); }
.pr > * { position: relative; z-index: 1; }
.pr > .pr__glow { position: absolute; z-index: 0; }
.pr__head { max-width: 38rem; margin: 0 auto 1.2rem; text-align: center; }
.page--pricing .pr__head h2 { margin: 0 0 .8rem; font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.pr__hl { display: inline-block; padding: .1rem .45rem; border: 1px dashed #3b82f6; border-radius: .6rem; background: var(--pr-hl); }
.pr__head p { width: 80%; margin: 0 auto; color: var(--mute); font-size: .72rem; }
@media (min-width: 640px) { .page--pricing .pr__head h2 { font-size: 1.8rem; } .pr__head p { width: 70%; font-size: .8rem; } }
@media (min-width: 768px) { .page--pricing .pr__head h2 { font-size: 3rem; } }

/* Aylık / Yıllık anahtarı: yaylı hap göstergesi */
.psw { position: relative; z-index: 2; display: flex; width: fit-content; margin: 0 auto; padding: .2rem; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); isolation: isolate; }
.psw button { position: relative; z-index: 1; height: 2rem; padding: 0 .6rem; border: 0; border-radius: 99px; background: none; color: var(--mute); font-weight: 500; font-size: .74rem; cursor: pointer; white-space: nowrap; transition: color 200ms ease; }
.psw button[aria-pressed="true"] { color: #fff; }
@media (hover: hover) and (pointer: fine) { .psw button:not([aria-pressed="true"]):hover { color: var(--ink); } }
.psw button span { display: inline-flex; align-items: center; gap: .4rem; }
.psw em { font-style: normal; padding: .1rem .4rem; border-radius: 99px; background: #eff6ff; color: #0b1020; font-size: .58rem; font-weight: 600; }
.psw__pill { position: absolute; z-index: 0; top: .2rem; left: 0; height: 2rem; width: 0; border-radius: 99px; border: 4px solid #2563eb; background: linear-gradient(to top, #3b82f6, #60a5fa, #2563eb); box-shadow: 0 1px 2px #2563eb; transition: transform 420ms cubic-bezier(.3, 1.35, .5, 1), width 420ms cubic-bezier(.3, 1.35, .5, 1); }
@media (min-width: 640px) { .psw button { height: 2.4rem; padding: 0 1.2rem; font-size: .8rem; } .psw__pill { height: 2.4rem; } }

.pr__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; max-width: 64rem; margin: 0 auto; padding: 1.2rem 0; }
@media (min-width: 768px) { .pr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc { position: relative; height: 100%; border: 1px solid var(--line); border-radius: .5rem; background: var(--pr-card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.pc--pop { background: var(--pr-pop); box-shadow: 0 0 0 2px #3b82f6; border-color: transparent; }
.pc__h { padding: 1.2rem 1.2rem .8rem; }
.pc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.pc__name { margin: 0 0 .4rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.pc__badge { padding: .2rem .6rem; border-radius: 99px; background: #3b82f6; color: #fff; font-size: .66rem; font-weight: 500; }
.pc__desc { margin: 0 0 .8rem; color: var(--mute); font-size: .7rem; line-height: 1.5; min-height: 3em; }
.pc__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .3rem; }
.pc__amt { display: inline-flex; align-items: baseline; font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.pc__per { color: var(--mute); font-size: .76rem; }
.pc__old { color: var(--mute); font-size: .9rem; font-weight: 500; text-decoration: line-through; }
.pc__off { padding: .1rem .45rem; border-radius: 99px; background: color-mix(in srgb, #10b981 16%, transparent); color: var(--ok); font-size: .6rem; font-weight: 700; align-self: center; }
.pc__c { padding: 0 1.2rem 1.2rem; }
.pc__btn { display: block; width: 100%; margin-bottom: 1.2rem; padding: .8rem; border-radius: .6rem; font-size: 1rem; font-weight: 500; color: #fff; cursor: pointer; transition: transform 120ms var(--ease-out), filter var(--t-fast) ease; }
.pc__btn--pop { background: linear-gradient(to top, #3b82f6, #2563eb); border: 1px solid #60a5fa; box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .55); }
.pc__btn--dark { background: linear-gradient(to top, #171717, #525252); border: 1px solid #404040; box-shadow: 0 10px 15px -3px rgba(23, 23, 23, .5); }
.pc__btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .pc__btn:hover { filter: brightness(1.08); } }
.pc__feat { list-style: none; margin: 0; padding: 1rem 0; display: grid; gap: .4rem; font-weight: 600; }
.pc__feat li { display: flex; align-items: center; }
.pc__feat .i { width: 1rem; height: 1rem; margin-right: .6rem; color: var(--ink); }
.pc__feat span, .pc__inc span { color: var(--mute); font-size: .7rem; }
.pc__inc { padding-top: .8rem; border-top: 1px solid var(--line); }
.pc__inc h4 { margin: 0 0 .6rem; font-size: .8rem; font-weight: 500; color: var(--ink); }
.pc__inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-weight: 600; }
.pc__inc li { display: flex; align-items: center; }
.pc__chk { display: grid; place-content: center; flex: none; width: 1.2rem; height: 1.2rem; margin-right: .6rem; border: 1px solid #3b82f6; border-radius: 50%; background: color-mix(in srgb, #10b981 8%, var(--pr-card)); }
.pc__chk .i { width: .8rem; height: .8rem; color: #3b82f6; }

/* NumberFlow: rakamlar dikey şeritte kayarak değişir */
.nf { display: inline-flex; overflow: hidden; height: 1.15em; line-height: 1.15em; font-variant-numeric: tabular-nums; }
.nf__d { display: inline-block; width: .62em; overflow: hidden; transition: width 600ms cubic-bezier(.2, .9, .25, 1); }
.nf__d[data-blank] { width: 0; }
.nf__s { display: flex; flex-direction: column; transition: transform 600ms cubic-bezier(.2, .9, .25, 1); }
.nf__s span { height: 1.15em; text-align: center; }

/* Açılış (TimelineContent): bulanıktan netleşerek, sırayla belirir */
.tl-r { opacity: 0; transform: translateY(-20px); filter: blur(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), filter 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.tl-r.in { opacity: 1; transform: none; filter: blur(0); }
.pr .notify { max-width: 64rem; margin: .4rem auto 0; }

.notify { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 0; color: var(--mute); font-size: .74rem; }

/* Bildirim düğmesi */
.bt { display: inline-grid; transition: transform 160ms var(--ease-out); }
.bt[data-p] { transform: scale(.97); }
.bt__b { --clip: 0px; display: inline-flex; align-items: center; gap: .5rem; height: 2.2rem; padding: 0 1rem; border: 0; border-radius: 1.1rem; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .74rem; white-space: nowrap; cursor: pointer; clip-path: inset(0 var(--clip) 0 0 round 1.1rem); transition: clip-path 300ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.bt[data-on=true] .bt__b { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.bt__bell { position: relative; display: inline-grid; width: 1.05rem; height: 1.05rem; }
.bt__g { display: grid; place-items: center; width: 1.05rem; height: 1.05rem; transform-origin: 50% 16%; }
.bt__g .i { width: 1.05rem; height: 1.05rem; }
.bt__w { position: absolute; top: -3px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: 0; pointer-events: none; }
.bt__w.l { right: calc(100% - 2px); transform-origin: 100% 100%; }
.bt__w.r { left: calc(100% - 2px); transform-origin: 0 100%; }
.bt__badge { position: absolute; top: -6px; right: -7px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 600; display: grid; place-items: center; opacity: 0; transform: translateY(5px) scale(.6); transition: transform 280ms cubic-bezier(.34, 1.56, .64, 1), opacity 120ms; }
.bt__badge[data-s] { opacity: 1; transform: none; }
.bt__say { display: inline-grid; height: 18px; line-height: 18px; }
.bt__f { grid-area: 1/1; justify-self: start; opacity: 0; filter: blur(2px); transition: opacity 200ms, filter 200ms; }
.bt[data-on=false] .bt__f.off, .bt[data-on=true] .bt__f.on { opacity: 1; filter: none; }

/* Veri analizi */
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: .3rem; min-height: 8rem; border: 2px dashed var(--line-2); border-radius: var(--r-4); cursor: pointer; color: var(--mute); margin-bottom: 1rem; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.drop .i { width: 1.6rem; height: 1.6rem; color: var(--acc); }
.drop b { color: var(--ink); }
.drop span { font-size: .74rem; }
.drop:hover, .drop:focus-within { border-color: var(--acc); background: var(--acc-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.card { background: var(--card); border-radius: var(--r-3); padding: .8rem 1rem; }
.card .n { font-size: .66rem; color: var(--mute); }
.card b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.card small { display: block; color: var(--mute); font-size: .62rem; }
.ctl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .72rem; color: var(--mute); margin-bottom: .6rem; }
.ctl select { min-height: 2.1rem; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--bg); padding: 0 .5rem; }
.sc { overflow-x: auto; background: var(--card); border-radius: var(--r-3); padding: .6rem; margin-bottom: 1rem; }
table { border-collapse: collapse; font-size: .7rem; width: 100%; }
td, th { border-bottom: 1px solid var(--line); padding: .4rem .6rem; text-align: left; white-space: nowrap; }

/* ============ Giriş / kayıt ============ */
.auth { position: fixed; inset: 0; z-index: 60; overflow-x: hidden; overflow-y: auto; background: var(--bg); color: var(--ink); animation: fade 220ms var(--ease-out); }
/* Arka plan: yavaşça süzülen üç yumuşak ışık (yalnızca transform ile; GPU dostu) */
.auth__bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.auth__bg i { position: absolute; width: 42rem; height: 42rem; border-radius: 50%; filter: blur(60px); opacity: .5; will-change: transform; }
.auth__bg i:nth-child(1) { top: -18rem; left: -12rem; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 55%, transparent), transparent 65%); animation: authDrift1 22s ease-in-out infinite alternate; }
.auth__bg i:nth-child(2) { bottom: -22rem; right: -14rem; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 65%); animation: authDrift2 26s ease-in-out infinite alternate; }
.auth__bg i:nth-child(3) { top: 30%; left: 35%; width: 26rem; height: 26rem; background: radial-gradient(circle, rgba(99, 102, 241, .28), transparent 65%); animation: authDrift3 30s ease-in-out infinite alternate; }
@keyframes authDrift1 { to { transform: translate(8rem, 6rem) scale(1.1); } }
@keyframes authDrift2 { to { transform: translate(-7rem, -5rem) scale(1.15); } }
@keyframes authDrift3 { to { transform: translate(-6rem, 4rem) scale(.9); } }
.auth__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 3rem 3rem; opacity: .35; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%); }

/* Giriş ekranında gizlenen öğeler (sekmeler, misafir, geri) gerçekten gizlensin */
.auth [hidden] { display: none !important; }
.auth__top { min-height: 3.4rem; }
.auth__org { margin-left: auto; }
.auth__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: max(.9rem, env(safe-area-inset-top, 0px)) 1rem .4rem; }
/* AYT code logosu beyaz çizgidir; açık temada koyulaştırılır */
.auth__org { width: auto; height: 2.1rem; opacity: .92; filter: invert(1) brightness(.15); }
:root[data-theme="dark"] .auth__org { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth__org { filter: none; } }

.auth__wrap { position: relative; z-index: 1; display: grid; gap: 1.4rem; align-items: center; width: 100%; max-width: 56rem; min-height: calc(100dvh - 4rem); margin: 0 auto; padding: .5rem 1rem 2rem; }
@media (min-width: 1024px) { .auth__wrap { grid-template-columns: 1fr 22rem; gap: 4rem; padding: 0 2rem 3rem; } }

/* Tanıtım tarafı */
.auth__intro { display: grid; justify-items: center; gap: .55rem; text-align: center; animation: authUp 520ms var(--ease-out) both; }
@media (min-width: 1024px) { .auth__intro { justify-items: start; text-align: left; gap: .8rem; } }
.auth__mark { position: relative; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 1.3rem; background: color-mix(in srgb, var(--acc) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--acc) 25%, var(--line)); box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--acc) 55%, transparent); }
.auth__mark .auth__logo { width: 2.9rem; height: 2.9rem; }
@media (min-width: 1024px) { .auth__mark { width: 5.6rem; height: 5.6rem; border-radius: 1.6rem; } .auth__mark .auth__logo { width: 3.7rem; height: 3.7rem; } }
.auth__name { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.auth__tag { display: none; margin: 0; max-width: 22rem; font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.auth__feat { display: none; list-style: none; margin: .6rem 0 0; padding: 0; gap: .75rem; }
@media (min-width: 1024px) { .auth__tag { display: block; } .auth__feat { display: grid; } }
.auth__feat li { display: flex; align-items: flex-start; gap: .65rem; }
.auth__fi { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--acc-soft); color: var(--acc); }
.auth__fi .i { width: 1rem; height: 1rem; }
.auth__feat b { display: block; font-size: .78rem; font-weight: 700; }
.auth__feat li span:last-child { color: var(--mute); font-size: .7rem; line-height: 1.45; }

/* Form kartı */
.auth__card { display: grid; gap: .85rem; width: 100%; max-width: 22rem; margin: 0 auto; padding: 1.4rem 1.3rem 1.2rem; border: 1px solid var(--line); border-radius: 1.1rem; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--sh-3); animation: authUp 520ms 80ms var(--ease-out) both; }
@keyframes authUp { from { opacity: 0; transform: translateY(14px); } }
.auth__h { display: grid; gap: .2rem; }
.auth__h h1 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; outline: none; }
.auth__h p { margin: 0; color: var(--mute); font-size: .74rem; }
.auth__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: .2rem; border-radius: .65rem; background: var(--btn); }
.auth__tabs button { position: relative; z-index: 1; min-height: 2.1rem; border: 0; border-radius: .5rem; background: none; color: var(--mute); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; transition: color 150ms ease; }
.auth__tabs button[aria-selected="true"] { color: var(--ink); }
.auth__tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.auth__pill { position: absolute; top: .2rem; bottom: .2rem; left: .2rem; width: calc(50% - .2rem); border-radius: .5rem; background: var(--bg); box-shadow: var(--sh-1); transition: transform 240ms var(--ease-out); }
.auth__tabs[data-v="register"] .auth__pill { transform: translateX(100%); }
.auth__social { display: grid; gap: .45rem; }
.auth__social:not(:has(> :not([hidden]))) { display: none; }
.auth__social .i { width: 1em; height: 1em; }
.auth__g { display: flex; justify-content: center; min-height: 2.6rem; }
.auth__sep { display: flex; align-items: center; gap: .5rem; }
.auth__sep[hidden] { display: none; }
.auth__sep i { flex: 1; height: 1px; background: var(--line); }
.auth__sep span { color: var(--mute); font-size: .62rem; font-weight: 600; }
.auth__form { display: grid; gap: .65rem; }
.auth__f { display: grid; gap: .3rem; }
.auth__f[hidden] { display: none; }
.auth__f > label { font-size: .68rem; font-weight: 600; }
.auth__in { position: relative; }
.auth__in input { width: 100%; height: 2.5rem; padding: 0 .7rem 0 2.1rem; border: 1px solid var(--line-2); border-radius: .6rem; background: var(--bg); color: var(--ink); font: inherit; font-size: .8rem; outline: none; transition: box-shadow 150ms ease, border-color 150ms ease; }
.auth__in input::placeholder { color: var(--mute); }
.auth__in input:focus-visible { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.auth__in input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }
.auth__in > .i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: .9rem; height: .9rem; color: var(--mute); pointer-events: none; }
.auth__in--pw input { padding-right: 2.6rem; }
.auth__eye { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 0; border-radius: .45rem; background: none; color: var(--mute); cursor: pointer; }
.auth__eye .i { width: .95rem; height: .95rem; }
.auth__eye:hover { color: var(--ink); }
.auth__eye:focus-visible { outline: 2px solid var(--acc); }
.auth__hint { margin: 0; color: var(--mute); font-size: .62rem; }
.auth__hint[hidden] { display: none; }
.auth__err { margin: 0; padding: .45rem .6rem; border-radius: .5rem; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: .68rem; font-weight: 600; }
.auth__err:empty { display: none; }
#authSubmit { margin-top: .15rem; }
#authSubmit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.auth__guest { color: var(--mute); }
.auth__guest .i { width: 1em; height: 1em; }
.auth__terms { margin: 0; color: var(--mute); font-size: .62rem; line-height: 1.55; text-align: center; }
.auth__terms a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.auth__terms a:hover { color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .auth__bg i, .auth__intro, .auth__card { animation: none; } .auth__pill { transition: none; } }

/* iPhone, 16 px'ten küçük yazılı alanlara dokununca sayfayı yakınlaştırır; telefonda alanlar 16 px */
@media (max-width: 560px) { .auth__in input, #in, #q { font-size: 16px; } }

/* Uygulama olarak kurulduğunda (PWA): sayfa lastik gibi esnemez, menüdeki kurulum düğmesi vurgulu */
html.standalone, html.standalone body { overscroll-behavior: none; }
.ri--install { color: var(--acc); }
.ri--install[hidden] { display: none; }

/* Beta etiketi (menü, giriş sayfası, alt not) */
.beta { display: inline-block; padding: .04rem .32rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .52rem; font-style: normal; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: .18em; }
.disc .beta { vertical-align: .08em; margin-right: .15rem; }
.auth__name .beta { font-size: .55rem; vertical-align: .3em; }

/* Bildirim (toast) */
#toast { position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; padding: .6rem 1rem; border-radius: var(--r-3); background: var(--ink); color: var(--bg); font-size: .74rem; font-weight: 500; box-shadow: var(--sh-3); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); max-width: calc(100vw - 2rem); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============ Animasyonlar ============ */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

@media (max-width: 560px) {
  html { font-size: 112.5%; }
  #sug { grid-template-columns: 1fr; }
  #sug .card-btn { flex-direction: row; align-items: center; min-height: 3.3rem; gap: .7rem; }
  #logo { width: 5.6rem; height: 5.6rem; }
  #h1 { font-size: 1.2rem; }
  .to-bottom { bottom: 9.2rem; }
  .tc span { display: none; }
  #tl { padding: 0 .6rem 0 .75rem; }
  .fb__t span { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tl-r { opacity: 1; transform: none; filter: none; }
}
/* ---------- günlük kullanım göstergesi (kenar çubuğu, hesap alanının üstü) ---------- */
.usage { display: grid; gap: .3rem; padding: .35rem .5rem .55rem; }
.usage[hidden] { display: none; }
.usage__h { color: var(--mute); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.usage__r { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; row-gap: .2rem; font-size: .64rem; color: var(--ink-2); }
.usage__r b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.usage__r i { grid-column: 1 / -1; height: 3px; border-radius: 99px; background: linear-gradient(var(--acc), var(--acc)) 0 0 / var(--p) 100% no-repeat, var(--line); }
.usage__r.is-near i { background: linear-gradient(#e8a317, #e8a317) 0 0 / var(--p) 100% no-repeat, var(--line); }
.usage__r.is-full i { background: linear-gradient(#e5484d, #e5484d) 0 0 / var(--p) 100% no-repeat, var(--line); }
.usage__r.is-full b { color: #e5484d; }

/* ---------- Sesli sohbet düğmesi ve duyurusu ---------- */
.voice-go { flex: none; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(135deg, #3b6af6, #38bdf8); box-shadow: 0 4px 14px rgba(56, 120, 246, .35); transition: transform 150ms var(--ease-out), box-shadow 150ms ease; touch-action: manipulation; }
.voice-go .i { width: 1.15rem; height: 1.15rem; }
.voice-go:active { transform: scale(.94); }
.voice-go:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .voice-go:hover { box-shadow: 0 6px 20px rgba(56, 120, 246, .5); } }
/* yazı varken gönder düğmesine yer açılır: ses düğmesi yalnızca kutu boşken görünür */
#comp.typing .voice-go { display: none; }
.vnews { display: flex; align-items: center; gap: .7rem; margin: 0 0 .6rem; padding: .6rem .6rem .6rem .7rem; border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid color-mix(in srgb, #3b6af6 40%, var(--line)); box-shadow: 0 8px 24px rgba(20, 40, 120, .12); animation: vnewsIn 260ms var(--ease-out) both; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vnews[hidden] { display: none; }
.vnews__ic { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b6af6, #38bdf8); }
.vnews__ic .i { width: 1rem; height: 1rem; }
.vnews__t { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.35; color: var(--ink-2); }
.vnews__t b { color: var(--ink); font-weight: 700; }
.vnews__go { flex: none; border: 0; border-radius: 999px; padding: .5rem .9rem; min-height: 2.25rem; font: inherit; font-size: .84rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3b6af6, #2f8cf0); cursor: pointer; touch-action: manipulation; }
.vnews__go:active { transform: scale(.96); }
.vnews__x { flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--mute); display: grid; place-items: center; cursor: pointer; }
.vnews__x .i { width: 1rem; height: 1rem; }
@keyframes vnewsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .vnews { flex-wrap: wrap; } .vnews__t { flex-basis: calc(100% - 5.5rem); } .vnews__go { margin-left: 2.7rem; } }
@media (prefers-reduced-motion: reduce) { .vnews { animation: none; } .voice-go { transition: none; } }
body.tool-image .voice-go, body.tool-image .vnews { display: none; }
.set__reload { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 2.4rem; margin: .1rem 0 .4rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; text-align: left; transition: background-color 150ms ease, color 150ms ease; }
.set__reload .i { width: 1rem; height: 1rem; flex: none; }
.set__reload:hover { background: var(--btn-h, var(--card)); color: var(--ink); }
.set__reload:disabled { opacity: .6; cursor: progress; }
.set__reload:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.set { grid-template-columns: auto minmax(0, 1fr); }
.set .seg { display: flex; width: 100%; min-width: 0; }
.set .seg button { min-width: 0; padding: 0 .3rem; }
/* Görsel modu: canlı arka plan üzerinde yazılar okunur kalsın */
body[data-mode=image] #sub { width: fit-content; max-width: 100%; margin-inline: auto; padding: .3rem .85rem; border-radius: 999px; color: #fff; background: rgba(12, 14, 40, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
body[data-mode=image] .disc { width: fit-content; max-width: 100%; margin-inline: auto; padding: .3rem .8rem; border-radius: 12px; color: rgba(255, 255, 255, .92); background: rgba(12, 14, 40, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* "Ne çizelim?" el yazısıyla çiziliyormuş gibi: önce harflerin hatları kalemle çizilir, sonra mürekkep dolar */
#h1 .hand { display: block; width: min(100%, 26rem); height: auto; margin: 0 auto; overflow: visible; }
#h1 .hand text { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 700; font-size: 92px; fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; paint-order: stroke; animation: handDraw 2.2s cubic-bezier(.45, .05, .35, 1) .15s forwards, handInk .6s ease-out 1.9s forwards; filter: drop-shadow(0 2px 10px rgba(20, 10, 80, .45)); }
#h1 .hand .pen { fill: #fff; opacity: 0; animation: penMove 2.2s cubic-bezier(.45, .05, .35, 1) .15s forwards; offset-rotate: 0deg; }
@keyframes handDraw { to { stroke-dashoffset: 0; } }
@keyframes handInk { to { fill-opacity: 1; stroke-width: .6; } }
@keyframes penMove { 0% { opacity: 0; transform: translate(40px, 30px); } 8% { opacity: 1; } 90% { opacity: 1; transform: translate(470px, 30px); } 100% { opacity: 0; transform: translate(480px, 20px); } }
@media (prefers-reduced-motion: reduce) { #h1 .hand text { animation: none; stroke-dashoffset: 0; fill-opacity: 1; } #h1 .hand .pen { display: none; } }
.set__reload { box-sizing: border-box; max-width: 100%; white-space: normal; }
/* Model listesi: ekrana sığar, kendi içinde kayar (sayfayı kaydırmaz) */
.mdl__pop ul { max-height: min(52vh, 21rem); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mdl__pop .vb--txt { background: var(--btn); color: var(--mute); }
.mdl__pop li:first-child { border-bottom: 1px solid var(--line); border-radius: var(--r-1) var(--r-1) 0 0; margin-bottom: .2rem; }
@media (max-width: 640px) { .mdl__pop li { padding: .55rem .6rem; } .mdl__pop li b { font-size: .8rem; } .mdl__pop li small { font-size: .68rem; } }
.mdl__pop.down { bottom: auto; top: calc(100% + .4rem); transform-origin: top left; }
@media (max-width: 640px) {
  .mdl__pop { position: fixed; left: .5rem; right: .5rem; top: auto; bottom: calc(.5rem + env(safe-area-inset-bottom)); width: auto; max-width: none; z-index: 80; padding: .4rem; border-radius: 18px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); transform-origin: bottom center; }
  .mdl__pop.down { top: auto; bottom: calc(.5rem + env(safe-area-inset-bottom)); }
  .mdl__pop ul { max-height: min(62vh, 26rem); }
}
/* Güncel bilgi kaynakları (yanıtın altında) */
.srcs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .7rem; }
.srcs > span { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 600; color: var(--mute); margin-right: .15rem; }
.srcs > span .i { width: .85rem; height: .85rem; }
.srcs a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .22rem .6rem; border-radius: 99px; background: var(--btn); color: var(--ink-2); font-size: .7rem; text-decoration: none; border: 1px solid var(--line); transition: background-color 150ms ease, color 150ms ease; }
.srcs a:hover { background: var(--btn-h); color: var(--ink); }
.srcs a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* ---------- kullanıcı anketi ---------- */
.svy { width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto; overscroll-behavior: contain; }
.svy::backdrop { background: rgba(5, 8, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.svy[open] { animation: pop 220ms var(--ease-out); }
.svy form { padding: 1.2rem 1.2rem 1rem; }
.svy__h { position: relative; padding-right: 2.5rem; margin-bottom: .6rem; }
.svy__h h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.svy__h p { margin: 0; font-size: .82rem; color: var(--mute); }
.svy__x { position: absolute; top: -.2rem; right: -.2rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: transparent; color: var(--mute); display: grid; place-items: center; cursor: pointer; }
.svy__x .i { width: 1.1rem; height: 1.1rem; }
.svy fieldset { border: 0; margin: 0; padding: .7rem 0; border-top: 1px solid var(--line); }
.svy legend { padding: 0; margin-bottom: .55rem; font-size: .86rem; font-weight: 600; }
.svy legend i { color: var(--acc); font-style: normal; }
.svy legend small { color: var(--mute); font-weight: 500; }
.svy__ch, .svy__st, .svy__nps { display: flex; flex-wrap: wrap; gap: .4rem; }
.svy label { cursor: pointer; }
.svy label input { position: absolute; opacity: 0; pointer-events: none; }
.svy__ch span, .svy__nps span, .svy__st span { display: inline-flex; align-items: center; justify-content: center; min-height: 2.4rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--btn); font-size: .8rem; color: var(--ink-2); transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.svy__nps span { min-width: 2.4rem; padding: .35rem .5rem; }
.svy__st span { color: #f5b301; letter-spacing: .05em; }
.svy label input:checked + span { background: color-mix(in srgb, var(--acc) 18%, var(--btn)); border-color: var(--acc); color: var(--ink); font-weight: 600; }
.svy__st label input:checked + span { color: #f5b301; }
.svy label input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.svy textarea { width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--btn); color: var(--ink); font: inherit; font-size: .84rem; resize: vertical; }
.svy__err { min-height: 1.1em; margin: .3rem 0 0; color: #ef4444; font-size: .8rem; }
.svy__f { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .5rem; }
@media (max-width: 520px) { .svy { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; } }
@media (prefers-reduced-motion: reduce) { .svy[open] { animation: none; } }
.svy fieldset { border-top: 0; padding: .55rem 0; }
.svy fieldset + fieldset { box-shadow: 0 -1px 0 var(--line); }
.mdl__pop .vb--img { background: color-mix(in srgb, #a855f7 18%, transparent); color: #a855f7; }

/* ================= Liquid Glass (premium, Apple tarzı) =================
   Ayarlar > Görünüm: "Normal" ya da "Liquid Glass" (body.glass).
   Malzeme kuralları (Apple): büyük yüzey = daha kalın cam (güçlü bulanıklık + derin gölge); içindeki düğmeler daha hafif,
   bulanıklık üst üste binmez; ışık kenardan yakalanır (gradyan kenar çizgisi); arka plan tek parça, yumuşak renk ışıkları. */
body.glass {
  --lg-thick: rgba(20, 24, 40, .52);
  --lg-thin: rgba(255, 255, 255, .065);
  --lg-thin-h: rgba(255, 255, 255, .11);
  --lg-rim: linear-gradient(145deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .14) 24%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .2));
  --lg-sheen: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 64%);
  --lg-drop: 0 18px 50px -12px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .18);
  --lg-drop-sm: 0 6px 18px -6px rgba(0, 0, 0, .45);
  --lg-blur: blur(28px) saturate(190%) brightness(1.04);
  --lg-amb-1: rgba(77, 107, 255, .26); --lg-amb-2: rgba(56, 189, 248, .16); --lg-amb-3: rgba(139, 92, 246, .16);
}
:root[data-theme="light"] body.glass {
  --lg-thick: rgba(255, 255, 255, .58); --lg-thin: rgba(255, 255, 255, .55); --lg-thin-h: rgba(255, 255, 255, .8);
  --lg-rim: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, .25) 60%, rgba(255, 255, 255, .85));
  --lg-sheen: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, 0) 70%);
  --lg-drop: 0 18px 44px -14px rgba(30, 45, 100, .28), 0 2px 6px rgba(30, 45, 100, .08); --lg-drop-sm: 0 6px 16px -6px rgba(30, 45, 100, .22);
  --lg-blur: blur(26px) saturate(170%) brightness(1.02);
  --lg-amb-1: rgba(77, 107, 255, .16); --lg-amb-2: rgba(56, 189, 248, .14); --lg-amb-3: rgba(167, 139, 250, .14);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.glass {
  --lg-thick: rgba(255, 255, 255, .58); --lg-thin: rgba(255, 255, 255, .55); --lg-thin-h: rgba(255, 255, 255, .8);
  --lg-rim: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, .25) 60%, rgba(255, 255, 255, .85));
  --lg-sheen: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 45%, rgba(255, 255, 255, 0) 70%);
  --lg-drop: 0 18px 44px -14px rgba(30, 45, 100, .28), 0 2px 6px rgba(30, 45, 100, .08); --lg-drop-sm: 0 6px 16px -6px rgba(30, 45, 100, .22);
  --lg-blur: blur(26px) saturate(170%) brightness(1.02);
  --lg-amb-1: rgba(77, 107, 255, .16); --lg-amb-2: rgba(56, 189, 248, .14); --lg-amb-3: rgba(167, 139, 250, .14);
} }

/* Arka plan: ekranı bölmeyen, tek parça yumuşak renk ışıkları (camın arkasında görünecek bir şey olsun) */
body.glass::before {
  content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 38% at 12% 8%, var(--lg-amb-1), transparent 72%),
    radial-gradient(38% 34% at 92% 22%, var(--lg-amb-2), transparent 72%),
    radial-gradient(46% 40% at 78% 96%, var(--lg-amb-3), transparent 72%),
    radial-gradient(40% 36% at 6% 88%, var(--lg-amb-2), transparent 72%);
  filter: blur(10px);
}
/* Sohbet sırasında aurora şeridi ekranı ikiye bölüyordu: camda yerine tek parça ışıklar kullanılır */
body.glass.chatting #bg, body.glass.paged #bg { opacity: 0; }
body.glass[data-mode=code].chatting #ascii { opacity: .08; }
body.glass[data-mode=image].chatting #flow { opacity: .16; }
body.glass #stage:not(.home) #comp::before { display: none; }

/* ---- Kalın cam: büyük yüzeyler ---- */
body.glass .box, body.glass .mdl__pop, body.glass .pop, body.glass .vnews, body.glass .svy,
body.glass.chatting #bar, body.glass.paged #bar {
  background: var(--lg-sheen), var(--lg-thick);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--lg-drop);
}
body.glass.chatting #bar, body.glass.paged #bar { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08), 0 8px 30px -12px rgba(0, 0, 0, .35); }
/* Orta cam: kartlar ve mod seçici */
body.glass #sug .card-btn, body.glass .seg--modes, body.glass .m.u {
  background: var(--lg-sheen), var(--lg-thick);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--lg-drop-sm);
}
/* Işığı yakalayan kenar: gradyan çizgi (maske ile yalnızca kenar boyanır) */
body.glass .box, body.glass #sug .card-btn, body.glass .seg--modes, body.glass .m.u, body.glass .vnews, body.glass #tools .btn, body.glass .mdl__b, body.glass .voice-go, body.glass .svy { position: relative; }
body.glass .box::after, body.glass .mdl__pop::after, body.glass .pop::after, body.glass #sug .card-btn::after, body.glass .seg--modes::after,
body.glass .m.u::after, body.glass .vnews::after, body.glass #tools .btn::after, body.glass .mdl__b::after, body.glass .svy::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--lg-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
body.glass .box:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--lg-drop), 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }

/* ---- İnce cam: kutunun içindeki düğmeler (bulanıklık üst üste binmez, yalnızca hafif dolgu + kenar ışığı) ---- */
body.glass #tools .btn--soft, body.glass #tools .btn--ghost, body.glass .mdl__b, body.glass .think-tg {
  background: var(--lg-thin); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
@media (hover: hover) and (pointer: fine) { body.glass #tools .btn--soft:hover, body.glass #tools .btn--ghost:hover, body.glass .mdl__b:hover { background: var(--lg-thin-h); } }
body.glass .think-tg[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 26%, transparent); color: var(--ink); }
/* Gönder ve sesli sohbet: dolgun, parlak cam damla */
body.glass #send.btn--primary, body.glass .voice-go {
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #5b7cff, #2f5bf0 55%, #2a8cf0);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .18), 0 8px 20px -6px rgba(53, 88, 240, .65);
}
body.glass #send.btn--primary:disabled { opacity: .55; }
body.glass #tools .btn:active:not(:disabled), body.glass .voice-go:active { transform: scale(.94); }

/* ---- Menüler (Araçlar, model listesi) ---- */
body.glass .pop button, body.glass .mdl__pop li { border-radius: .7rem; }
@media (hover: hover) and (pointer: fine) { body.glass .pop button:hover { background: var(--lg-thin-h); } }
body.glass .mdl__pop li.act, body.glass .mdl__pop li[aria-selected="true"] { background: var(--lg-thin-h); }
body.glass .pop h6, body.glass .mdl__pop h6 { color: var(--ink-2); letter-spacing: .08em; }

/* ---- Mesajlar ---- */
body.glass .m.u { color: #fff; background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, color-mix(in srgb, var(--acc) 62%, transparent), color-mix(in srgb, #2a8cf0 48%, transparent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px color-mix(in srgb, var(--acc) 70%, transparent); }
body.glass .m.u::after { opacity: .7; }
body.glass .tl summary, body.glass .fb { background: var(--lg-thin); border-color: transparent; }

/* ---- Öneri kartları ---- */
body.glass #sug .card-btn .ico { background: radial-gradient(120% 100% at 30% 15%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), color-mix(in srgb, var(--acc) 30%, transparent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
@media (hover: hover) and (pointer: fine) { body.glass #sug .card-btn:hover { transform: translateY(-2px); } }
body.glass #sug .card-btn { transition: transform 260ms var(--ease-out); }

/* ---- Yan menü: koyu, kalın malzeme (yapısal bölge; arkasındaki renk sızmaz) ---- */
body.glass .rail {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 28%), color-mix(in srgb, var(--bg-2) 90%, transparent);
  -webkit-backdrop-filter: blur(34px) saturate(150%); backdrop-filter: blur(34px) saturate(150%);
  border-right: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .07), 10px 0 40px -10px rgba(0, 0, 0, .35);
}
body.glass .ri--new { background: var(--lg-thin); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06); }
body.glass .ri[aria-current="page"] { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { body.glass .ri:hover:not([aria-current="page"]) { background: var(--lg-thin-h); } }
body.glass .rail input, body.glass .rail select { background: var(--lg-thin); color: var(--ink); border-color: rgba(255, 255, 255, .08); }
body.glass .rail__foot { border-top-color: rgba(255, 255, 255, .07); }
body.glass .set__reload { background: var(--lg-thin); border-color: rgba(255, 255, 255, .08); }

/* ---- Mod seçici ---- */
body.glass .seg--modes .seg__ind { background: var(--lg-thin-h); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 8px rgba(0, 0, 0, .2); }
body.glass .seg--modes button[aria-pressed="true"] { color: var(--ink); }

/* Açık temada metin renkleri cam üzerinde koyu kalır */
:root[data-theme="light"] body.glass .m.u { color: #fff; }

/* Menü bağlantıları alt çizgisiz */
a.ri, a.ri:visited { color: var(--ink-2); text-decoration: none; }
a.ri:hover { color: var(--ink); }

/* Erişilebilirlik: saydamlığı azalt / yüksek kontrast seçenlerde düz, net yüzeyler */
@media (prefers-reduced-transparency: reduce) {
  body.glass::before { display: none; }
  body.glass .box, body.glass .mdl__pop, body.glass .pop, body.glass .vnews, body.glass #sug .card-btn, body.glass .seg--modes, body.glass .rail, body.glass.chatting #bar, body.glass .svy { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); }
}
@media (prefers-contrast: more) { body.glass .box, body.glass #sug .card-btn, body.glass .rail { background: var(--bg-2); border: 1px solid var(--ink-2); } }
@media (prefers-reduced-motion: reduce) { body.glass #sug .card-btn { transition: none; } }

/* Ayarlar: Görünüm seçici */
.set__look { grid-column: 1 / -1; }.vnews--upd .vnews__ic { background: linear-gradient(135deg, #8b5cf6, #3b6af6 55%, #38bdf8); }
/* Aurora'nın sert ufuk çizgisi ekranı ikiye bölüyordu: camda yumuşatılır ve kenarlara doğru erir */
body.glass:not(.chatting):not(.paged) #bg { filter: blur(28px) saturate(115%); opacity: .55; -webkit-mask-image: radial-gradient(120% 95% at 50% 0%, #000 35%, rgba(0, 0, 0, .35) 70%, transparent 100%); mask-image: radial-gradient(120% 95% at 50% 0%, #000 35%, rgba(0, 0, 0, .35) 70%, transparent 100%); }
body.glass[data-mode=chat]:not(.chatting):not(.paged) #bg { opacity: .6; }
/* Duyurular yalnızca ana ekranda; sohbetin üstünü kapatmaz */
#stage:not(.home) .vnews { display: none; }

/* ================= Liquid Glass düzeltmeleri (v3) ================= */
/* Model listesi de Araçlar gibi bulanık olsun: mesaj kutusunun bulanıklığı bir alt katmana taşınır,
   böylece kutu "arka plan kökü" olmaz ve içindeki açılır liste gerçek arka planı bulanıklaştırabilir. */
body.glass .box { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; isolation: isolate; }
body.glass .box::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--lg-sheen), var(--lg-thick); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); pointer-events: none; }
body.glass .mdl__pop { background: var(--lg-sheen), var(--lg-thick); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); }

/* "Düşündü" satırı: arkasında ayrı bir katman olmasın, tamamen şeffaf */
body.glass .tl summary, body.glass .tl { background: transparent; box-shadow: none; }

/* Araçlar / Otomatik / Düşün sıkışık durmasın */

/* "Düşün" açık mı kapalı mı net görünsün: açıkken dolu mavi + parlayan nokta */
.think-tg { transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.think-tg[aria-pressed="true"], body.glass .think-tg[aria-pressed="true"] {
  background: radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #5b7cff, #2f5bf0);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px -6px rgba(53, 88, 240, .75);
}
.think-tg[aria-pressed="true"] span::after { content: ""; display: inline-block; width: .38rem; height: .38rem; margin-left: .4rem; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 8px #7CFFB2; vertical-align: .1em; }
@media (prefers-reduced-motion: reduce) { .think-tg { transition: none; } }

/* Yan menü arama kutusu: tek katman cam (içteki kutu kaldırıldı) */
body.glass .rail input, body.glass .rail select { background: transparent; border-color: transparent; }
body.glass .rail .field { background: var(--lg-thin); border-color: rgba(255, 255, 255, .08); }
body.glass .rail select { background: var(--lg-thin); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-1); }
:root[data-theme="light"] body.glass .rail .field, :root[data-theme="light"] body.glass .rail select { border-color: rgba(30, 45, 100, .1); }
/* Model adı (Otomatik, Ayt AI 2.0 Alpha…) kesilmesin */

/* ================= Kararlılık düzeltmeleri (v4) =================
   Liquid Glass yalnızca görünümü değiştirir; boyut, boşluk ve yerleşim Liquid Glass öncesiyle aynı kalır. */
/* Araç çubuğu: hafif ferah ama kutudan asla taşmaz; model adı gerekirse kısalır */
@media (min-width: 561px) { #tools { gap: .4rem; } }
#tools { min-width: 0; }
.mdl__b { max-width: 100%; overflow: hidden; }

/* Sayfalarda (Paketler, Veri analizi) mod seçici gizlenir, başlık tam ortada durur */
body.paged #modes { display: none; }
body.paged #ttl { position: absolute; left: 50%; transform: translateX(-50%); max-width: 60%; }

/* Mod renkleri: Günlük mavi, Kodlama sade (renkli ışık yok, yalnızca kod deseni), Görsel mor-mavi */
body.glass[data-mode=chat] { --lg-amb-1: rgba(59, 106, 246, .26); --lg-amb-2: rgba(37, 99, 235, .18); --lg-amb-3: rgba(56, 132, 255, .16); }
body.glass[data-mode=code]::before { display: none; }
:root[data-theme="light"] body.glass[data-mode=chat] { --lg-amb-1: rgba(59, 106, 246, .16); --lg-amb-2: rgba(37, 99, 235, .1); --lg-amb-3: rgba(56, 132, 255, .1); }

/* ---------- Animasyonlar (kısa, akıcı, hareket azaltma tercihine uyar) ---------- */
@keyframes lgIn { from { opacity: 0; transform: translateY(8px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lgDown { from { opacity: 0; transform: translateY(-6px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.pop, .mdl__pop { animation: lgIn 200ms cubic-bezier(.2, .9, .3, 1) both; transform-origin: bottom left; }
.mdl__pop.down { animation-name: lgDown; transform-origin: top left; }
.pop button, .mdl__pop li { transition: background-color 140ms ease, transform 140ms ease; }
.pop button:active, .mdl__pop li:active { transform: scale(.98); }
/* Gönderilen mesaj: aşağıdan hafifçe yükselip yerine oturur */
@keyframes sendUp { 0% { opacity: 0; transform: translateY(22px) scale(.94); } 60% { opacity: 1; transform: translateY(-2px) scale(1.01); } 100% { transform: none; } }
.m.u.in { animation: sendUp 340ms cubic-bezier(.2, .9, .3, 1) both; transform-origin: bottom right; }
#send:not(:disabled):active { transform: scale(.9); }
#send.sent { animation: sendPulse 360ms ease-out; }
@keyframes sendPulse { 0% { box-shadow: 0 0 0 0 rgba(91, 124, 255, .55); } 100% { box-shadow: 0 0 0 12px rgba(91, 124, 255, 0); } }
/* Paketler: kartlar sırayla belirir */
#plans > * { animation: rise 380ms cubic-bezier(.2, .9, .3, 1) both; }
#plans > *:nth-child(2) { animation-delay: 60ms; } #plans > *:nth-child(3) { animation-delay: 120ms; }
/* Kaydırma: akıcı ama kısa */
.rail__nav, #page, .pages, #pages, .pg, #side .coll { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  .pop, .mdl__pop, .m.u.in, #plans > *, #send.sent { animation: none; }
  .rail__nav, #page, .pages, #pages, .pg { scroll-behavior: auto; }
}/* Çok dar ekranlar (≤340px): model adı görünür kalsın diye sesli sohbet düğmesi gizlenir (Araçlar menüsünde de var) */
@media (max-width: 340px) { .voice-go { display: none; } }
/* Günlük: alttaki mavi ışıklar kaldırıldı (yalnızca üstteki aurora) */
body.glass[data-mode=chat]::before { display: none; }
/* Açık tema: kutu içindeki düğmeler beyaz üstüne beyaz kalıyordu → hafif gri dolgu + ince kenar */
:root[data-theme="light"] body.glass { --lg-thin: rgba(15, 23, 42, .055); --lg-thin-h: rgba(15, 23, 42, .09); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.glass { --lg-thin: rgba(15, 23, 42, .055); --lg-thin-h: rgba(15, 23, 42, .09); } }
:root[data-theme="light"] body.glass #tools .btn--soft, :root[data-theme="light"] body.glass #tools .btn--ghost, :root[data-theme="light"] body.glass .mdl__b, :root[data-theme="light"] body.glass .think-tg:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.glass #tools .btn--soft, :root:not([data-theme="dark"]) body.glass #tools .btn--ghost, :root:not([data-theme="dark"]) body.glass .mdl__b, :root:not([data-theme="dark"]) body.glass .think-tg:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07); } }
/* Öneri kartı ikonları: her iki temada da net görünen dolu vurgu rengi */
body.glass #sug .card-btn .ico { background: radial-gradient(120% 100% at 30% 15%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #5b7cff, #2f5bf0); color: #fff; }
/* Yan menü filtre kutusu arama kutusuyla aynı görünsün */
body.glass .rail select { background-color: var(--lg-thin); color: var(--ink); }
/* Hafıza penceresi */
.mem { padding: 1.2rem; }
.mem__t { display: flex; align-items: center; gap: .55rem; margin: .4rem 0 .8rem; font-size: .84rem; cursor: pointer; }
.mem__t input { width: 1.1rem; height: 1.1rem; accent-color: var(--acc); }
.mem__l { display: grid; gap: .4rem; max-height: 50vh; overflow: auto; overscroll-behavior: contain; }
.mem__i { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .8rem; border-radius: 12px; background: var(--btn); font-size: .84rem; }
.mem__i span { flex: 1; min-width: 0; }
.mem__e { color: var(--mute); font-size: .84rem; line-height: 1.55; margin: .2rem 0; }
body.glass .mem__i { background: var(--lg-thin); }

/* ==== Mobil katman düzeltmeleri (v5) ==== */
/* Aurora tuvaline uygulanan "filter: blur" Chromium'da üstteki cam mod seçiciyi düz mavi bir bloğa çeviriyordu (ikonlar kayboluyordu).
   Bulanıklık filtresi kaldırıldı; yumuşaklığı maske sağlıyor (ayrıca telefonda her karede tam ekran bulanıklık hesaplanmıyor). */
body.glass:not(.chatting):not(.paged) #bg { filter: none; opacity: .5; }
/* "En alta in" düğmesi yalnızca sohbetteyken; ana sayfada öneri kartlarının üstüne binmesin */
#stage.home #toBottom, body:not(.chatting) #toBottom { display: none; }
/* Menüler (Araçlar, model listesi): arkadaki mesaj yazıları içinden okunmasın diye daha dolgun cam */
body.glass { --lg-menu: rgba(17, 21, 34, .9); }
:root[data-theme="light"] body.glass { --lg-menu: rgba(255, 255, 255, .92); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.glass { --lg-menu: rgba(255, 255, 255, .92); } }
body.glass .pop, body.glass .mdl__pop { background: var(--lg-sheen), var(--lg-menu); }
@media (max-width: 560px) {
  /* Model listesi alttan açılan sayfa: arkası karartılır, sohbet yazıları sayfanın kenarından görünmez */
  .mdl__pop { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .42), 0 -10px 40px rgba(0, 0, 0, .35); }
  body.glass .mdl__pop { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .14); }
  /* Araçlar menüsü ekrana sığsın ve kutunun üstünde dursun */
  .pop { max-height: min(60vh, 26rem); overflow-y: auto; overscroll-behavior: contain; z-index: 26; }
  /* Sohbette üst çubuk: mesajlar altına kayarken yazılar içinden okunmasın */
  body.glass.chatting #bar, body.glass.paged #bar { background: var(--lg-sheen), var(--lg-menu); }
  /* Mesaj listesinin üst ve alt kenarı yumuşak biter: yazı çubuğun ya da yazma kutusunun altına keskin kesilmez */
  body.chatting #msgs { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.1rem, #000 calc(100% - 1rem), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 1.1rem, #000 calc(100% - 1rem), transparent 100%); }
  /* Geri bildirim çubuğu ile yazma kutusu arasında nefes payı */
  .fb { margin-bottom: .4rem; }
  /* Duyuru kartları (yeni güncelleme / sesli sohbet) dar ekranda taşmasın */
  .vnews { max-width: 100%; }
  .vnews p, .vnews span { overflow-wrap: anywhere; }
}
/* E-posta doğrulama adımı */
.auth__vtxt { margin: 0 0 .9rem; font-size: .86rem; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.auth__vtxt b { color: var(--ink); }
#vCode { letter-spacing: .4em; font-size: 1.15rem; font-weight: 700; }
.auth__vrow { display: flex; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.auth__vrow .btn { font-size: .8rem; }
/* ==== iPhone çentik / güvenli alan düzeltmeleri (17 Pro Max vb.) ==== */
/* iOS'ta ana ekrana eklenmiş uygulamada 100dvh, ekranın altında boş bir şerit bırakabiliyordu: gövde ekrana sabitlenir */
html { background: var(--bg); }
body { position: fixed; inset: 0; height: auto; }
#stage { height: 100%; padding-top: max(3.7rem, calc(env(safe-area-inset-top, 0px) + 3.3rem)); }
/* Yan menü başlığı çentik yüksekliği kadar uzar: logo ile "Yeni sohbet" üst üste binmez */
.rail__head { height: calc(3.6rem + env(safe-area-inset-top, 0px)); }
.rail { padding-bottom: max(.25rem, env(safe-area-inset-bottom, 0px)); }
/* Sağ ve sol kenar güvenli alanları (yatay kullanım) */
#bar { padding-left: max(.75rem, env(safe-area-inset-left, 0px)); padding-right: max(.75rem, env(safe-area-inset-right, 0px)); }
#vCode::placeholder { letter-spacing: normal; font-weight: 400; font-size: .85rem; }

/* Hesabım penceresi */
.acc { padding-bottom: 0; }
.acc__me { display: flex; align-items: center; gap: .8rem; padding: .2rem 1.2rem 1rem; }
.acc__me > div { display: grid; min-width: 0; }
.acc__me b { font-size: .95rem; }
.acc__me small { color: var(--mute); font-size: .74rem; overflow-wrap: anywhere; }
.acc__av { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(160deg, #5b7cff, #2f5bf0); color: #fff; font-weight: 700; font-size: 1.1rem; }
.acc__tag { justify-self: start; margin-top: .3rem; padding: .05rem .5rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .62rem; font-weight: 700; }
.acc__use { padding: 0 1.2rem; }
.acc__use:empty { display: none; }
.acc__list { display: grid; gap: .3rem; padding: .8rem 1.2rem 1rem; }
.acc__i { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 2.9rem; padding: .55rem .8rem; border: 0; border-radius: 14px; background: var(--btn); color: var(--ink); font-size: .84rem; text-align: left; text-decoration: none; cursor: pointer; }
.acc__i span { flex: 1; }
.acc__go { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .acc__i:hover { filter: brightness(1.15); } }
body.glass .acc__i { background: var(--lg-thin); }
.acc .svy__f { padding: .2rem 1.2rem max(1.2rem, env(safe-area-inset-bottom, 0px)); }
.btn--danger { background: color-mix(in srgb, #ef4444 14%, transparent); color: #ef4444; border: 1px solid color-mix(in srgb, #ef4444 30%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, #ef4444 22%, transparent); }
.btn--block { width: 100%; justify-content: center; }
.ri--acct .acct__go { margin-left: auto; width: 1rem; height: 1rem; opacity: .45; }
.acc .svy__h { padding: 1.2rem 1.2rem .6rem; }

/* Onay penceresi (sohbet silme, hafıza temizleme) */
.ask { width: min(22rem, calc(100vw - 2rem)); }
.ask__b { padding: 1.3rem 1.3rem .4rem; }
.ask__b h2 { margin: 0 0 .4rem; font-size: 1rem; }
.ask__b p { margin: 0; color: var(--ink-2); font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.ask__f { display: flex; gap: .5rem; padding: 1rem 1.3rem 1.3rem; }
.ask__f .btn { flex: 1; justify-content: center; min-height: 2.6rem; }
.svy::backdrop, .ask::backdrop { background: rgba(5, 7, 14, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* ==== Giriş ekranı v2: solda form, sağda vitrin (AytAi tasarımı) ==== */
.auth--v2 { display: flex; overflow: hidden; }
.auth--v2 .auth__pane { position: relative; z-index: 1; flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.auth--v2 .auth__top { justify-content: space-between; padding: max(1rem, calc(env(safe-area-inset-top, 0px) + .4rem)) 1.25rem .5rem; }
.auth__brand { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 800; letter-spacing: -.02em; }
.auth__brand img { width: 1.9rem; height: 1.9rem; }
.auth__brand .beta { font-size: .5rem; }
.auth--v2 .auth__wrap { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; max-width: none; padding: 1rem 1.5rem max(2rem, env(safe-area-inset-bottom, 0px)); }
.auth--v2 .auth__card { max-width: 25rem; gap: 1.1rem; padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
.auth--v2 .auth__h { gap: .5rem; }
.auth--v2 .auth__h h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); font-weight: 300; letter-spacing: -.045em; line-height: 1.1; }
.auth--v2 .auth__h p { font-size: .8rem; line-height: 1.5; }
/* Sekmeler yerine altta "Hesabın yok mu? Kayıt ol" bağlantısı */
.auth--v2 .auth__tabs { display: none !important; }
.auth--v2 .auth__form { gap: .9rem; }
.auth--v2 .auth__f > label { color: var(--mute); font-size: .7rem; font-weight: 600; }
/* Cam giriş alanları */
.auth--v2 .auth__in input { height: 3.1rem; padding-left: 2.6rem; border-radius: 1rem; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--ink) 4%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.auth--v2 .auth__in input:focus-visible { border-color: color-mix(in srgb, var(--acc) 70%, transparent); background: color-mix(in srgb, var(--acc) 9%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 14%, transparent); }
.auth--v2 .auth__in > .i { left: .95rem; width: 1rem; height: 1rem; }
.auth--v2 .auth__eye { right: .45rem; }
.auth--v2 #authSubmit, .auth--v2 #vSubmit { min-height: 3.1rem; border-radius: 1rem; font-size: .84rem; }
.auth__switch { margin: 0; text-align: center; color: var(--mute); font-size: .76rem; }
.auth__link { padding: 0; border: 0; background: none; color: var(--acc); font: inherit; font-weight: 700; cursor: pointer; }
.auth__link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Sağ vitrin */
.auth__hero { display: none; }
@media (min-width: 900px) {
  .auth__hero { position: relative; flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 1rem; border-radius: 2rem; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--acc) 38%, #0b1230), #070a16 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #fff; }
  .auth__hero .auth__bg { position: absolute; z-index: -1; }
  .auth__hero .auth__bg i { opacity: .7; }
  .auth__hero .auth__org { position: absolute; top: 1.4rem; right: 1.6rem; height: 1.9rem; filter: none; }
  .auth__show { display: grid; justify-items: center; gap: 1.1rem; padding: 0 2rem 7rem; text-align: center; }
  .auth__show .auth__mark { width: 6rem; height: 6rem; border-radius: 1.8rem; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: 0 20px 60px -15px color-mix(in srgb, var(--acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2); }
  .auth__show .auth__logo { width: 4rem; height: 4rem; }
  .auth__hero .auth__tag { display: block; max-width: 26rem; margin: 0; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.15; }
  .auth__seats { margin: 0; padding: .3rem .8rem; border-radius: 99px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #dbe4ff; font-size: .7rem; font-weight: 600; }
  .auth__cards { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .8rem; padding: 0 1.6rem; }
  .auth__fc { display: flex; align-items: flex-start; gap: .65rem; width: 15rem; padding: .9rem 1rem; border-radius: 1.4rem; background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 40px -12px rgba(0, 0, 0, .5); font-size: .7rem; line-height: 1.4; }
  .auth__fc b { display: block; margin-bottom: .15rem; font-size: .76rem; }
  .auth__fc span:not(.auth__fi) { color: rgba(230, 236, 255, .78); }
  .auth__fc .auth__fi { background: rgba(255, 255, 255, .12); color: #fff; }
  .auth__fc:nth-child(2) { display: none; } .auth__fc:nth-child(3) { display: none; }
}
@media (min-width: 1200px) { .auth__fc:nth-child(2) { display: flex; } }
@media (min-width: 1500px) { .auth__fc:nth-child(3) { display: flex; } }
@media (min-width: 900px) { .auth--v2 .auth__brand { visibility: visible; } }
/* Giriş animasyonu: bulanıktan netleşerek, sırayla aşağıdan yukarı */
@keyframes aeIn { from { opacity: 0; filter: blur(6px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes aeRight { from { opacity: 0; filter: blur(8px); transform: translateX(28px); } to { opacity: 1; filter: blur(0); transform: none; } }
.auth--v2:not([hidden]) .ae { animation: aeIn 600ms cubic-bezier(.2, .8, .2, 1) both; }
.auth--v2 .auth__h.ae { animation-delay: 60ms; }
.auth--v2 .auth__form .ae:nth-child(1) { animation-delay: 140ms; }
.auth--v2 .auth__form .ae:nth-child(2) { animation-delay: 200ms; }
.auth--v2 .auth__form .ae:nth-child(3) { animation-delay: 260ms; }
.auth--v2 #authSubmit.ae { animation-delay: 330ms; }
.auth--v2 .auth__switch.ae { animation-delay: 400ms; }
.auth--v2 .auth__terms.ae { animation-delay: 460ms; }
.auth--v2:not([hidden]) .auth__hero { animation: aeRight 800ms 120ms cubic-bezier(.2, .8, .2, 1) both; }
.auth--v2:not([hidden]) .auth__fc { animation: aeIn 700ms cubic-bezier(.2, .8, .2, 1) both; }
.auth__fc:nth-child(1) { animation-delay: 600ms !important; } .auth__fc:nth-child(2) { animation-delay: 750ms !important; } .auth__fc:nth-child(3) { animation-delay: 900ms !important; }
@media (prefers-reduced-motion: reduce) { .auth--v2 .ae, .auth--v2 .auth__hero, .auth--v2 .auth__fc { animation: none !important; } }
/* Telefonda: üstte yumuşak AytAi ışığı */
@media (max-width: 899px) { .auth--v2 { background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--acc) 22%, var(--bg)), var(--bg) 70%); } }
/* ==== Telefonda model listesi: ortalanmış alt sayfa (sayfa kökünde, her şeyin üstünde) ==== */
.mdl-scrim { position: fixed; inset: 0; z-index: 94; background: rgba(5, 7, 14, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade 200ms var(--ease-out); }
.mdl__pop.sheet { position: fixed; z-index: 95; top: auto; left: 0; right: 0; bottom: max(.75rem, calc(env(safe-area-inset-bottom, 0px) + .4rem)); width: min(28rem, calc(100vw - 1.5rem)); max-width: none; margin: 0 auto; padding: .5rem; border-radius: 22px; box-shadow: 0 -12px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); transform-origin: bottom center; animation: sheetUp 260ms cubic-bezier(.2, .9, .3, 1) both; }
body.glass .mdl__pop.sheet { box-shadow: 0 -12px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); }
.mdl__pop.sheet::before { content: ""; display: block; width: 2.4rem; height: 4px; margin: .1rem auto .45rem; border-radius: 99px; background: var(--line-2); }
.mdl__pop.sheet h6 { text-align: center; margin: 0 0 .4rem; }
.mdl__pop.sheet ul { max-height: min(64dvh, 30rem); }
.mdl__pop.sheet li { padding: .7rem .8rem; }
@keyframes sheetUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mdl__pop.sheet, .mdl-scrim { animation: none; } }
/* Sürüm numarasındaki nokta: yazı tipinde nokta geniş olduğu için iki yanı sıkılaştırılır (2.0) */
.vdot { margin: 0 -.06em; }
/* Ana ekranda cam kutu ve kartlar: arkadaki aurora perdeleri renk geçişini bölmesin diye cam biraz daha dolgun */
body.glass #stage.home .box::before { background: var(--lg-sheen), color-mix(in srgb, var(--bg-2) 72%, transparent); }
body.glass #stage.home #sug .card-btn { background: var(--lg-sheen), color-mix(in srgb, var(--bg-2) 70%, transparent); }
/* ==== Gönder / sesli sohbet önceliği ====
   Kutu boşken: sesli sohbet parlak (ana eylem), Gönder sönük gri.
   Yazı yazılınca: Gönder parlak, sesli sohbet sönük. Geçiş yumuşak. */
#send, .voice-go { transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 140ms ease, opacity 200ms ease; }
#comp #send:disabled { background: var(--btn); color: var(--mute); box-shadow: none; opacity: 1; }
body.glass #comp #send.btn--primary:disabled { background: var(--lg-thin); color: var(--mute); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); opacity: 1; }
#comp.typing .voice-go { background: var(--btn); color: var(--ink-2); box-shadow: none; }
body.glass #comp.typing .voice-go { background: var(--lg-thin); color: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) { #send, .voice-go { transition: none; } }

/* ==== Beta hesapları: turuncu tema (kayıt sisteminden önce verilen kullanıcı adlı hesaplar) ==== */
body.beta-orange { --acc: #e8590c; --acc-h: #f76707; --on-acc: #fff; --acc-soft: color-mix(in srgb, #e8590c 12%, transparent); }
:root[data-theme="dark"] body.beta-orange { --acc: #ff8a3d; --acc-h: #ffa25f; --on-acc: #1a0d04; --acc-soft: color-mix(in srgb, #ff8a3d 14%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.beta-orange { --acc: #ff8a3d; --acc-h: #ffa25f; --on-acc: #1a0d04; --acc-soft: color-mix(in srgb, #ff8a3d 14%, transparent); } }
body.beta-orange.glass #send.btn--primary:not(:disabled), body.beta-orange.glass #comp:not(.typing) .voice-go {
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #ff9a4d, #f2620f 55%, #e8590c);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .18), 0 8px 20px -6px rgba(240, 98, 15, .6);
}
body.beta-orange.glass .m.u { background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, color-mix(in srgb, #f2620f 62%, transparent), color-mix(in srgb, #ff9a4d 48%, transparent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px rgba(240, 98, 15, .6); }
body.beta-orange #sug .card-btn .ico, body.beta-orange.glass #sug .card-btn .ico, body.beta-orange .acc__av { background: radial-gradient(120% 100% at 30% 15%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #ff9a4d, #e8590c); color: #fff; }
body.beta-orange .vnews__ic { background: linear-gradient(135deg, #ffb070, #f2620f); }
body.beta-orange .beta { background: color-mix(in srgb, #ff8a3d 16%, transparent); color: #ff8a3d; }
/* Beta hesapları: logolar da turuncu (mavi logo renk tonu döndürülerek turuncuya çevrilir) */
body.beta-orange #logo, body.beta-orange .m .av img, body.beta-orange .lo, body.beta-orange .tl__vid canvas, body.beta-orange #acctDlg .acc__av img { filter: hue-rotate(168deg) saturate(1.3) brightness(1.04); }
body.beta-orange .logo-anim { filter: hue-rotate(168deg) saturate(1.3) brightness(1.04) drop-shadow(0 0 .2rem rgba(255, 120, 30, .35)); }
/* Logo sallanma animasyonu filtreyi kendisi yazdığı için beta hesaplarına turuncu bir kopyası */
@keyframes logoSwayO {
  0%, 100% { transform: rotate(-10deg) scale(1); filter: hue-rotate(168deg) saturate(1.3) brightness(1.04) drop-shadow(0 0 .2rem rgba(255, 120, 30, .3)); }
  50% { transform: rotate(10deg) scale(1.06); filter: hue-rotate(168deg) saturate(1.3) brightness(1.04) drop-shadow(0 0 .5rem rgba(255, 140, 50, .6)); }
}
body.beta-orange .logo-anim { animation-name: logoSwayO; }
/* ==== Beta hesapları: Liquid Glass ve koyu tema tonları sıcak/turuncumsu (normal hesaplar mavi kalır) ==== */
:root[data-theme="dark"] body.beta-orange {
  --bg: #110e0c; --bg-2: #18130f; --card: #1d1712; --line: #2e241c; --line-2: #3e3127; --btn: #221a14; --btn-h: #2e241b;
  --ink-2: #d6cbc2; --mute: #a89a8e; --glass: rgba(17, 14, 12, .7); --ind: #3a2a1f; --rail-bg: rgba(24, 19, 15, .86);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.beta-orange {
  --bg: #110e0c; --bg-2: #18130f; --card: #1d1712; --line: #2e241c; --line-2: #3e3127; --btn: #221a14; --btn-h: #2e241b;
  --ink-2: #d6cbc2; --mute: #a89a8e; --glass: rgba(17, 14, 12, .7); --ind: #3a2a1f; --rail-bg: rgba(24, 19, 15, .86);
} }
html:has(body.beta-orange) { background: #110e0c; }
:root[data-theme="light"] html:has(body.beta-orange), :root[data-theme="light"]:has(body.beta-orange) { background: var(--bg); }
/* Cam dolgu, menü ve ortam ışıkları */
body.beta-orange.glass { --lg-thick: rgba(38, 25, 17, .52); --lg-menu: rgba(30, 21, 16, .9); --lg-amb-1: rgba(249, 115, 22, .24); --lg-amb-2: rgba(251, 146, 60, .15); --lg-amb-3: rgba(234, 88, 12, .14); }
body.beta-orange.glass[data-mode] { --lg-amb-1: rgba(249, 115, 22, .24); --lg-amb-2: rgba(251, 146, 60, .15); --lg-amb-3: rgba(234, 88, 12, .14); }
:root[data-theme="light"] body.beta-orange.glass, :root[data-theme="light"] body.beta-orange.glass[data-mode] {
  --lg-thick: rgba(255, 250, 245, .6); --lg-menu: rgba(255, 250, 245, .94);
  --lg-drop: 0 18px 44px -14px rgba(110, 55, 20, .26), 0 2px 6px rgba(110, 55, 20, .08); --lg-drop-sm: 0 6px 16px -6px rgba(110, 55, 20, .2);
  --lg-amb-1: rgba(249, 115, 22, .14); --lg-amb-2: rgba(251, 146, 60, .12); --lg-amb-3: rgba(234, 88, 12, .1);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.beta-orange.glass, :root:not([data-theme="dark"]) body.beta-orange.glass[data-mode] {
  --lg-thick: rgba(255, 250, 245, .6); --lg-menu: rgba(255, 250, 245, .94);
  --lg-drop: 0 18px 44px -14px rgba(110, 55, 20, .26), 0 2px 6px rgba(110, 55, 20, .08); --lg-drop-sm: 0 6px 16px -6px rgba(110, 55, 20, .2);
  --lg-amb-1: rgba(249, 115, 22, .14); --lg-amb-2: rgba(251, 146, 60, .12); --lg-amb-3: rgba(234, 88, 12, .1);
} }
/* Odak halkası, gönder nabzı ve duyuru düğmeleri */
body.beta-orange.glass .box:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--lg-drop), 0 0 0 4px rgba(255, 138, 61, .2); }
@keyframes sendPulseO { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 138, 61, 0); } }
body.beta-orange #send.sent { animation-name: sendPulseO; }
body.beta-orange .vnews__go, body.beta-orange .vnews--upd .vnews__ic { background: linear-gradient(135deg, #ff9a4d, #e8590c); }
body.beta-orange .voice-go:not(.typing .voice-go) { background: linear-gradient(135deg, #ff9a4d, #e8590c); }
/* Ayarlar düğmeleri: soldan girinti + %100 genişlik menünün sağından taşıyordu; genişlik girintiye göre ayarlanır */
#setBox .set__reload { width: calc(100% - .9rem); max-width: none; margin-right: 0; min-width: 0; }
#setBox .set__reload span { min-width: 0; overflow-wrap: anywhere; }
/* Telefonda Araçlar düğmesi: sonradan gelen iç boşluk kuralı simgeyi 3 px sağa itiyordu, simge tam ortada */
@media (max-width: 560px) { #tl { padding: 0; gap: 0; justify-content: center; } }
/* Telefonda Araçlar menüsü de model listesi gibi ortalanmış alt sayfa (ekranın üstünden taşmaz) */
.pop.sheet { position: fixed; z-index: 95; top: auto; left: 0; right: 0; bottom: max(.75rem, calc(env(safe-area-inset-bottom, 0px) + .4rem)); width: min(28rem, calc(100vw - 1.5rem)); max-width: none; max-height: min(70dvh, 32rem); overflow-y: auto; margin: 0 auto; padding: .5rem; border-radius: 22px; box-shadow: 0 -12px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); transform-origin: bottom center; animation: sheetUp 260ms cubic-bezier(.2, .9, .3, 1) both; }
body.glass .pop.sheet { box-shadow: 0 -12px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); }
.pop.sheet::before { content: ""; display: block; width: 2.4rem; height: 4px; margin: .1rem auto .45rem; border-radius: 99px; background: var(--line-2); }
.pop.sheet button { min-height: 2.9rem; padding-inline: .9rem; }
@media (prefers-reduced-motion: reduce) { .pop.sheet { animation: none; } }
/* Açılış ekranı: gerçek logo, orantısı bozulmadan hafifçe nefes alır ve parlar */
.boot__vid { display: grid; place-items: center; width: 10rem; height: 10rem; overflow: visible; }
.boot__logo { width: 6.5rem; height: 6.5rem; object-fit: contain; filter: drop-shadow(0 0 1.2rem rgba(56, 140, 255, .55)); animation: bootBreath 1.8s ease-in-out infinite; }
@keyframes bootBreath { 0%, 100% { transform: scale(.94); opacity: .85; } 50% { transform: scale(1.04); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boot__logo { animation: none; } }
/* ==== Yönetici hesabı: gökkuşağı tema ==== */
body.admin-rainbow { --rb: linear-gradient(120deg, #ff4d4d, #ff9f1a, #ffd84d, #3ddc84, #2fb8ff, #6c5cff, #d65cff); --acc: #9d6bff; --acc-h: #b48aff; --on-acc: #fff; --acc-soft: color-mix(in srgb, #9d6bff 13%, transparent); }
:root[data-theme="dark"] body.admin-rainbow { --acc: #b794ff; --acc-h: #cbb0ff; --on-acc: #140b24; --acc-soft: color-mix(in srgb, #b794ff 15%, transparent);
  --bg: #0e0d12; --bg-2: #14131a; --card: #1a1922; --line: #2a2833; --line-2: #393645; --btn: #1d1c26; --btn-h: #282633; --glass: rgba(14, 13, 18, .7); --rail-bg: rgba(20, 19, 26, .86); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.admin-rainbow { --acc: #b794ff; --acc-h: #cbb0ff; --on-acc: #140b24; --acc-soft: color-mix(in srgb, #b794ff 15%, transparent);
  --bg: #0e0d12; --bg-2: #14131a; --card: #1a1922; --line: #2a2833; --line-2: #393645; --btn: #1d1c26; --btn-h: #282633; --glass: rgba(14, 13, 18, .7); --rail-bg: rgba(20, 19, 26, .86); } }
html:has(body.admin-rainbow) { background: #0e0d12; }
body.admin-rainbow.glass { --lg-thick: rgba(24, 22, 32, .52); --lg-menu: rgba(20, 19, 27, .9); }
body.admin-rainbow.glass, body.admin-rainbow.glass[data-mode] { --lg-amb-1: rgba(255, 77, 141, .18); --lg-amb-2: rgba(47, 184, 255, .16); --lg-amb-3: rgba(61, 220, 132, .14); }
/* Gökkuşağı yüzeyler: gönder, sesli sohbet, kendi mesaj balonun, kart ikonları, profil harfi (renkler yavaşça akar) */
@keyframes rbFlow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
body.admin-rainbow.glass #send.btn--primary:not(:disabled), body.admin-rainbow.glass #comp:not(.typing) .voice-go, body.admin-rainbow #send.btn--primary:not(:disabled), body.admin-rainbow #comp:not(.typing) .voice-go,
body.admin-rainbow #sug .card-btn .ico, body.admin-rainbow.glass #sug .card-btn .ico, body.admin-rainbow .acc__av, body.admin-rainbow .vnews__ic, body.admin-rainbow .vnews__go {
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), linear-gradient(120deg, #ff4d4d, #ff9f1a, #ffd84d, #3ddc84, #2fb8ff, #6c5cff, #d65cff, #ff4d4d) 0 0 / 200% 100%;
  color: #fff; animation: rbFlow 6s linear infinite; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px -8px rgba(157, 107, 255, .6);
}
body.admin-rainbow.glass .m.u, body.admin-rainbow .m.u { background: linear-gradient(120deg, rgba(255, 77, 77, .75), rgba(255, 159, 26, .7), rgba(61, 220, 132, .65), rgba(47, 184, 255, .7), rgba(108, 92, 255, .75), rgba(214, 92, 255, .75), rgba(255, 77, 77, .75)) 0 0 / 200% 100%; color: #fff; animation: rbFlow 10s linear infinite; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px rgba(157, 107, 255, .55); }
body.admin-rainbow .beta { background: linear-gradient(120deg, #ff4d4d, #ffb020, #3ddc84, #2fb8ff, #b794ff); -webkit-background-clip: text; background-clip: text; color: transparent; box-shadow: inset 0 0 0 1px rgba(183, 148, 255, .35); }
body.admin-rainbow.glass .box:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--lg-drop), 0 0 0 4px rgba(183, 148, 255, .22); }
@keyframes sendPulseR { 0% { box-shadow: 0 0 0 0 rgba(183, 148, 255, .55); } 100% { box-shadow: 0 0 0 12px rgba(183, 148, 255, 0); } }
body.admin-rainbow #send.sent { animation: sendPulseR 400ms ease-out, rbFlow 6s linear infinite; }
/* Logolar renk çemberinde döner */
@keyframes rbHue { from { filter: hue-rotate(0deg) saturate(1.3); } to { filter: hue-rotate(360deg) saturate(1.3); } }
body.admin-rainbow #logo, body.admin-rainbow .m .av img, body.admin-rainbow .lo, body.admin-rainbow .tl__vid canvas, body.admin-rainbow .boot__logo { animation: rbHue 8s linear infinite; }
@keyframes logoSwayR {
  0% { transform: rotate(-10deg) scale(1); filter: hue-rotate(0deg) saturate(1.3) drop-shadow(0 0 .3rem rgba(183, 148, 255, .45)); }
  50% { transform: rotate(10deg) scale(1.06); filter: hue-rotate(180deg) saturate(1.3) drop-shadow(0 0 .5rem rgba(183, 148, 255, .6)); }
  100% { transform: rotate(-10deg) scale(1); filter: hue-rotate(360deg) saturate(1.3) drop-shadow(0 0 .3rem rgba(183, 148, 255, .45)); }
}
body.admin-rainbow .logo-anim { animation-name: logoSwayR; }
@media (prefers-reduced-motion: reduce) { body.admin-rainbow * { animation-duration: 0s !important; animation-iteration-count: 1 !important; } }
/* ==== Gönder düğmesi her temada mavi (turuncu/gökkuşağı temalarda da) ====
   Kutu boşken soluk mavi, yazı yazılınca parlak mavi */
body #comp #send.btn--primary, body.glass #comp #send.btn--primary, body.beta-orange.glass #comp #send.btn--primary:not(:disabled), body.admin-rainbow.glass #comp #send.btn--primary:not(:disabled), body.admin-rainbow #comp #send.btn--primary:not(:disabled) {
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #5b7cff, #2f5bf0 55%, #2a8cf0);
  color: #fff; animation: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .18), 0 8px 20px -6px rgba(53, 88, 240, .65);
}
body #comp #send.btn--primary:disabled, body.glass #comp #send.btn--primary:disabled { background: linear-gradient(160deg, #5b7cff, #2f5bf0 55%, #2a8cf0); color: rgba(255, 255, 255, .85); opacity: .38; box-shadow: none; }
/* Yarım kalan yanıt bildirimi */
.inc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; padding: .55rem .7rem; border-radius: 12px; background: color-mix(in srgb, #f59e0b 12%, transparent); color: var(--ink-2); font-size: .74rem; }
.inc .i { width: 1rem; height: 1rem; color: #f59e0b; flex: none; }
.inc span { flex: 1; min-width: 10rem; }
/* ==== Gökkuşağı tema v2: canlı tam renk çemberi, kesintisiz akış ==== */
@property --rbA { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rbSpin { to { --rbA: 360deg; } }
@keyframes rbSlide { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
body.admin-rainbow { --rbg: linear-gradient(90deg, #ff1744, #ff9100, #ffea00, #00e676, #00e5ff, #2979ff, #d500f9, #ff1744); }
/* Dolgu yüzeyleri: kesintisiz kayan canlı şerit (başı ile sonu aynı renk, dikiş yok) */
body.admin-rainbow.glass #comp:not(.typing) .voice-go, body.admin-rainbow #comp:not(.typing) .voice-go,
body.admin-rainbow #sug .card-btn .ico, body.admin-rainbow.glass #sug .card-btn .ico, body.admin-rainbow .acc__av, body.admin-rainbow .vnews__ic, body.admin-rainbow .vnews__go {
  background: radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%), var(--rbg) 0 0 / 300% 100%;
  animation: rbSlide 5s linear infinite; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 18px -2px rgba(255, 64, 129, .45), 0 0 26px -6px rgba(0, 229, 255, .45);
}
body.admin-rainbow.glass .m.u, body.admin-rainbow .m.u {
  background: linear-gradient(90deg, rgba(255, 23, 68, .82), rgba(255, 145, 0, .82), rgba(255, 234, 0, .78), rgba(0, 230, 118, .78), rgba(0, 229, 255, .8), rgba(41, 121, 255, .85), rgba(213, 0, 249, .85), rgba(255, 23, 68, .82)) 0 0 / 300% 100%;
  animation: rbSlide 8s linear infinite; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 30px -10px rgba(213, 0, 249, .55);
}
/* Yazma kutusu: dönen gökkuşağı kenar ışığı */
body.admin-rainbow.glass .box::after { background: conic-gradient(from var(--rbA), #ff1744, #ff9100, #ffea00, #00e676, #00e5ff, #2979ff, #d500f9, #ff1744); padding: 1.5px; opacity: .9; animation: rbSpin 6s linear infinite; }
body.admin-rainbow.glass .box { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--lg-drop), 0 0 40px -12px rgba(213, 0, 249, .45), 0 0 40px -16px rgba(0, 229, 255, .4); }
/* Başlık ve BETA rozeti: akan renkli yazı */
body.admin-rainbow #h1, body.admin-rainbow .beta { background: var(--rbg) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rbSlide 7s linear infinite; }
body.admin-rainbow .seg--modes .seg__ind { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), 0 0 14px -2px rgba(213, 0, 249, .5); }
/* Logolar: daha canlı renk dönüşü */
@keyframes rbHue { from { filter: hue-rotate(0deg) saturate(1.8) brightness(1.1); } to { filter: hue-rotate(360deg) saturate(1.8) brightness(1.1); } }
body.admin-rainbow #logo, body.admin-rainbow .m .av img, body.admin-rainbow .lo, body.admin-rainbow .tl__vid canvas, body.admin-rainbow .boot__logo { animation: rbHue 5s linear infinite; }
@keyframes logoSwayR {
  0% { transform: rotate(-10deg) scale(1); filter: hue-rotate(0deg) saturate(1.8) brightness(1.1) drop-shadow(0 0 .35rem rgba(255, 64, 129, .55)); }
  50% { transform: rotate(10deg) scale(1.06); filter: hue-rotate(180deg) saturate(1.8) brightness(1.1) drop-shadow(0 0 .55rem rgba(0, 229, 255, .6)); }
  100% { transform: rotate(-10deg) scale(1); filter: hue-rotate(360deg) saturate(1.8) brightness(1.1) drop-shadow(0 0 .35rem rgba(255, 64, 129, .55)); }
}
/* Ortam ışıkları daha renkli */
body.admin-rainbow.glass, body.admin-rainbow.glass[data-mode] { --lg-amb-1: rgba(255, 23, 68, .2); --lg-amb-2: rgba(0, 229, 255, .18); --lg-amb-3: rgba(213, 0, 249, .18); }
@media (prefers-reduced-motion: reduce) { body.admin-rainbow.glass .box::after, body.admin-rainbow #h1, body.admin-rainbow .m.u { animation: none; } }
/* ==== Renkli tema: hafif sürüm (sürekli kayan gradyan, filtre ve dönen kenar animasyonları kaldırıldı; iPhone'da takılmaz) ==== */
body.admin-rainbow .voice-go, body.admin-rainbow #sug .card-btn .ico, body.admin-rainbow .acc__av, body.admin-rainbow .vnews__ic, body.admin-rainbow .vnews__go,
body.admin-rainbow .m.u, body.admin-rainbow #h1, body.admin-rainbow .beta, body.admin-rainbow.glass .box::after { animation: none !important; background-size: 100% 100% !important; }
body.admin-rainbow #logo, body.admin-rainbow .m .av img, body.admin-rainbow .lo, body.admin-rainbow .tl__vid canvas, body.admin-rainbow .boot__logo { animation: none; filter: hue-rotate(290deg) saturate(1.6); }
body.admin-rainbow .logo-anim { animation-name: logoSway; filter: hue-rotate(290deg) saturate(1.6); }
body.admin-rainbow.glass .box::after { background: linear-gradient(120deg, #ff1744, #ffea00, #00e676, #00e5ff, #d500f9); }

/* ==== Telefon akıcılığı: pahalı bulanıklıklar hafifletilir, menü yalnızca transform ile kayar ==== */
@media (pointer: coarse), (max-width: 760px) {
  body.glass { --lg-blur: blur(12px) saturate(150%); }
  body.glass .rail { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-2); }
  .rail { will-change: transform; transition: transform 240ms cubic-bezier(.2, .9, .3, 1), visibility 240ms; box-shadow: 8px 0 24px rgba(0, 0, 0, .35); }
  #scrim { -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity 200ms ease; }
  .mdl-scrim, .svy::backdrop, .ask::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.chatting #msgs { -webkit-mask-image: none; mask-image: none; }
  #msgs { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
.auth__ts { min-height: 65px; }
.auth__ts[hidden] { display: none; }

/* Giriş ekranındaki Kayıt ol / Giriş yap bağlantısı parmakla rahat dokunulsun (en az 44 px) */
.auth__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; margin: -11px 0; }

/* ==== iOS düzeltmeleri (gerçek iPhone ekran görüntülerinden) ==== */
/* Safari'de alt güvenli alan (ana ekran çizgisi) gövdenin dışında kalıyor ve altta beyaz şerit görünüyordu:
   gövde o alanı da kaplar; yazma kutusu kendi alt boşluğuyla çizginin üstünde kalır */
body { bottom: calc(-1 * env(safe-area-inset-bottom, 0px)); }
.rail { bottom: calc(-1 * env(safe-area-inset-bottom, 0px)); }
/* Onay penceresi iPhone'da sol alta yapışıyordu: ekranın tam ortasında */
dialog.ask[open] { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 2rem); width: min(22rem, calc(100vw - 2rem)); transform: none; }
dialog.svy[open] { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 2rem); }
/* Açık temada kullanıcı balonu soluk turuncu üstünde beyaz yazı okunmuyordu: dolu, kontrastlı renk */
:root[data-theme="light"] body.beta-orange.glass .m.u { background: linear-gradient(160deg, #f97316, #e8590c); color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.beta-orange.glass .m.u { background: linear-gradient(160deg, #f97316, #e8590c); color: #fff; } }
:root[data-theme="light"] body.glass:not(.beta-orange):not(.admin-rainbow) .m.u { background: linear-gradient(160deg, #4f6bff, #2f5bf0); color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.glass:not(.beta-orange):not(.admin-rainbow) .m.u { background: linear-gradient(160deg, #4f6bff, #2f5bf0); color: #fff; } }
dialog.ask[open] { border-radius: 22px; overflow: hidden; }

/* ============ Ayarlar sayfası (ayrı tam ekran) ============ */
#setView { background: var(--bg); }
.st { width: 100%; max-width: 60rem; margin: 0 auto; display: grid; gap: 1rem 1.6rem; grid-template-columns: minmax(0, 1fr); }
.st__head h2 { margin: 0 0 .3rem; }
.st__head p { margin: 0; color: var(--mute); font-size: .82rem; line-height: 1.5; }
.st__nav { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .2rem; }
.st__nav::-webkit-scrollbar { display: none; }
.st__nav button { flex: none; display: flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.st__nav button .i { width: 1rem; height: 1rem; flex: none; }
.st__nav button[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc, #fff); }
.st__nav button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.st__body { min-width: 0; }
.st__pane h3 { margin: 1.3rem 0 .55rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.st__pane h3:first-child { margin-top: .2rem; }
.st__card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.st__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; padding: .85rem 1rem; color: inherit; text-decoration: none; }
.st__row + .st__row, .st__fld + .st__fld, .st__row + .st__fld { border-top: 1px solid var(--line); }
.st__row > div:first-child { min-width: 11rem; flex: 1 1 14rem; }
.st__row b, .st__fld > b { display: block; font-size: .88rem; font-weight: 650; color: var(--ink); }
.st__row small { display: block; margin-top: .15rem; font-size: .74rem; line-height: 1.45; color: var(--mute); }
.st__row .seg { flex: 0 1 auto; max-width: 100%; }
.st__row .seg button { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .7rem; min-height: 2.25rem; white-space: nowrap; }
.st__row .seg button .i { width: .95rem; height: .95rem; }
.st__row--tg { cursor: pointer; }
.st__link:hover { background: var(--btn-h, var(--bg-2)); }
.st__link > .i { width: 1rem; height: 1rem; color: var(--mute); flex: none; }
.st__sel { flex: 0 1 18rem; max-width: 100%; min-height: 2.5rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .84rem; }
.st__fld { display: grid; gap: .45rem; padding: .85rem 1rem; }
.st__fld input, .st__fld textarea { width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; }
.st__fld input:focus-visible, .st__fld textarea:focus-visible, .st__sel:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.st__cnt { justify-self: end; font-size: .68rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.st__note, .st__lead { margin: 0; padding: .7rem 1rem .9rem; font-size: .74rem; line-height: 1.5; color: var(--mute); }
.st__lead { padding: 0 0 .8rem; font-size: .82rem; }
.st__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .8rem; }
.sk__form .st__acts { margin: 0; padding: 0 1rem 1rem; }
.st__btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.5rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, transform 120ms ease; }
.st__btn .i { width: 1rem; height: 1rem; flex: none; }
.st__btn:hover { background: var(--btn-h, var(--bg-2)); }
.st__btn:active { transform: scale(.97); }
.st__btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.st__btn--pri { background: var(--acc); border-color: var(--acc); color: var(--on-acc, #fff); }
.st__btn--pri:hover { background: var(--acc-h, var(--acc)); }
.st__btn--warn { color: #e03131; border-color: color-mix(in srgb, #e03131 40%, var(--line)); }
.st__empty { margin: 0; padding: 1rem; border: 1px dashed var(--line); border-radius: 14px; font-size: .8rem; line-height: 1.5; color: var(--mute); text-align: center; }
.sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; flex: none; }
.sw--blue { background: linear-gradient(135deg, #3b6af6, #38bdf8); }
.sw--orange { background: linear-gradient(135deg, #f76707, #ffa94d); }
.sw--rainbow { background: conic-gradient(#ff4d4d, #ffb84d, #f9f871, #4dff88, #4db8ff, #a64dff, #ff4d4d); }
/* aç/kapa anahtarı */
.tg { position: relative; flex: none; display: inline-block; width: 2.75rem; height: 1.6rem; }
.tg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.tg i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2, #cfd6e4); transition: background-color 180ms ease; }
.tg i::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform 180ms var(--ease-out, ease-out); }
.tg input:checked + i { background: var(--acc); }
.tg input:checked + i::after { transform: translateX(1.15rem); }
.tg input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
/* skill kartları */
.sk__list { display: grid; gap: .5rem; }
.sk { display: flex; align-items: center; gap: .5rem; padding: .7rem .6rem .7rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.sk__t { flex: 1; min-width: 0; }
.sk__t b { display: block; font-size: .88rem; overflow-wrap: anywhere; }
.sk__t small { display: block; margin-top: .1rem; font-size: .74rem; line-height: 1.4; color: var(--mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sk .btn--icon { width: 2.4rem; height: 2.4rem; flex: none; }
.sk__form { margin-bottom: .8rem; }
.sk__pre { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.sk__p { display: grid; gap: .2rem; text-align: left; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation; transition: border-color 150ms ease, transform 120ms ease; }
.sk__p b { font-size: .86rem; }
.sk__p small { font-size: .74rem; line-height: 1.4; color: var(--mute); }
.sk__p span { margin-top: .25rem; font-size: .76rem; font-weight: 700; color: var(--acc); }
.sk__p:hover:not(:disabled) { border-color: var(--acc); }
.sk__p:active:not(:disabled) { transform: scale(.98); }
.sk__p:disabled { cursor: default; opacity: .6; }
.sk__p:disabled span { color: var(--mute); }
@media (min-width: 860px) {
  .st { grid-template-columns: 12.5rem minmax(0, 1fr); align-items: start; }
  .st__head { grid-column: 1 / -1; }
  .st__nav { position: sticky; top: 0; flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .st__nav button { justify-content: flex-start; border-radius: 12px; border-color: transparent; background: transparent; }
  .st__nav button:hover:not([aria-selected="true"]) { background: var(--card); }
}
@media (max-width: 560px) {
  .st__row .seg { width: 100%; display: flex; }
  .st__row .seg button { flex: 1; justify-content: center; padding: 0 .4rem; }
  .st__sel { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tg i, .tg i::after, .st__btn, .sk__p, .st__nav button { transition: none; } }
.st__acts--in { align-items: center; margin: 0; padding: 0 1rem 1rem; }
.st__err { font-size: .78rem; color: #e03131; }
.st__del { color: var(--mute); font-size: .76rem; line-height: 1.5; font-weight: 400; }
#delForm { border-color: color-mix(in srgb, #e03131 35%, var(--line)); }

/* ============ Paketler ve abonelik ============ */
.ri__new, .st__new, .pl__tag { display: inline-flex; align-items: center; margin-left: auto; padding: .05rem .42rem; border-radius: 999px; background: var(--acc); color: var(--on-acc, #fff); font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
.ri__new[hidden] { display: none; }
.st__new { margin-left: .35rem; }
.pl__tag { margin-left: .35rem; vertical-align: .12em; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); }
.pc__mo { margin: .25rem 0 0; min-height: 1.1em; font-size: .74rem; color: var(--mute); }
.pl__use { padding: .4rem 0 0; }
.pl__u { padding: .55rem 1rem; }
.pl__u div { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; color: var(--ink-2); }
.pl__u b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pl__u i { position: relative; display: block; height: .4rem; margin-top: .4rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.pl__u i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--acc); }
.pl__u i[data-hi]::after { background: #e8590c; }
dialog.buy[open] { width: min(26rem, calc(100vw - 2rem)); }
.buy .svy__h { padding: 1.1rem 1.2rem .2rem; }
.buy__b { display: grid; gap: .8rem; padding: .6rem 1.2rem 1.2rem; }
.buy__sum { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.buy__sum b { display: block; font-size: .95rem; color: var(--ink); }
.buy__sum small { color: var(--mute); font-size: .74rem; }
.buy__price { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.buy__feat { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .82rem; color: var(--ink-2); }
.buy__feat li { display: flex; align-items: center; gap: .45rem; }
.buy__feat .i { width: .95rem; height: .95rem; color: var(--acc); flex: none; }
.buy__note { margin: 0; padding: .65rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--acc) 10%, transparent); font-size: .8rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.buy__note b { color: var(--ink); }
.buy__ok { display: flex; gap: .6rem; align-items: flex-start; font-size: .76rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.buy__ok input { flex: none; width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--acc); }
.buy__go { justify-content: center; min-height: 2.9rem; font-weight: 700; text-decoration: none; }
.buy__go.is-off { opacity: .45; cursor: not-allowed; }
.buy__small { margin: 0; font-size: .7rem; line-height: 1.5; color: var(--mute); }
/* satın alma onay kutusu: anket penceresinin gizli-kutu stilinden etkilenmesin, görünür ve tıklanabilir olsun */
.svy.buy label.buy__ok input { position: static; opacity: 1; pointer-events: auto; appearance: auto; -webkit-appearance: checkbox; }
.svy.buy label.buy__ok span { padding: 0; border: 0; background: none; font-weight: 400; }
.svy.buy label.buy__ok input:checked + span { background: none; border: 0; font-weight: 400; }

/* ============ Renk bozulması düzeltmesi: öneri kartları ve mod seçici ============
   Kartlar: cam bulanıklığı arkadaki turuncu/mavi ışımanın doygunluğunu %150-190 artırıyor, gölgeler de renkliydi;
   kartların alt kenarı ayrı renkte görünüyordu. Doygunluk artırılmaz, gölge nötr.
   Mod seçici: seçili düğmenin zemini açık temada koyu-gri, koyu temada çamur rengi bir yama gibiydi;
   artık temanın kendi rengine (turuncu/mavi) uyumlu, aynı malzemeden bir "yükseltilmiş" katman. */
body.glass #sug .card-btn, body.glass #stage.home #sug .card-btn {
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 20px -10px rgba(0, 0, 0, .45);
}
body.glass .seg--modes { -webkit-backdrop-filter: blur(18px) saturate(120%); backdrop-filter: blur(18px) saturate(120%); }
body.glass .seg--modes .seg__ind {
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)), color-mix(in srgb, var(--acc) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 8px -2px rgba(0, 0, 0, .35);
}
/* açık tema: kartlar ve seçili mod beyaz, gölge nötr gri (turuncu/lacivert bant yok) */
:root[data-theme="light"] body.glass #sug .card-btn, :root[data-theme="light"] body.glass #stage.home #sug .card-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 16px -8px rgba(15, 23, 42, .14), 0 1px 2px rgba(15, 23, 42, .05); }
:root[data-theme="light"] body.glass .seg--modes .seg__ind { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .86)); box-shadow: 0 1px 3px rgba(15, 23, 42, .12), inset 0 0 0 1px rgba(15, 23, 42, .05); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body.glass #sug .card-btn, :root:not([data-theme="dark"]) body.glass #stage.home #sug .card-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 16px -8px rgba(15, 23, 42, .14), 0 1px 2px rgba(15, 23, 42, .05); }
  :root:not([data-theme="dark"]) body.glass .seg--modes .seg__ind { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .86)); box-shadow: 0 1px 3px rgba(15, 23, 42, .12), inset 0 0 0 1px rgba(15, 23, 42, .05); }
}
/* renkli (yönetici) temada seçili mod kendi parıltısını korur */
body.admin-rainbow.glass .seg--modes .seg__ind { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)); }

/* ============ Kodlama: indirme, ZIP ve canlı önizleme ============ */
.code__h { gap: .4rem; }
.code__f { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code__acts { display: flex; align-items: center; gap: .1rem; flex: none; }
.code__acts .btn { gap: .3rem; }
.code__acts .btn .i { width: .85rem; height: .85rem; }
.code__acts .btn[hidden] { display: none; }
.code__pv { color: var(--acc); font-weight: 700; }
@media (max-width: 560px) { .code__acts .btn span { display: none; } .code__acts .btn { padding: 0 .45rem; min-width: 2rem; } .code__pv span { display: inline !important; } }

dialog.pv { width: min(1100px, calc(100vw - 2rem)); height: min(780px, calc(100dvh - 2rem)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); overflow: hidden; }
dialog.pv[open] { display: flex; flex-direction: column; }
dialog.pv::backdrop { background: rgba(5, 7, 14, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.pv.is-full { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
.pv__h { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem .55rem 1rem; border-bottom: 1px solid var(--line); min-width: 0; }
.pv__h h2 { margin: 0; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.pv__h small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: .72rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pv__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e44 25%, transparent); flex: none; }
.pv__acts { display: flex; align-items: center; gap: .15rem; flex: none; }
.pv__acts .btn { min-height: 2.2rem; gap: .35rem; font-size: .76rem; padding: 0 .6rem; position: relative; }
.pv__acts .btn .i { width: .95rem; height: .95rem; }
.pv__acts .btn[aria-pressed="true"] { background: var(--btn-h, var(--card)); color: var(--ink); }
#pvErrN { font-style: normal; min-width: 1.1rem; padding: 0 .3rem; border-radius: 999px; background: #e03131; color: #fff; font-size: .62rem; font-weight: 800; line-height: 1.1rem; text-align: center; }
#pvErrN[hidden] { display: none; }
.pv__body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
#pvFrame { flex: 1; min-height: 0; width: 100%; border: 0; background: #fff; }
.pv__con { flex: 0 0 34%; min-height: 6rem; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink); }
.pv__con[hidden] { display: none; }
.pv__conh { display: flex; align-items: center; justify-content: space-between; padding: .3rem .5rem .3rem .9rem; border-bottom: 1px solid var(--line); font-size: .72rem; }
.pv__conh .btn { min-height: 1.8rem; font-size: .7rem; padding: 0 .55rem; }
#pvLog { flex: 1; margin: 0; padding: .3rem 0; list-style: none; overflow: auto; font: .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pv__l { padding: .2rem .9rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: pre-wrap; overflow-wrap: anywhere; }
.pv__l--warn { color: #e67700; background: color-mix(in srgb, #fab005 10%, transparent); }
.pv__l--error { color: #e03131; background: color-mix(in srgb, #e03131 9%, transparent); }
.pv__note { margin: 0; padding: .4rem 1rem; border-top: 1px solid var(--line); font-size: .66rem; color: var(--mute); }
dialog.pv.is-full .pv__note { display: none; }
@media (max-width: 640px) {
  dialog.pv { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .pv__acts .btn span { display: none; }
  .pv__acts .btn { padding: 0 .5rem; min-width: 2.4rem; }
  .pv__h { padding-top: max(.55rem, env(safe-area-inset-top)); }
  .pv__note { padding-bottom: max(.4rem, env(safe-area-inset-bottom)); }
}

/* Model menüsü × öneri kartları: yazma kutusunun cam efekti (backdrop-filter) ayrı katman bağlamı açtığı için menünün
   z-index'i kutuya hapsoluyor, sonradan çizilen kartlar menünün üstüne biniyordu. Yazma alanı kartların üstünde tutulur. */
#comp { z-index: 5; }
#sug, #lst { position: relative; z-index: 1; }
/* Liste, açıldığı taraftaki boş alana sığacak kadar uzar (JS --mdl-max verir) */
.mdl__pop:not(.sheet) ul { max-height: min(var(--mdl-max, 21rem), 21rem); }
/* Kısa ekranda (telefonda klavye açıkken, yatay telefonda) karşılama logosu ve başlığı şeffaf üst çubuğun altına
   kayıp menü/mod düğmeleriyle üst üste biniyordu: yer yokken gizlenir, yazma kutusu ve öneriler kalır */
@media (max-height: 560px) { #stage.home #hero { display: none; } }
/* Ana ekran içerik ekrandan uzunsa "center" üst kısmı kaydırılamayan alana itiyordu (yazma kutusu üst çubuğun
   altında kalıyordu). Boşluk iki yandaki esnek dolgularla verilir: sığarsa ortalı, sığmazsa baştan kayar. */
#stage.home { justify-content: flex-start; }
#stage.home::before, #stage.home::after { content: ""; flex: 1 0 0; min-height: 0; }

/* ---------- Duyuru: Elyas Qorvan tanıtım videosu (yatay ekranda 16:9, dikey ekranda 9:16) ---------- */
dialog.qv { --qv-foot: 8.5rem; width: min(960px, calc(100vw - 3rem), calc((100dvh - var(--qv-foot) - 3rem) * 16 / 9)); max-width: none; max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .6); overflow: hidden; }
dialog.qv.qv--v { --qv-foot: 10.5rem; width: min(420px, calc(100vw - 1.5rem), calc((100dvh - var(--qv-foot) - 1.5rem) * 9 / 16)); }
dialog.qv[open] { display: flex; flex-direction: column; animation: qvIn 260ms cubic-bezier(.2, .9, .3, 1) both; }
dialog.qv::backdrop { background: rgba(5, 7, 14, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes qvIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.qv__media { position: relative; aspect-ratio: 16 / 9; background: #120a05; flex: none; }
.qv--v .qv__media { aspect-ratio: 9 / 16; }
.qv__media video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.qv__x { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; transition: background-color 150ms ease, transform 120ms ease; }
.qv__x:active, .qv__b:active, .qv__big:active { transform: scale(.95); }
.qv__big { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border: 0; border-radius: 50%; background: var(--acc); color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); cursor: pointer; }
.qv__big[hidden] { display: none; }
.qv__big .i { width: 1.6rem; height: 1.6rem; margin-left: .2rem; fill: currentColor; }
.qv__ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: 1.6rem .7rem .6rem; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; }
.qv__b { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; transition: background-color 150ms ease, transform 120ms ease; }
.qv__b .i { width: 1.05rem; height: 1.05rem; }
.qv__snd[aria-pressed="false"] { background: var(--acc); }
@media (hover: hover) and (pointer: fine) { .qv__x:hover { background: rgba(0, 0, 0, .7); } .qv__b:hover { background: rgba(255, 255, 255, .26); } .qv__snd[aria-pressed="false"]:hover { background: var(--acc); filter: brightness(1.08); } }
.qv__bar { flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.qv__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.qv__foot { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem 1.1rem; }
.qv__txt { flex: 1; min-width: 0; }
.qv__tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .66rem; font-weight: 700; letter-spacing: .02em; }
.qv__tag .i { width: .8rem; height: .8rem; }
.qv__foot h2 { margin: .4rem 0 .2rem; font-size: 1.15rem; line-height: 1.25; }
.qv__foot p { margin: 0; color: var(--mute); font-size: .8rem; line-height: 1.45; }
.qv__acts { display: flex; gap: .5rem; flex: none; }
.qv--v .qv__foot { flex-direction: column; align-items: stretch; gap: .75rem; padding: .85rem 1rem 1rem; }
.qv--v .qv__foot h2 { font-size: 1.05rem; }
.qv--v .qv__acts > * { flex: 1; }
@media (prefers-reduced-motion: reduce) { dialog.qv[open] { animation: none; } }
dialog.qv:focus { outline: none; }
/* Yatay telefon (kısa ekran): video solda, yazı ve düğmeler sağda */
@media (orientation: landscape) and (max-height: 500px) {
  dialog.qv { --qv-mw: min(calc(100vw - 1.5rem - 14rem), calc((100dvh - 1.5rem) * 16 / 9)); width: calc(var(--qv-mw) + 14rem); }
  dialog.qv[open] { flex-direction: row; }
  .qv__media { width: var(--qv-mw); }
  .qv__foot { width: 14rem; flex-direction: column; align-items: stretch; justify-content: center; gap: .7rem; padding: .8rem .9rem; }
  .qv__foot h2 { font-size: 1rem; }
  .qv__foot p { font-size: .72rem; }
  .qv__acts { flex-direction: column; }
}
/* Video duyurusu: reklam düzeni (5 sn sonra atla), yükleniyor göstergesi, "sesi açmak için dokun" */
.qv__spin { position: absolute; inset: 0; margin: auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: qvSpin 800ms linear infinite; pointer-events: none; }
.qv__spin[hidden], .qv__tap[hidden] { display: none; }
@keyframes qvSpin { to { transform: rotate(360deg); } }
.qv__tap { position: absolute; left: 50%; top: .8rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 0; border-radius: 99px; background: var(--acc); color: #fff; font: inherit; font-size: .78rem; font-weight: 700; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); cursor: pointer; animation: qvNudge 1.6s ease-in-out infinite; }
.qv__tap .i { width: 1rem; height: 1rem; }
@keyframes qvNudge { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
.qv__snd { min-width: 2.5rem; padding: 0; }
.qv__snd[aria-pressed="false"], .qv__snd[aria-pressed="true"] { background: rgba(255, 255, 255, .16); }
.qv__snd.is-off { background: var(--acc); }
.qv__skip { flex: none; display: inline-flex; align-items: center; gap: .25rem; height: 2.5rem; padding: 0 .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 150ms ease, transform 120ms ease; }
.qv__skip:disabled { cursor: default; color: rgba(255, 255, 255, .78); font-weight: 600; border-color: rgba(255, 255, 255, .18); }
.qv__skip:not(:disabled):active { transform: scale(.96); }
.qv__skip .i { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) { .qv__skip:not(:disabled):hover { background: rgba(0, 0, 0, .78); } }
.qv__x[hidden], .qv__acts [hidden] { display: none; }
.qv__media video { cursor: default; }
@media (max-width: 420px) { .qv__skip { padding: 0 .7rem; font-size: .7rem; } }
@media (prefers-reduced-motion: reduce) { .qv__tap { animation: none; } .qv__spin { animation-duration: 2s; } }
.qv__tap { white-space: nowrap; }
/* Soru çöz: matematik (KaTeX), çözüm altı düğmeleri, menüde "Yeni" etiketi */
.md .katex { font-size: 1.06em; }
.md .mth-d { display: block; margin: .55rem 0; overflow-x: auto; overflow-y: hidden; padding: .15rem 0; -webkit-overflow-scrolling: touch; }
.md .mth-d .katex-display { margin: 0; }
.md .mth { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .92em; color: var(--ink-2); }
.md .mth--d { display: block; margin: .5rem 0; white-space: pre-wrap; }
.sv-acts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.sv-acts .btn { gap: .35rem; font-size: .76rem; }
.sv-acts .btn .i { width: .95rem; height: .95rem; }
.pop__new { margin-left: auto; padding: .05rem .4rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .58rem; font-style: normal; font-weight: 700; letter-spacing: .02em; }
/* araç etiketi daralıp yanındaki model düğmesinin üstüne taşmasın; sıkışınca model düğmesi kısalır ("…") */
#tc { flex: none; }
@media (max-width: 560px) {
  .sv-acts { gap: .35rem; }
  .sv-acts .btn { min-height: 2.2rem; padding: 0 .7rem; font-size: .72rem; }
}
@media (max-width: 560px) { body.tool-solve .voice-go { display: none; } }
/* Mesaj düzenleme: kalem düğmesi balonun solunda (masaüstünde üzerine gelince, dokunmatikte hep) */
.m.u { position: relative; }
.m__ed { position: absolute; right: calc(100% + .35rem); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--btn); color: var(--mute); cursor: pointer; opacity: 0; transition: opacity 150ms ease, background-color 150ms ease; }
.m__ed .i { width: .95rem; height: .95rem; }
.m.u:hover .m__ed, .m__ed:focus-visible { opacity: 1; }
@media (hover: none) { .m__ed { opacity: .7; } }
@media (hover: hover) and (pointer: fine) { .m__ed:hover { background: var(--btn-h); color: var(--ink); } }
.m.u.is-edit { width: min(100%, 36rem); padding: .5rem; background: var(--bg-2); border: 1px solid var(--line); box-shadow: none; }
.m__ta { display: block; width: 100%; box-sizing: border-box; min-height: 3rem; padding: .6rem .7rem; border: 0; border-radius: .7rem; background: transparent; color: var(--ink); font: inherit; resize: none; outline: none; }
.m__eb { display: flex; align-items: center; gap: .4rem; padding: .3rem .2rem .1rem; }
.m__eh { flex: 1; color: var(--mute); font-size: .66rem; }
@media (max-width: 560px) { .m__eh { display: none; } .m__eb { justify-content: flex-end; } }
/* "/" komut menüsü: yazma kutusunun üstünde */
.slash { position: absolute; left: 0; right: 0; bottom: calc(100% + .5rem); z-index: 30; max-height: min(50vh, 22rem); overflow-y: auto; padding: .3rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-3); }
.slash[hidden] { display: none; }
#stage.home .slash { bottom: auto; top: calc(100% - 1.6rem); }
.slash h6 { margin: .35rem .6rem .25rem; font-size: .6rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.slash button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: var(--r-1); background: none; color: var(--ink); font: inherit; font-size: .78rem; text-align: left; cursor: pointer; }
.slash button .i { width: 1rem; height: 1rem; color: var(--acc); flex: none; }
.slash button b { font-weight: 600; min-width: 4.6rem; }
.slash button span { color: var(--mute); }
.slash button[aria-selected="true"] { background: var(--btn); }
body.glass .slash { background: var(--lg-sheen), var(--lg-menu); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); }
/* Sohbeti paylaş penceresi */
#shareBtn { flex: none; }
dialog.shd { width: min(30rem, calc(100vw - 2rem)); padding: 1.3rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
dialog.shd::backdrop { background: rgba(5, 7, 14, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.shd[open] { animation: qvIn 220ms cubic-bezier(.2, .9, .3, 1) both; }
.shd h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.shd > p { margin: 0 0 .9rem; color: var(--mute); font-size: .8rem; line-height: 1.5; }
.shd__link { display: flex; gap: .45rem; margin-bottom: .5rem; }
.shd__link[hidden] { display: none; }
.shd__link input { flex: 1; min-width: 0; min-height: 2.5rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--btn); color: var(--ink); font: inherit; font-size: .78rem; }
.shd__st { min-height: 1.1rem; margin: 0 0 .5rem !important; font-size: .74rem !important; color: var(--ink-2) !important; }
.shd__acts { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.shd__acts .sp { flex: 1; }
.shd__acts [hidden] { display: none; }
.shd__del { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { dialog.shd[open] { animation: none; } }
/* ---------- Yanlış Defteri ---------- */
.nb__lead { margin: -.2rem 0 1rem; color: var(--mute); font-size: .82rem; line-height: 1.55; }
.nb__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.nb__stats div { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2); }
.nb__stats b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.nb__stats span { color: var(--mute); font-size: .7rem; }
.nb__tabs { display: inline-flex; gap: .25rem; padding: .25rem; margin-bottom: 1rem; border-radius: 99px; background: var(--btn); }
.nb__tabs button { min-height: 2.2rem; padding: 0 .9rem; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.nb__tabs button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.nb__g h3 { display: flex; align-items: center; gap: .45rem; margin: 1.2rem 0 .6rem; font-size: .9rem; }
.nb__g h3 span { padding: 0 .45rem; border-radius: 99px; background: var(--acc-soft); color: var(--acc); font-size: .66rem; }
.nb__i { padding: .9rem 1rem; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2); }
.nb__q .md { font-size: .86rem; }
.nb__a { margin-top: .5rem; font-size: .8rem; }
.nb__a summary { color: var(--acc); cursor: pointer; font-weight: 600; }
.nb__a p { margin: .35rem 0 0; }
.nb__m { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; color: var(--mute); font-size: .7rem; }
.nb__s { display: inline-flex; gap: .2rem; }
.nb__s i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line-2, rgba(255,255,255,.18)); }
.nb__s i.on { background: var(--good, #22c55e); }
.nb__b { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.nb__b .btn { font-size: .74rem; gap: .3rem; }
.nb__b .btn .i { width: .9rem; height: .9rem; }
.nb__b .btn--icon { margin-left: auto; }
.nb__e { color: var(--mute); font-size: .82rem; }
.nb__empty { display: grid; justify-items: center; gap: .6rem; padding: 2.4rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-3); text-align: center; color: var(--mute); }
.nb__empty > .i { width: 2rem; height: 2rem; color: var(--acc); }
.nb__empty p { margin: 0; max-width: 26rem; font-size: .84rem; }
.sv-acts .btn.is-on { color: var(--good, #22c55e); opacity: 1; }
/* ---------- Test çöz ---------- */
.qz__form { display: grid; gap: .8rem; max-width: 36rem; }
.qz__form[hidden] { display: none; }
.qz__f { display: grid; gap: .3rem; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.qz__f input, .qz__f select { min-height: 2.75rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r-2, .8rem); background: var(--bg-2); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 400; }
.qz__row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.qz__form > .btn { justify-self: start; gap: .4rem; }
.qz__st { min-height: 1.2rem; margin: 0; color: var(--ink-2); font-size: .78rem; }
.qz__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; margin-bottom: .9rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg); }
.qz__head div { display: grid; }
.qz__tp { color: var(--mute); font-size: .7rem; }
.qz__head b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.qz__score { font-size: 1.5rem; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.qz__q { display: flex; gap: .7rem; padding: .9rem 1rem; margin-bottom: .7rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-2); }
.qz__q.is-ok { border-color: color-mix(in srgb, var(--good, #22c55e) 55%, transparent); }
.qz__q.is-bad { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.qz__n { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--btn); font-size: .76rem; font-weight: 700; }
.qz__c { flex: 1; min-width: 0; }
.qz__o { display: grid; gap: .4rem; margin-top: .6rem; }
.qz__o button { display: flex; align-items: flex-start; gap: .6rem; width: 100%; min-height: 2.6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--bg); color: var(--ink); font: inherit; font-size: .84rem; text-align: left; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.qz__o button > span { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--btn); font-size: .7rem; font-weight: 700; }
.qz__o button .md p { margin: 0; }
.qz__o button[aria-checked="true"] { border-color: var(--acc); background: var(--acc-soft); }
.qz__o button[aria-checked="true"] > span { background: var(--acc); color: #fff; }
.qz__o button.ok { border-color: var(--good, #22c55e); background: color-mix(in srgb, var(--good, #22c55e) 14%, transparent); }
.qz__o button.ok > span { background: var(--good, #22c55e); color: #fff; }
.qz__o button.bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.qz__o button:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) { .qz__o button:not(:disabled):hover { border-color: var(--line-2, rgba(255,255,255,.25)); } }
.qz__e { display: flex; gap: .45rem; margin-top: .6rem; padding: .6rem .7rem; border-radius: .7rem; background: var(--bg); color: var(--ink-2); font-size: .8rem; }
.qz__e > .i { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--acc); }
.qz__e .md p { margin: 0; }
.qz__acts { display: flex; justify-content: flex-end; gap: .5rem; margin: 1rem 0 2rem; }
.qz__acts .btn { gap: .35rem; }
@media (max-width: 560px) { .nb__stats b { font-size: 1.15rem; } .qz__q { padding: .8rem; gap: .5rem; } .qz__row { grid-template-columns: 1fr 1fr; } }
/* Ayarlar › Hakkında: klavye kısayolları */
.keys { margin: 0; padding: .3rem .2rem; }
.keys div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); font-size: .78rem; }
.keys div:last-child { border-bottom: 0; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--mute); text-align: right; }
.keys kbd { display: inline-block; min-width: 1.4rem; padding: .1rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: .35rem; background: var(--btn); font: 600 .7rem "Geist Mono", ui-monospace, Menlo, Consolas, monospace; text-align: center; }
