/* Upgrade overlay & CTA styles */
.upgrade-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px !important;
    padding: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
}

.upgrade-overlay-content {
    text-align: center;
    max-width: 320px;
}

.upgrade-overlay-content img {
    width: 120px;
    height: 120px;
    opacity: 0.7;
}

.upgrade-overlay-content .upgrade-text {
    margin-top: 12px;
    color: #111;
    font-size: 14px;
    line-height: 1.5;
}

.upgrade-overlay-content .upgrade-text .pro-highlight {
    color: #1AA67C;
    font-weight: 600;
    cursor: pointer;
}

.upgrade-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 24px;
    background: #2980B9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.upgrade-cta-btn:hover {
    background: #2471a3;
}

.upgrade-pro-expiry {
    margin-top: 12px;
    color: #047857;
    font-size: 13px;
    font-weight: 500;
}

.upgrade-vip-badge {
    margin-top: 12px;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 600;
}

/* Blur effect for pro-only content */
.pro-content-blur {
    position: relative;
}

.pro-content-blur.is-locked > *:not(.upgrade-overlay) {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* ============================================
   LOCKED STATE STYLES — Show but disable
   for Guest/Normal to discover features
   ============================================ */

/* Locked tab buttons (main tabs & sub-tabs) */
.locked-tab {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    position: relative;
}

.locked-tab:hover {
    opacity: 0.65 !important;
}

.locked-tab .center-tab-text,
.locked-tab .tab-button-text {
    color: #999 !important;
}

.locked-tab::after {
    content: "\f023";
    font-family: "FontAwesome";
    font-size: 10px;
    color: #999;
    margin-left: 4px;
    display: inline-block;
}

/* Locked filter dropdowns */
.locked-filter-item {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
}

.locked-filter-item .bien-dong-filter-label-text {
    color: #999;
}

/* Lock icon inside dropdown (replaces arrow for locked filters) */
.locked-filter-item .bien-dong-filter-arrow {
    visibility: hidden;
}



/* Locked pre-built buttons */
.locked-prebuilt-btn {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
}

.locked-prebuilt-btn::after {
    content: "\f023";
    font-family: "FontAwesome";
    font-size: 10px;
    color: #999;
    margin-left: 4px;
    display: inline-block;
}

/* Locked table headers */
.locked-table-header {
    opacity: 0.45;
    position: relative;
}

.locked-table-header .bien-dong-table-header-text {
    color: #999;
}

/* Locked right panel tab buttons */
.locked-right-tab {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    position: relative;
}

.locked-right-tab::after {
    content: "\f023";
    font-family: "FontAwesome";
    font-size: 10px;
    color: #999;
    margin-left: 4px;
    display: inline-block;
}

/* Hover tooltip hint for locked items */
.locked-tab[title]:hover::before,
.locked-filter-item[title]:hover::before,
.locked-prebuilt-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Interactive locked elements (clickable to show popup) */
.locked-tab.clickable-locked,
.locked-right-tab.clickable-locked {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.locked-filter-item.clickable-locked {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.locked-prebuilt-btn.clickable-locked {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Locked table cells */
.locked-table-cell {
    opacity: 0.45;
    text-align: center;
}

/* ============================================
   MODAL BACKDROP for upgrade popup
   ============================================ */
#upgradePopupModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 1050 !important;
    display: none;
    isolation: isolate;
}

#upgradePopupModal.in {
    display: block;
}

#upgradePopupBackdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

#upgradePopupModal .modal-dialog {
    position: relative !important;
    z-index: 2 !important;
    margin: auto !important;
    max-width: 960px !important;
    width: 95vw !important;
    display: flex !important;
    align-items: center !important;
    min-height: 100vh !important;
}

#upgradePopupModal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 100% !important;
}
