/* ============================================================
   WhatsApp Hızlı Banner (marka-arastirma sonuç sayfası)
   ============================================================ */
.wp-banner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    margin: 0 0 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 55%, #5BE584 100%);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(18, 140, 126, 0.32), 0 2px 6px rgba(0,0,0,0.08);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wp-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(18, 140, 126, 0.42), 0 4px 10px rgba(0,0,0,0.12);
}

.wp-banner__glow {
    position: absolute;
    top: -50%; right: -10%;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%);
    pointer-events: none;
    animation: wpGlow 6s ease-in-out infinite;
}
@keyframes wpGlow {
    0%, 100% { transform: scale(1); opacity: .9; }
    50%      { transform: scale(1.15); opacity: 1; }
}

.wp-banner__icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
}
.wp-banner__icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    animation: wpRing 2s ease-out infinite;
}
@keyframes wpRing {
    0%   { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.wp-banner__body {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.wp-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 6px;
}
.wp-banner__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: wpPulse 1.6s ease-out infinite;
}
@keyframes wpPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.wp-banner__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}
.wp-banner__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,0.94);
    max-width: 56ch;
}
.wp-banner__desc strong { color: #fff; font-weight: 700; }

.wp-banner__cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-shrink: 0;
    min-width: 200px;
}
.wp-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.wp-banner__btn .ti { font-size: 18px; }

/* Primary: WhatsApp — beyaz dolgu, yeşil yazı */
.wp-banner__btn--wp {
    background: #fff;
    color: #128C7E;
    border: 1px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.wp-banner__btn--wp:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    color: #075E54;
}

/* Secondary: Hemen Ara — şeffaf cam */
.wp-banner__btn--call {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(4px);
}
.wp-banner__btn--call:hover {
    background: rgba(255,255,255,0.28);
    border-color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .wp-banner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon  body"
            "cta   cta";
        gap: 14px 16px;
        padding: 18px 18px 16px;
    }
    .wp-banner__icon { grid-area: icon; width: 52px; height: 52px; }
    .wp-banner__icon svg { width: 24px; height: 24px; }
    .wp-banner__body { grid-area: body; }
    .wp-banner__cta  {
        grid-area: cta;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }
    .wp-banner__cta .wp-banner__btn { flex: 1; padding: 11px 14px; font-size: 13px; }
    .wp-banner__title { font-size: 17px; }
    .wp-banner__desc  { font-size: 13px; }
}

/* ============================================================
   Marka Uzmanı — Chat Widget (sağ alt)
   ============================================================ */
.mtchat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    font-family: inherit;
}

/* FAB butonu */
.mtchat__fab {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0F1B2D 0%, #1E2F4A 100%);
    color: #EEB141;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(10, 22, 40, 0.35), 0 4px 8px rgba(10, 22, 40, 0.15);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.mtchat__fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(10, 22, 40, 0.45), 0 6px 12px rgba(10, 22, 40, 0.2);
}
.mtchat__fab .ti { position: relative; z-index: 1; }
.mtchat__fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(238, 177, 65, 0.6);
    animation: mtchatPulse 2.2s ease-out infinite;
}
@keyframes mtchatPulse {
    0%   { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}
.mtchat__fab-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 2;
}

/* Panel */
.mtchat__panel {
    padding: 0;
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 384px;
    max-width: calc(100vw - 32px);
    height: min(680px, calc(100vh - 110px));
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(10, 22, 40, 0.28), 0 4px 12px rgba(10, 22, 40, 0.08);
    border: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
    transform-origin: bottom right;
}
.mtchat.is-open .mtchat__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.mtchat.is-open .mtchat__fab-pulse { display: none; }
.mtchat.is-open .mtchat__fab-dot { display: none; }
.mtchat.is-open .mtchat__fab .ti::before {
    content: "\eb55"; /* chevron-down ish */
}

/* Header */
.mtchat__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0F1B2D 0%, #1E2F4A 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.mtchat__head::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(238, 177, 65, 0.18), transparent 70%);
    pointer-events: none;
}
.mtchat__head-l {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.mtchat__avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EEB141, #D89A2A);
    color: #0F1B2D;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.18);
}
.mtchat__avatar-online {
    position: absolute;
    right: -2px; bottom: -2px;
    width: 12px; height: 12px;
    background: #10B981;
    border: 2px solid #1E2F4A;
    border-radius: 50%;
}
.mtchat__head-info { min-width: 0; }
.mtchat__head-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.mtchat__head-info p {
    margin: 0;
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    display: flex;
    align-items: center;
    gap: 6px;
}
.mtchat__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: heroDot 1.8s ease-out infinite;
}
.mtchat__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: all .15s var(--ease);
}
.mtchat__close:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Body */
.mtchat__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 20px;
    background: linear-gradient(180deg, #FAFBFD 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}
.mtchat__body::-webkit-scrollbar { width: 6px; }
.mtchat__body::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 999px; }

/* Mesajlar */
.mtmsg {
    max-width: 84%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: mtmsgIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes mtmsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mtmsg__bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--c-text);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.mtmsg__time {
    font-size: 10px;
    color: var(--c-text-soft);
    padding: 0 6px;
}

