/* ============================================================
   ZOQUI × IVYONS Marketing Popup — Modern Minimal Edition
   Inspired by Fashion Nova / 4TH & RAIN premium capture
   ============================================================ */

/* Overlay — soft, neutral, not too dark */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20, 20, 30, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 20px;
}
.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Dialog — clean white card, generous spacing, no border tricks */
.popup-dialog {
    background: #ffffff;
    border-radius: 4px;
    max-width: 460px;
    width: 100%;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    animation: popupFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
}

@keyframes popupFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== Brand Header (dual logos — 100% larger) ===== */
.popup-brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 32px 20px;
    background: #ffffff;
}
.popup-brand-header .popup-logo-img {
    height: 112px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: none;
}
.popup-brand-header .popup-brand-divider {
    width: 1px;
    height: 60px;
    background: var(--border, #d9d9d9);
    flex-shrink: 0;
}
.popup-brand-header .popup-brand-x {
    font-size: 14px;
    color: var(--light, #999);
    font-weight: 300;
    flex-shrink: 0;
    user-select: none;
    display: none; /* Hide the colored x-circle, use clean divider instead */
}

/* Close button — minimal, top right */
.popup-dialog .popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s ease;
    color: var(--light);
    padding: 0;
}
.popup-dialog .popup-close:hover {
    color: var(--purple);
    opacity: 1;
}
.popup-dialog .popup-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

/* ===== Body — generous breathing room ===== */
.popup-body {
    padding: 0 40px 36px;
    text-align: center;
}

/* Offer tag — small, all-caps, letter-spaced, NO background */
.popup-offer-tag {
    display: inline-block;
    margin: 0 auto 18px;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--light);
    animation: none;
}

/* Title — medium weight, refined, all-caps */
.popup-body .popup-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--dark, #1A1A2E);
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Discount — THE hero, oversized bold display */
.popup-body .popup-discount {
    font-size: 44px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--dark, #1A1A2E);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

/* Subtitle — soft, italic-feel copy */
.popup-body .popup-subtitle {
    font-size: 14px;
    color: var(--medium, #4A4A5A);
    margin: 0 0 28px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* Email input — minimal, large hit area */
.popup-body .popup-email {
    display: none;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border, #d9d9d9);
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--dark, #1A1A2E);
    font-family: inherit;
    font-weight: 400;
}
.popup-body .popup-email:focus {
    border-color: var(--purple, #7B3FA0);
}
.popup-body .popup-email::placeholder {
    color: var(--light, #8A8A9A);
    font-weight: 300;
}
.popup-body .popup-email.visible {
    display: block;
}

/* Password input — same style as email, hidden by default */
.popup-body .popup-password {
    display: none;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border, #d9d9d9);
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--dark, #1A1A2E);
    font-family: inherit;
    font-weight: 400;
}
.popup-body .popup-password:focus {
    border-color: var(--purple, #7B3FA0);
}
.popup-body .popup-password::placeholder {
    color: var(--light, #8A8A9A);
    font-weight: 300;
}
.popup-body .popup-password.visible {
    display: block;
}
.popup-body .popup-password:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Claim button — SOLID BLACK, fashion-brand energy */
.popup-body .popup-claim-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: var(--dark, #1A1A2E);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    margin-bottom: 14px;
    box-shadow: none;
    font-family: inherit;
}
.popup-body .popup-claim-btn:hover {
    background: var(--purple, #7B3FA0);
    transform: none;
    box-shadow: none;
    opacity: 1;
}
.popup-body .popup-claim-btn:active {
    transform: scale(0.99);
}
.popup-body .popup-claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--dark, #1A1A2E);
}

/* Skip button — under-statement link */
.popup-body .popup-skip {
    display: block;
    font-size: 12px;
    color: var(--light, #8A8A9A);
    background: none;
    border: none;
    cursor: pointer;
    margin: 8px auto 0;
    padding: 4px 12px;
    transition: color 0.2s ease;
    font-family: inherit;
    text-decoration: underline;
}
.popup-body .popup-skip:hover {
    color: var(--medium, #4A4A5A);
}

/* Result messages */
.popup-body .popup-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    line-height: 1.5;
}
.popup-body .popup-result.success {
    display: block;
    background: #f5f9f6;
    color: #3a6b4e;
    border: 1px solid #c9e7d4;
}
.popup-body .popup-result.error {
    display: block;
    background: #fdf5f5;
    color: #8b3a3a;
    border: 1px solid #f3c7c7;
}

/* Coupon code display */
.popup-body .popup-coupon-code {
    display: inline-block;
    margin: 10px 0 0;
    padding: 8px 18px;
    background: #ffffff;
    border-radius: 2px;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #5a8a6e;
    border: 1px dashed #5a8a6e;
}

/* Trust badge — soft, gray, very small */
.popup-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    font-size: 10px;
    color: var(--light, #8A8A9A);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.popup-trust-badge svg {
    width: 12px;
    height: 12px;
    color: var(--light, #8A8A9A);
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 540px) {
    .popup-dialog {
        max-width: 92vw;
    }
    .popup-brand-header {
        padding: 24px 24px 16px;
        gap: 18px;
    }
    .popup-brand-header .popup-logo-img {
        height: 96px;
    }
    .popup-body {
        padding: 0 24px 28px;
    }
    .popup-body .popup-title {
        font-size: 13px;
    }
    .popup-body .popup-discount {
        font-size: 36px;
    }
    .popup-body .popup-subtitle {
        font-size: 13px;
    }
    .popup-body .popup-claim-btn {
        font-size: 12px;
        padding: 14px 24px;
    }
    .popup-body .popup-coupon-code {
        font-size: 16px;
    }
}
