/* =====================================================================
   LikedWin Canlı Destek — ziyaretçi penceresi
   ---------------------------------------------------------------------
   Kendi tasarım değişkenleri (.lwc üzerinde) — sayfanın token'larına
   bağımlı değil; hem ana sitede hem panelde hem giriş sayfalarında
   aynı görünür. Gece modu: <html data-theme="dark"> ya da (nitelik
   yokken) cihaz tercihi.

   Kural: gradyan YOK (düz renk). Sayfa CSS'inin sızmaması için .lwc
   altında sıfırlama var; bileşen kuralları .lwc ile başlar.
   ===================================================================== */

:root { --lwc-loaded: 1; }

.lwc {
    --lwc-brand: #2544d8;
    --lwc-brand-hover: #1c34a8;
    --lwc-brand-soft: #eef1fe;
    --lwc-brand-line: #d9dffb;
    --lwc-on-brand: #ffffff;
    --lwc-link: #2544d8;

    --lwc-bg: #ffffff;
    --lwc-bg-2: #f5f6fa;
    --lwc-surface: #ffffff;
    --lwc-surface-2: #f1f3f8;
    --lwc-surface-3: #e8ebf2;
    --lwc-line: #e6e8ef;
    --lwc-line-2: #d8dce6;
    --lwc-text: #161a22;
    --lwc-text-2: #3b4252;
    --lwc-muted: #6b7280;
    --lwc-muted-2: #9aa1ad;

    --lwc-ok: #16a34a;     --lwc-ok-bg: #e7f7ee;
    --lwc-warn: #b7791f;   --lwc-warn-bg: #fff6e5;
    --lwc-err: #dc2626;    --lwc-err-bg: #fdecec;
    --lwc-run: #2544d8;    --lwc-run-bg: #eef1fe;

    --lwc-shadow: 0 30px 70px -18px rgba(15, 23, 42, .32), 0 10px 24px -10px rgba(15, 23, 42, .16);
    --lwc-shadow-sm: 0 6px 18px -8px rgba(15, 23, 42, .18);
    --lwc-card-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -14px rgba(15, 23, 42, .22);
    --lwc-radius: 22px;
    --lwc-ease: cubic-bezier(.22, .9, .24, 1);
    --lwc-spring: cubic-bezier(.34, 1.56, .64, 1);
    --lwc-z: 2147482000;

    position: fixed;
    z-index: var(--lwc-z);
    right: 20px;
    bottom: 20px;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--lwc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
}
.lwc[data-pos="left"] { right: auto; left: 20px; }

/* ---------- gece modu ---------- */
:root[data-theme="dark"] .lwc {
    --lwc-brand: #3d5cf0;
    --lwc-brand-hover: #5673ff;
    --lwc-brand-soft: rgba(123, 141, 255, .14);
    --lwc-brand-line: rgba(123, 141, 255, .28);
    --lwc-link: #8b9bff;
    --lwc-bg: #16191d;
    --lwc-bg-2: #111315;
    --lwc-surface: #1d2125;
    --lwc-surface-2: #252a2f;
    --lwc-surface-3: #2e343a;
    --lwc-line: #2c3237;
    --lwc-line-2: #3b4249;
    --lwc-text: #eceef1;
    --lwc-text-2: #c9ced5;
    --lwc-muted: #9aa3ad;
    --lwc-muted-2: #737c87;
    --lwc-ok: #4ade80;   --lwc-ok-bg: rgba(74, 222, 128, .12);
    --lwc-warn: #fbbf24; --lwc-warn-bg: rgba(251, 191, 36, .12);
    --lwc-err: #f87171;  --lwc-err-bg: rgba(248, 113, 113, .12);
    --lwc-run: #8b9bff;  --lwc-run-bg: rgba(123, 141, 255, .14);
    --lwc-shadow: 0 30px 70px -18px rgba(0, 0, 0, .7), 0 10px 24px -10px rgba(0, 0, 0, .5);
    --lwc-card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .lwc {
        --lwc-brand: #3d5cf0;
        --lwc-brand-hover: #5673ff;
        --lwc-brand-soft: rgba(123, 141, 255, .14);
        --lwc-brand-line: rgba(123, 141, 255, .28);
        --lwc-link: #8b9bff;
        --lwc-bg: #16191d;
        --lwc-bg-2: #111315;
        --lwc-surface: #1d2125;
        --lwc-surface-2: #252a2f;
        --lwc-surface-3: #2e343a;
        --lwc-line: #2c3237;
        --lwc-line-2: #3b4249;
        --lwc-text: #eceef1;
        --lwc-text-2: #c9ced5;
        --lwc-muted: #9aa3ad;
        --lwc-muted-2: #737c87;
        --lwc-ok: #4ade80;   --lwc-ok-bg: rgba(74, 222, 128, .12);
        --lwc-warn: #fbbf24; --lwc-warn-bg: rgba(251, 191, 36, .12);
        --lwc-err: #f87171;  --lwc-err-bg: rgba(248, 113, 113, .12);
        --lwc-run: #8b9bff;  --lwc-run-bg: rgba(123, 141, 255, .14);
        --lwc-shadow: 0 30px 70px -18px rgba(0, 0, 0, .7), 0 10px 24px -10px rgba(0, 0, 0, .5);
        --lwc-card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6);
    }
}

