/* ── Influencer Finder ─────────────────────────────────────────────────────
   This file is self-contained so the mini app can be extracted independently.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.if-page {
    background: #06101d;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: -96px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.if-header {
    background: linear-gradient(140deg, #080f1a 0%, #0c1e2f 55%, #0a2a2e 100%);
    border-bottom: 1px solid rgba(6, 182, 212, 0.18);
    position: relative;
    /* Influencer has dynamic log content — let height grow beyond standard 300px */
    height: auto;
    margin: -70px 0 -90px 0;
}

/* Prevent flex-stretch on back button inside the dark header */
.if-header .back-to-store-btn {
    display: inline-flex !important;
    width: auto;
    align-self: flex-start;
}

.if-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.if-header__body {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    /* padding-bottom: 4px; */
    /* margin-top: -36px; */

}

/* Left column — title text */
.if-header__left {
    flex: 0 0 auto;
    max-width: 520px;
}

.if-header__badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 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; */
    margin-top: 10px;
}

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

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

.if-header__chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.if-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.70);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
}

.if-chip--email {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.28);
    color: #06b6d4;
}

.if-chip--platform {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
    color: #a78bfa;
}

/* Admin scrape button */
.if-scrape-btn {
    background: rgba(34, 212, 124, 0.12);
    border: 1px solid rgba(34, 212, 124, 0.30);
    color: #22d47c;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}

.if-scrape-btn:hover:not(:disabled) {
    background: rgba(34, 212, 124, 0.22);
    transform: translateY(-1px);
}

.if-scrape-btn--loading { opacity: 0.65; cursor: not-allowed; }
.if-scrape-btn--enrich {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.30);
    color: #06b6d4;
}
.if-scrape-btn--enrich:hover:not(:disabled) { background: rgba(6, 182, 212, 0.22); }

.if-scrape-msg {
    font-size: 0.78rem;
    color: #22d47c;
    margin: -16px 0 -8px;
    max-width: 600px;
    align-self: flex-end;
    padding-bottom: 30px;
}

.if-header__chips-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    flex-shrink: 0;
}

.if-scrape-msg--reserved {
    min-height: 18px;
    margin: 5px 0 0;
    font-size: 0.78rem;
    color: #22d47c;
    visibility: hidden;
}

.if-scrape-msg--reserved:not(:empty) {
    visibility: visible;
    margin: 36px 0 -36px 0;
}

/* ── Scrape log panel — right side of header body ───────────────────────── */
.if-scrape-log {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;              /* fills all remaining space to the right of the title */
    min-width: 0;
    min-height: 60px;
    max-height: 160px;
    overflow-y: auto;
    padding: 10px 14px;
    background: rgba(0,0,0,0.40);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1.5;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    margin: -67px 127px 0 0;
}

.if-scrape-log__line {
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
    color: rgba(255,255,255,0.55);
}
.if-scrape-log__line--warn  { color: #f5a623; }
.if-scrape-log__line--error { color: #ff5f5f; }
.if-scrape-log__line--log:has(✓) { color: #22d47c; }

/* ── Body ───────────────────────────────────────────────────────────────── */
.if-body {
    padding-top: 60px;
    padding-bottom: 100px;
}

/* ── Controls row ───────────────────────────────────────────────────────── */
.if-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* Search */
.if-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.if-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.30);
    pointer-events: none;
}

.if-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 10px 38px 10px 40px;
    font-size: 0.88rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.18s;
}

.if-search::placeholder { color: rgba(255, 255, 255, 0.28); }

.if-search:focus {
    border-color: rgba(6, 182, 212, 0.50);
    background: rgba(255, 255, 255, 0.08);
}

.if-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.if-search-clear:hover { color: rgba(255, 255, 255, 0.70); }

/* Filter selects */
.if-filters {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.if-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    outline: none;
    cursor: pointer;
    transition: border-color 0.18s;
}

.if-select option { background: #111b28; }

.if-select:focus { border-color: rgba(6, 182, 212, 0.50); }

/* Right controls */
.if-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.if-view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    overflow: hidden;
}

.if-view-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.40);
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.if-view-btn.active,
.if-view-btn:hover {
    background: rgba(6, 182, 212, 0.18);
    color: #06b6d4;
}

.if-export-btn {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.28);
    color: #06b6d4;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}

.if-export-btn:hover {
    background: rgba(6, 182, 212, 0.22);
    transform: translateY(-1px);
}

.if-export-btn--outreach {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #f59e0b;
}
.if-export-btn--outreach:hover { background: rgba(245, 158, 11, 0.22); }

/* ── Saved lists row ────────────────────────────────────────────────────── */
.if-lists-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.if-lists-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.35);
    margin-right: 4px;
}

.if-list-pill-wrap {
    display: inline-flex;
    align-items: center;
}

.if-list-pill {
    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 0 0 999px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.if-list-pill:only-child,
.if-lists-row > .if-list-pill { border-radius: 999px; }

.if-list-pill.active {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.40);
    color: #06b6d4;
}

.if-list-pill:hover:not(.active) { background: rgba(255, 255, 255, 0.10); color: #e2e8f0; }

.if-list-pill__count {
    font-size: 0.65rem;
    opacity: 0.65;
    margin-left: 3px;
}

.if-list-pill__del {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-left: none;
    color: rgba(255, 255, 255, 0.35);
    border-radius: 0 999px 999px 0;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.if-list-pill__del:hover { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.25); }

/* ── Bulk list dropdown ─────────────────────────────────────────────────── */
.if-bulk-btn--list {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.30);
}
.if-bulk-btn--list:hover { background: rgba(245, 158, 11, 0.25); }

