/* ═══════════════════════════════════════════════════════════════════════════
   Brand Footprint
   Accent: #84cc16 (lime-green)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.bf-page {
    background: #060d00;
    --tab-color: #65a30d;
    --link-color: #84cc16;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: -96px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.bf-header {
    background: linear-gradient(140deg, #060d00 0%, #0d1c00 55%, #091400 100%);
    border-bottom: 1px solid rgba(132, 204, 22, 0.18);
    position: relative;
    margin: -60px 0 -110px 0;
}

.bf-header .back-to-store-btn {
    display: inline-flex !important;
    width: auto;
    align-self: flex-start;
}

/* Glow orb */
.bf-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.bf-header__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.bf-header__badge {
    display: inline-flex;
    background: rgba(132, 204, 22, 0.15);
    color: #a3e635;
    border: 1px solid rgba(132, 204, 22, 0.30);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 12px;
    margin-bottom: 10px;
}

.bf-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.bf-header__subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.50);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.bf-header__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.bf-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
}

.bf-chip--ai {
    background: rgba(132, 204, 22, 0.12);
    border-color: rgba(132, 204, 22, 0.28);
    color: #a3e635;
}

.bf-chip--live {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #4ade80;
}

/* ── How-it-works button ─────────────────────────────────────────────────── */
.bf-hiw-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bf-hiw-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* ── Header light mode ───────────────────────────────────────────────────── */
html[data-theme="light"] .bf-page { background: #f7ffe6; }
html[data-theme="light"] .bf-header {
    background: linear-gradient(140deg, #f0f9e0 0%, #e8f5c8 55%, #eef7d8 100%);
    border-bottom: 1px solid rgba(132, 204, 22, 0.30);
}

html[data-theme="light"] .bf-header__badge {
    background: rgba(132, 204, 22, 0.18);
    color: #4d7c0f;
    border-color: rgba(132, 204, 22, 0.40);
}

html[data-theme="light"] .bf-header__title { color: #111827; }

html[data-theme="light"] .bf-header__subtitle { color: rgba(17, 24, 39, 0.55); }

html[data-theme="light"] .bf-chip {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(17, 24, 39, 0.65);
}

html[data-theme="light"] .bf-chip--ai {
    background: rgba(132, 204, 22, 0.14);
    border-color: rgba(132, 204, 22, 0.35);
    color: #4d7c0f;
}

html[data-theme="light"] .bf-chip--live {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.30);
    color: #15803d;
}

html[data-theme="light"] .bf-hiw-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(17, 24, 39, 0.65);
}

html[data-theme="light"] .bf-hiw-btn:hover {
    background: rgba(0, 0, 0, 0.10);
    color: #111827;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.bf-body.container {
    padding-top: 86px;
    padding-bottom: 120px;
}

/* ── Centered wrap (idle + loading) ─────────────────────────────────────── */
.bf-center-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
}

/* ── Prompt card ────────────────────────────────────────────────────────── */
.bf-prompt-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-top: -96px;
}

html[data-theme="light"] .bf-prompt-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.bf-prompt-card__icon {
    font-size: 2rem;
    color: #84cc16;
    line-height: 1;
}

.bf-prompt-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .bf-prompt-card__title {
    color: #111827;
}

.bf-prompt-card__sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.50);
    margin: 0;
    line-height: 1.6;
    max-width: 400px;
}

html[data-theme="light"] .bf-prompt-card__sub {
    color: #6b7280;
}

.bf-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s;
}

.bf-input-wrap:focus-within {
    border-color: rgba(132, 204, 22, 0.50);
    background: rgba(132, 204, 22, 0.04);
}

html[data-theme="light"] .bf-input-wrap {
    background: #f9fafb;
    border-color: #d1d5db;
}

html[data-theme="light"] .bf-input-wrap:focus-within {
    border-color: #84cc16;
    background: #f7ffe6;
}

.bf-input-prefix {
    font-size: 1rem;
    margin-right: 10px;
    opacity: 0.6;
}

.bf-url-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #ffffff;
    width: 100%;
    padding: 14px 0;
    font-family: inherit;
}

html[data-theme="light"] .bf-url-input {
    color: #111827;
}