/* ---------- sıfırlama (sayfa CSS'i sızmasın) ---------- */
.lwc *, .lwc *::before, .lwc *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    color: inherit;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    max-width: none;
    min-width: 0;
    background: none;
    box-shadow: none;
    outline: none;
    float: none;
    line-height: inherit;
}
.lwc button { cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.lwc button:disabled { cursor: default; }
.lwc a { text-decoration: none; }
.lwc img, .lwc svg { display: block; }
.lwc svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lwc input, .lwc textarea { -webkit-appearance: none; appearance: none; border-radius: 0; }
.lwc ::selection { background: var(--lwc-brand); color: #fff; }
.lwc :focus-visible { outline: 2px solid var(--lwc-brand); outline-offset: 2px; }
/* Kendi odak halkası olan alanlarda ikinci çerçeve çıkmasın */
.lwc textarea:focus-visible, .lwc input:focus-visible { outline: none; }
.lwc [hidden] { display: none !important; }
/* Font Awesome ikonları (hizmet kartları) sıfırlamadan geri alınır */
.lwc i.fa-brands, .lwc i.fab { font-family: "Font Awesome 6 Brands"; font-weight: 400; }
.lwc i.fa-solid, .lwc i.fas, .lwc i.fa { font-family: "Font Awesome 6 Free"; font-weight: 900; }
.lwc i.fa-regular, .lwc i.far { font-family: "Font Awesome 6 Free"; font-weight: 400; }
.lwc i[class*="fa-"] { font-style: normal; font-variant: normal; line-height: 1; display: inline-block; text-rendering: auto; -webkit-font-smoothing: antialiased; }

/* =====================================================================
   BAŞLATICI (sağ alt balon)
   ===================================================================== */
.lwc-launcher {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lwc-brand);
    color: var(--lwc-on-brand);
    display: grid;
    place-items: center;
    box-shadow: 0 1px 6px rgba(15, 23, 42, .08), 0 4px 18px rgba(15, 23, 42, .16);
    transition: transform .25s cubic-bezier(.33, 0, 0, 1), background-color .2s ease;
    animation: lwc-pop-in .7s var(--lwc-spring) backwards;
    animation-delay: .35s;
}
.lwc-launcher:hover { transform: scale(1.1); background: var(--lwc-brand-hover); }
.lwc-launcher:active { transform: scale(.92); }
.lwc-launcher__icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: transform .16s linear, opacity .08s linear;
}
/* Balon ve ok yer değiştirir: biri dönerek küçülüp kaybolurken diğeri gelir */
.lwc-launcher__icon--chat svg { width: 22px; height: 26px; }
.lwc-launcher__icon--close { opacity: 0; transform: rotate(-60deg) scale(0); }
.lwc-launcher__icon--close svg { width: 24px; height: 24px; stroke-width: 2.4; }
.lwc.is-open .lwc-launcher__icon--chat { opacity: 0; transform: rotate(30deg) scale(0); }
.lwc.is-open .lwc-launcher__icon--close { opacity: 1; transform: none; }

.lwc-launcher__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    border: 2.5px solid var(--lwc-bg);
    transform: scale(0);
    transition: transform .4s var(--lwc-spring);
}
.lwc-launcher__badge.is-on { transform: scale(1); }
.lwc-launcher__badge.is-bump { animation: lwc-bump .5s var(--lwc-spring); }

.lwc-launcher__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--lwc-brand);
    opacity: 0;
    pointer-events: none;
}
.lwc.is-attention .lwc-launcher__ring { animation: lwc-ring 1.8s ease-out 2; }
.lwc.is-attention .lwc-launcher { animation: lwc-wiggle .9s ease; }

/* "Yardım mı lazım?" etiketi */
.lwc-label {
    position: absolute;
    right: 60px;
    bottom: 6px;
    white-space: nowrap;
    background: var(--lwc-surface);
    color: var(--lwc-text);
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: var(--lwc-card-shadow);
    border: 1px solid var(--lwc-line);
    opacity: 0;
    transform: translateX(10px) scale(.96);
    transition: opacity .35s ease, transform .45s var(--lwc-spring);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 7px;
}
.lwc[data-pos="left"] .lwc-label { right: auto; left: 60px; transform: translateX(-10px) scale(.96); }
.lwc-label.is-on { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.lwc-label__wave { display: inline-block; transform-origin: 70% 70%; animation: lwc-wave 2.2s ease-in-out infinite; }

/* =====================================================================
   PROAKTİF BALON (tetikleyici)
   ===================================================================== */
.lwc-teaser {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}
.lwc[data-pos="left"] .lwc-teaser { right: auto; left: 0; align-items: flex-start; }
.lwc-teaser__card {
    pointer-events: auto;
    position: relative;
    width: 100%;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 18px 18px 6px 18px;
    box-shadow: var(--lwc-shadow);
    padding: 14px 16px 14px;
    cursor: pointer;
    transform-origin: bottom right;
    animation: lwc-teaser-in .55s var(--lwc-spring) both;
}
.lwc[data-pos="left"] .lwc-teaser__card { border-radius: 18px 18px 18px 6px; transform-origin: bottom left; }
.lwc-teaser.is-leaving .lwc-teaser__card { animation: lwc-teaser-out .25s ease forwards; }
.lwc-teaser__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-right: 22px; }
.lwc-teaser__who { font-weight: 700; font-size: 13.5px; }
.lwc-teaser__head > div { min-width: 0; }
.lwc-teaser__role { font-size: 12px; color: var(--lwc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwc-teaser__text { font-size: 14px; color: var(--lwc-text-2); min-height: 20px; white-space: pre-wrap; word-wrap: break-word; }
.lwc-teaser__x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--lwc-muted);
    transition: background-color .2s ease, color .2s ease, transform .3s var(--lwc-spring);
}
.lwc-teaser__x:hover { background: var(--lwc-surface-2); color: var(--lwc-text); transform: rotate(90deg); }
.lwc-teaser__x svg { width: 14px; height: 14px; stroke-width: 2.4; }
.lwc-teaser__qr { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.lwc[data-pos="left"] .lwc-teaser__qr { justify-content: flex-start; }
.lwc-teaser__reply {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 14px;
    box-shadow: var(--lwc-shadow-sm);
    padding: 10px 12px 10px 14px;
    color: var(--lwc-muted);
    font-size: 13.5px;
    cursor: text;
    animation: lwc-rise .4s var(--lwc-ease) both;
    animation-delay: .15s;
}
.lwc-teaser__reply svg { width: 18px; height: 18px; margin-left: auto; color: var(--lwc-brand); }

/* =====================================================================
   PANEL
   ===================================================================== */
.lwc-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 392px;
    height: min(680px, calc(100vh - 98px));
    height: min(680px, calc(100dvh - 98px));
    background: var(--lwc-bg);
    border-radius: var(--lwc-radius);
    box-shadow: var(--lwc-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.94);
    transition: opacity .22s ease, transform .3s var(--lwc-ease), visibility 0s linear .3s;
    isolation: isolate;
    border: 1px solid var(--lwc-line);
}
.lwc[data-pos="left"] .lwc-panel { right: auto; left: 0; transform-origin: bottom left; }
.lwc.is-open .lwc-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .28s ease, transform .5s var(--lwc-spring), visibility 0s;
}

.lwc-views { position: relative; flex: 1 1 auto; overflow: hidden; }
.lwc-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--lwc-bg);
    transition: transform .42s var(--lwc-ease), opacity .3s ease;
    will-change: transform;
}
.lwc-view:not(.is-active) { pointer-events: none; }
.lwc-view.is-left  { transform: translateX(-28%); opacity: 0; }
.lwc-view.is-right { transform: translateX(100%); opacity: 1; }
.lwc-view.is-active { transform: none; opacity: 1; z-index: 2; }
.lwc-view.no-anim { transition: none !important; }