.if-list-drop {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #0c1e2f;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 12px;
    padding: 8px;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.if-list-drop__item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.80rem;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.if-list-drop__item:hover { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }

.if-list-drop__new {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.if-list-drop__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.78rem;
    padding: 5px 8px;
    outline: none;
    min-width: 0;
}
.if-list-drop__input::placeholder { color: rgba(255, 255, 255, 0.25); }
.if-list-drop__input:focus { border-color: rgba(6, 182, 212, 0.45); }

.if-list-drop__add {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.30);
    color: #06b6d4;
    border-radius: 8px;
    width: 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
}
.if-list-drop__add:hover { background: rgba(6, 182, 212, 0.28); }

/* ── Platform pills ─────────────────────────────────────────────────────── */
.if-platform-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.if-pill {
    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;
    padding: 6px 16px;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.if-pill:hover { transform: translateY(-1px); }

.if-pill.active,
.if-pill--all.active {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.50);
    color: #06b6d4;
}

.if-pill--instagram.active { background: rgba(225, 48, 108, 0.18); border-color: rgba(225, 48, 108, 0.50); color: #E1306C; }
.if-pill--tiktok.active    { background: rgba(50, 50, 50, 0.30);   border-color: rgba(200, 200, 200, 0.40); color: #d0d0d0; }
.if-pill--x.active         { background: rgba(50, 50, 50, 0.30);   border-color: rgba(200, 200, 200, 0.40); color: #d0d0d0; }
.if-pill--reddit.active    { background: rgba(255, 69, 0, 0.18);   border-color: rgba(255, 69, 0, 0.50);    color: #FF6020; }
.if-pill--youtube.active   { background: rgba(255, 0, 0, 0.18);    border-color: rgba(255, 0, 0, 0.45);     color: #ff4444; }
.if-pill--linkedin.active  { background: rgba(10, 102, 194, 0.18); border-color: rgba(10, 102, 194, 0.50);  color: #4da3f5; }

/* Divider between platform pills and utility pills */
.if-pills-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    align-self: center;
    flex-shrink: 0;
    margin: 0 2px;
}

.if-pill--email-only.active {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.50);
    color: #06b6d4;
}

/* ── Summary row ────────────────────────────────────────────────────────── */
.if-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.if-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.if-select-all input { accent-color: #06b6d4; cursor: pointer; }

.if-summary__count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.40);
}

.if-summary__email { color: #06b6d4; }
.if-summary__selected strong { color: #a78bfa; }

/* ── Grid ───────────────────────────────────────────────────────────────── */
.if-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.if-card {
    background: #0f1c2e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--platform-color, #06b6d4);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.if-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.if-card.is-selected {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.06);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

/* Card top row */
.if-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.if-card__check { accent-color: #06b6d4; cursor: pointer; }

.if-card__platform-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 2px 10px;
}

.if-card__verified {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #06b6d4;
    color: #06101d;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Avatar */
.if-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.if-card__avatar--img {
    object-fit: cover;
    display: block;
}

.if-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.if-card__handle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: 2px;
}

.if-card__location {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.30);
    margin-bottom: 8px;
}

/* Metrics */
.if-card__metrics {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.if-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.if-metric__label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.30);
}

.if-metric__value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.if-metric__value--high { color: #22d47c; }
.if-metric__value--mid  { color: #facc15; }
.if-metric__value--low  { color: rgba(255, 255, 255, 0.55); }

/* Niches */
.if-card__niches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.if-niche-tag {
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.22);
    color: #a78bfa;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 10px;
}

/* Email area */
.if-card__email-area { margin-top: auto; }

.if-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
}

.if-email-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.if-email-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.if-email-btn {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #06b6d4;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.if-email-btn:hover {
    background: rgba(6, 182, 212, 0.25);
    color: #06b6d4;
    text-decoration: none;
}

.if-no-email {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.20);
    font-style: italic;
}

/* ── Table view ─────────────────────────────────────────────────────────── */
.if-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.if-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

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

.if-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.if-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.80);
    vertical-align: middle;
}

.if-table td input { accent-color: #06b6d4; }

.if-table tbody tr {
    transition: background 0.14s;
}

.if-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.if-table tbody tr.is-selected { background: rgba(6, 182, 212, 0.06); }

.if-table__num {
    font-weight: 700;
    color: #ffffff;
}

.if-table__niches {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Row avatar */
.if-row-creator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.if-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}
.if-row-avatar--img {
    object-fit: cover;
    display: block;
}

.if-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.if-row-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}

.if-row-handle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
}

.if-row-email {
    display: flex;
    align-items: center;
    gap: 6px;
}

.if-row-email-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Engagement badge */
.if-eng {
    font-size: 0.80rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.if-eng--high { background: rgba(34, 212, 124, 0.14); color: #22d47c; }
.if-eng--mid  { background: rgba(250, 204, 21, 0.14);  color: #facc15; }
.if-eng--low  { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.45); }

/* ── Empty state ────────────────────────────────────────────────────────── */
.if-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.35);
}

.if-empty span { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.if-empty p { font-size: 0.92rem; margin-bottom: 20px; }

.if-empty button {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.30);
    color: #06b6d4;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
}

.if-empty button:hover { background: rgba(6, 182, 212, 0.24); }

