/* =========================================================
   STAYNSTAY PRO PAYWALL & PROMOTION STYLES
   - Dark Luxury Glassmorphism & Gold/Yellow Accents
   - Strictly NO blue
   ========================================================= */

/* Backdrop overlay */
.paywall-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.paywall-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog Card */
.paywall-modal-container {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d1117;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 24px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.45), 0 0 30px rgba(245, 158, 11, 0.1);
    color: #f8fafc;
    position: relative;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.paywall-modal-backdrop.is-open .paywall-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.paywall-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.paywall-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Header Section */
.paywall-header {
    padding: 28px 24px 14px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.paywall-crown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.paywall-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

.paywall-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

/* Content Body */
.paywall-body {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Pro Features List */
.paywall-feature-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.paywall-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.paywall-feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.paywall-feature-text strong {
    display: block;
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 2px;
}

.paywall-feature-text p {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Pricing Card */
.paywall-pricing-box {
    background: linear-gradient(145deg, rgba(26, 32, 44, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.paywall-price-left {
    display: flex;
    flex-direction: column;
}

.paywall-price-label {
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 4px;
}

.paywall-price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.paywall-price-num {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.paywall-price-unit {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.paywall-price-subtext {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.paywall-subscribe-btn {
    background: #fbbf24;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
    flex-shrink: 0;
}

.paywall-subscribe-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* =========================================================
   PAYWALL GOOGLE ADSENSE BANNER SLOT
   ========================================================= */
.paywall-ad-slot {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Paywall Footer / Assurance */
.paywall-footer-note {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    line-height: 1.6;
}

/* =========================================================
   MAP BACKGROUND BLUR & SMART CENTER CARD BACKDROP
   ========================================================= */
#admin-map {
    transition: filter 0.3s ease;
}

#admin-map.map-blurred {
    filter: blur(8px) saturate(0.85);
    pointer-events: none;
}

.map-smart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.map-smart-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   NON-INTRUSIVE SMART MAP CENTER CARD (NO OVERLAP WITH BOTTOM BAR)
   ========================================================= */
.map-smart-floating-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 20px;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 28px rgba(251, 191, 36, 0.2);
    color: #ffffff;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s;
    max-width: 90%;
    width: 440px;
    text-align: center;
}

.map-smart-floating-bar.is-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.smart-bar-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.smart-bar-close-x:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

.smart-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 6px 14px;
    border-radius: 99px;
}

.smart-bar-icon {
    font-size: 16px;
    line-height: 1;
}

.smart-bar-title-text {
    font-size: 14px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: -0.2px;
}

.smart-bar-desc {
    margin: 2px 0 0;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.55;
    word-break: keep-all;
}

.smart-bar-desc strong {
    color: #38bdf8;
}

.smart-bar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.smart-bar-btn-return {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.smart-bar-btn-return:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.smart-bar-btn-random {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.smart-bar-btn-random:hover {
    background: rgba(251, 191, 36, 0.16);
    border-color: #fbbf24;
    transform: translateY(-1px);
}

.smart-bar-btn-upgrade {
    background: #fbbf24;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
    white-space: nowrap;
}

.smart-bar-btn-upgrade:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.5);
}

#btn-quick-sample-region:hover,
#btn-quick-sample-random:hover {
    background: #0f172a !important;
    border-color: #fbbf24 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .paywall-modal-container {
        border-radius: 20px;
    }
    .paywall-header {
        padding: 28px 20px 16px;
    }
    .paywall-title {
        font-size: 21px;
    }
    .paywall-body {
        padding: 0 20px 24px;
    }
    .paywall-pricing-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .paywall-subscribe-btn {
        width: 100%;
    }
}