.lwc-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--lwc-line-2) transparent;
}
.lwc-scroll::-webkit-scrollbar { width: 6px; }
.lwc-scroll::-webkit-scrollbar-thumb { background: var(--lwc-line-2); border-radius: 3px; }

/* ---------- alt sekmeler ---------- */
.lwc-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 0 0 auto;
    background: var(--lwc-surface);
    border-top: 1px solid var(--lwc-line);
    padding: 6px 8px 8px;
    z-index: 3;
    transition: transform .35s var(--lwc-ease), margin .35s var(--lwc-ease);
}
.lwc-panel.is-chat .lwc-tabs { transform: translateY(100%); margin-top: -69px; }
.lwc-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 6px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lwc-muted);
    transition: color .25s ease, background-color .2s ease;
}
.lwc-tab:hover { color: var(--lwc-text); background: var(--lwc-surface-2); }
.lwc-tab svg { width: 22px; height: 22px; transition: transform .4s var(--lwc-spring); }
.lwc-tab.is-active { color: var(--lwc-brand); }
.lwc-tab.is-active svg { transform: translateY(-1px) scale(1.08); }
.lwc-tab__dot {
    position: absolute;
    top: 6px;
    left: calc(50% + 7px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border: 2px solid var(--lwc-surface);
    box-sizing: content-box;
    transform: scale(0);
    transition: transform .35s var(--lwc-spring);
}
.lwc-tab__dot.is-on { transform: scale(1); }
.lwc-tabs__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 34px;
    border-radius: 0 0 3px 3px;
    background: var(--lwc-brand);
    transition: transform .45s var(--lwc-spring);
}

/* =====================================================================
   ANA SAYFA
   ===================================================================== */
.lwc-hero {
    position: relative;
    background: var(--lwc-brand);
    color: #fff;
    padding: 22px 22px 70px;
    overflow: hidden;
    flex: 0 0 auto;
}
:root[data-theme="dark"] .lwc-hero { background: #2139b8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .lwc-hero { background: #2139b8; } }
.lwc-hero__art { position: absolute; right: -40px; top: -30px; width: 240px; height: 240px; opacity: .14; pointer-events: none; }
.lwc-hero__art circle { stroke: #fff; stroke-width: 1.5; }
.lwc-hero__art .lwc-hero__spin { transform-origin: 120px 120px; animation: lwc-spin 40s linear infinite; }
.lwc-hero__top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.lwc-logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35);
}
.lwc-logo svg { width: 24px; height: 24px; fill: #2544d8; stroke: none; }
.lwc-avatars { display: flex; align-items: center; }
.lwc-avatars .lwc-av { width: 36px; height: 36px; border: 2.5px solid var(--lwc-brand); margin-left: -10px; }
:root[data-theme="dark"] .lwc-avatars .lwc-av { border-color: #2139b8; }
.lwc-avatars .lwc-av:first-child { margin-left: 0; }
.lwc-hero__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: none;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    margin-left: 10px;
}
.lwc-hero__close svg { width: 18px; height: 18px; }
.lwc-hero__title {
    position: relative;
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lwc-hero__wave { display: inline-block; transform-origin: 70% 75%; animation: lwc-wave 2.4s ease-in-out .8s 2; }
.lwc-hero__sub { position: relative; margin-top: 6px; font-size: 15.5px; font-weight: 500; color: rgba(255, 255, 255, .86); }
.lwc-hero__status {
    position: relative;
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}
.lwc-live {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex: 0 0 auto;
}
.lwc-live.is-off { background: #fbbf24; }

.lwc-home { position: relative; margin-top: -48px; padding: 0 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.lwc-card {
    position: relative;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 18px;
    box-shadow: var(--lwc-card-shadow);
}
.lwc-rise > * { animation: lwc-rise .55s var(--lwc-ease) backwards; }
.lwc-rise > *:nth-child(1) { animation-delay: .04s; }
.lwc-rise > *:nth-child(2) { animation-delay: .1s; }
.lwc-rise > *:nth-child(3) { animation-delay: .16s; }
.lwc-rise > *:nth-child(4) { animation-delay: .22s; }
.lwc-rise > *:nth-child(5) { animation-delay: .28s; }
.lwc-rise > *:nth-child(6) { animation-delay: .34s; }

.lwc-start {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 16px 18px;
    text-align: left;
    transition: transform .3s var(--lwc-spring), border-color .2s ease, box-shadow .25s ease;
}
.lwc-start:hover { transform: translateY(-2px); border-color: var(--lwc-brand-line); }
.lwc-start__txt { flex: 1 1 auto; min-width: 0; }
.lwc-start__title { font-weight: 700; font-size: 15px; color: var(--lwc-text); }
.lwc-start__sub { font-size: 13px; color: var(--lwc-muted); margin-top: 2px; }
.lwc-start__go {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--lwc-brand);
    color: #fff;
    display: grid;
    place-items: center;
    transition: transform .35s var(--lwc-spring), background-color .2s ease;
}
.lwc-start:hover .lwc-start__go { transform: translateX(3px) rotate(-8deg); background: var(--lwc-brand-hover); }
.lwc-start__go svg { width: 18px; height: 18px; }

.lwc-resume { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; transition: transform .3s var(--lwc-spring), border-color .2s ease; }
.lwc-resume:hover { transform: translateY(-2px); border-color: var(--lwc-brand-line); }
.lwc-resume__label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lwc-brand); margin-bottom: 2px; }
.lwc-resume__body { flex: 1 1 auto; min-width: 0; }
.lwc-resume__name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.lwc-resume__prev { font-size: 13px; color: var(--lwc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwc-resume__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 11.5px; color: var(--lwc-muted-2); }
.lwc-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    animation: lwc-pop-in .5s var(--lwc-spring) both;
}

.lwc-block { padding: 14px 16px 16px; }
.lwc-block__title { font-size: 13px; font-weight: 700; color: var(--lwc-text); display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.lwc-block__title svg { width: 16px; height: 16px; color: var(--lwc-muted); }
.lwc-block__title a, .lwc-block__title button { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--lwc-link); }

.lwc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lwc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1.5px solid var(--lwc-brand-line);
    background: var(--lwc-surface);
    color: var(--lwc-brand);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease, transform .3s var(--lwc-spring), border-color .2s ease;
}
:root[data-theme="dark"] .lwc-chip { color: var(--lwc-link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .lwc-chip { color: var(--lwc-link); } }
.lwc-chip:hover { background: var(--lwc-brand); border-color: var(--lwc-brand); color: #fff; transform: translateY(-1px); }
.lwc-chip:active { transform: scale(.96); }

.lwc-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 46px;
    border-radius: 14px;
    background: var(--lwc-surface-2);
    border: 1.5px solid transparent;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.lwc-search:focus-within { border-color: var(--lwc-brand); background: var(--lwc-surface); box-shadow: 0 0 0 4px var(--lwc-brand-soft); }
.lwc-search svg { width: 18px; height: 18px; color: var(--lwc-muted); }
.lwc-search input { flex: 1 1 auto; height: 100%; font-size: 14px; color: var(--lwc-text); }
.lwc-search input::placeholder { color: var(--lwc-muted-2); }

.lwc-links { display: flex; flex-direction: column; margin: 4px -8px -6px; }
.lwc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--lwc-text-2);
    text-align: left;
    transition: background-color .2s ease, color .2s ease;
}
.lwc-link:hover { background: var(--lwc-surface-2); color: var(--lwc-text); }
.lwc-link span { flex: 1 1 auto; }
.lwc-link svg { width: 16px; height: 16px; color: var(--lwc-muted-2); transition: transform .3s var(--lwc-spring); }
.lwc-link:hover svg { transform: translateX(3px); color: var(--lwc-brand); }

