/* ── Pro Teaser Panel ─────────────────────────────────────── */
.tncfb-pro-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: var(--tncfb-spacing-xl);
}
.tncfb-pro-teaser-inner {
    max-width: 480px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border: 1px solid var(--tncfb-border-light);
    border-radius: var(--tncfb-radius);
    padding: var(--tncfb-spacing-xl) var(--tncfb-spacing-xl) var(--tncfb-spacing-lg);
    box-shadow: var(--tncfb-shadow);
}
.tncfb-pro-teaser-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--tncfb-primary);
    opacity: 0.8;
}
.tncfb-pro-teaser-title {
    font-size: 20px;
    font-weight: 600;
    margin: 12px 0 16px;
    color: var(--tncfb-text);
}
.tncfb-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}
.tncfb-pro-teaser-features {
    list-style: none;
    margin: 0 auto 20px;
    padding: 0;
    text-align: left;
    display: table;
}
.tncfb-pro-teaser-features li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--tncfb-text);
}
.tncfb-pro-teaser-features .dashicons {
    color: #16a34a;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: text-bottom;
}
.tncfb-pro-teaser-btn {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px !important;
    padding: 8px 24px !important;
    height: auto !important;
    background: linear-gradient(135deg, #2271b1, #135e96) !important;
    border-color: #135e96 !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}
.tncfb-pro-teaser-btn:hover {
    background: linear-gradient(135deg, #135e96, #0a4b78) !important;
    border-color: #0a4b78 !important;
    color: #fff !important;
}

/* ── Promo card ────────────────────────────────────────────────── */
.tncfb-promo-card {
    position: relative;
    margin-top: 16px;
    padding: 18px 20px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
    border: 1px solid #d4dff7;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
}
.tncfb-promo-ribbon {
    position: absolute;
    top: 10px;
    right: -28px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 32px;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}
.tncfb-promo-text {
    margin: 0 0 12px;
    font-size: 13px;
    color: #1d2327;
    line-height: 1.5;
}
.tncfb-promo-code-text {
    display: none;
}
.tncfb-promo-copy-row {
    display: inline-flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #2271b1;
    background: #fff;
}
.tncfb-promo-code-box {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #2271b1;
    background: #fff;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
    user-select: all;
}
.tncfb-promo-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #2271b1;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.tncfb-promo-copy-btn:hover {
    background: #135e96;
}
.tncfb-promo-copy-btn.copied {
    background: #00a32a;
}

/* Pro badge — generalized */
.tncfb-pro-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Pro-locked layout cards */
.tncfb-layout-card.is-pro-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f6f7f9;
}
.tncfb-layout-card.is-pro-locked:hover {
    border-color: var(--tncfb-border, #c2d9f0);
    background: #f6f7f9;
    box-shadow: none;
    transform: none;
}
.tncfb-layout-card.is-pro-locked .tncfb-layout-card-label {
    color: #6b7280;
}
.tncfb-layout-card.is-pro-locked > * {
    pointer-events: none;
}
.tncfb-layout-card.is-pro-locked.is-active {
    border-color: var(--tncfb-border, #c2d9f0) !important;
    background: #f6f7f9 !important;
    box-shadow: none !important;
}

/* Pro badge on toolbar items (kept for backward compat) */
.tncfb-toolbar-item .tncfb-pro-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.tncfb-toolbar-item.tncfb-pro-locked {
    opacity: 0.6;
    pointer-events: none;
}
.tncfb-toolbar-item.tncfb-pro-locked .tncfb-switcher-slider {
    background: var(--tncfb-switch-off) !important;
    cursor: not-allowed;
}

/* Locked tab styling */
.tncfb-tab-btn.tncfb-tab-locked {
    position: relative;
    color: var(--tncfb-text-light);
}
.tncfb-tab-btn.tncfb-tab-locked::after {
    content: "Pro";
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Settings nav locked tab */
.tncfb-settings-nav-btn.tncfb-tab-locked {
    position: relative;
    color: var(--tncfb-text-light);
}
.tncfb-settings-nav-btn.tncfb-tab-locked::after {
    content: "Pro";
    display: inline-block;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Multi-PDF Pro gate card */
.tncfb-source-card.tncfb-pro-gated {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}
.tncfb-source-card.tncfb-pro-gated input[type="radio"] {
    pointer-events: none;
}
.tncfb-source-card.tncfb-pro-gated .tncfb-pro-badge-inline {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 8px;
    line-height: 1.4;
}

/* ── Tooltips ──────────────────────────────────────────────── */
.tncfb-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
    color: var(--tncfb-text-light);
    transition: color var(--tncfb-transition);
    outline: none;
}
.tncfb-tip:hover,
.tncfb-tip:focus {
    color: var(--tncfb-primary);
}
.tncfb-tip-icon {
    flex-shrink: 0;
}
.tncfb-tip-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: -8px;
    width: 280px;
    padding: 12px 14px;
    background: #1d2327;
    color: #f0f0f1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.1);
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 400;
    z-index: 100000;
    pointer-events: auto;
}
.tncfb-tip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-top-color: #1d2327;
}
.tncfb-tip:hover .tncfb-tip-popup,
.tncfb-tip:focus .tncfb-tip-popup,
.tncfb-tip:focus-within .tncfb-tip-popup {
    display: block;
}
.tncfb-tip-text {
    display: block;
    margin-bottom: 8px;
}
.tncfb-tip-link {
    display: inline-block;
    color: #72aee6;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}
.tncfb-tip-link:hover {
    color: #a0d2ff;
    text-decoration: underline;
}
.tncfb-accordion-header .tncfb-tip {
    margin-left: 8px;
}
/* Lift accordion item above siblings when tooltip is active */
.tncfb-accordion-item:has(.tncfb-tip:hover),
.tncfb-accordion-item:has(.tncfb-tip:focus),
.tncfb-accordion-item:has(.tncfb-tip:focus-within) {
    z-index: 10;
    position: relative;
}
.form-table tr:has(.tncfb-tip:hover),
.form-table tr:has(.tncfb-tip:focus) {
    position: relative;
    z-index: 10;
}
@media (max-width: 782px) {
    .tncfb-tip-popup {
        width: 220px;
        left: auto;
        right: -8px;
        transform: none;
    }
    .tncfb-tip-popup::after {
        left: auto;
        right: 12px;
        transform: none;
    }
}

/* ── Pill buttons ──────────────────────────────────────────────── */
.tncfb-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid #c3c4c7;
    border-radius: var(--tncfb-radius);
    background: #fff;
    color: #2c3338;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tncfb-btn-pill:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #1d2327;
}
.tncfb-btn-pill:active {
    background: #e0e0e0;
}
.tncfb-btn-pill--danger {
    padding: 4px 8px;
    color: #8b8e94;
    border-color: #dcdcde;
}
.tncfb-btn-pill--danger:hover {
    color: #d63638;
    border-color: #d63638;
    background: #fcf0f0;
}
.tncfb-btn-pill--danger:active {
    background: #f5d5d5;
}

/* ── Searchable Select ──────────────────────────────────────────── */
.tncfb-searchable-wrap {
    position: relative;
    display: inline-block;
    min-width: 280px;
    max-width: 100%;
}
.tncfb-searchable-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    height: 36px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #2c3338;
    transition: border-color 0.15s;
}
.tncfb-searchable-display:hover {
    border-color: #2271b1;
}
.tncfb-searchable-open .tncfb-searchable-display {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}
.tncfb-searchable-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tncfb-searchable-arrow {
    flex-shrink: 0;
    color: #8c8f94;
    transition: transform 0.2s;
}
.tncfb-searchable-open .tncfb-searchable-arrow {
    transform: rotate(180deg);
}
.tncfb-searchable-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100000;
    overflow: hidden;
}
.tncfb-searchable-open .tncfb-searchable-dropdown {
    display: block;
}
.tncfb-searchable-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    background: #f9f9f9;
}
.tncfb-searchable-input:focus {
    background: #fff;
    box-shadow: none;
}
.tncfb-searchable-list {
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.tncfb-searchable-group {
    padding: 6px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #f6f7f7;
    border-top: 1px solid #f0f0f1;
    position: sticky;
    top: 0;
}
.tncfb-searchable-item {
    padding: 7px 12px;
    font-size: 13px;
    color: #2c3338;
    cursor: pointer;
    transition: background 0.1s;
}
.tncfb-searchable-item:hover,
.tncfb-searchable-item.tncfb-searchable-hover {
    background: #f0f6fc;
    color: #2271b1;
}
.tncfb-searchable-item.tncfb-searchable-selected {
    background: #2271b1;
    color: #fff;
    font-weight: 500;
}
.tncfb-searchable-item.tncfb-searchable-selected:hover,
.tncfb-searchable-item.tncfb-searchable-selected.tncfb-searchable-hover {
    background: #135e96;
    color: #fff;
}
.tncfb-searchable-disabled .tncfb-searchable-display {
    opacity: 0.5;
    pointer-events: none;
    background: #f0f0f1;
}
.tncfb-searchable-empty,
.tncfb-searchable-more {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: #8c8f94;
    font-style: italic;
}
