/* Homepage Promo Popup - ThemeGiaTot */
.tgt-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 10, 7, 0.76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.tgt-popup-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tgt-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 680px;
    border-radius: 18px;
    overflow: hidden;
    background: #0a120d;
    border: 1px solid rgba(74, 222, 128, 0.28);
    box-shadow:
        0 30px 75px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(34, 197, 94, 0.14);
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.tgt-popup-backdrop.is-open .tgt-popup-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.tgt-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tgt-popup-close:hover,
.tgt-popup-close:focus-visible {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.45);
    transform: rotate(90deg) scale(1.06);
    outline: none;
}

.tgt-popup-close svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tgt-popup-media {
    display: block;
    position: relative;
    background: #050a06;
    line-height: 0;
    text-decoration: none;
}

.tgt-popup-media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: cover;
}

.tgt-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    background: linear-gradient(180deg, #0e1912 0%, #09110c 100%);
    border-top: 1px solid rgba(74, 222, 128, 0.16);
}

.tgt-popup-coupon-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.tgt-popup-coupon-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1.5px dashed rgba(250, 204, 21, 0.55);
    background: rgba(250, 204, 21, 0.08);
}

.tgt-popup-coupon-label {
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
    white-space: nowrap;
}

.tgt-popup-coupon-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fde047;
    user-select: all;
    white-space: nowrap;
}

.tgt-popup-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0 15px;
    border: 1px solid rgba(250, 204, 21, 0.45);
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.14);
    color: #fef08a;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tgt-popup-copy-btn:hover,
.tgt-popup-copy-btn:focus-visible {
    background: rgba(250, 204, 21, 0.24);
    border-color: #fde047;
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

.tgt-popup-copy-btn.is-copied {
    background: rgba(34, 197, 94, 0.22);
    border-color: #4ade80;
    color: #86efac;
}

.tgt-popup-copy-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.tgt-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.34);
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tgt-popup-cta:hover,
.tgt-popup-cta:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.45);
    outline: none;
}

.tgt-popup-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tgt-popup-cta:hover svg {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .tgt-popup-dialog {
        border-radius: 14px;
    }

    .tgt-popup-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .tgt-popup-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 14px 16px;
    }

    .tgt-popup-coupon-group {
        width: 100%;
        justify-content: space-between;
    }

    .tgt-popup-coupon-box {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 10px;
    }

    .tgt-popup-coupon-label {
        font-size: 11.5px;
    }

    .tgt-popup-coupon-code {
        font-size: 14px;
    }

    .tgt-popup-cta {
        width: 100%;
        height: 42px;
    }
}
