/* Smart Followers V2 - Component Styles */

.smart-followers-v2-block {
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.dark .smart-followers-v2-block {
    background: var(--dark-grey);
    border: 1px solid var(--white-opacity);
}

.sf-v2-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: var(--Black, #000);
    margin: 0;
}

.dark .sf-v2-title {
    color: #FFF;
}

/* Header row: title on the left, account search on the right. */
.sf-v2-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Muted "of N" suffix in the title when filtering by query. */
.sf-v2-title .sf-v2-filtered-count {
    color: var(--Black, #000);
}

.dark .sf-v2-title .sf-v2-filtered-count {
    color: #FFF;
}

.sf-v2-title .sf-v2-of-total {
    color: #656565;
    font-weight: 500;
}

.dark .sf-v2-title .sf-v2-of-total {
    color: rgba(255, 255, 255, 0.45);
}

/* ── Search box ───────────────────────────────────────────────────────── */
.sf-v2-search-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #f3f3f3;
    border: 1px solid transparent;
    border-radius: 999px;
    min-width: 280px;
    max-width: 360px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.sf-v2-search-box.focused {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(5, 68, 253, 0.18);
    background: #fff;
}

.dark .sf-v2-search-box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

.dark .sf-v2-search-box.focused {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(5, 68, 253, 0.22);
}

.sf-v2-search-icon {
    flex: 0 0 auto;
    color: #656565;
    transition: color .15s ease;
}

.sf-v2-search-box.focused .sf-v2-search-icon {
    color: var(--blue);
}

.dark .sf-v2-search-icon {
    color: rgba(255, 255, 255, 0.55);
}

.dark .sf-v2-search-box.focused .sf-v2-search-icon {
    color: var(--blue);
}

.sf-v2-search-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
}

.sf-v2-search-input::placeholder {
    color: #9E9E9E;
    opacity: 1;
}

.dark .sf-v2-search-input {
    color: #fff;
}

.dark .sf-v2-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.sf-v2-search-clear {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: #484848;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.sf-v2-search-clear:hover {
    background: rgba(0, 0, 0, 0.14);
    color: #000;
}

.dark .sf-v2-search-clear {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.dark .sf-v2-search-clear:hover {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
}

/* ── Match highlight in rendered cells ────────────────────────────────── */
mark.sf-v2-mark {
    background: rgba(5, 68, 253, 0.16);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.dark mark.sf-v2-mark {
    background: rgba(5, 68, 253, 0.32);
    color: #fff;
}

/* ── Empty state shown when search has no matches ─────────────────────── */
.sf-v2-empty-state {
    padding: 56px 24px 64px;
    text-align: center;
    border-top: 1px solid #F3F3F3;
    margin-top: 8px;
}

.dark .sf-v2-empty-state {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.sf-v2-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #656565;
    display: grid;
    place-items: center;
}

.dark .sf-v2-empty-icon {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}

.sf-v2-empty-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: #000;
    margin-bottom: 6px;
    word-break: break-word;
}

.dark .sf-v2-empty-title {
    color: #fff;
}

.sf-v2-empty-hint {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #656565;
    margin-bottom: 18px;
}

.dark .sf-v2-empty-hint {
    color: rgba(255, 255, 255, 0.55);
}

.sf-v2-empty-clear {
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: filter .15s ease;
}

.sf-v2-empty-clear:hover {
    filter: brightness(1.08);
}

/* Mobile: title and search stack vertically with full-width input. */
@media (max-width: 575.98px) {
    .sf-v2-header-row {
        align-items: stretch;
    }
    .sf-v2-search-box {
        max-width: none;
    }
}

/* ── Locked search box (Guest / Free tiers) ───────────────────────────── */
/* The search-box wraps in .sf-v2-search-wrap so the popover can be a
   sibling, positioned absolutely relative to the wrap. */
.sf-v2-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 360px;
    width: 100%;
}

.sf-v2-search-wrap .sf-v2-search-box {
    width: 100%;
}

.sf-v2-search-box.is-locked {
    cursor: pointer;
}

.sf-v2-search-box.is-locked .sf-v2-search-input {
    cursor: pointer;
    color: #6E6E76;
}

.dark .sf-v2-search-box.is-locked .sf-v2-search-input {
    color: rgba(255, 255, 255, 0.5);
}

/* Lock icon variant. The .sf-v2-search-icon--lock element lives next to
   the regular .sf-v2-search-icon and is hidden by default. */
.sf-v2-search-icon--lock {
    display: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.sf-v2-search-box.is-locked .sf-v2-search-icon { display: none; }
.sf-v2-search-box.is-locked .sf-v2-search-icon--lock { display: block; }

/* Guest = neutral grey lock; Free = gold lock to match the PRO bezel. */
.sf-v2-search-box.is-locked-guest .sf-v2-search-icon--lock {
    color: #8A8A93;
}
.sf-v2-search-box.is-locked-free .sf-v2-search-icon--lock {
    color: #CFB66C;  /* matches the gold PRO badge */
}

.dark .sf-v2-search-box.is-locked-guest .sf-v2-search-icon--lock {
    color: rgba(255, 255, 255, 0.55);
}

/* Locked box hover state: thin gold/blue ring instead of focus glow. */
.sf-v2-search-box.is-locked-free:hover {
    border-color: rgba(207, 182, 108, 0.55);
}
.sf-v2-search-box.is-locked-guest:hover {
    border-color: rgba(5, 68, 253, 0.45);
}

/* Right-side tier badge replaces the clear button in locked state. */
.sf-v2-search-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.4px;
}

.sf-v2-search-badge--guest {
    background: rgba(0, 0, 0, 0.08);
    color: #303030;
    font-weight: 600;
}

.dark .sf-v2-search-badge--guest {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
}

.sf-v2-search-badge--pro {
    background: linear-gradient(180deg, #E6CF8A 0%, #CFB66C 100%);
    color: #221A05;
}

/* ── Hover/focus popover under locked search ──────────────────────────── */
.sf-v2-search-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: 360px;
    max-width: 90vw;
    padding: 20px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18),
                0 2px 6px rgba(16, 24, 40, 0.08);
    color: #101014;
    animation: sf-v2-popover-in .15s ease;
}

