/* ==========================================
   TNKN 가치회원 하루 1회 팝업 - Dark Mode
   ========================================== */

#valueMemberPopupOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999999;

    background: rgba(0, 0, 0, 0.75);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.35s ease;
}

#valueMemberPopupOverlay.show {
    display: flex;
    opacity: 1;
}

#valueMemberPopup {
    position: relative;
    box-sizing: border-box;

    width: calc(100% - 40px);
    max-width: 420px;

    background: linear-gradient(
        145deg,
        #1e293b 0%,
        #0f172a 100%
    );

    color: #e2e8f0;

    border: 4px solid #ffffff;
    border-radius: 20px;

    padding: 34px 24px 26px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(59, 130, 246, 0.08);

    transform: translateY(30px) scale(0.96);
    opacity: 0;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

#valueMemberPopupOverlay.show #valueMemberPopup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 팝업 제목 */

.value-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #93c5fd;

    letter-spacing: -0.5px;
    margin-bottom: 16px;

    text-shadow: 0 0 15px rgba(96, 165, 250, 0.2);
}

/* 팝업 본문 */

.value-popup-message {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;

    margin-bottom: 24px;

    word-break: keep-all;
}

.value-popup-message strong {
    color: #f8fafc;
    font-weight: 700;
}

/* 가치회원 가입 버튼 */

.value-popup-button {
    display: inline-block;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff !important;

    padding: 13px 30px;

    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 10px;

    text-decoration: none !important;

    font-size: 16px;
    font-weight: 700;

    box-shadow:
        0 5px 18px rgba(37, 99, 235, 0.3);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.value-popup-button:hover {
    background: linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    );

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.45);
}

.value-popup-button:active {
    transform: scale(0.97);
}

/* 닫기 버튼 */

.value-popup-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    font-size: 25px;
    color: #94a3b8;

    cursor: pointer;

    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.value-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 하단 안내 문구 */

.value-popup-small {
    margin-top: 20px;

    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
}

/* 키보드 접근성 */

.value-popup-button:focus-visible,
.value-popup-close:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 4px;
}

/* 모바일 화면 최적화 */

@media screen and (max-width: 480px) {

    #valueMemberPopup {
        width: calc(100% - 30px);
        padding: 30px 20px 24px;
        border-radius: 16px;
    }

    .value-popup-title {
        font-size: 22px;
    }

    .value-popup-message {
        font-size: 15px;
    }

    .value-popup-button {
        font-size: 15px;
        padding: 12px 25px;
    }
}

/* 애니메이션 최소화 설정 대응 */

@media (prefers-reduced-motion: reduce) {

    #valueMemberPopupOverlay,
    #valueMemberPopup,
    .value-popup-button,
    .value-popup-close {
        transition: none;
    }
}