.lwc-convs { display: flex; flex-direction: column; }
.lwc-conv {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-align: left;
    border-top: 1px solid var(--lwc-line);
    transition: background-color .2s ease;
    width: 100%;
}
.lwc-conv:first-child { border-top: 0; }
.lwc-conv:hover { background: var(--lwc-surface-2); }
.lwc-conv__body { flex: 1 1 auto; min-width: 0; }
.lwc-conv__top { display: flex; align-items: baseline; gap: 8px; }
.lwc-conv__name { font-weight: 700; font-size: 14px; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwc-conv__time { font-size: 11.5px; color: var(--lwc-muted-2); flex: 0 0 auto; }
.lwc-conv__prev { font-size: 13px; color: var(--lwc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.lwc-conv.is-unread .lwc-conv__prev { color: var(--lwc-text); font-weight: 600; }
.lwc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--lwc-surface-2);
    color: var(--lwc-muted);
}
.lwc-pill--open { background: var(--lwc-ok-bg); color: var(--lwc-ok); }

.lwc-foot-note { text-align: center; font-size: 11.5px; color: var(--lwc-muted-2); padding: 4px 0 2px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.lwc-foot-note svg { width: 12px; height: 12px; }

/* ---------- avatar ---------- */
.lwc-av {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: var(--lwc-brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    overflow: visible;
}
.lwc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lwc-av svg.lwc-mark { width: 55%; height: 55%; fill: #fff; stroke: none; }
.lwc-av--bot { background: var(--lwc-brand); }
.lwc-av--sm { width: 28px; height: 28px; font-size: 11px; }
.lwc-av--xs { width: 24px; height: 24px; font-size: 10px; }
.lwc-av__dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--lwc-surface);
}
.lwc-av__ai {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #f5b301;
    color: #1a1a1a;
    display: grid;
    place-items: center;
    border: 2px solid var(--lwc-surface);
}
.lwc-av__ai svg { width: 9px; height: 9px; fill: currentColor; stroke: none; }

/* =====================================================================
   GÖRÜŞME
   ===================================================================== */
.lwc-chead {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 8px;
    background: var(--lwc-surface);
    border-bottom: 1px solid var(--lwc-line);
    position: relative;
    z-index: 3;
}
.lwc-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--lwc-text-2);
    transition: background-color .2s ease, color .2s ease, transform .3s var(--lwc-spring);
    flex: 0 0 auto;
}
.lwc-icon-btn:hover { background: var(--lwc-surface-2); color: var(--lwc-text); }
.lwc-icon-btn:active { transform: scale(.92); }
.lwc-icon-btn svg { width: 20px; height: 20px; }
.lwc-chead__who { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.lwc-chead__name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
/* Durum metni tek satır; sığmazsa "…" ile kırpılır */
.lwc-chead__status { font-size: 12.5px; color: var(--lwc-muted); display: flex; align-items: center; gap: 7px; min-width: 0; }
.lwc-chead__st { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwc-chead__status .lwc-live { width: 7px; height: 7px; margin-left: 2px; }
.lwc-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fff4d6;
    color: #8a5a00;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .02em;
}
:root[data-theme="dark"] .lwc-ai-tag { background: rgba(245, 179, 1, .16); color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .lwc-ai-tag { background: rgba(245, 179, 1, .16); color: #fbbf24; } }
.lwc-ai-tag svg { width: 9px; height: 9px; fill: currentColor; stroke: none; }

.lwc-menu {
    position: absolute;
    top: 56px;
    right: 12px;
    min-width: 210px;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 14px;
    box-shadow: var(--lwc-shadow);
    padding: 6px;
    transform-origin: top right;
    animation: lwc-menu-in .28s var(--lwc-spring) both;
    z-index: 6;
}
.lwc-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    color: var(--lwc-text-2);
    transition: background-color .2s ease;
}
.lwc-menu button:hover { background: var(--lwc-surface-2); color: var(--lwc-text); }
.lwc-menu button svg { width: 17px; height: 17px; color: var(--lwc-muted); }
.lwc-menu button.is-danger { color: var(--lwc-err); }
.lwc-menu button.is-danger svg { color: var(--lwc-err); }

.lwc-msgs { padding: 16px 14px 8px; display: flex; flex-direction: column; background: var(--lwc-bg); }
.lwc-intro { text-align: center; padding: 8px 12px 18px; animation: lwc-rise .5s var(--lwc-ease) both; }
.lwc-intro .lwc-avatars { justify-content: center; margin-bottom: 10px; }
.lwc-intro .lwc-avatars .lwc-av { width: 44px; height: 44px; border-color: var(--lwc-bg); }
.lwc-intro__name { font-weight: 800; font-size: 16px; font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; }
.lwc-intro__sub { font-size: 12.5px; color: var(--lwc-muted); margin-top: 2px; }

.lwc-day { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; font-size: 11.5px; font-weight: 600; color: var(--lwc-muted-2); }
.lwc-day::before, .lwc-day::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--lwc-line); }

