/* ========================================================
   GrandPashaBet LiveChat Floating Button & Modal Styles
   ======================================================== */

.gp-livechat-float,
.gp-tawk-float {
    position: fixed;
    z-index: 2147483641;
    right: 12px;
    bottom: 80px;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 1;
}

/* Canlı Destek açıldığında yüzen buton gizlenir */
.gp-livechat-float.is-hidden,
.gp-tawk-float.is-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.6) translateY(25px) !important;
    visibility: hidden;
}

.gp-livechat-float-btn,
.gp-tawk-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    line-height: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
}

.gp-livechat-float-btn:hover,
.gp-tawk-float-btn:hover {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 6px 20px rgba(248, 216, 127, 0.5));
}

.gp-livechat-float-btn:active,
.gp-tawk-float-btn:active {
    transform: scale(0.94);
}

.gp-livechat-float-btn img,
.gp-tawk-float-btn img {
    display: block;
    width: auto;
    max-width: 86px;
    height: auto;
    border: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.gp-livechat-float-btn:focus-visible,
.gp-tawk-float-btn:focus-visible {
    outline: 2px solid rgb(248, 216, 127);
    outline-offset: 3px;
    border-radius: 50%;
}

/* ─── In-Page LiveChat Modal / Drawer ─── */
.gp-livechat-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2147483645;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gp-livechat-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gp-livechat-modal {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 410px;
    height: 640px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    background: #111502;
    border: 1px solid #7c9900;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(124, 153, 0, 0.35);
    display: flex;
    flex-direction: column;
    z-index: 2147483647;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.gp-livechat-modal.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.gp-livechat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(180deg, #242e01 0%, #151a02 100%);
    border-bottom: 1px solid rgba(248, 216, 127, 0.3);
    color: #fff;
    user-select: none;
}

.gp-livechat-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #f8d87f;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.3px;
}

.gp-livechat-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    animation: gp-dot-pulse 2s infinite;
}

@keyframes gp-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.gp-livechat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gp-livechat-head-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8d87f;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.gp-livechat-head-btn:hover {
    background: rgba(248, 216, 127, 0.25);
    border-color: #f8d87f;
    color: #fff;
}

.gp-livechat-head-close {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 9px;
    color: #ef4444;
}

.gp-livechat-head-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
    border-color: #ef4444;
}

.gp-livechat-body {
    flex: 1;
    position: relative;
    background: #ffffff;
}

.gp-livechat-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #ffffff;
}

@media (max-width: 768px) {
    .gp-livechat-float,
    .gp-tawk-float {
        bottom: 74px;
        right: 6px;
    }

    .gp-livechat-float-btn img,
    .gp-tawk-float-btn img {
        max-width: 72px;
    }
}

@media (max-width: 600px) {
    .gp-livechat-modal {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        border: 0;
    }
}