.bf-url-input::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

html[data-theme="light"] .bf-url-input::placeholder {
    color: #9ca3af;
}

.bf-error {
    font-size: 0.82rem;
    color: #f87171;
    margin: 0;
    text-align: center;
}

.bf-analyze-btn {
    width: 100%;
    background: #84cc16;
    color: #0a1200;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 24px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.bf-analyze-btn:hover {
    background: #a3e635;
    transform: translateY(-1px);
}

.bf-analyze-btn:active {
    transform: translateY(0);
}

/* ── Loading card ────────────────────────────────────────────────────────── */
.bf-loading-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    margin-top: -96px;
}

html[data-theme="light"] .bf-loading-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.bf-loading-card__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(132, 204, 22, 0.20);
    border-top-color: #84cc16;
    border-radius: 50%;
    animation: bf-spin 0.8s linear infinite;
}

@keyframes bf-spin {
    to { transform: rotate(360deg); }
}

.bf-loading-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

html[data-theme="light"] .bf-loading-card__title {
    color: #111827;
}

.bf-loading-card__domain {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

html[data-theme="light"] .bf-loading-card__domain {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.bf-loading-card__domain-icon { opacity: 0.6; }

.bf-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.bf-loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.35;
    transition: all 0.3s ease;
}

.bf-loading-step.active {
    opacity: 1;
    background: rgba(132, 204, 22, 0.08);
    border-color: rgba(132, 204, 22, 0.25);
}

.bf-loading-step.done {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.bf-loading-step__icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    color: #84cc16;
}

.bf-loading-step.done .bf-loading-step__icon {
    color: #4ade80;
}

.bf-loading-step__label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.70);
    font-weight: 500;
}

.bf-loading-step.active .bf-loading-step__label {
    color: #ffffff;
    font-weight: 600;
}