.dark .sf-v2-search-popover {
    background: #16161B;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.sf-v2-search-popover[hidden] {
    display: none;
}

@keyframes sf-v2-popover-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Speech-bubble arrow pointing at the badge. */
.sf-v2-search-popover__arrow {
    position: absolute;
    top: -7px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    transform: rotate(45deg);
}

.dark .sf-v2-search-popover__arrow {
    border-color: rgba(255, 255, 255, 0.10);
}

.sf-v2-search-popover__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sf-v2-search-popover__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.sf-v2-search-popover__icon > svg {
    width: 18px;
    height: 18px;
}

/* Accent colours: guest = brand-blue tint + blue icon; free = gold tint. */
.sf-v2-search-popover--guest .sf-v2-search-popover__icon {
    background: rgba(5, 68, 253, 0.10);
    color: var(--blue, #0544FD);
}
.sf-v2-search-popover--free .sf-v2-search-popover__icon {
    background: rgba(207, 182, 108, 0.16);
    color: #CFB66C;
}

.dark .sf-v2-search-popover--guest .sf-v2-search-popover__icon {
    background: rgba(5, 68, 253, 0.18);
}

.sf-v2-search-popover__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: inherit;
}

.sf-v2-search-popover__subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #6E6E76;
    margin-top: 2px;
}

.dark .sf-v2-search-popover__subtitle {
    color: rgba(255, 255, 255, 0.45);
}

.sf-v2-search-popover__body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #303030;
    margin: 0 0 16px;
}

.dark .sf-v2-search-popover__body {
    color: rgba(255, 255, 255, 0.70);
}

.sf-v2-search-popover__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: var(--blue, #0544FD);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: filter .15s ease;
}

.sf-v2-search-popover__cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

.sf-v2-search-popover__subtext {
    margin-top: 10px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #6E6E76;
}

