/* =============================================================================
 * smart-popup.css — Griffin-Unlocker Pro Translucent Smart Ad Popup
 * Works seamlessly across Dark & Light themes, LTR & RTL, 320px → 4K screens.
 * ============================================================================= */

body.gsp-open {
    overflow: hidden;
}

.gsp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(7, 9, 14, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.28s ease;
    overflow-y: auto;
}

.gsp-backdrop.is-visible {
    opacity: 1;
}

.gsp-modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 22px;
    padding: 30px 28px 26px;
    background: linear-gradient(160deg, rgba(18, 20, 27, 0.96), rgba(11, 12, 17, 0.98));
    color: #f8fafc;
    border: 1px solid rgba(248, 156, 45, 0.34);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 42px rgba(248, 156, 45, 0.16);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.gsp-backdrop.is-visible .gsp-modal {
    transform: translateY(0) scale(1);
}

/* Top luminous accent strip */
.gsp-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c82534, #f89c2d, #fbbf24, #f89c2d, #c82534);
    border-radius: 22px 22px 0 0;
}

/* Light theme compatibility (keep Black Friday dramatic & legible in both modes) */
html[data-theme="light"] .gsp-backdrop:not(.gsp-theme-black_friday) .gsp-modal,
html.light-theme .gsp-backdrop:not(.gsp-theme-black_friday) .gsp-modal {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(245, 247, 252, 0.98));
    color: #14172b;
    border-color: rgba(248, 156, 45, 0.42);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

/* Theme variants */
.gsp-theme-gold_vip .gsp-modal {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 28px 70px rgba(0,0,0,0.7), 0 0 46px rgba(251, 191, 36, 0.22);
}
.gsp-theme-emerald .gsp-modal {
    border-color: rgba(16, 185, 129, 0.45);
}
.gsp-theme-emerald .gsp-modal::before {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}
.gsp-theme-crimson .gsp-modal {
    border-color: rgba(225, 29, 72, 0.5);
}
.gsp-theme-crimson .gsp-modal::before {
    background: linear-gradient(90deg, #9f1239, #e11d48, #fb7185);
}

.gsp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    z-index: 2;
}
[dir="rtl"] .gsp-close {
    right: auto;
    left: 14px;
}
.gsp-close:hover {
    background: rgba(200, 37, 52, 0.85);
    border-color: rgba(248, 156, 45, 0.7);
    transform: rotate(90deg);
}

.gsp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(200, 37, 52, 0.25), rgba(248, 156, 45, 0.24));
    border: 1px solid rgba(248, 156, 45, 0.48);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gsp-title {
    margin: 0 0 8px;
    font-size: clamp(1.18rem, 2.7vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #ffffff, #fde68a, #f89c2d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-inline-end: 28px;
}

.gsp-subtitle {
    margin: 0 0 18px;
    font-size: clamp(0.9rem, 2vw, 1.02rem);
    font-weight: 600;
    color: #fb923c;
}

.gsp-body {
    font-size: 0.92rem;
    line-height: 1.62;
    color: #e2e8f0;
}

/* Offer Cards Grid */
.gsp-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.gsp-offer-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    padding: 15px 16px;
}

.gsp-offer-box.gsp-offer-highlight {
    background: linear-gradient(155deg, rgba(248, 156, 45, 0.12), rgba(200, 37, 52, 0.12));
    border-color: rgba(248, 156, 45, 0.45);
    box-shadow: 0 8px 24px rgba(248, 156, 45, 0.12);
}

.gsp-offer-box h4 {
    margin: 0 0 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #fef3c7;
}

.gsp-offer-box ul {
    margin: 0;
    padding-inline-start: 18px;
}

.gsp-offer-box li {
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.gsp-price {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f89c2d, #c82534);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88em;
    letter-spacing: 0.2px;
}

.gsp-howto {
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-size: 0.88rem;
    color: #d1fae5;
    text-align: center;
}

.gsp-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.gsp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f89c2d 0%, #e04f26 55%, #c82534 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.96rem;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(248, 156, 45, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.gsp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(248, 156, 45, 0.5);
}

/* Mobile responsiveness (320px -> 640px) */
@media (max-width: 640px) {
    .gsp-backdrop {
        padding: 10px;
        align-items: flex-start;
    }
    .gsp-modal {
        margin: auto 0;
        padding: 22px 16px 20px;
        border-radius: 16px;
        max-height: calc(100vh - 20px);
    }
    .gsp-offer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gsp-cta-btn {
        width: 100%;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}