/* ── Bulk action bar ────────────────────────────────────────────────────── */
.if-bulk-bar {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f1c2e;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(6, 182, 212, 0.12);
    padding: 10px 10px 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    animation: if-bar-in 0.20s ease;
}

@keyframes if-bar-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.if-bulk-bar__count {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.if-bulk-bar__actions {
    display: flex;
    gap: 8px;
}

.if-bulk-btn {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s, opacity 0.15s;
    white-space: nowrap;
}

.if-bulk-btn:hover {
    transform: translateY(-1px); opacity: 0.90;
}

.if-bulk-btn--email {
    background: #06b6d4;
    color: #06101d;
    border-color: #06b6d4;
}

.if-bulk-btn--export {
    background: rgba(167, 139, 250, 0.18);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.35);
}

.if-bulk-btn--clear {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ── Paginator ──────────────────────────────────────────────────────────── */
.mini-paginator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 0 8px;
}

.mini-paginator button {
    background: rgba(6, 182, 212, 0.10);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #06b6d4;
    border-radius: 999px;
    padding: 7px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.mini-paginator button:hover:not(:disabled) {
    background: rgba(6, 182, 212, 0.22);
    transform: translateY(-1px);
}

.mini-paginator button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mini-paginator__info {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    min-width: 60px;
    text-align: center;
}

/* ── Mode tabs ──────────────────────────────────────────────────────────── */
.if-mode-tabs-wrap {
    /* padding: 0 0 16px 0; */
    /* margin: 16px 0 0 0; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.if-mode-tabs-left {
    display: flex;
    gap: 6px;
}

.if-mode-tab {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.80);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    width: auto;
    white-space: nowrap;
    line-height: 1.4;
}

.if-mode-tab:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }

.if-mode-tab.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.45);
    color: #06b6d4;
}

.if-mode-tab--discover.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.45);
    color: #a78bfa;
}

/* ── Discover panel ─────────────────────────────────────────────────────── */
.if-discover {
    padding: 24px 0 48px;
}

.if-discover__header { margin-bottom: 24px; }

.if-discover__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.if-discover__sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
}

.if-discover__type-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.if-discover__type-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;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.if-discover__type-tab:hover { background: rgba(255,255,255,0.10); color: #fff; }

.if-discover__type-tab.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.45);
    color: #a78bfa;
}

.if-discover__search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.if-discover__search-btn {
    background: #a78bfa;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 0 24px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
    flex-shrink: 0;
}

.if-discover__search-btn:hover:not(:disabled) { background: #8b5cf6; }
.if-discover__search-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.if-discover__count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: 16px;
}

/* ── Discover grid ──────────────────────────────────────────────────────── */
.if-discover__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

/* ── Discover card ──────────────────────────────────────────────────────── */
.if-discover-card {
    background: #0d1f35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.18s;
    justify-content: space-between;
    position: relative; /* anchor for absolutely-positioned enrich badge */
    /* height: 230px; */
}

.if-discover-card:hover { border-color: rgba(167, 139, 250, 0.35); }

.if-discover-card--skeleton {
    height: 130px;
    background: linear-gradient(90deg, #0d1f35 25%, #132840 50%, #0d1f35 75%);
    background-size: 200% 100%;
    animation: if-shimmer 1.4s infinite;
    border-radius: 14px;
}

@keyframes if-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.if-discover-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 68px; /* reserve space for the abs-positioned enrich badge */
}

.if-discover-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.if-discover-card__avatar--initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.if-discover-card__info { flex: 1; min-width: 0; }

.if-discover-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.if-discover-card__handle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.if-discover-card__followers {
    font-size: 0.78rem;
    color: #06b6d4;
    font-weight: 600;
    margin-top: 2px;
}

.if-discover-card__bio {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin: 0;
}

.if-discover-card__add {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.40);
    color: #a78bfa;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    align-self: flex-start;
}

.if-discover-card__add:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.30);
}

.if-discover-card__add.saved {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    cursor: default;
}

.if-discover-card__add:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Enrich badge ───────────────────────────────────────────────────────── */
.if-enrich-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 2px 8px;
    flex-shrink: 0;
}

/* Badge floats in the top-right corner of the card, out of the text flow */
.if-discover-card .if-enrich-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.if-enrich-badge--idle    { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }
.if-enrich-badge--running { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.if-enrich-badge--done    { background: rgba(16,185,129,0.15);  color: #34d399; }
.if-enrich-badge--error   { background: rgba(239,68,68,0.15);   color: #f87171; }

/* ── Enrich button (on card) ────────────────────────────────────────────── */
.if-enrich-btn {
    margin-top: 6px;
    width: 100%;
    background: rgba(139, 92, 246, 0.10);
    border: 1px solid rgba(139, 92, 246, 0.30);
    color: #a78bfa;
    border-radius: 8px;
    padding: 7px 0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.if-enrich-btn:hover:not(:disabled) { background: rgba(139, 92, 246, 0.22); }
.if-enrich-btn.loading, .if-enrich-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Saved chip ─────────────────────────────────────────────────────────── */
.if-chip--saved {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    transition: background 0.15s;
}
.if-chip--saved:hover { background: rgba(251, 191, 36, 0.22); }

/* ── Saved sub-tab ──────────────────────────────────────────────────────── */
.if-discover__type-tab--saved.active {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

/* ── Saved card extras ──────────────────────────────────────────────────── */
.if-saved-card { border-color: rgba(251, 191, 36, 0.15); }
.if-saved-card:hover { border-color: rgba(251, 191, 36, 0.35); }

.if-saved-card__email {
    font-size: 0.78rem;
    color: #06b6d4;
    margin: 0;
}

.if-saved-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.if-saved-card__actions .if-enrich-btn {
    flex: 1;
    margin-top: 0;
}

.if-saved-card__remove {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.if-saved-card__remove:hover { background: rgba(239, 68, 68, 0.22); }

/* ── Influencer detail modal ─────────────────────────────────────────────── */
.if-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: if-backdrop-in 0.18s ease;
}

@keyframes if-backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.if-modal {
    position: relative;
    background: #0b1623;
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(6,182,212,0.08);
    animation: if-modal-in 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(6,182,212,0.2) transparent;
}

@keyframes if-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.if-modal::-webkit-scrollbar { width: 5px; }
.if-modal::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.2); border-radius: 99px; }

.if-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.50);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.if-modal__close:hover { background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.3); }

/* Profile header */
.if-modal__profile {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.if-modal__avatar-wrap { flex-shrink: 0; }

.if-modal__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(6,182,212,0.30);
}

.if-modal__avatar--initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.12);
}