.dark .sf-v2-search-popover__subtext {
    color: rgba(255, 255, 255, 0.45);
}

/* ── Paywall blur overlay (new design) ────────────────────────────────── */
/* Drop-in replacement for the legacy upgrade_button block. The element
   sits inside .ts-table-premium-overlay (which the TsTable component
   positions absolutely over the blurred rows), so this is just the inner
   chrome. */
.tp-paywall-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 24px 28px;
    width: 100%;
    box-sizing: border-box;
}

.tp-paywall-overlay__icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.tp-paywall-overlay__icon > svg {
    width: 24px;
    height: 24px;
}

.tp-paywall-overlay--guest .tp-paywall-overlay__icon {
    background: rgba(5, 68, 253, 0.10);
    color: var(--blue, #0544FD);
}

.tp-paywall-overlay--free .tp-paywall-overlay__icon {
    background: rgba(207, 182, 108, 0.18);
    color: #CFB66C;
}

.dark .tp-paywall-overlay--guest .tp-paywall-overlay__icon {
    background: rgba(5, 68, 253, 0.18);
}

.tp-paywall-overlay__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #101014;
    margin-bottom: 6px;
    max-width: 520px;
}

.dark .tp-paywall-overlay__title {
    color: #fff;
}

.tp-paywall-overlay__body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6E6E76;
    margin-bottom: 20px;
    max-width: 480px;
}

.dark .tp-paywall-overlay__body {
    color: rgba(255, 255, 255, 0.6);
}

.tp-paywall-overlay__cta {
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: var(--blue, #0544FD);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: filter .15s ease;
}

.tp-paywall-overlay__cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

.tp-paywall-overlay__subtext {
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #6E6E76;
}

.dark .tp-paywall-overlay__subtext {
    color: rgba(255, 255, 255, 0.45);
}

/* On mobile the popover anchors right but should fit the viewport, so
   it stretches to the full width of the search wrap. */
@media (max-width: 575.98px) {
    .sf-v2-search-popover {
        width: 100%;
        right: auto;
        left: 0;
    }
    .sf-v2-search-popover__arrow {
        right: auto;
        left: 28px;
    }
}

/* Scroll Wrapper and Arrows */
.sf-v2-scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sf-v2-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 0;
    padding: 0 100px 0 0; /* Add right padding to prevent content from being hidden under the blur effect */
}

.sf-v2-scroll-container::-webkit-scrollbar {
    display: none;
}

.sf-v2-scroll-arrows-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    align-items: center;
    z-index: 10;
    padding-left: 80px;
    pointer-events: none;
    background: linear-gradient(270deg, var(--white) 0%, var(--white) 64px, rgba(255, 255, 255, 0) 100%);
}

.dark .sf-v2-scroll-arrows-container {
    background: linear-gradient(270deg, var(--dark-grey) 0%, var(--dark-grey) 64px, rgba(18, 18, 18, 0) 100%);
}

.sf-v2-scroll-arrow {
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    border: none;
    color: #484848;
    background: transparent;
    height: 100%;
    pointer-events: auto;
    padding: 0;
}

.dark .sf-v2-scroll-arrow {
    color: #FFF;
}

