/* Elio — Veri Merkezi yapay zekâ asistanı (site geneli, sağ alt) */
.elio, .elio-panel, .elio-geri { --e-ink: var(--ink, #0F2A26); --e-blue: var(--blue, #2C4B9B); font-family: var(--font, system-ui, sans-serif); }
.elio .hidden, .elio-panel .hidden, .elio-panel.hidden, .elio-geri.hidden, .elio.hidden { display: none !important; }

/* Avatar: marka amblemindeki sarı, mavi ve pembe tonlardan yumuşak bir küre */
.elio-avatar { position: relative; flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, rgb(255 255 255 / .9) 0 7%, transparent 8%),
    radial-gradient(circle at 28% 74%, #ff5c93 0, transparent 52%),
    radial-gradient(circle at 76% 28%, #4f86ff 0, transparent 55%),
    radial-gradient(circle at 74% 78%, #ffc21a 0, transparent 52%),
    #2C4B9B;
  box-shadow: inset 0 -6px 12px rgb(15 23 42 / .28), inset 0 2px 4px rgb(255 255 255 / .5); }
.elio-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgb(255 255 255 / .22), transparent 40%); animation: elio-don 6s linear infinite; }
.elio-avatar--sm { width: 30px; height: 30px; }
.elio-avatar--buyuk { width: 64px; height: 64px; }
@keyframes elio-don { to { transform: rotate(360deg); } }

/* Başlatıcı */
.elio { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; justify-items: end; gap: 12px; }
.elio-baslat-kap { position: relative; }
.elio-baslat { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 10px; border: 0; border-radius: 999px; background: var(--e-ink); color: #fff; cursor: pointer; font: inherit; text-align: left;
  box-shadow: 0 18px 40px -14px rgb(15 42 38 / .55), inset 0 0 0 1px rgb(255 255 255 / .08); transition: transform .3s var(--ease, ease), box-shadow .3s; }
.elio-baslat:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgb(15 42 38 / .6), inset 0 0 0 1px rgb(255 255 255 / .14); }
.elio-baslat:focus-visible { outline: 3px solid var(--e-blue); outline-offset: 3px; }
.elio-baslat-metin { display: grid; line-height: 1.2; }
.elio-baslat-metin b { font-weight: 500; font-size: 15px; }
.elio-baslat-metin small { font-size: 12.5px; color: rgb(255 255 255 / .62); }
.elio-rozet { position: absolute; top: -4px; left: 34px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: #e5484d; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 0 0 2px var(--surface, #fff); }
.elio-gizle { position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface, #fff); color: var(--ink-60, #555); box-shadow: 0 2px 8px rgb(15 42 38 / .2); cursor: pointer; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.elio-gizle svg { width: 12px; height: 12px; }
.elio-baslat-kap:hover .elio-gizle, .elio-gizle:focus-visible { opacity: 1; transform: none; }
.elio-geri { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 40px; height: 40px; padding: 5px; border: 0; border-radius: 50%; background: var(--surface, #fff); box-shadow: 0 6px 18px rgb(15 42 38 / .2); opacity: .75; cursor: pointer; transition: opacity .2s; }
.elio-geri:hover { opacity: 1; }
@media (max-width: 640px) {
  .elio { right: 14px; bottom: 14px; }
  .elio-baslat { height: 56px; padding: 0 8px; }
  .elio-baslat-metin { display: none; }
  .elio-gizle { opacity: 1; transform: none; }
}

/* Öneri balonu */
.elio-teaser { position: relative; max-width: 290px; animation: elio-gir .4s var(--ease, ease) both; }
.elio-teaser-govde { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 0; border-radius: 18px 18px 6px 18px; background: var(--surface, #fff); color: var(--ink-80, #333); font: inherit; font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer; box-shadow: 0 18px 44px -16px rgb(15 42 38 / .35), 0 0 0 1px var(--line-2, #e7ecea); }
.elio-teaser-kapat { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface, #fff); color: var(--ink-60, #555); box-shadow: 0 2px 8px rgb(15 42 38 / .2); cursor: pointer; }
.elio-teaser-kapat svg { width: 12px; height: 12px; }
@keyframes elio-gir { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Panel */
.elio-panel { position: fixed; right: 20px; bottom: 20px; z-index: 81; width: 400px; height: min(660px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface, #fff); color: var(--e-ink);
  box-shadow: 0 40px 90px -30px rgb(15 42 38 / .45), 0 0 0 1px rgb(15 42 38 / .06); transform-origin: bottom right; animation: elio-ac .35s var(--ease, ease) both; }
@keyframes elio-ac { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (max-width: 640px) { .elio-panel { inset: 0; width: auto; height: auto; border-radius: 0; } }

.elio-bas { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line-2, #e7ecea); }
.elio-bas-metin { flex: 1; display: grid; min-width: 0; line-height: 1.25; }
.elio-bas-metin b { font-family: var(--display, inherit); font-weight: 500; font-size: 17px; }
.elio-durum { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-60, #666); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elio-durum i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px rgb(34 160 107 / .16); }
.elio-panel[data-mod="waiting"] .elio-durum i { background: #e5a000; box-shadow: 0 0 0 3px rgb(229 160 0 / .18); }
.elio-ikon { flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; display: grid; place-items: center; background: none; color: var(--ink-60, #666); cursor: pointer; transition: background .2s, color .2s; }
.elio-ikon:hover { background: var(--canvas, #f3f5f4); color: var(--e-ink); }
.elio-ikon:focus-visible { outline: 2px solid var(--e-blue); outline-offset: 1px; }
.elio-ikon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.elio-ikon svg use { fill: none; }
#vmAssistantMuteIcon path:first-child { fill: currentColor; stroke: none; }
.elio-ses-kapali { display: none; }
#vmAssistantMute[aria-pressed="true"] .elio-ses-dalga { display: none; }
#vmAssistantMute[aria-pressed="true"] .elio-ses-kapali { display: inline; }

.elio-serit { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; background: #eaf7f0; color: #145c3c; border-bottom: 1px solid #d3eedf; }
.elio-serit i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; animation: elio-nabiz 1.6s ease-out infinite; }
.elio-panel[data-mod="waiting"] .elio-serit { background: #fff6e0; color: #7a5200; border-color: #f6e7bf; }
.elio-panel[data-mod="waiting"] .elio-serit i { background: #e5a000; }
@keyframes elio-nabiz { 0% { box-shadow: 0 0 0 0 rgb(34 160 107 / .45); } 100% { box-shadow: 0 0 0 8px rgb(34 160 107 / 0); } }

/* Mesajlar */
.elio-mesajlar { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.elio-karsilama { display: grid; justify-items: start; gap: 10px; padding: 6px 2px 4px; }
.elio-karsilama h2 { margin-top: 6px; font-family: var(--display, inherit); font-weight: 500; font-size: 24px; letter-spacing: -.015em; }
.elio-karsilama p { font-size: 14.5px; line-height: 1.55; color: var(--ink-60, #666); }
.elio-oneriler { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.elio-oneri { display: grid; gap: 10px; align-content: start; padding: 14px; border: 0; border-radius: 16px; background: var(--canvas, #f3f5f4); color: var(--e-ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.elio-oneri:hover { background: var(--surface, #fff); box-shadow: 0 0 0 1px var(--line, #dce3e0), 0 10px 22px -14px rgb(15 42 38 / .35); transform: translateY(-1px); }
.elio-oneri svg { width: 20px; height: 20px; color: var(--e-blue); }
.elio-oneri b { display: block; font-weight: 500; font-size: 14px; }
.elio-oneri small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-60, #666); }
.elio-canli-kart { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 2px; padding: 12px 12px 12px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2, #e7ecea); }
.elio-canli-kart > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.elio-canli-kart b { font-weight: 500; font-size: 14px; }
.elio-canli-kart small { font-size: 12.5px; color: var(--ink-60, #666); }
.elio-canli-nokta { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgb(34 160 107 / .15); }
.elio-panel[data-mesai="kapali"] .elio-canli-nokta { background: #9aa5a1; box-shadow: 0 0 0 4px rgb(154 165 161 / .18); }
.elio-canli-dugme { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--e-ink); color: var(--on-ink, #fff); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.elio-canli-dugme:hover { background: var(--e-blue); }

.elio-msj { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: elio-gir .3s var(--ease, ease) both; }
.elio-msj .elio-avatar { width: 26px; height: 26px; }
.elio-msj-govde { display: grid; gap: 6px; max-width: 84%; min-width: 0; }
.elio-balon { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.elio-balon a { color: var(--e-blue); text-decoration: underline; text-underline-offset: 2px; }
.elio-balon b { font-weight: 600; }
.elio-balon code { padding: 1px 5px; border-radius: 6px; background: rgb(15 42 38 / .07); font-family: var(--mono, ui-monospace, Consolas, monospace); font-size: .88em; }
.elio-balon .elio-kod { margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: #0F2A26; color: #E8F1EE; overflow-x: auto; white-space: pre; font-size: 12.5px; line-height: 1.45; }
.elio-balon .elio-kod code { padding: 0; background: none; color: inherit; font-size: inherit; }
.elio-sistem .elio-aksiyonlar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.elio-zaman { font-size: 11.5px; color: var(--ink-40, #999); padding-inline: 4px; font-variant-numeric: tabular-nums; }
.elio-msj--bot .elio-balon { background: var(--canvas, #f3f5f4); border-bottom-left-radius: 6px; }
.elio-msj--user { justify-content: flex-end; }
.elio-msj--user .elio-msj-govde { justify-items: end; }
.elio-msj--user .elio-balon { background: var(--e-ink); color: var(--on-ink, #fff); border-bottom-right-radius: 6px; }
.elio-msj--user .elio-balon a { color: #cfe0ff; }
.elio-msj--admin .elio-balon { background: #eaf7f0; color: #0f3d29; border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px #d3eedf; }
.elio-temsilci { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #22a06b; color: #fff; font-size: 11px; font-weight: 600; }
.elio-etiket { font-size: 11.5px; font-weight: 500; color: #1d7a52; padding-inline: 4px; letter-spacing: .02em; }
.elio-sistem { align-self: center; max-width: 92%; display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--canvas, #f3f5f4); color: var(--ink-60, #666); font-size: 12.5px; text-align: center; animation: elio-gir .3s both; }
.elio-sistem svg { flex: none; width: 14px; height: 14px; }
.elio-sistem--hata { background: #fff4e5; color: #8a4b00; }
.elio-sistem--katildi { background: #eaf7f0; color: #145c3c; }

/* Aksiyon düğmeleri */
.elio-aksiyonlar { display: flex; flex-wrap: wrap; gap: 6px; }
.vmActionBtn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface, #fff); color: var(--e-ink); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line, #dce3e0); transition: background .2s, box-shadow .2s, color .2s; }
.vmActionBtn:hover { box-shadow: inset 0 0 0 1px var(--e-blue); color: var(--e-blue); }
.vmActionBtn svg { width: 14px; height: 14px; }
.vmActionBtn[data-action-type="apply_coupon"], .vmActionBtn[data-action-type="live_support"] { background: var(--e-ink); color: var(--on-ink, #fff); box-shadow: none; }
.vmActionBtn[data-action-type="apply_coupon"]:hover, .vmActionBtn[data-action-type="live_support"]:hover { background: var(--e-blue); color: var(--on-blue, #fff); }

/* Kupon kartı */
.elio-kupon { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line, #dce3e0); }
.elio-kupon::before, .elio-kupon::after { content: ""; position: absolute; left: 76px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line, #dce3e0); }
.elio-kupon::before { top: -7px; clip-path: inset(50% 0 0 0); }
.elio-kupon::after { bottom: -7px; clip-path: inset(0 0 50% 0); }
.elio-kupon-oran { grid-row: span 3; width: 62px; font-family: var(--display, inherit); font-weight: 500; font-size: 24px; line-height: 1; color: var(--e-blue); border-right: 1.5px dashed var(--line, #dce3e0); padding: 6px 12px 6px 0; }
.elio-kupon-ad { font-weight: 500; font-size: 14px; }
.elio-kupon-kosul { font-size: 12.5px; color: var(--ink-60, #666); }
.elio-kupon-alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.elio-kupon-kod { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; background: var(--canvas, #f3f5f4); }

/* Yazıyor göstergesi */
.elio-yaziyor { display: inline-flex; gap: 4px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--canvas, #f3f5f4); }
.vm-typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-40, #999); animation: elio-nokta 1.2s infinite ease-in-out; }
.vm-typing-dot:nth-child(2) { animation-delay: .15s; }
.vm-typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes elio-nokta { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Hızlı sorular + yazma alanı */
.elio-cipler { display: flex; gap: 6px; padding: 8px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.elio-cipler::-webkit-scrollbar { display: none; }
.elio-cipler .vmChip { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--canvas, #f3f5f4); color: var(--ink-80, #333); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.elio-cipler .vmChip:hover { background: var(--e-ink); color: var(--on-ink, #fff); }
.elio-yaz { display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 6px; padding: 6px 6px 6px 16px; border-radius: 22px; background: var(--canvas, #f3f5f4); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.elio-yaz:focus-within { background: var(--surface, #fff); box-shadow: inset 0 0 0 1.5px var(--e-blue), 0 0 0 4px var(--blue-08, rgb(44 75 155 / .08)); }
.elio-yaz textarea { flex: 1; min-height: 24px; max-height: 120px; padding: 7px 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 15px; line-height: 1.45; color: var(--e-ink); }
.elio-gonder { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--e-ink); color: var(--on-ink, #fff); cursor: pointer; transition: background .2s, opacity .2s, transform .2s; }
.elio-gonder svg { width: 17px; height: 17px; }
.elio-gonder:hover:not(:disabled) { background: var(--e-blue); }
.elio-gonder:disabled { opacity: .3; cursor: default; }
.elio-gonder:focus-visible { outline: 2px solid var(--e-blue); outline-offset: 2px; }
.elio-alt { padding: 2px 16px 12px; font-size: 11.5px; line-height: 1.4; color: var(--ink-40, #999); text-align: center; }
.elio-alt a { color: inherit; text-decoration: underline; }

/* Panel içi sayfalar (canlı destek, havale) */
.elio-sayfa { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--surface, #fff); animation: elio-kay .3s var(--ease, ease) both; }
@keyframes elio-kay { from { transform: translateX(24px); opacity: 0; } }
.elio-sayfa-bas { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 10px; border-bottom: 1px solid var(--line-2, #e7ecea); }
.elio-sayfa-bas b { display: block; font-family: var(--display, inherit); font-weight: 500; font-size: 17px; }
.elio-sayfa-bas small { font-size: 12.5px; color: var(--ink-60, #666); }
.elio-form { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 14px; padding: 18px 16px 20px; }
.elio-form .field { gap: 6px; }
.elio-form label { font-size: 13.5px; }
.elio-form input, .elio-form textarea { font-size: 15px; }
.elio-form-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.elio-form-not { padding: 10px 12px; border-radius: 12px; background: var(--canvas, #f3f5f4); font-size: 13px; line-height: 1.45; color: var(--ink-80, #333); }
.elio-form-not--ok { background: #eaf7f0; color: #145c3c; }
.elio-form-kvkk { font-size: 12px; color: var(--ink-60, #666); text-align: center; }
.elio-form-kvkk a { color: inherit; text-decoration: underline; }
.elio-form-sonuc { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: #eaf7f0; color: #145c3c; }
.elio-form-sonuc.is-hata { background: #fff4e5; color: #8a4b00; }
@media (max-width: 400px) { .elio-form-iki { grid-template-columns: 1fr; } }

/* Panel açıkken başlatıcı gizlenir */
body.elio-acik .elio { display: none; }
@media (max-width: 640px) { body.elio-acik { overflow: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .elio-avatar::after, .elio-serit i, .vm-typing-dot { animation: none; }
  .elio-panel, .elio-teaser, .elio-msj, .elio-sayfa, .elio-sistem { animation: none; }
}

/* Minimal başlatıcı: yalnız küre; "Elio'ya sorun" etiketi üzerine gelince yanında açılır */
.elio-baslat { position: relative; height: 58px; width: 58px; padding: 0; justify-content: center; background: none; box-shadow: none; border-radius: 50%; }
.elio-baslat:hover { transform: translateY(-2px); box-shadow: none; }
.elio-baslat .elio-avatar { width: 58px; height: 58px; box-shadow: inset 0 -8px 16px rgb(15 23 42 / .28), inset 0 2px 5px rgb(255 255 255 / .5), 0 14px 30px -10px rgb(44 75 155 / .55); transition: transform .3s var(--ease, ease); }
.elio-baslat:hover .elio-avatar { transform: scale(1.04); }
.elio-baslat-metin { position: absolute; right: calc(100% + 10px); top: 50%; display: block; padding: 8px 14px; border-radius: 999px; background: var(--surface, #fff); color: var(--e-ink); white-space: nowrap; box-shadow: 0 8px 24px -10px rgb(15 42 38 / .3), 0 0 0 1px var(--line-2, #e7ecea); opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .2s, transform .2s; }
.elio-baslat-metin b { font-size: 14px; }
.elio-baslat-metin small { display: none; }
.elio-baslat:hover .elio-baslat-metin, .elio-baslat:focus-visible .elio-baslat-metin { opacity: 1; transform: translate(0, -50%); }
.elio-baslat:focus-visible { outline: 3px solid var(--e-blue); outline-offset: 3px; }
.elio-rozet { top: -2px; left: auto; right: -2px; }
.elio-gizle { top: -6px; right: auto; left: -6px; }
@media (max-width: 640px) { .elio-baslat, .elio-baslat .elio-avatar { width: 54px; height: 54px; } .elio-baslat-metin { display: none; } }

/* Koyu tema (paneller): yeşil/amber açık zeminler koyu karşılıklarıyla */
html[data-renk="koyu"] .elio-msj--user .elio-balon a { color: var(--e-blue); }
html[data-renk="koyu"] .elio-msj--admin .elio-balon { background: rgb(106 214 166 / .12); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(106 214 166 / .25); }
html[data-renk="koyu"] .elio-etiket { color: #6AD6A6; }
html[data-renk="koyu"] .elio-serit { background: rgb(106 214 166 / .12); color: #A7EBCB; border-color: rgb(106 214 166 / .2); }
html[data-renk="koyu"] .elio-panel[data-mod="waiting"] .elio-serit { background: rgb(242 196 107 / .12); color: #F2C46B; border-color: rgb(242 196 107 / .2); }
html[data-renk="koyu"] .elio-sistem--katildi, html[data-renk="koyu"] .elio-form-not--ok, html[data-renk="koyu"] .elio-form-sonuc { background: rgb(106 214 166 / .12); color: #A7EBCB; }
html[data-renk="koyu"] .elio-sistem--hata, html[data-renk="koyu"] .elio-form-sonuc.is-hata { background: rgb(242 196 107 / .12); color: #F2C46B; }
html[data-renk="koyu"] .elio-panel { box-shadow: 0 40px 90px -30px rgb(0 0 0 / .8), 0 0 0 1px var(--line); }
html[data-renk="koyu"] .elio-rozet { box-shadow: 0 0 0 2px var(--canvas); }
/* Panelde başlatıcı, sayfa altındaki bildirimle çakışmasın */
.pn ~ .elio, body:has(.pn) .elio { bottom: 22px; right: 22px; }

/* Hızlı sorular kesilmesin: satıra sığmayan alt satıra geçer */
.elio-cipler { flex-wrap: wrap; overflow: visible; padding-top: 10px; }
.elio-cipler .vmChip { height: 30px; padding: 0 11px; font-size: 12.5px; }

/* Önceki sohbetler */
.elio-son { width: 100%; display: grid; gap: 6px; margin-top: 6px; }
.elio-son-bas { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; font-size: 12.5px; color: var(--ink-60); }
.elio-son-bas b { font-weight: 500; letter-spacing: .02em; }
.elio-son-tumu { border: 0; background: none; font: inherit; color: var(--e-blue); cursor: pointer; padding: 4px; }
.elio-son-oge { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2, #e7ecea); transition: background .2s; color: var(--e-ink); }
.elio-son-oge:hover { background: var(--canvas, #f3f5f4); }
.elio-son-oge svg { flex: none; width: 16px; height: 16px; color: var(--ink-60, #666); }
.elio-son-oge span { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elio-son-oge small { flex: none; font-size: 12px; color: var(--ink-40, #999); }
.elio-gecmis { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 14px; padding: 16px; }
.elio-gecmis-liste { display: grid; gap: 6px; }
.elio-gecmis-oge { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--canvas, #f3f5f4); font: inherit; text-align: left; cursor: pointer; color: var(--e-ink); transition: box-shadow .2s, background .2s; }
.elio-gecmis-oge:hover { background: var(--surface, #fff); box-shadow: inset 0 0 0 1px var(--line, #dce3e0); }
.elio-gecmis-oge.is-aktif { box-shadow: inset 0 0 0 1.5px var(--e-blue); }
.elio-gecmis-oge b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elio-gecmis-oge small { font-size: 12px; color: var(--ink-40, #999); }
.elio-gecmis-oge span { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-60, #666); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elio-gecmis-bos { padding: 18px; text-align: center; font-size: 13.5px; color: var(--ink-60, #666); }
.elio-bas .elio-geri-don { margin-left: -6px; margin-right: -4px; }

/* Alt bilgi: Powered by + logo */
.elio-alt { display: grid; gap: 6px; justify-items: center; }
.elio-alt p { margin: 0; }
.elio-imza { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-40, #999); text-decoration: none; opacity: .85; transition: opacity .2s; }
.elio-imza:hover { opacity: 1; }
.elio-imza img { height: 13px; width: auto; }
.elio-imza-koyu { display: none; }
html[data-renk="koyu"] .elio-imza-acik { display: none; }
html[data-renk="koyu"] .elio-imza-koyu { display: block; }
.elio-alt p { font-size: 11.5px; line-height: 1.4; color: var(--ink-40, #999); }
.elio-durum { padding: 3px 0 3px 4px; margin-left: -4px; }
@media (pointer: coarse) { .elio-gizle { width: 30px; height: 30px; top: -10px; left: -10px; } .elio-gizle svg { width: 14px; height: 14px; } }
html[data-renk="koyu"] .elio-balon code { background: rgb(255 255 255 / .1); }

/* Sohbet gövdesi yana kaymaz; kartlar ve satırlar panel genişliğine sığar (11.10.2026) */
.elio-mesajlar { overflow-x: hidden; }
.elio-mesajlar > * { max-width: 100%; min-width: 0; }
.elio-oneriler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elio-oneri { min-width: 0; }
.elio-oneri b, .elio-oneri small { overflow-wrap: anywhere; }
.elio-canli-kart { min-width: 0; }
.elio-canli-kart > span:nth-child(2) { min-width: 0; }
.elio-canli-kart small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elio-canli-dugme { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Taşma: karşılama ızgarası tek sütun = panel genişliği (uzun "önceki sohbet" başlıkları sütunu genişletip kartları sağa itiyordu) */
.elio-karsilama { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.elio-karsilama > * { min-width: 0; max-width: 100%; }
.elio-oneriler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elio-canli-kart > span:nth-child(2) { min-width: 0; }
.elio-canli-kart .btn, .elio-canli-kart button { flex: none; white-space: nowrap; }
.elio-mesajlar { overflow-x: hidden; }

/* WhatsApp'tan devam: sohbet içi numara kutusu (2026-10-20) */
.elio-wa { flex: 1 1 100%; display: grid; gap: 8px; margin-top: 4px; padding: 12px; border-radius: 14px; background: #f1faf4; box-shadow: inset 0 0 0 1px #cfe9d8; font-size: 13.5px; }
.elio-wa label { font-weight: 600; color: var(--e-ink); }
.elio-wa-satir { display: flex; gap: 6px; }
.elio-wa input { min-width: 0; flex: 1; height: 40px; padding: 0 12px; border: 1px solid #cfdcd6; border-radius: 10px; background: #fff; font: inherit; color: var(--e-ink); }
.elio-wa input:focus { outline: 2px solid #25d366; outline-offset: 1px; border-color: transparent; }
.elio-wa-gonder { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #1fa855; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.elio-wa-gonder svg { width: 16px; height: 16px; fill: currentColor; }
.elio-wa-gonder:disabled { opacity: .6; cursor: progress; }
.elio-wa small { color: var(--ink-60, #5b6b66); line-height: 1.4; }
.elio-wa-sonuc { margin: 0; min-height: 0; font-size: 13px; color: var(--ink-60, #5b6b66); }
.elio-wa-sonuc:empty { display: none; }
.elio-wa-sonuc--hata { color: #c0392b; }
.elio-wa-tamam { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: #f1faf4; color: #14532d; font-size: 13.5px; }
.elio-wa-tamam svg { width: 16px; height: 16px; flex: 0 0 auto; }
.elio-wa-tamam a { font-weight: 600; color: #15803d; }
.elio-oneriler > .elio-oneri:last-child:nth-child(odd) { grid-column: 1 / -1; }