.if-modal__profile-info { flex: 1; min-width: 0; padding-right: 44px; /* clear the abs-positioned close button */ }

.if-modal__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.if-modal__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.if-modal__verified {
    background: #06b6d4;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.if-modal__handle {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 6px;
}

.if-modal__location {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.40);
    margin-bottom: 4px;
}

.if-modal__email-preview {
    font-size: 0.82rem;
    color: #06b6d4;
    margin-top: 2px;
}

/* Sections */
.if-modal__section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 14px 16px;
}

.if-modal__section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 10px;
}

/* Stats grid */
.if-modal__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.if-modal__stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.if-modal__stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.if-modal__stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.3;
}

/* Bio */
.if-modal__bio {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Contact */
.if-modal__contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.if-modal__contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.if-modal__contact-icon {
    font-size: 0.88rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.55;
}

.if-modal__contact-val {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.70);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.if-modal__contact-link {
    font-size: 0.85rem;
    color: #06b6d4;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}
.if-modal__contact-link:hover { color: #67e8f9; text-decoration: underline; }

/* Actions row */
.if-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 4px;
}

.if-modal__dismiss {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.55);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-left: auto;
}
.if-modal__dismiss:hover { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.80); }

/* Hover hint on saved cards */
.if-saved-card { transition: border-color 0.18s, box-shadow 0.18s; }
.if-saved-card:hover {
    border-color: rgba(6,182,212,0.35);
    box-shadow: 0 4px 24px rgba(6,182,212,0.10);
}

@media (max-width: 600px) {
    .if-modal { padding: 24px 16px 20px; border-radius: 16px; }
    .if-modal__profile { flex-direction: column; align-items: center; text-align: center; }
    .if-modal__name-row { justify-content: center; }
    .if-modal__stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Link button (inline) ────────────────────────────────────────────────── */
.if-link-btn {
    background: none;
    border: none;
    color: #a78bfa;
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

/* ── How It Works button ─────────────────────────────────────────────────── */
.if-hiw-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.50);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    margin-top: 10px;
}
.if-hiw-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.80);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ── How It Works modal ──────────────────────────────────────────────────── */
.if-hiw-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: if-backdrop-in 0.18s ease;
}

.if-hiw-modal {
    position: relative;
    background: #0a1525;
    border: 1px solid rgba(6, 182, 212, 0.20);
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(6,182,212,0.08);
    animation: if-modal-in 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(6,182,212,0.2) transparent;
}
.if-hiw-modal::-webkit-scrollbar       { width: 5px; }
.if-hiw-modal::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.2); border-radius: 99px; }

.if-hiw-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.50);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
    flex-shrink: 0;
}
.if-hiw-modal__close:hover { background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.3); }

.if-hiw-modal__header { margin-bottom: 28px; padding-right: 40px; }

.if-hiw-modal__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #06b6d4;
    margin-bottom: 8px;
}

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

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

/* Sections */
.if-hiw-section {
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.if-hiw-section:first-of-type { border-top: none; }

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

.if-hiw-section__icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.if-hiw-section__body {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.60);
    line-height: 1.75;
    margin: 0;
}

.if-hiw-section__body strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* Platform grid */
.if-hiw-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.if-hiw-platform-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--pc, #06b6d4);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.if-hiw-platform-item__name {
    font-size: 0.80rem;
    font-weight: 700;
    color: #ffffff;
}

.if-hiw-platform-item__method {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.40);
    line-height: 1.5;
}

.if-hiw-platform-item__tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    align-self: flex-start;
    margin-top: 4px;
}

.if-hiw-platform-item__tag--dynamic {
    background: rgba(34,212,124,0.12);
    color: #22d47c;
    border: 1px solid rgba(34,212,124,0.25);
}

.if-hiw-platform-item__tag--seeds {
    background: rgba(250,204,21,0.10);
    color: #facc15;
    border: 1px solid rgba(250,204,21,0.22);
}

/* Enrichment passes */
.if-hiw-passes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.if-hiw-pass {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.if-hiw-pass__num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #06b6d4;
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.20);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.if-hiw-pass__content { flex: 1; min-width: 0; }

.if-hiw-pass__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}

.if-hiw-pass__desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.55;
    margin: 0;
}