html[data-theme="light"] .bf-loading-step { background: #f9fafb; border-color: #e5e7eb; }
html[data-theme="light"] .bf-loading-step.active { background: #f7ffe6; border-color: #84cc16; }
html[data-theme="light"] .bf-loading-step__label { color: #6b7280; }
html[data-theme="light"] .bf-loading-step.active .bf-loading-step__label { color: #111827; }

.bf-loading-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.30);
    margin: 0;
}

html[data-theme="light"] .bf-loading-note { color: #9ca3af; }

/* ── Results ─────────────────────────────────────────────────────────────── */
.bf-result {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Brand hero row ─────────────────────────────────────────────────────── */
.bf-result-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 24px 28px;
    flex-wrap: wrap;
}

html[data-theme="light"] .bf-result-hero {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.bf-result-hero__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Logo replaces og-wrap */
.bf-result-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 6px;
    flex-shrink: 0;
}

html[data-theme="light"] .bf-result-logo {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.bf-result-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bf-result-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .bf-result-brand-name { color: #111827; }

.bf-result-industry {
    display: inline-block;
    background: rgba(132, 204, 22, 0.12);
    color: #a3e635;
    border: 1px solid rgba(132, 204, 22, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 2px 10px;
    align-self: flex-start;
}

.bf-result-url {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.15s;
}

.bf-result-url:hover { color: #84cc16; }
html[data-theme="light"] .bf-result-url { color: #6b7280; }
html[data-theme="light"] .bf-result-url:hover { color: #65a30d; }

.bf-reset-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.60);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.bf-reset-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

html[data-theme="light"] .bf-reset-btn {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

html[data-theme="light"] .bf-reset-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

/* ── Visual Identity row ────────────────────────────────────────────────── */
.bf-visual-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Left column: colors+fonts (top) + tech stack (fills rest) */
.bf-visual-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bf-visual-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.bf-visual-top-row .bf-visual-card {
    height: 100%;
}

.bf-tech-panel--inrow {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .bf-visual-row        { grid-template-columns: 1fr; }
    .bf-tech-panel--inrow { flex: none; }
}

@media (max-width: 600px) {
    .bf-visual-top-row { grid-template-columns: 1fr; }
}

.bf-visual-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
}

html[data-theme="light"] .bf-visual-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

/* ── Color swatches ────────────────────────────────────────────────────── */
.bf-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.bf-swatch {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.bf-swatch:hover {
    transform: scale(1.08);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.22);
}

.bf-swatch.copied {
    box-shadow: inset 0 0 0 2px #4ade80;
}

.bf-swatch__hex {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.15s;
    text-transform: lowercase;
    white-space: nowrap;
}

.bf-swatch:hover .bf-swatch__hex,
.bf-swatch.copied .bf-swatch__hex {
    opacity: 1;
}

/* ── Fonts ─────────────────────────────────────────────────────────────── */
.bf-fonts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.bf-font-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bf-font-preview {
    font-size: 1.8rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

html[data-theme="light"] .bf-font-preview { color: #111827; }

.bf-font-name {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="light"] .bf-font-name { color: #6b7280; }

.bf-font-badge {
    background: rgba(132, 204, 22, 0.12);
    color: #a3e635;
    border: 1px solid rgba(132, 204, 22, 0.25);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    flex-shrink: 0;
}

.bf-font-badge--sec {
    background: rgba(96, 165, 250, 0.10);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.22);
}

/* ── Screenshot ────────────────────────────────────────────────────────── */
.bf-screenshot-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .bf-screenshot-wrap {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.bf-screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

.bf-screenshot-placeholder__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(132, 204, 22, 0.15);
    border-top-color: rgba(132, 204, 22, 0.55);
    border-radius: 50%;
    animation: bf-spin 0.8s linear infinite;
}

html[data-theme="light"] .bf-screenshot-placeholder { color: #9ca3af; }

.bf-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: block;
    position: absolute;
    inset: 0;
}

.bf-screenshot.loaded {
    opacity: 1;
}

/* ── Two-column result grid ──────────────────────────────────────────────── */
.bf-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .bf-result-grid { grid-template-columns: 1fr; }
}

.bf-result-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bf-result-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
}

html[data-theme="light"] .bf-result-section {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.bf-result-section__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 12px;
}

html[data-theme="light"] .bf-result-section__label { color: #9ca3af; }

.bf-result-tagline {
    font-size: 1.05rem;
    font-style: italic;
    color: #a3e635;
    margin: 0;
    line-height: 1.5;
}

html[data-theme="light"] .bf-result-tagline { color: #65a30d; }

.bf-result-overview,
.bf-result-audience {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.7;
}

html[data-theme="light"] .bf-result-overview,
html[data-theme="light"] .bf-result-audience { color: #374151; }

/* ── Chips ───────────────────────────────────────────────────────────────── */
.bf-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-tag {
    border-radius: 6px;
    font-size: 0.80rem;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid;
}

.bf-tag--value {
    background: rgba(132, 204, 22, 0.08);
    border-color: rgba(132, 204, 22, 0.22);
    color: #a3e635;
}

.bf-tag--aesthetic {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.22);
    color: #93c5fd;
}

.bf-tag--tone {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.22);
    color: #fcd34d;
}

html[data-theme="light"] .bf-tag--value    { background: #f7ffe6; border-color: #bef264; color: #4d7c0f; }
html[data-theme="light"] .bf-tag--aesthetic { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
html[data-theme="light"] .bf-tag--tone     { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ── Social presence panel ───────────────────────────────────────────────── */
.bf-social-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
}

html[data-theme="light"] .bf-social-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.bf-social-panel__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 16px;
}

html[data-theme="light"] .bf-social-panel__title { color: #9ca3af; }

.bf-social-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.bf-social-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.bf-social-tab:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.bf-social-tab.active {
    background: rgba(255, 255, 255, 0.10);
    border-color: var( #84cc16);
    color: #84cc16;
}

html[data-theme="light"] .bf-social-tab {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

html[data-theme="light"] .bf-social-tab.active {
    background: #f9fafb;
    color: var(--tab-color, #65a30d);
    border-color: var(--tab-color, #65a30d);
}

.bf-social-tab__icon {
    font-size: 0.88rem;
    font-weight: 700;
    font-style: normal;
}

/* Social content */
.bf-social-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bf-social-profile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.bf-social-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.bf-social-info {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-social-handle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-social-handle {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

html[data-theme="light"] .bf-social-handle { color: #111827; }

.bf-social-verified {
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #93c5fd;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
}

.bf-social-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

html[data-theme="light"] .bf-social-name { color: #6b7280; }

.bf-social-bio {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 4px 0 0;
    line-height: 1.5;
    max-width: 480px;
}

html[data-theme="light"] .bf-social-bio { color: #9ca3af; }

.bf-social-stats {
    margin-left: auto;
    flex-shrink: 0;
}

.bf-social-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.bf-social-stat__value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #84cc16;
    line-height: 1;
    letter-spacing: -0.02em;
}

.bf-social-stat__label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

html[data-theme="light"] .bf-social-stat__label { color: #9ca3af; }

.bf-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--link-color, #84cc16);
    text-decoration: none;
    transition: opacity 0.15s;
    align-self: flex-start;
    padding: 6px 14px;
    border: 1px solid var(--link-color, #84cc16);
    border-radius: 999px;
    opacity: 0.75;
}

.bf-social-link:hover { opacity: 1; }

/* ── How It Works modal ──────────────────────────────────────────────────── */
.bf-hiw-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.bf-hiw-modal {
    background: #111a0a;
    border: 1px solid rgba(132, 204, 22, 0.18);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: rgba(132, 204, 22, 0.2) transparent;
}

html[data-theme="light"] .bf-hiw-modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #111827;
}

.bf-hiw-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.60);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.bf-hiw-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

html[data-theme="light"] .bf-hiw-modal__close {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.bf-hiw-modal__header {
    margin-bottom: 32px;
}

.bf-hiw-modal__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #84cc16;
    margin: 0 0 10px;
}

.bf-hiw-modal__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .bf-hiw-modal__title { color: #111827; }

.bf-hiw-modal__subtitle {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.50);
    margin: 0;
    line-height: 1.6;
}

html[data-theme="light"] .bf-hiw-modal__subtitle { color: #6b7280; }

.bf-hiw-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bf-hiw-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

html[data-theme="light"] .bf-hiw-section { border-bottom-color: #f3f4f6; }

.bf-hiw-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bf-hiw-section__icon {
    font-size: 1.15rem;
    line-height: 1;
}

.bf-hiw-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

html[data-theme="light"] .bf-hiw-section__title { color: #111827; }

.bf-hiw-section__body {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.58);
    margin: 0 0 8px;
    line-height: 1.7;
}

.bf-hiw-section__body:last-child { margin-bottom: 0; }

html[data-theme="light"] .bf-hiw-section__body { color: #6b7280; }

/* ── HIW pass list (numbered steps inside a section) ────────────────────── */
.bf-hiw-passes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.bf-hiw-pass {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.bf-hiw-pass__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(132, 204, 22, 0.12);
    border: 1px solid rgba(132, 204, 22, 0.25);
    color: #a3e635;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    margin-top: 1px;
}

html[data-theme="light"] .bf-hiw-pass__num {
    background: #f7ffe6;
    border-color: #bef264;
    color: #4d7c0f;
}

.bf-hiw-pass__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-hiw-pass__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

html[data-theme="light"] .bf-hiw-pass__title { color: #111827; }

.bf-hiw-pass__desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.52);
    margin: 0;
    line-height: 1.65;
}

html[data-theme="light"] .bf-hiw-pass__desc { color: #6b7280; }

/* ═══════════════════════════════════════════════════════════════════════════
   NEW INTELLIGENCE SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared scrollbar ────────────────────────────────────────────────────── */
.bf-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(132, 204, 22, 0.28) transparent;
}
.bf-scrollable::-webkit-scrollbar       { width: 4px; }
.bf-scrollable::-webkit-scrollbar-track { background: transparent; }
.bf-scrollable::-webkit-scrollbar-thumb { background: rgba(132, 204, 22, 0.28); border-radius: 4px; }
.bf-scrollable::-webkit-scrollbar-thumb:hover { background: rgba(132, 204, 22, 0.50); }

html[data-theme="light"] .bf-scrollable::-webkit-scrollbar-thumb { background: rgba(101, 163, 13, 0.35); }

/* ── Competitors chip ────────────────────────────────────────────────────── */
.bf-tag--competitor {
    background: rgba(168, 85, 247, 0.10);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    color: #c084fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
}

html[data-theme="light"] .bf-tag--competitor {
    background: #faf5ff;
    border-color: #d8b4fe;
    color: #7e22ce;
}

/* ── Tech Stack panel ────────────────────────────────────────────────────── */
.bf-tech-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 20px 24px;
    /* margin-bottom: 16px; */
}

html[data-theme="light"] .bf-tech-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

.bf-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bf-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    padding: 4px 12px 4px 8px;
}

html[data-theme="light"] .bf-tech-chip {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
}

.bf-tech-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(132, 204, 22, 0.55);
    flex-shrink: 0;
}

.bf-tech-chip__cat {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.30);
    margin-left: 2px;
}

html[data-theme="light"] .bf-tech-chip__cat { color: #9ca3af; }

.bf-tech-empty {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    margin: 4px 0 0;
}

html[data-theme="light"] .bf-tech-empty { color: #9ca3af; }

/* Category dot colors */
.bf-tech-chip--analytics .bf-tech-chip__dot  { background: #fbbf24; }
.bf-tech-chip--marketing .bf-tech-chip__dot  { background: #f472b6; }
.bf-tech-chip--commerce .bf-tech-chip__dot   { background: #34d399; }
.bf-tech-chip--payments .bf-tech-chip__dot   { background: #34d399; }
.bf-tech-chip--framework .bf-tech-chip__dot  { background: #60a5fa; }
.bf-tech-chip--cms .bf-tech-chip__dot        { background: #818cf8; }
.bf-tech-chip--nocode .bf-tech-chip__dot     { background: #fb923c; }
.bf-tech-chip--support .bf-tech-chip__dot    { background: #a78bfa; }
.bf-tech-chip--chat .bf-tech-chip__dot       { background: #a78bfa; }
.bf-tech-chip--monitoring .bf-tech-chip__dot { background: #f87171; }
.bf-tech-chip--cdn .bf-tech-chip__dot        { background: #94a3b8; }
.bf-tech-chip--hosting .bf-tech-chip__dot    { background: #94a3b8; }
.bf-tech-chip--crm .bf-tech-chip__dot        { background: #38bdf8; }
.bf-tech-chip--forms .bf-tech-chip__dot        { background: #c084fc; }
.bf-tech-chip--advertising .bf-tech-chip__dot { background: #fb7185; }
.bf-tech-chip--abtesting .bf-tech-chip__dot   { background: #f59e0b; }
.bf-tech-chip--compliance .bf-tech-chip__dot  { background: #6ee7b7; }
.bf-tech-chip--search .bf-tech-chip__dot      { background: #38bdf8; }
.bf-tech-chip--video .bf-tech-chip__dot       { background: #c084fc; }

/* ── Activity + Intel side-by-side row ───────────────────────────────────── */
.bf-activity-intel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

@media (max-width: 860px) {
    .bf-activity-intel-row { grid-template-columns: 1fr; }
}

.bf-activity-intel-row > .bf-intel-card {
    display: flex;
    flex-direction: column;
    height: 440px;
}

.bf-activity-intel-row .bf-news-list,
.bf-activity-intel-row .bf-hiring-list {
    flex: 1;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}

/* ── Recent Posts panel ──────────────────────────────────────────────────── */
.bf-posts-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 16px;
}

html[data-theme="light"] .bf-posts-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

.bf-posts-panel--inrow {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 440px;
}

.bf-posts-panel--inrow .bf-posts-list {
    flex: 1;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}

.bf-posts-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    margin-top: 4px;
}

.bf-post-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bf-post-item:last-child { border-bottom: none; }

html[data-theme="light"] .bf-post-item { border-bottom-color: #f3f4f6; }

.bf-post-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.55;
    margin: 0 0 7px;
    word-break: break-word;
}

html[data-theme="light"] .bf-post-text { color: #374151; }

.bf-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bf-post-stat {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .bf-post-stat { color: #9ca3af; }

.bf-post-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    margin-left: auto;
}

html[data-theme="light"] .bf-post-date { color: #d1d5db; }

.bf-reddit-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.bf-reddit-item:hover { opacity: 0.75; }

.bf-reddit-sub {
    font-size: 0.70rem;
    font-weight: 700;
    color: #ff4500;
    background: rgba(255, 69, 0, 0.10);
    border: 1px solid rgba(255, 69, 0, 0.20);
    border-radius: 4px;
    padding: 1px 6px;
}

html[data-theme="light"] .bf-reddit-sub {
    background: #fff1ec;
    border-color: #ffcbb8;
}

.bf-tiktok-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.bf-tiktok-item:hover { opacity: 0.75; }

.bf-post-link {
    font-size: 0.72rem;
    color: #84cc16;
    text-decoration: none;
    font-weight: 600;
}

.bf-post-link:hover { color: #a3e635; }
html[data-theme="light"] .bf-post-link { color: #65a30d; }

/* ── Intel cards (inside bf-intel-stack) ────────────────────────────────── */
.bf-intel-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 24px;
}

html[data-theme="light"] .bf-intel-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.07);
}

.bf-news-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 12px;
}

.bf-news-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: opacity 0.15s;
}

.bf-news-item:last-child { border-bottom: none; }
.bf-news-item:hover { opacity: 0.72; }

html[data-theme="light"] .bf-news-item { border-bottom-color: #f3f4f6; }

.bf-news-item__title {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
    margin-bottom: 5px;
}

html[data-theme="light"] .bf-news-item__title { color: #111827; }

.bf-news-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-news-item__source {
    font-size: 0.70rem;
    font-weight: 600;
    color: #84cc16;
}

html[data-theme="light"] .bf-news-item__source { color: #65a30d; }

.bf-news-item__date {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .bf-news-item__date { color: #d1d5db; }

.bf-hiring-list {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-hiring-item {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.bf-hiring-item:hover { background: rgba(132, 204, 22, 0.07); }
html[data-theme="light"] .bf-hiring-item:hover { background: #f7ffe6; }

.bf-hiring-item__title {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 4px;
    line-height: 1.35;
}

html[data-theme="light"] .bf-hiring-item__title { color: #111827; }

.bf-hiring-item__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.bf-hiring-item__tag {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(132, 204, 22, 0.10);
    border: 1px solid rgba(132, 204, 22, 0.20);
    border-radius: 4px;
    color: #a3e635;
    padding: 1px 6px;
}

html[data-theme="light"] .bf-hiring-item__tag {
    background: #f7ffe6;
    border-color: #bef264;
    color: #4d7c0f;
}

.bf-hiring-item__location {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .bf-hiring-item__location { color: #9ca3af; }

/* ── Brand Signals card ──────────────────────────────────────────────────── */
.bf-signals-card {
    display: flex;
    flex-direction: column;
}

.bf-signals-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.bf-signals-section {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bf-signals-section:last-child { border-bottom: none; }

html[data-theme="light"] .bf-signals-section { border-bottom-color: #f3f4f6; }

.bf-signals-section__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.30);
    margin: 0 0 10px;
}

html[data-theme="light"] .bf-signals-section__label { color: #9ca3af; }

/* Social reach bars */
.bf-reach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bf-reach-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-reach-icon {
    font-size: 0.80rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .bf-reach-icon { color: #6b7280; }

.bf-reach-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    width: 90px;
    flex-shrink: 0;
}

html[data-theme="light"] .bf-reach-name { color: #6b7280; }

.bf-reach-bar-wrap {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
}

html[data-theme="light"] .bf-reach-bar-wrap { background: #e5e7eb; }

.bf-reach-bar {
    height: 100%;
    background: linear-gradient(90deg, #84cc16, #a3e635);
    border-radius: 99px;
    min-width: 4px;
    transition: width 0.6s ease;
}

.bf-reach-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.80);
    min-width: 38px;
    text-align: right;
    flex-shrink: 0;
}

html[data-theme="light"] .bf-reach-count { color: #111827; }

.bf-reach-verified {
    font-size: 0.62rem;
    font-weight: 700;
    color: #84cc16;
    background: rgba(132, 204, 22, 0.12);
    border-radius: 99px;
    padding: 1px 5px;
    flex-shrink: 0;
}

html[data-theme="light"] .bf-reach-verified {
    color: #4d7c0f;
    background: #f7ffe6;
}

/* Peak engagement */
.bf-peak-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bf-peak-platform {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .bf-peak-platform { color: #9ca3af; }

.bf-peak-stat {
    font-size: 1.1rem;
    font-weight: 800;
    color: #84cc16;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .bf-peak-stat { color: #4d7c0f; }

.bf-peak-sublabel {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .bf-peak-sublabel { color: #9ca3af; }

.bf-peak-retweet {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    margin-left: auto;
}

html[data-theme="light"] .bf-peak-retweet { color: #9ca3af; }

/* ── Stock / Market Position ─────────────────────────────────────────────── */
.bf-stock-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bf-stock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bf-stock-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-stock-ticker {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.03em;
}

html[data-theme="light"] .bf-stock-ticker { color: #111827; }

.bf-stock-exchange {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 4px;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html[data-theme="light"] .bf-stock-exchange {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.bf-stock-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-stock-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #84cc16;
    letter-spacing: -0.02em;
}

html[data-theme="light"] .bf-stock-price { color: #4d7c0f; }

.bf-stock-change {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.bf-stock-change--up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

.bf-stock-change--down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

html[data-theme="light"] .bf-stock-change--up   { color: #16a34a; background: #f0fdf4; }
html[data-theme="light"] .bf-stock-change--down { color: #dc2626; background: #fef2f2; }

.bf-stock-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 8px 12px;
}

html[data-theme="light"] .bf-stock-cap {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.bf-stock-cap__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .bf-stock-cap__label { color: #9ca3af; }

.bf-stock-cap__value {
    font-size: 0.90rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .bf-stock-cap__value { color: #111827; }

.bf-private-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-private-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.60);
}

html[data-theme="light"] .bf-private-badge { color: #374151; }

.bf-private-note {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .bf-private-note { color: #9ca3af; }

/* Hashtag chips */
.bf-hashtag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bf-hashtag-chip {
    background: rgba(132, 204, 22, 0.08);
    border: 1px solid rgba(132, 204, 22, 0.18);
    border-radius: 999px;
    color: #a3e635;
    font-size: 0.70rem;
    font-weight: 600;
    padding: 3px 10px;
}

html[data-theme="light"] .bf-hashtag-chip {
    background: #f7ffe6;
    border-color: #bef264;
    color: #4d7c0f;
}

.bf-hashtag-chip--loc {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.60);
}

html[data-theme="light"] .bf-hashtag-chip--loc {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
}

.bf-hashtag-chip__count {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.55;
    margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Instagram Snapshot (inside the Instagram social tab)
   ══════════════════════════════════════════════════════════════════════════ */

.bf-ig-snapshot {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── KPI Cards ─────────────────────────────────────────────────────────── */
.bf-ig-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bf-ig-kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-ig-kpi__value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.bf-ig-kpi__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.bf-ig-kpi__sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 2px;
}

/* ── Section label ─────────────────────────────────────────────────────── */
.bf-ig-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.50);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* ── Top Posts Grid ────────────────────────────────────────────────────── */
.bf-ig-top-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bf-ig-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bf-ig-post-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: border-color 0.18s, transform 0.18s;
    color: inherit;
}

.bf-ig-post-card:hover {
    border-color: rgba(132, 204, 22, 0.35);
    transform: translateY(-2px);
}

.bf-ig-post-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-ig-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bf-ig-post-thumb__fallback {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
}

.bf-ig-post-type-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.bf-ig-post-caption {
    padding: 10px 12px 6px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.70);
    margin: 0;
    flex: 1;
}

.bf-ig-post-foot {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bf-ig-post-foot__stats {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bf-ig-post-stat {
    font-size: 0.70rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

.bf-ig-post-date-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.28);
    white-space: nowrap;
}

/* ── Posts Table ───────────────────────────────────────────────────────── */
.bf-ig-table-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bf-ig-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bf-ig-table-count {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.30);
    font-weight: 600;
}

.bf-ig-table-scroll {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.bf-ig-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
}

.bf-ig-table thead tr {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.bf-ig-table th {
    padding: 9px 14px;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.30);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.bf-ig-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.bf-ig-table tbody tr:last-child td {
    border-bottom: none;
}

.bf-ig-table tbody tr:hover td {
    background: rgba(132, 204, 22, 0.03);
}

.bf-ig-table-type {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.bf-ig-table-caption {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.70);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bf-ig-table-date {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.35);
}

.bf-ig-table-link {
    color: #84cc16;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}

.bf-ig-table-link:hover {
    opacity: 0.7;
}

/* ── Light mode ────────────────────────────────────────────────────────── */
html[data-theme="light"] .bf-ig-kpi {
    background: #ffffff;
    border-color: #e5e7eb;
}

html[data-theme="light"] .bf-ig-kpi__value {
    color: #111827;
}

html[data-theme="light"] .bf-ig-kpi__label {
    color: #6b7280;
}

html[data-theme="light"] .bf-ig-kpi__sub {
    color: #9ca3af;
}

html[data-theme="light"] .bf-ig-section-label {
    color: #6b7280;
}

html[data-theme="light"] .bf-ig-post-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

html[data-theme="light"] .bf-ig-post-thumb {
    background: #f3f4f6;
}

html[data-theme="light"] .bf-ig-post-caption {
    color: #374151;
}

html[data-theme="light"] .bf-ig-post-foot {
    border-top-color: #f3f4f6;
}

html[data-theme="light"] .bf-ig-post-stat {
    color: #6b7280;
}

html[data-theme="light"] .bf-ig-post-date-label {
    color: #9ca3af;
}

html[data-theme="light"] .bf-ig-table-scroll {
    border-color: #e5e7eb;
}

html[data-theme="light"] .bf-ig-table {
    color: #374151;
}

html[data-theme="light"] .bf-ig-table thead tr {
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .bf-ig-table th {
    color: #9ca3af;
}

html[data-theme="light"] .bf-ig-table td {
    border-bottom-color: #f3f4f6;
}

html[data-theme="light"] .bf-ig-table-type,
html[data-theme="light"] .bf-ig-table-date,
html[data-theme="light"] .bf-ig-table-count {
    color: #9ca3af;
}

html[data-theme="light"] .bf-ig-table-caption {
    color: #374151;
}

/* ── Pin button + hero actions group ────────────────────────────────────── */
.bf-result-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.bf-pin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(132, 204, 22, 0.45);
    background: rgba(132, 204, 22, 0.08);
    color: #a3e635;
    white-space: nowrap;
    flex-shrink: 0;
}

.bf-pin-btn:hover:not(:disabled) {
    background: rgba(132, 204, 22, 0.18);
    border-color: rgba(132, 204, 22, 0.70);
    color: #d9f99d;
}

.bf-pin-btn--pinned {
    background: rgba(132, 204, 22, 0.18);
    border-color: #84cc16;
    color: #d9f99d;
}

.bf-pin-btn--pinned:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.50);
    color: #fca5a5;
}

.bf-pin-btn--pinning,
.bf-pin-btn--unpinning {
    opacity: 0.65;
    cursor: not-allowed;
}

.bf-pin-btn__icon {
    font-size: 0.9rem;
    line-height: 1;
}

.bf-pin-btn__spinner {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: bf-pin-spin 0.65s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes bf-pin-spin {
    to { transform: rotate(360deg); }
}

html[data-theme="light"] .bf-pin-btn {
    border-color: rgba(101, 163, 13, 0.45);
    background: rgba(101, 163, 13, 0.06);
    color: #65a30d;
}

html[data-theme="light"] .bf-pin-btn:hover:not(:disabled) {
    background: rgba(101, 163, 13, 0.12);
    border-color: rgba(101, 163, 13, 0.70);
    color: #4d7c0f;
}

html[data-theme="light"] .bf-pin-btn--pinned {
    background: rgba(101, 163, 13, 0.10);
    border-color: #65a30d;
    color: #4d7c0f;
}

html[data-theme="light"] .bf-pin-btn--pinned:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.35);
    color: #dc2626;
}