/* Bot mesajı */
.mtmsg--bot { align-self: flex-start; }
.mtmsg--bot .mtmsg__bubble {
    background: #fff;
    border: 1px solid var(--c-line);
    border-top-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(10,22,40,0.04);
}
.mtmsg--bot .mtmsg__time { text-align: left; }

/* Kullanıcı mesajı */
.mtmsg--me { align-self: flex-end; align-items: flex-end; }
.mtmsg--me .mtmsg__bubble {
    background: linear-gradient(135deg, #0F1B2D 0%, #1E2F4A 100%);
    color: #fff;
    border-top-right-radius: 4px;
}
.mtmsg--me .mtmsg__time { text-align: right; }

/* Typing indicator */
.mtmsg--typing .mtmsg__bubble {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
}
.mtmsg--typing .mtmsg__bubble span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-text-soft);
    animation: mtType 1.2s ease-in-out infinite;
}
.mtmsg--typing .mtmsg__bubble span:nth-child(2) { animation-delay: .15s; }
.mtmsg--typing .mtmsg__bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes mtType {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

/* Sonuç kartı (analiz) */
.mtmsg__result {
    margin-top: 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 14px;
}
.mtmsg__result-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.mtmsg__risk {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 24px;
    font-weight: 800;
}
.mtmsg__risk small { font-size: 12px; font-weight: 600; color: var(--c-text-soft); }
.mtmsg__bar {
    height: 6px;
    background: var(--c-line);
    border-radius: 999px;
    overflow: hidden;
    margin: 6px 0 8px;
}
.mtmsg__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .6s ease;
}
.mtmsg__result--low  .mtmsg__result-head { color: #10B981; }
.mtmsg__result--low  .mtmsg__bar span    { background: linear-gradient(90deg, #10B981, #34D399); }
.mtmsg__result--mid  .mtmsg__result-head { color: #F59E0B; }
.mtmsg__result--mid  .mtmsg__bar span    { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.mtmsg__result--high .mtmsg__result-head { color: #EF4444; }
.mtmsg__result--high .mtmsg__bar span    { background: linear-gradient(90deg, #EF4444, #F87171); }
.mtmsg__result p {
    margin: 0;
    font-size: 12.5px;
    color: var(--c-text-2);
    line-height: 1.5;
}
.mtmsg__cta {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.mtmsg__cta a, .mtmsg__cta button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .15s var(--ease);
}
.mtmsg__cta a .ti, .mtmsg__cta button .ti { font-size: 15px; }
.mtmsg__cta a.is-wa, .mtmsg__cta a.is-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.25);
}
.mtmsg__cta a:hover, .mtmsg__cta button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10,22,40,0.1);
}
.mtmsg__cta a.is-wa:hover, .mtmsg__cta a.is-primary:hover {
    box-shadow: 0 6px 14px rgba(18, 140, 126, 0.35);
    filter: brightness(1.05);
}

/* Form */
.mtchat__form {
    flex-shrink: 0;
    border-top: 1px solid var(--c-line);
    background: #fff;
    padding: 10px 12px 8px;
}
.mtchat__quick {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    max-height: 88px;
    overflow-y: auto;
    padding-bottom: 2px;
}
.mtchat__quick:empty { display: none; margin-bottom: 0; }
.mtchat__qbtn {
    padding: 4px 10px;
    background: #F7F8FA;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font: inherit;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--c-text-2);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .15s var(--ease);
}
.mtchat__qbtn .ti { font-size: 13px; line-height: 1; }
.mtchat__qbtn:hover {
    background: var(--c-gold-soft);
    border-color: rgba(238,177,65,0.4);
    color: var(--c-gold-2);
}
.mtchat__qbtn.is-primary {
    background: linear-gradient(135deg, #EEB141, #D89A2A);
    border-color: transparent;
    color: #0F1B2D;
    font-weight: 700;
}
.mtchat__qbtn.is-primary:hover {
    filter: brightness(1.05);
    color: #0F1B2D;
    border-color: transparent;
}
.mtchat__qbtn.is-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.25);
}
.mtchat__qbtn.is-wa:hover {
    filter: brightness(1.06);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.35);
}
.mtchat__input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F7F8FA;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.mtchat__input-row:focus-within {
    border-color: var(--c-gold);
    box-shadow: 0 0 0 4px rgba(238, 177, 65, 0.12);
    background: #fff;
}
.mtchat__input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 13.5px;
    padding: 8px 0;
    color: var(--c-text);
}
.mtchat__send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0F1B2D, #1E2F4A);
    color: #EEB141;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: transform .15s var(--ease);
    flex-shrink: 0;
}
.mtchat__send:hover { transform: scale(1.08) rotate(-6deg); }
.mtchat__send:disabled { opacity: 0.5; cursor: not-allowed; }

.mtchat__foot {
    margin: 6px 0 0;
    font-size: 10.5px;
    color: var(--c-text-soft);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.mtchat__foot .ti { font-size: 12px; }

@media (max-width: 480px) {
    .mtchat { right: 14px; bottom: 14px; }
    .mtchat__panel {
        bottom: 76px;
        width: calc(100vw - 28px);
        height: calc(100dvh - 96px);
        max-height: none;
        border-radius: 18px;
    }
    .mtchat__body { padding: 14px 12px 18px; }
    .mtchat__quick { max-height: 110px; }
}