.if-hiw-pass__free {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #22d47c;
    background: rgba(34,212,124,0.10);
    border: 1px solid rgba(34,212,124,0.20);
    border-radius: 999px;
    padding: 2px 8px;
    align-self: flex-start;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Cost table */
.if-hiw-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.82rem;
}

.if-hiw-table thead tr {
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.if-hiw-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.30);
}

.if-hiw-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.65);
    vertical-align: middle;
}

.if-hiw-table td:first-child { color: #ffffff; font-weight: 600; }

.if-hiw-table td .free  { color: #22d47c; font-weight: 700; }
.if-hiw-table td .paid  { color: #facc15; font-weight: 700; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .if-header__body { flex-direction: column; }
    .if-header__left { max-width: 100%; }
    .if-controls { flex-direction: column; align-items: stretch; }
    .if-right-controls { justify-content: flex-end; }
    .if-grid { grid-template-columns: 1fr 1fr; }
    .if-header__title { font-size: 1.5rem; }
}

@media (max-width: 500px) {
    .if-grid { grid-template-columns: 1fr; }
    .if-bulk-bar { width: calc(100% - 32px); border-radius: 14px; }
    .if-filters { flex-direction: column; }
}

/* ── Scout light mode ────────────────────────────────────────────────────── */
html[data-theme="light"] .if-page { background: #edfcff; }
html[data-theme="light"] .if-page .if-header {
    background: linear-gradient(140deg, #e0f7ff 0%, #b3ecfa 55%, #d0f4ff 100%);
    border-bottom-color: rgba(6, 182, 212, 0.30);
}
html[data-theme="light"] .if-page .if-header__badge {
    color: #0e7490;
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.35);
    /* margin-top: 10px; */
}
html[data-theme="light"] .if-page .if-header__title { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-header__subtitle { color: rgba(12, 74, 110, 0.65); }
html[data-theme="light"] .if-page .if-chip { color: #0369a1; border-color: rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.10); }
html[data-theme="light"] .if-page .if-filters-row { background: #f0fdff; border-color: rgba(6, 182, 212, 0.20); }
html[data-theme="light"] .if-page .if-search { background: #fff; color: #0c4a6e; border-color: rgba(6, 182, 212, 0.30); }
html[data-theme="light"] .if-page .if-search::placeholder { color: rgba(12, 74, 110, 0.45); }
html[data-theme="light"] .if-page .if-platform-btn { background: #fff; color: #0369a1; border-color: rgba(6, 182, 212, 0.25); }
html[data-theme="light"] .if-page .if-platform-btn.active { background: #06b6d4; color: #fff; border-color: #06b6d4; }
/* Platform pills */
html[data-theme="light"] .if-page .if-pill { background: rgba(255,255,255,0.70); border-color: rgba(6,182,212,0.25); color: #0369a1; }
html[data-theme="light"] .if-page .if-pill:hover { background: #fff; }
html[data-theme="light"] .if-page .if-pill.active,
html[data-theme="light"] .if-page .if-pill--all.active { background: rgba(6,182,212,0.18); border-color: rgba(6,182,212,0.50); color: #0284c7; }
html[data-theme="light"] .if-page .if-pill--instagram.active { background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.40); color: #E1306C; }
html[data-theme="light"] .if-page .if-pill--tiktok.active    { background: rgba(0,0,0,0.08);      border-color: rgba(0,0,0,0.25);     color: #111; }
html[data-theme="light"] .if-page .if-pill--x.active         { background: rgba(0,0,0,0.08);      border-color: rgba(0,0,0,0.25);     color: #111; }
html[data-theme="light"] .if-page .if-pill--reddit.active    { background: rgba(255,69,0,0.12);   border-color: rgba(255,69,0,0.40);  color: #c43a00; }
html[data-theme="light"] .if-page .if-pill--youtube.active   { background: rgba(255,0,0,0.12);    border-color: rgba(255,0,0,0.35);   color: #cc0000; }
html[data-theme="light"] .if-page .if-pill--linkedin.active  { background: rgba(10,102,194,0.12); border-color: rgba(10,102,194,0.40);color: #0a66c2; }
html[data-theme="light"] .if-page .if-pill--email-only.active { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.45); color: #0284c7; }
html[data-theme="light"] .if-page .if-pills-divider { background: rgba(6,182,212,0.20); }
html[data-theme="light"] .if-page .if-card { background: #fff; border-color: rgba(6, 182, 212, 0.18); border-left-color: var(--platform-color, #06b6d4); }
html[data-theme="light"] .if-page .if-card__name { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-card__handle { color: #0369a1; }
html[data-theme="light"] .if-page .if-card__location { color: rgba(3, 105, 161, 0.55); }
html[data-theme="light"] .if-page .if-card__metrics { border-top-color: rgba(6, 182, 212, 0.15); border-bottom-color: rgba(6, 182, 212, 0.15); }
html[data-theme="light"] .if-page .if-metric__label { color: #64748b; }
html[data-theme="light"] .if-page .if-metric__value { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-metric__value--high { color: #059669; }
html[data-theme="light"] .if-page .if-metric__value--mid  { color: #b45309; }
html[data-theme="light"] .if-page .if-metric__value--low  { color: #64748b; }
html[data-theme="light"] .if-page .if-no-email { color: rgba(3, 105, 161, 0.35); }
html[data-theme="light"] .if-page .if-email-row { background: rgba(6, 182, 212, 0.06); border-color: rgba(6, 182, 212, 0.18); }
html[data-theme="light"] .if-page .if-email-text { color: #0369a1; }
html[data-theme="light"] .if-page .if-email-btn { background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.25); color: #0369a1; }
html[data-theme="light"] .if-page .if-table { background: #fff; border-color: rgba(6, 182, 212, 0.15); }
html[data-theme="light"] .if-page .if-table th { background: #f0fdff; color: #0c4a6e; border-bottom-color: rgba(6, 182, 212, 0.20); }
html[data-theme="light"] .if-page .if-table td { color: #1e3a5f; border-bottom-color: rgba(6, 182, 212, 0.10); }
html[data-theme="light"] .if-page .if-table tr:hover td { background: #e0f7ff; }
html[data-theme="light"] .if-page .if-niche-tag { background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.22); color: #0e7490; }
html[data-theme="light"] .if-page .if-mode-tab { color: #0369a1; }
html[data-theme="light"] .if-page .if-mode-tab.active { background: #06b6d4; color: #fff; }
html[data-theme="light"] .if-page .if-hiw-btn { background: rgba(6, 182, 212, 0.08); color: #0369a1; border-color: rgba(6, 182, 212, 0.35); }
html[data-theme="light"] .if-page .if-hiw-btn:hover { background: rgba(6, 182, 212, 0.16); color: #0c4a6e; border-color: rgba(6, 182, 212, 0.50); }
/* HIW modal — light mode */
html[data-theme="light"] .if-page .if-hiw-backdrop { background: rgba(12, 74, 110, 0.55); }
html[data-theme="light"] .if-page .if-hiw-modal { background: #ffffff; border-color: rgba(6, 182, 212, 0.25); box-shadow: 0 32px 100px rgba(6, 182, 212, 0.15); }
html[data-theme="light"] .if-page .if-hiw-modal__close { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.10); color: rgba(0,0,0,0.40); }
html[data-theme="light"] .if-page .if-hiw-modal__close:hover { background: rgba(239,68,68,0.10); color: #ef4444; border-color: rgba(239,68,68,0.25); }
html[data-theme="light"] .if-page .if-hiw-modal__eyebrow { color: #0284c7; }
html[data-theme="light"] .if-page .if-hiw-modal__title { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-hiw-modal__subtitle { color: rgba(12, 74, 110, 0.60); }
html[data-theme="light"] .if-page .if-hiw-section { border-top-color: rgba(6, 182, 212, 0.12); }
html[data-theme="light"] .if-page .if-hiw-section__icon { background: rgba(6, 182, 212, 0.10); border-color: rgba(6, 182, 212, 0.22); }
html[data-theme="light"] .if-page .if-hiw-section__title { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-hiw-section__body { color: rgba(12, 74, 110, 0.70); }
html[data-theme="light"] .if-page .if-hiw-section__body strong { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-hiw-platform-item { background: rgba(6, 182, 212, 0.04); border-color: rgba(6, 182, 212, 0.14); }
html[data-theme="light"] .if-page .if-hiw-platform-item__name { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-hiw-platform-item__method { color: rgba(12, 74, 110, 0.55); }
html[data-theme="light"] .if-page .if-hiw-pass { background: rgba(6, 182, 212, 0.04); border-color: rgba(6, 182, 212, 0.14); }
html[data-theme="light"] .if-page .if-hiw-pass__num { color: #0284c7; background: rgba(6, 182, 212, 0.12); border-color: rgba(6, 182, 212, 0.25); }
html[data-theme="light"] .if-page .if-hiw-pass__title { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-hiw-pass__desc { color: rgba(12, 74, 110, 0.60); }
html[data-theme="light"] .if-page .if-hiw-table thead tr { border-bottom-color: rgba(6, 182, 212, 0.18); }
html[data-theme="light"] .if-page .if-hiw-table th { color: rgba(12, 74, 110, 0.45); }
html[data-theme="light"] .if-page .if-hiw-table td { color: rgba(12, 74, 110, 0.70); border-bottom-color: rgba(6, 182, 212, 0.08); }
html[data-theme="light"] .if-page .if-hiw-table td:first-child { color: #0c4a6e; }
/* List row text — light mode */
html[data-theme="light"] .if-page .if-row-name { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-row-handle { color: rgba(3, 105, 161, 0.60); }
html[data-theme="light"] .if-page .if-table__niches { color: #374151; }
html[data-theme="light"] .if-page .if-row-email-text { color: #0369a1; }
/* Engagement badges — light mode */
html[data-theme="light"] .if-page .if-eng--high { background: rgba(5, 150, 105, 0.12); color: #059669; }
html[data-theme="light"] .if-page .if-eng--mid  { background: rgba(217, 119, 6, 0.12);  color: #b45309; }
html[data-theme="light"] .if-page .if-eng--low  { background: rgba(100, 116, 139, 0.12); color: #475569; }
/* Card extras */
html[data-theme="light"] .if-page .if-card { box-shadow: 0 2px 12px rgba(6, 182, 212, 0.08); }
html[data-theme="light"] .if-page .if-card__platform-badge { opacity: 1; }
/* Platform badge bg/color come from PLATFORM_CONFIG inline styles — no override needed */
html[data-theme="light"] .if-page .if-card__engagement { color: #0e7490; }
html[data-theme="light"] .if-page .if-enrich-btn { background: rgba(6, 182, 212, 0.10); color: #0369a1; border-color: rgba(6, 182, 212, 0.28); }
html[data-theme="light"] .if-page .if-enrich-btn:hover:not(:disabled) { background: #06b6d4; color: #fff; }
/* Email count */
html[data-theme="light"] .if-page .if-email-count { color: #0369a1; }
/* Sort / export controls */
html[data-theme="light"] .if-page .if-sort-btn { background: #fff; color: #0369a1; border-color: rgba(6, 182, 212, 0.28); }
html[data-theme="light"] .if-page .if-export-btn { background: #fff; color: #0369a1; border-color: rgba(6, 182, 212, 0.28); }
html[data-theme="light"] .if-page .if-export-btn--outreach { background: rgba(245,158,11,0.08); color: #b45309; border-color: rgba(245,158,11,0.28); }
html[data-theme="light"] .if-page .if-lists-label { color: #a8a29e; }
html[data-theme="light"] .if-page .if-list-pill { background: #fff; border-color: #d6d3d1; color: #57534e; }
html[data-theme="light"] .if-page .if-list-pill.active { background: rgba(6,182,212,0.10); border-color: rgba(6,182,212,0.35); color: #0369a1; }
html[data-theme="light"] .if-page .if-list-pill__del { background: #fff; border-color: #d6d3d1; color: #a8a29e; }
html[data-theme="light"] .if-page .if-bulk-btn--list { background: rgba(245,158,11,0.10); color: #b45309; border-color: rgba(245,158,11,0.28); }
html[data-theme="light"] .if-page .if-list-drop { background: #fff; border-color: rgba(6,182,212,0.22); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
html[data-theme="light"] .if-page .if-list-drop__item { color: #374151; }
html[data-theme="light"] .if-page .if-list-drop__new { border-top-color: #f0ede8; }
html[data-theme="light"] .if-page .if-list-drop__input { background: #f5f5f4; border-color: #d6d3d1; color: #1c1917; }
html[data-theme="light"] .if-page .if-view-btn { background: rgba(6, 182, 212, 0.10); color: #0369a1; border-color: rgba(6, 182, 212, 0.25); }
html[data-theme="light"] .if-page .if-view-btn.active { background: #06b6d4; color: #fff; }

/* Filter selects */
html[data-theme="light"] .if-page .if-select { background: #fff; border-color: rgba(6,182,212,0.28); color: #0c4a6e; }
html[data-theme="light"] .if-page .if-select:focus { border-color: rgba(6,182,212,0.55); }
html[data-theme="light"] .if-page .if-select option { background: #fff; color: #0c4a6e; }

/* ── Summary bar + bulk bar — light mode ────────────────────────────────── */
html[data-theme="light"] .if-page .if-select-all { color: #0369a1; }
html[data-theme="light"] .if-page .if-summary__count { color: rgba(3,105,161,0.65); }
html[data-theme="light"] .if-page .if-summary__count strong { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-summary__email { color: #0e7490; }
html[data-theme="light"] .if-page .if-summary__selected strong { color: #7c3aed; }
html[data-theme="light"] .if-page .if-bulk-bar { background: #fff; border-color: rgba(6,182,212,0.35); box-shadow: 0 12px 40px rgba(6,182,212,0.18); }
html[data-theme="light"] .if-page .if-bulk-bar__count { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-bulk-btn--email { background: #06b6d4; color: #fff; border-color: #06b6d4; }
html[data-theme="light"] .if-page .if-bulk-btn--export { background: rgba(124,58,237,0.10); color: #7c3aed; border-color: rgba(124,58,237,0.28); }
html[data-theme="light"] .if-page .if-bulk-btn--clear { background: rgba(6,182,212,0.08); color: #0369a1; border-color: rgba(6,182,212,0.22); }

/* ── Discover section — light mode ──────────────────────────────────────── */
html[data-theme="light"] .if-page .if-discover__title { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-discover__sub { color: rgba(12, 74, 110, 0.55); }
html[data-theme="light"] .if-page .if-discover__count { color: rgba(3, 105, 161, 0.55); }
/* Type tabs */
html[data-theme="light"] .if-page .if-discover__type-tab { background: rgba(255,255,255,0.70); border-color: rgba(6,182,212,0.22); color: #0369a1; }
html[data-theme="light"] .if-page .if-discover__type-tab:hover { background: #fff; color: #0c4a6e; }
html[data-theme="light"] .if-page .if-discover__type-tab.active { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.45); color: #0284c7; }
html[data-theme="light"] .if-page .if-discover__type-tab--saved.active { background: rgba(217,119,6,0.12); border-color: rgba(217,119,6,0.40); color: #b45309; }
/* Search btn */
html[data-theme="light"] .if-page .if-discover__search-btn { background: #7c3aed; }
html[data-theme="light"] .if-page .if-discover__search-btn:hover:not(:disabled) { background: #6d28d9; }
/* Discover result cards */
html[data-theme="light"] .if-page .if-discover-card { background: #fff; border-color: rgba(6,182,212,0.18); }
html[data-theme="light"] .if-page .if-discover-card:hover { border-color: rgba(6,182,212,0.45); box-shadow: 0 4px 16px rgba(6,182,212,0.10); }
html[data-theme="light"] .if-page .if-discover-card__name { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-discover-card__handle { color: rgba(3,105,161,0.60); }
html[data-theme="light"] .if-page .if-discover-card__followers { color: #0e7490; }
html[data-theme="light"] .if-page .if-discover-card__bio { color: rgba(3,105,161,0.55); }
html[data-theme="light"] .if-page .if-discover-card__add { background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.30); color: #7c3aed; }
html[data-theme="light"] .if-page .if-discover-card__add:hover:not(:disabled) { background: rgba(124,58,237,0.20); }
html[data-theme="light"] .if-page .if-discover-card__add.saved { background: rgba(5,150,105,0.10); border-color: rgba(5,150,105,0.30); color: #059669; }
html[data-theme="light"] .if-page .if-discover-card--skeleton { background: linear-gradient(90deg, #e0f7ff 25%, #cff2fc 50%, #e0f7ff 75%); border-color: transparent; }
/* Saved cards */
html[data-theme="light"] .if-page .if-saved-card { border-color: rgba(217,119,6,0.20); }
html[data-theme="light"] .if-page .if-saved-card:hover { border-color: rgba(217,119,6,0.40); box-shadow: 0 4px 16px rgba(217,119,6,0.08); }
html[data-theme="light"] .if-page .if-saved-card__email { color: #0e7490; }
html[data-theme="light"] .if-page .if-saved-card__remove { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.22); color: #dc2626; }
html[data-theme="light"] .if-page .if-saved-card__remove:hover { background: rgba(220,38,38,0.16); }
/* Enrich badges */
html[data-theme="light"] .if-page .if-enrich-badge--idle    { background: rgba(100,116,139,0.12); color: #64748b; }
html[data-theme="light"] .if-page .if-enrich-badge--running { background: rgba(217,119,6,0.12);   color: #b45309; }
html[data-theme="light"] .if-page .if-enrich-badge--done    { background: rgba(5,150,105,0.12);   color: #059669; }
html[data-theme="light"] .if-page .if-enrich-badge--error   { background: rgba(220,38,38,0.10);   color: #dc2626; }

/* ── Detail modal — light mode ───────────────────────────────────────────── */
html[data-theme="light"] .if-page .if-modal-backdrop { background: rgba(12,74,110,0.45); }
html[data-theme="light"] .if-page .if-modal { background: #fff; border-color: rgba(6,182,212,0.22); box-shadow: 0 24px 80px rgba(6,182,212,0.15); }
html[data-theme="light"] .if-page .if-modal__close { background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.20); color: #0369a1; }
html[data-theme="light"] .if-page .if-modal__close:hover { background: rgba(220,38,38,0.10); color: #dc2626; border-color: rgba(220,38,38,0.25); }
html[data-theme="light"] .if-page .if-modal__profile { border-bottom-color: rgba(6,182,212,0.15); }
html[data-theme="light"] .if-page .if-modal__name { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-modal__handle { color: rgba(3,105,161,0.60); }
html[data-theme="light"] .if-page .if-modal__location { color: rgba(3,105,161,0.50); }
html[data-theme="light"] .if-page .if-modal__email-preview { color: #0e7490; }
html[data-theme="light"] .if-page .if-modal__section { background: #f0fdff; border-color: rgba(6,182,212,0.15); }
html[data-theme="light"] .if-page .if-modal__section-label { color: rgba(3,105,161,0.50); }
html[data-theme="light"] .if-page .if-modal__stat { background: #fff; border-color: rgba(6,182,212,0.15); }
html[data-theme="light"] .if-page .if-modal__stat-value { color: #0c4a6e; }
html[data-theme="light"] .if-page .if-modal__stat-label { color: rgba(3,105,161,0.55); }
html[data-theme="light"] .if-page .if-modal__bio { color: rgba(12,74,110,0.75); }
html[data-theme="light"] .if-page .if-modal__contact-val { color: #1e3a5f; }
html[data-theme="light"] .if-page .if-modal__contact-link { color: #0369a1; }
html[data-theme="light"] .if-page .if-modal__contact-link:hover { color: #0e7490; }
html[data-theme="light"] .if-page .if-modal__dismiss { background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.22); color: #0369a1; }
html[data-theme="light"] .if-page .if-modal__dismiss:hover { background: rgba(6,182,212,0.15); color: #0c4a6e; }

/* ── Pin button (on InfluencerCard) ─────────────────────────────────────── */
.if-pin-btn {
    margin-top: 6px;
    width: 100%;
    background: rgba(251, 191, 36, 0.10);
    border: 1px solid rgba(251, 191, 36, 0.30);
    color: #fbbf24;
    border-radius: 8px;
    padding: 7px 0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.if-pin-btn:hover:not(:disabled) { background: rgba(251, 191, 36, 0.22); }
.if-pin-btn--pinned {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.55);
    color: #f59e0b;
}
.if-pin-btn--pinned:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.35);
    color: #ef4444;
}
.if-pin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* light mode overrides */
html[data-theme="light"] .if-page .if-pin-btn { background: rgba(217,119,6,0.08); border-color: rgba(217,119,6,0.25); color: #b45309; }
html[data-theme="light"] .if-page .if-pin-btn:hover:not(:disabled) { background: rgba(217,119,6,0.18); }
html[data-theme="light"] .if-page .if-pin-btn--pinned { background: rgba(217,119,6,0.14); border-color: rgba(217,119,6,0.45); color: #92400e; }
html[data-theme="light"] .if-page .if-pin-btn--pinned:hover:not(:disabled) { background: rgba(220,38,38,0.10); border-color: rgba(220,38,38,0.28); color: #dc2626; }

/* ── .si-metric — used on PinnedInfluencersPage cards ───────────────────── */
.si-metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.si-metric__label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.55;
}
.si-metric__value {
    font-size: 0.95rem;
    font-weight: 700;
}