.lwc-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 3px; }
.lwc-row.is-first { margin-top: 12px; }
.lwc-row.is-me { flex-direction: row-reverse; }
.lwc-row__av { width: 28px; flex: 0 0 28px; align-self: flex-end; opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .35s var(--lwc-spring); }
.lwc-row.is-last .lwc-row__av { opacity: 1; transform: none; }
.lwc-row.is-me .lwc-row__av { display: none; }
.lwc-row__col { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; min-width: 0; }
.lwc-row.is-me .lwc-row__col { align-items: flex-end; }
.lwc-row.is-wide .lwc-row__col { max-width: calc(100% - 36px); width: calc(100% - 36px); }
.lwc-row__name { font-size: 11.5px; font-weight: 600; color: var(--lwc-muted); margin: 0 0 4px 4px; display: flex; align-items: center; gap: 5px; }
.lwc-row:not(.is-first) .lwc-row__name { display: none; }
.lwc-row__meta { font-size: 11px; color: var(--lwc-muted-2); margin: 4px 4px 0; display: none; align-items: center; gap: 4px; }
.lwc-row.is-last .lwc-row__meta { display: flex; }

.lwc-bubble {
    position: relative;
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--lwc-surface-2);
    color: var(--lwc-text);
    font-size: 14.5px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    transform-origin: bottom left;
}
.lwc-row.is-me .lwc-bubble { background: var(--lwc-brand); color: #fff; transform-origin: bottom right; }
.lwc-row:not(.is-me).is-last .lwc-bubble { border-bottom-left-radius: 6px; }
.lwc-row.is-me.is-last .lwc-bubble { border-bottom-right-radius: 6px; }
.lwc-row:not(.is-me):not(.is-first) .lwc-bubble { border-top-left-radius: 8px; }
.lwc-row.is-me:not(.is-first) .lwc-bubble { border-top-right-radius: 8px; }
.lwc-bubble a { color: var(--lwc-link); text-decoration: underline; text-underline-offset: 2px; }
.lwc-row.is-me .lwc-bubble a { color: #fff; }
.lwc-bubble.is-emoji { background: none !important; font-size: 38px; line-height: 1.1; padding: 2px 2px; }
.lwc-row.is-sending .lwc-bubble { opacity: .72; }
.lwc-row.is-failed .lwc-bubble { background: var(--lwc-err-bg); color: var(--lwc-err); }
.lwc-retry { font-size: 11.5px; font-weight: 700; color: var(--lwc-err); margin: 4px 4px 0; display: inline-flex; align-items: center; gap: 4px; }

.lwc-anim-in { animation: lwc-msg-up .4s ease-out both; }   /* Intercom: mesaj bloğu 20px aşağıdan */
.lwc-rise { animation: lwc-msg-up .4s ease-out both; }

/* Akış (streamText) — Intercom Fin: son 18 kelime %5…%90 kademeyle başlar, 1 sn'de doğrusal netleşir */
.lwc-stream .lwc-sp:nth-last-of-type(-n+18) { animation: lwc-fadein 1s linear forwards; }
.lwc-stream .lwc-sp:nth-last-of-type(1) { opacity: .05; }
.lwc-stream .lwc-sp:nth-last-of-type(2) { opacity: .1; }
.lwc-stream .lwc-sp:nth-last-of-type(3) { opacity: .15; }
.lwc-stream .lwc-sp:nth-last-of-type(4) { opacity: .2; }
.lwc-stream .lwc-sp:nth-last-of-type(5) { opacity: .25; }
.lwc-stream .lwc-sp:nth-last-of-type(6) { opacity: .3; }
.lwc-stream .lwc-sp:nth-last-of-type(7) { opacity: .35; }
.lwc-stream .lwc-sp:nth-last-of-type(8) { opacity: .4; }
.lwc-stream .lwc-sp:nth-last-of-type(9) { opacity: .45; }
.lwc-stream .lwc-sp:nth-last-of-type(10) { opacity: .5; }
.lwc-stream .lwc-sp:nth-last-of-type(11) { opacity: .55; }
.lwc-stream .lwc-sp:nth-last-of-type(12) { opacity: .6; }
.lwc-stream .lwc-sp:nth-last-of-type(13) { opacity: .65; }
.lwc-stream .lwc-sp:nth-last-of-type(14) { opacity: .7; }
.lwc-stream .lwc-sp:nth-last-of-type(15) { opacity: .75; }
.lwc-stream .lwc-sp:nth-last-of-type(16) { opacity: .8; }
.lwc-stream .lwc-sp:nth-last-of-type(17) { opacity: .85; }
.lwc-stream .lwc-sp:nth-last-of-type(18) { opacity: .9; }


/* okundu işaretleri */
.lwc-ticks { width: 16px; height: 11px; color: var(--lwc-muted-2); }
.lwc-ticks path { stroke-width: 1.8; stroke-dasharray: 14; stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease, color .3s ease; }
.lwc-ticks .lwc-t2 { stroke-dashoffset: 14; }
.lwc-ticks.is-read { color: var(--lwc-brand); }
:root[data-theme="dark"] .lwc-ticks.is-read { color: var(--lwc-link); }
.lwc-ticks.is-read .lwc-t2 { stroke-dashoffset: 0; }
.lwc-clock { width: 11px; height: 11px; color: var(--lwc-muted-2); animation: lwc-spin 2s linear infinite; }

/* yazıyor */
.lwc-typing { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; animation: lwc-msg-up .4s ease-out both; }
.lwc-typing.is-leaving { animation: lwc-fade-out .2s ease forwards; }
.lwc-typing__bubble { display: inline-flex; align-items: center; gap: 4px; padding: 13px 15px; border-radius: 18px 18px 18px 6px; background: var(--lwc-surface-2); }
.lwc-typing__bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--lwc-muted-2); animation: lwc-typing 1.25s ease-in-out infinite; }
.lwc-typing__bubble i:nth-child(2) { animation-delay: .16s; }
.lwc-typing__bubble i:nth-child(3) { animation-delay: .32s; }
.lwc-typing__who { font-size: 11px; color: var(--lwc-muted-2); margin: 0 0 3px 4px; }

/* sistem */
.lwc-sys { display: flex; justify-content: center; margin: 12px 0 4px; }
.lwc-sys span { font-size: 11.5px; font-weight: 600; color: var(--lwc-muted); background: var(--lwc-surface-2); padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; animation: lwc-rise .4s var(--lwc-ease) both; }
.lwc-sys svg { width: 12px; height: 12px; }

