/* Canlı destek açılış — PusluBet ice cyan / navy */

.live-support-prechat-modal {
    --support-accent: #2ec7ff;
    --support-accent-dark: #1496e6;
    --support-text: #e2e8f0;
    --support-muted: #94a3b8;
    --support-bg: #0b1f35;
    --support-panel: #0e2742;
    --support-field: #0b1f35;
    --support-ink: #021018;

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: linear-gradient(180deg, #12324f 0%, #0e2742 45%, #0b1f35 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.live-support-prechat-modal.is-open {
    display: block;
    opacity: 1;
}

html.live-support-prechat-open,
body.live-support-prechat-open {
    overflow: hidden !important;
    height: 100%;
    overscroll-behavior: none;
}

body.live-support-prechat-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

body.live-support-prechat-open #mobile-bottom-nav,
body.live-support-prechat-open .mobile-bottom-nav {
    display: none !important;
}

.live-support-prechat-modal__wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

.live-support-prechat-modal__panel {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: transparent;
    color: var(--support-text);
    font-family: "Outfit", system-ui, sans-serif;
}

.live-support-prechat-modal__close {
    position: absolute;
    top: max(0.85rem, env(safe-area-inset-top));
    right: 0.85rem;
    z-index: 5;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(46, 199, 255, 0.45);
    border-radius: 999px;
    background: linear-gradient(145deg, #2ec7ff, #1496e6);
    color: var(--support-ink);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(46, 199, 255, 0.28);
}

/* Hero: takes leftover space ONLY (basis 0), never eats the form */
.live-support-prechat-modal__hero {
    grid-row: 1;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #041526;
    overflow: hidden;
}

.live-support-prechat-modal__raven-wrap {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    background: #041526;
}

.live-support-prechat-modal__raven {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
    margin: 0;
}

.live-support-prechat-modal__hero-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0.75rem 0.45rem;
    background: linear-gradient(180deg, rgba(4, 21, 38, 0), #041526 40%);
    margin-top: -2.2rem;
    position: relative;
    z-index: 1;
}

.live-support-prechat-modal__hero h2 {
    margin: 0;
}

.live-support-prechat-modal__brand {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 14px rgba(46, 199, 255, 0.35));
}

.live-support-prechat-modal__hero p {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: #b8ecff;
}

.live-support-prechat-modal__hero i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

/* Form block: always visible, never shrinks */
.live-support-prechat-modal__body {
    grid-row: 2;
    display: block;
    width: min(100%, 480px);
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0.75rem 1.15rem calc(0.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(46, 199, 255, 0.22);
    background: linear-gradient(180deg, rgba(14, 39, 66, 0.96), rgba(11, 31, 53, 0.99));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 3;
    overflow: visible;
}

.live-support-prechat-modal__body form {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.live-support-prechat-modal__field {
    margin-bottom: 0.7rem;
}

.live-support-prechat-modal__label {
    display: block;
    margin-bottom: 0.28rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
}

.live-support-prechat-modal__label .req {
    color: var(--support-accent);
}

.live-support-prechat-modal__input,
.live-support-prechat-modal__select,
.live-support-prechat-modal__submit,
.live-support-prechat-modal__close,
.live-support-prechat-modal__link,
.live-support-prechat-modal__locked {
    touch-action: manipulation;
}

.live-support-prechat-modal__input,
.live-support-prechat-modal__select,
.live-support-prechat-modal__locked {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(46, 199, 255, 0.28);
    background: var(--support-field);
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.live-support-prechat-modal__select {
    color-scheme: dark;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #2ec7ff 50%), linear-gradient(135deg, #2ec7ff 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - 0.82rem) 1.15rem;
    background-size: 0.34rem 0.34rem, 0.34rem 0.34rem;
    background-repeat: no-repeat;
    background-color: var(--support-field);
}

.live-support-prechat-modal__input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.live-support-prechat-modal__input:focus,
.live-support-prechat-modal__select:focus {
    outline: none;
    border-color: rgba(46, 199, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(46, 199, 255, 0.16);
}

.live-support-prechat-modal__locked {
    font-weight: 650;
    color: #b8ecff;
    border-style: dashed;
}

.live-support-prechat-modal__locked-note {
    margin: -0.15rem 0 0.7rem;
    font-size: 0.78rem;
    color: var(--support-muted);
}

.live-support-prechat-modal__link {
    color: var(--support-accent);
    font-weight: 700;
}

.live-support-prechat-modal__link:hover {
    color: #ffffff;
}

.live-support-prechat-modal__error {
    display: none;
    margin: 0 0 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.78rem;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.live-support-prechat-modal__error.is-visible {
    display: block;
}

.live-support-prechat-modal__submit,
.live-support-prechat-modal__submit .live-support-prechat-modal__submit-text {
    color: var(--support-ink) !important;
    -webkit-text-fill-color: var(--support-ink) !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

.live-support-prechat-modal__submit {
    width: 100%;
    margin-top: 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0 !important;
    border-radius: 999px;
    padding: 0.9rem 1rem;
    font-size: 1.02rem;
    line-height: 1.2;
    background: linear-gradient(145deg, #2ec7ff 0%, #1496e6 55%, #0b6fad 100%) !important;
    box-shadow: 0 10px 24px rgba(46, 199, 255, 0.34) !important;
    cursor: pointer;
}

.live-support-prechat-modal__submit:hover {
    filter: brightness(1.04);
}

.live-support-prechat-modal__submit:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .live-support-prechat-modal__wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        background: rgba(2, 10, 20, 0.55);
    }
    .live-support-prechat-modal__panel {
        width: min(440px, 100%);
        height: min(720px, 92dvh);
        max-height: 92dvh;
        border-radius: 1.25rem;
        overflow: hidden;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
        background: #0b1f35;
    }
    .live-support-prechat-modal__hero { }
    .live-support-prechat-modal__raven {
        object-position: center 30%;
    }
    .live-support-prechat-modal__brand {
        height: 46px;
    }
}

@media (max-height: 700px) {
    .live-support-prechat-modal__hero { }
    .live-support-prechat-modal__brand {
        height: 32px;
    }
    .live-support-prechat-modal__field {
        margin-bottom: 0.5rem;
    }
    .live-support-prechat-modal__input,
    .live-support-prechat-modal__select,
    .live-support-prechat-modal__locked {
        min-height: 2.5rem;
        padding: 0.5rem 0.8rem;
    }
    .live-support-prechat-modal__body {
        padding-top: 0.55rem;
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
    }
}