/* Nav Links / Buttons */
.sf-v2-nav-link {
    background: #f3f3f3;
    color: var(--Black, #000);
    border-radius: 8px;
    padding: 8px 12px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.sf-v2-tag-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    color: inherit;
}

.sf-v2-nav-link.tag-all {
    padding: 8px 8px 8px 12px;
}

.dark .sf-v2-nav-link {
    background: #484848;
    color: var(--White, #FFF);
}

.sf-v2-nav-link.active {
    background: var(--blue) !important;
    color: #ffffff !important;
}

.sf-v2-nav-link.active .sf-v2-tag-name {
    color: #ffffff !important;
}

.sf-v2-scroll-container .see-all {
    background-color: var(--white);
    color: var(--black);
    white-space: nowrap;
    display: inline-block;
    padding: 4px 12px;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    border: 1px solid var(--grey-300);
    border-radius: 10px;
    cursor: pointer;
}


/* Tag Count Badges */
.sf-v2-tag-count-wrapper {
    background: #ffffff;
    border-radius: 4px;
    padding: 3px 6px;
    height: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark .sf-v2-tag-count-wrapper {
    background: #27272A;
}

.sf-v2-tag-count {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: var(--Black, #000);
}

.dark .sf-v2-tag-count {
    color: var(--White, #FFF);
}

/* Category Specific Colors */
.sf-v2-nav-link.tag-1 { background: #ddf1e4; color: #1e4620; }
.sf-v2-nav-link.tag-2 { background: #ffedda; color: #7a4d05; }
.sf-v2-nav-link.tag-3 { background: #e8eefc; color: #1a3b8a; }

.dark .sf-v2-nav-link.tag-1 { background: var(--green-light); color: var(--success); }
.dark .sf-v2-nav-link.tag-2 { background: var(--yellow-light); color: var(--warning); }
.dark .sf-v2-nav-link.tag-3 { background: var(--blue-dark); color: var(--info); }

.sf-v2-nav-link.tag-1 .sf-v2-tag-count-wrapper,
.sf-v2-nav-link.tag-2 .sf-v2-tag-count-wrapper,
.sf-v2-nav-link.tag-3 .sf-v2-tag-count-wrapper { background: #ffffff; }

.dark .sf-v2-nav-link.tag-1 .sf-v2-tag-count-wrapper,
.dark .sf-v2-nav-link.tag-2 .sf-v2-tag-count-wrapper,
.dark .sf-v2-nav-link.tag-3 .sf-v2-tag-count-wrapper { background: #27272A; }

/* Table Styles */
.sf-v2-table-container {
    margin-top: 16px;
}

table.sf-v2-table {
    width: 100% !important;
    min-width: 800px;
    margin-bottom: 0 !important;
}

table.sf-v2-table thead th {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 14px !important;
    color: #656565 !important;
    border-bottom: 1px solid #F3F3F3 !important;
    padding: 12px 16px !important;
    background: var(--white) !important;
    text-align: left !important;
    white-space: nowrap;
}

.dark table.sf-v2-table thead th {
    border-bottom: 1px solid #18181B !important;
    background: var(--dark-grey) !important;
}

table.sf-v2-table tbody td {
    padding: 16px !important;
    border-bottom: 1px solid #F3F3F3 !important;
    vertical-align: middle !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    overflow: hidden !important;
}

.dark table.sf-v2-table tbody td {
    border-bottom: 1px solid #18181B !important;
}

table.sf-v2-table tbody tr:last-child td {
    border-bottom: none !important;
}

.dark table.sf-v2-table tbody tr:last-child td {
    border-bottom: none !important;
}

table.sf-v2-table tbody tr:hover td {
    background-color: #FAFAFA !important;
}

.dark table.sf-v2-table tbody tr:hover td {
    background-color: #18181B !important;
}

/* Cell Specific Styles */
.sf-v2-user-info {
    min-width: 0;
    max-width: 180px;
}

.sf-v2-user-data {
    min-width: 0;
    overflow: hidden;
}

.sf-v2-name {
    min-width: 0;
}

.sf-v2-name a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}

.sf-v2-handle {
    min-width: 0;
}

.sf-v2-handle a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}

.sf-v2-user-info .sf-v2-name a {
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.dark .sf-v2-user-info .sf-v2-name a {
    color: #FFF;
}

.sf-v2-user-info .sf-v2-handle a {
    font-weight: 400;
    font-size: 12px;
    color: #656565;
    text-decoration: none;
}

.sf-v2-verify-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.sf-v2-score {
    color: #0544FD;
    font-weight: 600;
}

.sf-v2-followers {
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.sf-v2-followers-count {
    font-weight: 500;
    color: var(--Black, #000);
}

.dark .sf-v2-followers-count {
    color: var(--white, #FFF);
}

.sf-v2-diff {
    font-size: 14px;
    font-weight: 500;
}

.sf-v2-diff-positive { color: #198754; }
.sf-v2-diff-negative { color: #dc3545; }

.dark .sf-v2-diff-positive { color: var(--success, #198754); }
.dark .sf-v2-diff-negative { color: var(--error, #dc3545); }

.sf-v2-description-text {
    font-size: 12px;
    line-height: 16px;
    color: #656565;
}

.dark .sf-v2-description-text {
    color: #9E9E9E;
}

.sf-v2-description-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #F3F3F3;
    color: #656565;
    margin-right: 4px;
    display: inline-block;
}

.dark .sf-v2-description-tag {
    background: #27272A;
    color: #9E9E9E;
}

.sf-v2-following-date {
    color: var(--Neutral-Gray-1, #484848);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.sf-v2-following-date[data-toggle="tooltip"] {
    cursor: help;
    text-decoration: none;
}

.sf-v2-smart-followers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-v2-icons-stack {
    display: flex;
    align-items: center;
}

.sf-v2-smart-avatar {
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
    border-radius: 20px;
    object-fit: cover;
    background-color: lightgray;
    border: 1px solid var(--white);
    flex-shrink: 0;
}

.dark .sf-v2-smart-avatar {
    border: 1px solid var(--dark-grey);
}

.sf-v2-smart-count {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    color: var(--Black, #000);
}

.dark .sf-v2-smart-count {
    color: #FFF;
}

.sf-v2-description-wrapper {
    display: flex;
    max-width: 322px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.sf-v2-description-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    align-self: stretch;
    overflow: hidden;
    color: var(--Neutral-Gray-2, #656565);
    text-overflow: ellipsis;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
}

.sf-v2-description-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sf-v2-description-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    color: var(--black, #000);
    white-space: nowrap;
}

.dark .sf-v2-description-tag {
    color: var(--white, #FFF);
}

/* Tag category backgrounds for description tags */
.sf-v2-description-tag.tag-1 { background: #ddf1e4; }
.sf-v2-description-tag.tag-2 { background: #ffedda; }
.sf-v2-description-tag.tag-3 { background: #e8eefc; }
.sf-v2-description-tag.tag-4 { background: #f3f3f3; }

.dark .sf-v2-description-tag.tag-1 { background: var(--green-light); }
.dark .sf-v2-description-tag.tag-2 { background: var(--yellow-light); }
.dark .sf-v2-description-tag.tag-3 { background: var(--blue-dark); }
.dark .sf-v2-description-tag.tag-4 { background: #484848; }

/* Footer & Pagination */
.sf-v2-footer {
    display: flex;
    align-items: center;
    padding-top: 24px;
    /*margin-top: 24px;*/
    /*border-top: 1px solid var(--grey-100);*/
    min-width: 800px;
}

/*.dark .sf-v2-footer {*/
/*    border-top: 1px solid var(--white-opacity);*/
/*}*/

.sf-v2-footer .dataTables_paginate {
    display: flex !important;
    gap: 8px;
    align-items: center;
    margin-right: auto !important;
}

.sf-v2-footer .dataTables_paginate > span {
    gap: 8px !important;
}


.sf-v2-footer .paginate_button {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    padding: 6px 16px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 24px !important;
    background: #F3F3F3 !important;
    color: #656565 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    cursor: pointer;
    border: none !important;
    transition: none !important;
    position: relative;
    box-sizing: border-box !important;
}

.sf-v2-footer .paginate_button::before,
.sf-v2-footer .paginate_button::after {
    display: none !important;
}

.dark .sf-v2-footer .paginate_button {
    background: #18181B !important;
    color: #656565 !important;
}

.sf-v2-footer .paginate_button.current {
    background: var(--blue) !important;
    color: var(--white) !important;
    border: 1px solid #d7d7d7 !important;
}

.dark .sf-v2-footer .paginate_button.current {
    background: #FFF !important;
    color: #000 !important;
}

/* CDN datatables-net CSS contains
       .dataTables_wrapper .dataTables_paginate .paginate_button { color: #333 !important; }
   with specificity (0,3,0). The `.sf-v2-footer .paginate_button` rules
   above are only (0,2,0)/(0,3,0), so even with `!important` the CDN wins
   on the `color` property in some states. These follow-ups use selectors
   at (0,4,0)/(0,5,0)/(0,6,0) to reclaim every state. The same trick is
   used in ts_table/styles.css to keep the two components in sync. */
.dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button {
    color: #656565 !important;
}

.dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button.current {
    color: var(--white) !important;
}

.dark .dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button {
    color: #656565 !important;
}

.dark .dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button.current {
    color: #000 !important;
}

/* Hover mirrors the active (.current) styling. Light theme: blue bg + white
   text. Dark theme: white bg + black text. Same convention is used in the
   ts_table component so paginated tables look consistent across the site.
   Specificity is doubled (including .dataTables_wrapper and a repeated
   .paginate_button class) to beat the legacy grey hover rule in
   `static/css/components/compare-table.css`. */
.dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button:hover,
.dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button.current:hover {
    background-color: var(--blue) !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

.dark .dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button:hover,
.dark .dataTables_wrapper .sf-v2-footer .paginate_button.paginate_button.current:hover {
    background-color: #FFF !important;
    color: #000 !important;
}

.sf-v2-footer .paginate_button:hover::before,
.sf-v2-footer .paginate_button:hover::after {
    display: none !important;
    content: none !important;
}

/* Pagination arrows using SVG */
.sf-v2-footer .paginate_button.previous {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M7.41 10.58L2.83 6L7.41 1.41L6 0L0 6L6 12L7.41 10.58Z' fill='%23484848'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 7.41px 12px !important;
}

.sf-v2-footer .paginate_button.previous.disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M7.41 10.58L2.83 6L7.41 1.41L6 0L0 6L6 12L7.41 10.58Z' fill='%23D7D7D7'/%3E%3C/svg%3E") !important;
    background-size: 7.41px 12px !important;
}

.sf-v2-footer .paginate_button.next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M0 10.58L4.58 6L0 1.41L1.41 0L7.41 6L1.41 12L0 10.58Z' fill='%23484848'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 7.41px 12px !important;
}

.sf-v2-footer .paginate_button.next.disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M0 10.58L4.58 6L0 1.41L1.41 0L7.41 6L1.41 12L0 10.58Z' fill='%23D7D7D7'/%3E%3C/svg%3E") !important;
    background-size: 7.41px 12px !important;
}

.dark .sf-v2-footer .paginate_button.previous {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M7.41 10.58L2.83 6L7.41 1.41L6 0L0 6L6 12L7.41 10.58Z' fill='%23D7D7D7'/%3E%3C/svg%3E") !important;
    background-size: 7.41px 12px !important;
}

.dark .sf-v2-footer .paginate_button.previous.disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M7.41 10.58L2.83 6L7.41 1.41L6 0L0 6L6 12L7.41 10.58Z' fill='%23656565'/%3E%3C/svg%3E") !important;
    background-size: 7.41px 12px !important;
}

.dark .sf-v2-footer .paginate_button.next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M0 10.58L4.58 6L0 1.41L1.41 0L7.41 6L1.41 12L0 10.58Z' fill='%23D7D7D7'/%3E%3C/svg%3E") !important;
    background-size: 7.41px 12px !important;
}

.dark .sf-v2-footer .paginate_button.next.disabled {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M0 10.58L4.58 6L0 1.41L1.41 0L7.41 6L1.41 12L0 10.58Z' fill='%23656565'/%3E%3C/svg%3E") !important;
    background-size: 7.41px 12px !important;
}

/* Hover variants for prev/next arrows. Light hover background is blue, so
   the arrow turns white; dark hover background is white, so the arrow turns
   black. Same selector-doubling trick as the digit-button hover above
   beats the legacy global rule from compare-table.css. */
.dataTables_wrapper .sf-v2-footer .paginate_button.previous.paginate_button:hover:not(.disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M7.41 10.58L2.83 6L7.41 1.41L6 0L0 6L6 12L7.41 10.58Z' fill='%23FFFFFF'/%3E%3C/svg%3E") !important;
}

.dataTables_wrapper .sf-v2-footer .paginate_button.next.paginate_button:hover:not(.disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M0 10.58L4.58 6L0 1.41L1.41 0L7.41 6L1.41 12L0 10.58Z' fill='%23FFFFFF'/%3E%3C/svg%3E") !important;
}

.dark .dataTables_wrapper .sf-v2-footer .paginate_button.previous.paginate_button:hover:not(.disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M7.41 10.58L2.83 6L7.41 1.41L6 0L0 6L6 12L7.41 10.58Z' fill='%23000000'/%3E%3C/svg%3E") !important;
}

.dark .dataTables_wrapper .sf-v2-footer .paginate_button.next.paginate_button:hover:not(.disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'%3E%3Cpath d='M0 10.58L4.58 6L0 1.41L1.41 0L7.41 6L1.41 12L0 10.58Z' fill='%23000000'/%3E%3C/svg%3E") !important;
}

.sf-v2-footer .ellipsis {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    padding: 6px 16px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 24px !important;
    background: #F3F3F3 !important;
    color: #656565 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    border: none !important;
    box-sizing: border-box !important;
}

.dark .sf-v2-footer .ellipsis {
    background: #18181B !important;
    color: #656565 !important;
}

.sf-v2-footer .dataTables_length {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #656565;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin: 0 !important;
}

.dark .sf-v2-footer .dataTables_length {
    color: #9E9E9E;
}

.sf-v2-footer .dataTables_length select {
    background-color: #fff !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 4px !important;
    height: 40px !important;
    width: 64px !important;
    padding: 0 28px 0 12px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    color: #656565 !important;
    margin-right: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1.41 0L6 4.59L10.59 0L12 1.42L6 7.42L0 1.42L1.41 0Z" fill="%239E9E9E"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    cursor: pointer;
}

.sf-v2-footer .dataTables_length select:focus,
.sf-v2-footer .dataTables_length select:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #d7d7d7 !important;
}

.dark .sf-v2-footer .dataTables_length select {
    background-color: #27272A !important;
    border: 1px solid #484848 !important;
    color: #FFF !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M7.41 8.58008L12 13.1701L16.59 8.58008L18 10.0001L12 16.0001L6 10.0001L7.41 8.58008Z" fill="%239E9E9E"/></svg>') !important;
}

.dark .sf-v2-footer .dataTables_length select:focus,
.dark .sf-v2-footer .dataTables_length select:active {
    border-color: #484848 !important;
}

.sf-v2-footer .dataTables_length .results-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #656565;
}

.dark .sf-v2-footer .dataTables_length .results-label {
    color: var(--Neutral-Gray-2, #656565);
}


/* Blur effect for unauthorized users — now handled by .premium-blur-row in premium_blur.css */
.sf-v2-blur {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

.sf-v2-table.unauthorized tbody tr {
    cursor: default;
}

/* Upgrade block inside tags wrapper */
.sf-v2-upgrade-wrapper {
    background: #f3f3f3;
    padding: 8px 16px;
    border-radius: 8px;
    height: 44px;
}

.sf-v2-upgrade-wrapper.inline {
    height: 28px;
    padding: 0 12px;
}

.dark .sf-v2-upgrade-wrapper {
    background: #18181B;
}

.sf-v2-upgrade-text {
    font-size: 14px;
    font-weight: 500;
    color: #656565;
}

.sf-v2-upgrade-wrapper.inline .sf-v2-upgrade-text {
    font-size: 12px;
}

.sf-v2-upgrade-btn-container {
    display: flex;
    align-items: center;
}

/* Table Overlay for Unauthorized Users */
.sf-v2-table-container {
    position: relative;
    overflow-x: auto;
}

/* Override premium-blur-overlay z-index for table context */
.sf-v2-table-container > .premium-blur-overlay {
    z-index: 100;
}

.sf-v2-table-container > .premium-blur-overlay .mentions button {
    padding: 8px 24px;
    font-weight: 600;
}