/* hızlı yanıtlar */
.lwc-qr { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin: 10px 0 2px 36px; }
.lwc-qr .lwc-chip, .lwc-chip--rise { animation: lwc-qr-up .32s cubic-bezier(.23, 1, .32, 1) backwards; }   /* Intercom öneri butonları */
.lwc-qr.is-used { display: none; }

/* hizmet kartları */
.lwc-svcs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; width: 100%; }
.lwc-svcs::-webkit-scrollbar { display: none; }
.lwc-svc {
    flex: 0 0 auto;
    width: 216px;
    scroll-snap-align: start;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--lwc-card-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: lwc-card-in .55s var(--lwc-spring) backwards;
    transition: transform .3s var(--lwc-spring), border-color .2s ease;
}
.lwc-svcs.is-single .lwc-svc { width: 100%; }
.lwc-svc:hover { transform: translateY(-2px); border-color: var(--lwc-brand-line); }
.lwc-svc__top { display: flex; align-items: center; gap: 10px; }
.lwc-svc__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; flex: 0 0 auto; }
.lwc-svc__cat { font-size: 11.5px; color: var(--lwc-muted); font-weight: 600; }
.lwc-svc__name { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--lwc-text); }
.lwc-svc__price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 11px; background: var(--lwc-surface-2); }
.lwc-svc__qty { font-size: 12px; color: var(--lwc-muted); font-weight: 600; }
.lwc-svc__total { font-size: 15px; font-weight: 800; color: var(--lwc-text); }
.lwc-svc__unit { font-size: 11.5px; color: var(--lwc-muted); }
.lwc-svc__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.lwc-tag { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--lwc-ok-bg); color: var(--lwc-ok); }
.lwc-tag--fast { background: var(--lwc-warn-bg); color: var(--lwc-warn); }
.lwc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--lwc-brand);
    color: #fff !important;
    font-weight: 700;
    font-size: 13.5px;
    transition: background-color .2s ease, transform .3s var(--lwc-spring);
    text-decoration: none !important;
}
.lwc-btn:hover { background: var(--lwc-brand-hover); transform: translateY(-1px); }
.lwc-btn:active { transform: scale(.97); }
.lwc-btn svg { width: 16px; height: 16px; transition: transform .3s var(--lwc-spring); }
.lwc-btn:hover svg { transform: translateX(3px); }
.lwc-btn--ghost { background: var(--lwc-surface-2); color: var(--lwc-text) !important; }
.lwc-btn--ghost:hover { background: var(--lwc-surface-3); }
.lwc-btn--block { width: 100%; }

/* sipariş kartı */
.lwc-order {
    width: 100%;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--lwc-card-shadow);
    animation: lwc-card-in .5s var(--lwc-spring) both;
    color: var(--lwc-text);
}
.lwc-row.is-me .lwc-order { border-color: var(--lwc-brand-line); }
.lwc-order__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lwc-order__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 700; color: var(--lwc-muted); display: flex; align-items: center; gap: 6px; }
.lwc-order__code svg { width: 14px; height: 14px; }
.lwc-order__title { font-weight: 700; font-size: 14px; margin: 6px 0 10px; line-height: 1.3; }
.lwc-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.lwc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lwc-status--run  { background: var(--lwc-run-bg); color: var(--lwc-run); }
.lwc-status--done { background: var(--lwc-ok-bg); color: var(--lwc-ok); }
.lwc-status--wait { background: var(--lwc-warn-bg); color: var(--lwc-warn); }
.lwc-status--fail { background: var(--lwc-err-bg); color: var(--lwc-err); }
.lwc-status--run::before { animation: lwc-blink-soft 1.4s ease-in-out infinite; }
.lwc-bar { height: 8px; border-radius: 4px; background: var(--lwc-surface-2); overflow: hidden; }
.lwc-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--lwc-brand); transition: width 1.2s var(--lwc-ease); }
.lwc-bar.is-done i { background: var(--lwc-ok); }
.lwc-order__nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--lwc-muted); margin-top: 7px; font-weight: 600; }
.lwc-order__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--lwc-link); }
.lwc-order__link svg { width: 14px; height: 14px; transition: transform .3s var(--lwc-spring); }
.lwc-order__link:hover svg { transform: translateX(3px); }

