/* ── FLB Target Field — profile search + posts grid ─────────────────── */

.flb-tf {
    --or:       #E8622A;
    --or2:      #f07340;
    --or-l:     #FDF1EB;
    --or-d:     #B8481A;
    --green:    #1a9e5e;
    --txt:      #111;
    --txt2:     #555;
    --txt3:     #aaa;
    --border:   rgba(0,0,0,0.09);
    --radius:   12px;
    font-family: inherit;
}

/* ── Input zone ─────────────────────────────────────────────────────── */

.flb-tf__input-zone {
    position: relative;
}

/* Input: only structural — visual styles from theme */
.flb-tf__input,
.flb-tf__input--full {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.flb-tf__input-hint {
    font-size: 11px;
    color: var(--txt3);
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Suggestions dropdown ───────────────────────────────────────────── */

.wizard-card,
.wizard-target {
    overflow: visible !important;
}

.flb-tf__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 9999;
}

.flb-tf__sug-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .12s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.flb-tf__sug-item:last-child { border-bottom: none; }

.flb-tf__sug-item:hover,
.flb-tf__sug-item--best:hover { background: var(--or-l); }

.flb-tf__sug-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.flb-tf__sug-ava-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.flb-tf__sug-ava-fb {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.flb-tf__sug-info {
    flex: 1;
    min-width: 0;
}

.flb-tf__sug-handle {
    font-size: 13px;
    font-weight: 700;
    color: var(--txt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flb-tf__sug-handle em {
    color: var(--or);
    font-style: normal;
}

.flb-tf__sug-meta {
    font-size: 11px;
    color: var(--txt3);
    margin-top: 1px;
}

.flb-tf__sug-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--or-d);
    background: var(--or-l);
    border-radius: 6px;
    padding: 2px 7px;
    flex-shrink: 0;
}

.flb-tf__verified {
    color: var(--green);
    font-size: 11px;
}

.flb-tf__sug-loading {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--txt3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Spinner ────────────────────────────────────────────────────────── */

.flb-tf__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(232,98,42,.2);
    border-top-color: var(--or);
    border-radius: 50%;
    animation: flb-tf-spin .6s linear infinite;
    flex-shrink: 0;
}

@keyframes flb-tf-spin { to { transform: rotate(360deg); } }

/* ── Profile card ───────────────────────────────────────────────────── */

.flb-tf__profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1.5px solid var(--border);
}

.flb-tf__profile-ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--or);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.flb-tf__profile-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--txt);
}

.flb-tf__profile-meta {
    font-size: 11px;
    color: var(--txt3);
}

.flb-tf__change-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--or);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .12s;
}

.flb-tf__change-btn:hover { background: var(--or-l); }

/* ── Posts zone ─────────────────────────────────────────────────────── */

.flb-tf__posts-zone {
    margin-top: 14px;
}

.flb-tf__posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.flb-tf__posts-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--txt);
}

.flb-tf__posts-badge {
    background: var(--or-l);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--or-d);
    font-weight: 600;
}

.flb-tf__posts-min-warn {
    display: none;
    margin: 6px 0 10px;
    padding: 9px 14px;
    background: #fff3f2;
    border: 1px solid rgba(200,50,30,.25);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #c8321e;
    line-height: 1.4;
}

.flb-tf__posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.flb-tf__post-thumb {
    aspect-ratio: 9 / 14;
    border-radius: 9px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .12s;
    background: #ede9fc;
    background-size: auto;
}

.flb-tf__post-thumb:hover { border-color: var(--or); }

.flb-tf__post-thumb--selected { border-color: var(--or); }

.flb-tf__post-icon {
    font-size: 20px;
    user-select: none;
}

.flb-tf__post-video-badge {
    position: absolute;
    top: 5px;
    right: 6px;
    font-size: 9px;
    background: rgba(0,0,0,.5);
    color: #fff;
    border-radius: 4px;
    padding: 2px 4px;
}

.flb-tf__post-stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 10px 6px 4px;
    font-size: 9px;
    line-height: 1;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
    pointer-events: none;
}

.flb-tf__post-stats span {
    white-space: nowrap;
}

.flb-tf__post-qty {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(232,98,42,.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 4px 2px;
    line-height: 1.2;
    pointer-events: none;
}

.flb-tf__post-qty--warn {
    background: rgba(200, 50, 30, .92);
}

.flb-tf__post-overlay {
    position: absolute;
    inset: 0;
    background: rgba(232,98,42,.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flb-tf__post-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--or);
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flb-tf__posts-loading {
    grid-column: 1 / -1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--txt3);
}

.flb-tf__posts-msg {
    font-size: 12px;
    color: var(--txt3);
    margin-top: 8px;
    padding: 10px 14px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.flb-tf__load-more {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt2);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s;
}

.flb-tf__load-more:hover:not(:disabled) {
    border-color: var(--or);
    color: var(--or);
}

.flb-tf__load-more:disabled { opacity: .5; cursor: not-allowed; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .flb-tf__posts-grid { grid-template-columns: repeat(3, 1fr); }
}
