/* Ticket chat image enlarge */
.ticket-attach-img {
    max-width: min(280px, 70vw);
    border-radius: 10px;
    margin-top: 8px;
    display: block;
    cursor: zoom-in;
    transition: outline 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ticket-attach-img:hover {
    outline: 2px solid rgba(0, 180, 216, 0.65);
    outline-offset: 2px;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
}

.ticket-attach-btn {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: left;
    max-width: 100%;
}

.ticket-lightbox {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    box-sizing: border-box;
}

.ticket-lightbox.is-open {
    display: flex;
}

.ticket-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: rgba(0, 4, 10, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ticket-lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 90vh;
    animation: ticket-lb-in 0.2s ease;
}

@keyframes ticket-lb-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
}

.ticket-lightbox-stage img {
    display: block;
    max-width: min(96vw, 1400px);
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
    background: #0a121c;
}

.ticket-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(144, 224, 239, 0.35);
    background: rgba(8, 20, 32, 0.9);
    color: #caf0f8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ticket-lightbox-close:hover {
    background: rgba(0, 100, 130, 0.45);
    border-color: rgba(0, 180, 216, 0.7);
}

.ticket-lightbox-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(200, 230, 240, 0.65);
    pointer-events: none;
}

html.ticket-lb-open,
html.ticket-lb-open body {
    overflow: hidden;
}

@media (max-width: 720px) {
    .ticket-attach-img {
        max-width: min(200px, 58vw);
        border-radius: 8px;
        margin-top: 6px;
    }

    .ticket-lightbox {
        padding: 56px 12px 40px;
    }

    .ticket-lightbox-hint {
        display: none;
    }
}
