/* Secret discount popup */

.discount-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.discount-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.discount-modal {
    position: relative;
    width: 100%;
    max-width: 26rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 12, 12, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.55);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.discount-overlay.is-open .discount-modal {
    transform: translateY(0) scale(1);
}

.discount-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.discount-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.discount-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.65rem;
    padding-right: 1.5rem;
}

.discount-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 1.25rem;
}

.discount-text strong {
    color: #ffffff;
    font-weight: 600;
}

.discount-code-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.discount-code {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-display, 'Space Grotesk', monospace);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
}

.discount-copy-btn {
    flex-shrink: 0;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #000000;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.discount-copy-btn:hover {
    transform: translateY(-1px);
}

.discount-copy-btn.is-copied {
    background: rgba(255, 255, 255, 0.88);
}

.discount-cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.discount-cta:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.discount-terms {
    font-size: 0.62rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.32);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .discount-overlay,
    .discount-modal {
        transition: none;
    }

    .discount-modal {
        transform: none;
    }
}
