/* ============================================
   FIRST-VISIT WELCOME POPUP STYLES
   Natural Options Kenya
   ============================================ */

/* ---- Popup Container ---- */
.no-welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.no-welcome-popup.is-active {
    opacity: 1;
    visibility: visible;
}

/* ---- Backdrop ---- */
.no-welcome-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ---- Dialog Box ---- */
.no-welcome-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(201, 169, 110, 0.15);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.no-welcome-popup.is-active .no-welcome-popup__dialog {
    transform: translateY(0) scale(1);
}

/* ---- Close Button ---- */
.no-welcome-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-welcome-popup__close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
    transform: rotate(90deg);
}

/* ---- Visual / Icon Area ---- */
.no-welcome-popup__visual {
    position: relative;
    padding: 32px 0 16px;
    text-align: center;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #1B4332 100%);
    overflow: hidden;
}

.no-welcome-popup__icon {
    font-size: 48px;
    position: relative;
    z-index: 2;
    animation: popupIconBounce 2s ease-in-out infinite;
}

.no-welcome-popup__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: popupGlow 3s ease-in-out infinite;
}

@keyframes popupIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes popupGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* ---- Content Area ---- */
.no-welcome-popup__content {
    padding: 28px 32px 32px;
    text-align: center;
}

.no-welcome-popup__title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 24px;
    font-weight: 600;
    color: #1B4332;
    margin: 0 0 8px;
    line-height: 1.3;
}

.no-welcome-popup__subtitle {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ---- Form ---- */
.no-welcome-popup__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-welcome-popup__input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.no-welcome-popup__input:focus {
    border-color: var(--no-gold, #C9A96E);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12);
}

.no-welcome-popup__input::placeholder {
    color: #aaa;
}

.no-welcome-popup__btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A96E 0%, #B8944F 100%);
    color: #fff;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-welcome-popup__btn:hover {
    background: linear-gradient(135deg, #B8944F 0%, #A47E3B 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.35);
}

.no-welcome-popup__btn:active {
    transform: translateY(0);
}

/* ---- Success State ---- */
.no-welcome-popup__success {
    animation: popupFadeIn 0.4s ease;
}

.no-welcome-popup__success-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.no-welcome-popup__success-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
}

.no-welcome-popup__coupon {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: #fff;
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 10px;
    margin-bottom: 16px;
    user-select: all;
}

.no-welcome-popup__copy-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--no-gold, #C9A96E);
    border-radius: 10px;
    background: transparent;
    color: var(--no-gold, #C9A96E);
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-welcome-popup__copy-btn:hover {
    background: var(--no-gold, #C9A96E);
    color: #fff;
}

.no-welcome-popup__copy-btn.is-copied {
    background: #2D6A4F;
    border-color: #2D6A4F;
    color: #fff;
}

.no-welcome-popup__shop-btn {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--no-gold, #C9A96E);
    text-decoration: none;
    transition: color 0.2s ease;
}

.no-welcome-popup__shop-btn:hover {
    color: #1B4332;
}

/* ---- Disclaimer ---- */
.no-welcome-popup__disclaimer {
    font-size: 11px;
    color: #aaa;
    margin: 16px 0 0;
    line-height: 1.4;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .no-welcome-popup {
        padding: 16px;
        align-items: flex-end;
    }

    .no-welcome-popup__dialog {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .no-welcome-popup__content {
        padding: 24px 20px 28px;
    }

    .no-welcome-popup__title {
        font-size: 20px;
    }

    .no-welcome-popup__coupon {
        font-size: 20px;
        padding: 10px 20px;
        letter-spacing: 2px;
    }
}