/* e-posta kartı */
.lwc-form-card { width: 100%; background: var(--lwc-surface); border: 1px solid var(--lwc-line); border-radius: 16px; padding: 14px; box-shadow: var(--lwc-card-shadow); animation: lwc-card-in .5s var(--lwc-spring) both; }
.lwc-form-card p { font-size: 13.5px; color: var(--lwc-text-2); margin-bottom: 10px; white-space: pre-wrap; }
.lwc-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--lwc-surface-2); border: 1.5px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.lwc-field:focus-within { border-color: var(--lwc-brand); box-shadow: 0 0 0 4px var(--lwc-brand-soft); background: var(--lwc-surface); }
.lwc-field input { flex: 1 1 auto; height: 38px; font-size: 14px; color: var(--lwc-text); }
.lwc-field input::placeholder { color: var(--lwc-muted-2); }
.lwc-field .lwc-btn { height: 36px; width: 38px; padding: 0; border-radius: 10px; }
.lwc-field.is-error { border-color: var(--lwc-err); animation: lwc-shake .4s ease; }
.lwc-done { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--lwc-ok); }
.lwc-check { width: 26px; height: 26px; border-radius: 50%; background: var(--lwc-ok); color: #fff; display: grid; place-items: center; animation: lwc-pop-in .5s var(--lwc-spring) both; }
.lwc-check svg { width: 14px; height: 14px; stroke-width: 3; stroke-dasharray: 24; stroke-dashoffset: 24; animation: lwc-draw .45s ease .2s forwards; }

/* değerlendirme */
.lwc-rate { text-align: center; }
.lwc-stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.lwc-star { width: 38px; height: 38px; display: grid; place-items: center; color: var(--lwc-line-2); transition: transform .3s var(--lwc-spring), color .15s ease; }
.lwc-star svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.lwc-star:hover { transform: scale(1.18) rotate(-6deg); }
.lwc-star.is-on { color: #f5b301; animation: lwc-star .5s var(--lwc-spring) both; }
.lwc-rate__label { font-size: 12.5px; font-weight: 600; color: var(--lwc-muted); min-height: 18px; }
.lwc-rate textarea { width: 100%; margin-top: 10px; min-height: 64px; padding: 10px 12px; border-radius: 12px; background: var(--lwc-surface-2); font-size: 13.5px; resize: none; color: var(--lwc-text); border: 1.5px solid transparent; }
.lwc-rate textarea:focus { border-color: var(--lwc-brand); background: var(--lwc-surface); }
.lwc-rate .lwc-btn { margin-top: 10px; }

/* görsel & dosya */
.lwc-img { position: relative; border-radius: 16px; overflow: hidden; background: var(--lwc-surface-2); cursor: zoom-in; animation: lwc-card-in .5s var(--lwc-spring) both; max-width: 240px; }
.lwc-img img { width: 100%; height: auto; max-height: 260px; object-fit: cover; transition: transform .4s var(--lwc-ease); }
.lwc-img:hover img { transform: scale(1.03); }
.lwc-img.is-uploading img { filter: blur(2px) brightness(.8); }
.lwc-progress { position: absolute; inset: 0; display: grid; place-items: center; }
.lwc-progress svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.lwc-progress circle { stroke: rgba(255, 255, 255, .35); stroke-width: 4; }
.lwc-progress circle + circle { stroke: #fff; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset .2s linear; }
.lwc-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--lwc-surface-2); color: var(--lwc-text); min-width: 200px; animation: lwc-card-in .5s var(--lwc-spring) both; }
.lwc-row.is-me .lwc-file { background: var(--lwc-brand); color: #fff; }
.lwc-file__ico { width: 36px; height: 36px; border-radius: 10px; background: #ef4444; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.lwc-file__name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.lwc-file__size { font-size: 11.5px; opacity: .75; }

.lwc-lightbox { position: absolute; inset: 0; z-index: 20; background: rgba(8, 10, 14, .88); display: grid; place-items: center; padding: 20px; animation: lwc-fade-in .25s ease both; cursor: zoom-out; }
.lwc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; animation: lwc-zoom-in .4s var(--lwc-spring) both; }

/* ---------- yazma alanı ---------- */
.lwc-composer { flex: 0 0 auto; padding: 10px 12px 12px; background: var(--lwc-bg); position: relative; z-index: 3; }
.lwc-composer__box {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--lwc-surface);
    border: 1.5px solid var(--lwc-line);
    transition: border-color .2s ease, box-shadow .25s ease;
    box-shadow: var(--lwc-shadow-sm);
}
.lwc-composer__box:focus-within { border-color: var(--lwc-brand); box-shadow: 0 0 0 4px var(--lwc-brand-soft); }
.lwc-composer textarea {
    width: 100%;
    min-height: 44px;
    max-height: 132px;
    padding: 12px 14px 4px;
    resize: none;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--lwc-text);
    overflow-y: auto;
}
.lwc-composer textarea::placeholder { color: var(--lwc-muted-2); }
.lwc-composer__bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px 8px; }
.lwc-composer__bar .lwc-icon-btn { width: 34px; height: 34px; border-radius: 10px; color: var(--lwc-muted); }
.lwc-composer__bar .lwc-icon-btn:hover { color: var(--lwc-brand); background: var(--lwc-brand-soft); }
.lwc-composer__bar .lwc-icon-btn svg { width: 19px; height: 19px; }
.lwc-send {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--lwc-surface-2);
    color: var(--lwc-muted-2);
    display: grid;
    place-items: center;
    transition: background-color .25s ease, color .25s ease, transform .4s var(--lwc-spring);
}
.lwc-send svg { width: 18px; height: 18px; transition: transform .4s var(--lwc-spring); }
.lwc-send.is-ready { background: var(--lwc-brand); color: #fff; transform: scale(1.04); }
.lwc-send.is-ready:hover { background: var(--lwc-brand-hover); }
.lwc-send.is-ready:hover svg { transform: translate(2px, -2px) rotate(-10deg); }
.lwc-send.is-fire svg { animation: lwc-fly .5s ease; }
.lwc-closed { text-align: center; padding: 14px 16px 16px; border-top: 1px solid var(--lwc-line); background: var(--lwc-surface); }
.lwc-closed p { font-size: 13px; color: var(--lwc-muted); margin-bottom: 10px; }

/* alt çekmece (emoji / siparişler) */
.lwc-sheet {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 100%;
    margin-bottom: 8px;
    background: var(--lwc-surface);
    border: 1px solid var(--lwc-line);
    border-radius: 18px;
    box-shadow: var(--lwc-shadow);
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
    transform-origin: bottom left;
    animation: lwc-sheet-in .35s var(--lwc-spring) both;
}
.lwc-sheet__title { font-size: 12.5px; font-weight: 700; color: var(--lwc-muted); margin: 0 4px 8px; display: flex; align-items: center; justify-content: space-between; }
.lwc-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.lwc-emojis button { height: 38px; border-radius: 10px; font-size: 22px; line-height: 38px; transition: transform .25s var(--lwc-spring), background-color .15s ease; }
.lwc-emojis button:hover { background: var(--lwc-surface-2); transform: scale(1.25); }
.lwc-olist { display: flex; flex-direction: column; gap: 6px; }
.lwc-oitem { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-align: left; border: 1px solid var(--lwc-line); transition: border-color .2s ease, background-color .2s ease, transform .3s var(--lwc-spring); width: 100%; }
.lwc-oitem:hover { border-color: var(--lwc-brand); background: var(--lwc-brand-soft); transform: translateX(2px); }
.lwc-oitem__body { flex: 1 1 auto; min-width: 0; }
.lwc-oitem__t { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lwc-oitem__s { font-size: 11.5px; color: var(--lwc-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.lwc-drop {
    position: absolute;
    inset: 8px;
    z-index: 15;
    border: 2px dashed var(--lwc-brand);
    border-radius: 18px;
    background: var(--lwc-brand-soft);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--lwc-brand);
    font-weight: 700;
    animation: lwc-fade-in .2s ease both;
    pointer-events: none;
}
.lwc-drop svg { width: 34px; height: 34px; margin: 0 auto 8px; animation: lwc-float 1.4s ease-in-out infinite; }
.lwc-toast {
    position: absolute;
    left: 50%;
    top: 70px;
    transform: translateX(-50%);
    z-index: 25;
    background: var(--lwc-text);
    color: var(--lwc-bg);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 12px;
    box-shadow: var(--lwc-shadow-sm);
    animation: lwc-toast 3.2s var(--lwc-ease) both;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================================
   BİLGİ BANKASI & GEÇMİŞ
   ===================================================================== */
.lwc-phead { flex: 0 0 auto; padding: 18px 18px 14px; background: var(--lwc-surface); border-bottom: 1px solid var(--lwc-line); }
.lwc-phead__title { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.lwc-phead__title .lwc-icon-btn { margin-left: -8px; }
.lwc-phead .lwc-search { margin-top: 12px; }
.lwc-kb { padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.lwc-kbcat { overflow: hidden; }
.lwc-kbcat__head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; font-weight: 700; font-size: 14px; }
.lwc-kbcat__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--lwc-brand-soft); color: var(--lwc-brand); display: grid; place-items: center; }
:root[data-theme="dark"] .lwc-kbcat__ico { color: var(--lwc-link); }
.lwc-kbcat__ico svg { width: 17px; height: 17px; }
.lwc-kbcat__n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--lwc-muted); }
.lwc-kbcat__chev { width: 16px; height: 16px; color: var(--lwc-muted-2); transition: transform .35s var(--lwc-spring); }
.lwc-kbcat.is-open .lwc-kbcat__chev { transform: rotate(90deg); }
.lwc-kbcat__list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--lwc-ease); }
.lwc-kbcat.is-open .lwc-kbcat__list { grid-template-rows: 1fr; }
.lwc-kbcat__inner { overflow: hidden; }
.lwc-kbcat__inner .lwc-links { margin: 0; padding: 0 8px 8px; }
.lwc-hl { background: #fde68a; color: #1a1a1a; border-radius: 3px; padding: 0 1px; }
.lwc-empty { text-align: center; padding: 34px 20px; color: var(--lwc-muted); font-size: 13.5px; }
.lwc-empty svg { width: 42px; height: 42px; margin: 0 auto 10px; color: var(--lwc-muted-2); }

.lwc-article { padding: 20px 20px 24px; }
.lwc-article__cat { font-size: 12px; font-weight: 700; color: var(--lwc-brand); text-transform: uppercase; letter-spacing: .04em; }
:root[data-theme="dark"] .lwc-article__cat { color: var(--lwc-link); }
.lwc-article h2 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; font-size: 21px; font-weight: 800; line-height: 1.25; margin: 6px 0 14px; letter-spacing: -.01em; }
.lwc-article__body { font-size: 14.5px; line-height: 1.65; color: var(--lwc-text-2); }
.lwc-article__body p { margin-bottom: 12px; }
.lwc-article__body ul { margin: 0 0 12px 18px; list-style: disc; }
.lwc-article__body li { margin-bottom: 4px; }
.lwc-vote { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--lwc-surface-2); text-align: center; }
.lwc-vote p { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.lwc-vote__btns { display: flex; justify-content: center; gap: 10px; }
.lwc-vote__btns button { width: 52px; height: 44px; border-radius: 12px; background: var(--lwc-surface); font-size: 22px; border: 1px solid var(--lwc-line); transition: transform .3s var(--lwc-spring), border-color .2s ease; }
.lwc-vote__btns button:hover { transform: translateY(-2px) scale(1.08); border-color: var(--lwc-brand); }
.lwc-cta { margin-top: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--lwc-line); display: flex; align-items: center; gap: 12px; }
.lwc-cta p { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; }
.lwc-cta .lwc-btn { flex: 0 0 auto; white-space: nowrap; }

/* iskelet yükleme */
.lwc-skel { border-radius: 10px; background: var(--lwc-surface-2); position: relative; overflow: hidden; }
.lwc-skel::after { content: ""; position: absolute; inset: 0; background: var(--lwc-surface-3); animation: lwc-skel 1.3s ease-in-out infinite; opacity: 0; }

/* =====================================================================
   MOBİL — tam ekran
   ===================================================================== */
@media (max-width: 560px) {
    .lwc { right: 14px; bottom: 14px; }
    .lwc[data-pos="left"] { left: 14px; }
    .lwc-label { display: none; }
    .lwc-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: 0;
        transform: translateY(40px);
        transform-origin: bottom center;
    }
    .lwc.is-open .lwc-panel { transform: none; }
    .lwc.is-open .lwc-launcher { transform: scale(0); opacity: 0; pointer-events: none; }
    .lwc-hero__close { display: grid; }
    .lwc-hero { padding-top: max(22px, env(safe-area-inset-top)); }
    .lwc-chead { padding-top: max(12px, env(safe-area-inset-top)); }
    .lwc-tabs { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    .lwc-composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .lwc-teaser { width: calc(100vw - 28px); }
}

/* iOS Safari 16px altı alana odaklanınca sayfayı yakınlaştırır; dokunmatik
   cihazlarda tüm yazı alanları 16px (yatay iPhone 560px'i aştığı için
   genişliğe değil işaretçiye bağlı). */
@media (hover: none) and (pointer: coarse) {
    .lwc-composer textarea,
    .lwc-search input,
    .lwc-field input,
    .lwc-rate textarea { font-size: 16px; }
}
.lwc-lock { overflow: hidden !important; }

/* =====================================================================
   ANİMASYONLAR
   ===================================================================== */
@keyframes lwc-pop-in { 0% { transform: scale(0); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lwc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes lwc-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes lwc-wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-12deg) scale(1.06); } 30% { transform: rotate(10deg) scale(1.06); } 45% { transform: rotate(-7deg); } 60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
@keyframes lwc-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@keyframes lwc-spin { to { transform: rotate(360deg); } }
@keyframes lwc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lwc-msg-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes lwc-fadein { 100% { opacity: 1; } }
@keyframes lwc-qr-up { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes lwc-card-in { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes lwc-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes lwc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lwc-fade-out { to { opacity: 0; transform: scale(.9); } }
@keyframes lwc-zoom-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes lwc-blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes lwc-teaser-in { 0% { opacity: 0; transform: translateY(16px) scale(.85); } 100% { opacity: 1; transform: none; } }
@keyframes lwc-teaser-out { to { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes lwc-menu-in { from { opacity: 0; transform: scale(.9) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes lwc-sheet-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lwc-draw { to { stroke-dashoffset: 0; } }
@keyframes lwc-star { 0% { transform: scale(.4) rotate(-30deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }
@keyframes lwc-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes lwc-fly { 0% { transform: none; } 45% { transform: translate(14px, -14px) scale(.6); opacity: 0; } 46% { transform: translate(-12px, 12px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lwc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lwc-toast { 0% { opacity: 0; transform: translate(-50%, -8px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes lwc-skel { 0%, 100% { opacity: 0; } 50% { opacity: .7; } }

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