/* FF Vote — Frontend feed styles */

.ff-vote-page,
.ff-vote-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
}

/* ------------------------------------------------------------------
   Page layout (stats banner + two-column)
   ------------------------------------------------------------------ */
.ff-vote-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Two-column: main feed + sidebar */
.ff-vote-layout {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 24px;
    align-items: start;
}

/* ------------------------------------------------------------------
   Stats banner
   ------------------------------------------------------------------ */
.ff-vote-stats-banner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    background: #456674;
    border-radius: 12px;
    padding: 16px 24px;
}
.ff-vote-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    min-width: 70px;
}
.ff-vote-stat-icon  { font-size: 20px; line-height: 1; }
.ff-vote-stat-number {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.ff-vote-stat-label {
    font-size: 11px;
    font-weight: 500;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
}

/* ------------------------------------------------------------------
   Sidebar widgets
   ------------------------------------------------------------------ */
.ff-vote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}
.ff-vote-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ff-vote-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
/* Ad slot widget — no padding/border, just a clean container */
.ff-vote-sidebar-ad {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    overflow: hidden;
}

.ff-vote-sidebar-ad ins,
.ff-vote-sidebar-ad iframe,
.ff-vote-sidebar-ad > * {
    max-width: 100%;
}

.ff-vote-widget-empty,
.ff-vote-widget-guest {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

/* User stats grid */
.ff-vote-user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.ff-vote-user-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    padding: 10px 6px;
    gap: 2px;
}
.ff-vote-user-stat--approved {
    background: #ecfdf5;
}
.ff-vote-user-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.ff-vote-user-stat--approved .ff-vote-user-stat-num { color: #065f46; }
.ff-vote-user-stat-label {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}
.ff-vote-user-encourage {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Leaderboard */
.ff-vote-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ff-vote-leader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fafb;
    transition: background .15s, box-shadow .15s;
    cursor: pointer;
}
.ff-vote-leader:hover {
    background: #f0f4ff !important;
    box-shadow: 0 1px 4px rgba(99,102,241,.15);
}
.ff-vote-leader--1 { background: #fffbeb; }
.ff-vote-leader--2 { background: #f8fafc; }
.ff-vote-leader--3 { background: #fdf4ff; }


/* Flash highlight when scrolled-to from leaderboard */
@keyframes ff-vote-flash {
    0%   { box-shadow: 0 0 0 3px rgba(99,102,241,.6); }
    60%  { box-shadow: 0 0 0 5px rgba(99,102,241,.3); }
    100% { box-shadow: none; }
}
.ff-vote-item--flash {
    animation: ff-vote-flash 1.8s ease forwards;
}
.ff-vote-leader-rank { font-size: 18px; flex-shrink: 0; }
.ff-vote-leader-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}
.ff-vote-leader-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    flex: 1;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ff-vote-leader-score {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile: stack sidebar below feed */
@media (max-width: 780px) {
    .ff-vote-layout {
        grid-template-columns: 1fr;
    }
    .ff-vote-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .ff-vote-widget { flex: 1; min-width: 240px; }
    .ff-vote-stats-banner { flex-wrap: wrap; gap: 16px; padding: 14px 16px; }
    .ff-vote-stat-number { font-size: 22px; }
}

/* ------------------------------------------------------------------
   Tip rotator
   ------------------------------------------------------------------ */
.ff-vote-tips {
    position: relative;
    min-height: 40px;
    margin-bottom: 12px;
}
.ff-vote-tip {
    display: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #f5f3ff, #faf5ff);
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    color: #4b5563;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.ff-vote-tip--active {
    display: flex;
    opacity: 1;
}
.ff-vote-tip--fade-out {
    opacity: 0;
}
.ff-vote-tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}
.ff-vote-tip-text strong {
    color: #111827;
    font-weight: 700;
}

/* ------------------------------------------------------------------
   Progress bar
   ------------------------------------------------------------------ */
.ff-vote-progress-wrap {
    margin-bottom: 14px;
}
.ff-vote-progress-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}
.ff-vote-progress-label strong { color: #111827; }
.ff-vote-progress-bar-bg {
    height: 7px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.ff-vote-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------
   Tabs row (tabs left, disclosure right)
   ------------------------------------------------------------------ */
.ff-vote-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Override standalone bar styles when inside the tabs row */
.ff-vote-tabs-row .ff-disc-bar {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ff-vote-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.ff-vote-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    position: relative;
}
.ff-vote-tab:hover {
    border-color: #6366f1;
    color: #4f46e5;
    background: #f0f4ff;
}
.ff-vote-tab--active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff !important;
}
.ff-vote-tab--active .ff-vote-tab-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.ff-vote-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 20px;
}
/* notification dot on Saved tab */
.ff-vote-tab-dot {
    width: 7px;
    height: 7px;
    background: #f59e0b;
    border-radius: 50%;
    margin-left: -2px;
}

/* ------------------------------------------------------------------
   Table container
   ------------------------------------------------------------------ */
.ff-vote-table {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* ------------------------------------------------------------------
   Item wrapper (row + detail panel)
   ------------------------------------------------------------------ */
.ff-vote-item {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}
.ff-vote-item:last-child {
    border-bottom: none;
}
/* Top 5 — all share the same subtle cream tint */
.ff-vote-item--top-1,
.ff-vote-item--top-2,
.ff-vote-item--top-3,
.ff-vote-item--top-4,
.ff-vote-item--top-5 {
    background: #fffdf0;
    border-radius: 8px;
    margin: 2px 0;
}

/* #1 only — left accent bar to stand out without being loud */
.ff-vote-item--top-1 {
    border-left: 4px solid #d97706 !important;
}

/* ------------------------------------------------------------------
   Row grid
   ------------------------------------------------------------------ */
.ff-vote-row {
    display: grid;
    grid-template-columns: 1fr 130px auto;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
}
.ff-vote-item:hover .ff-vote-row {
    background: #fafbff;
}

/* ------------------------------------------------------------------
   Offer column
   ------------------------------------------------------------------ */
.ff-vote-col--offer {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ff-vote-offer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.ff-vote-offer-meta {
    min-width: 0;
}
.ff-vote-offer-headline {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------
   Badges
   ------------------------------------------------------------------ */
.ff-vote-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.ff-vote-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ff-vote-badge--top-1,
.ff-vote-badge--top-2,
.ff-vote-badge--top-3,
.ff-vote-badge--top-4,
.ff-vote-badge--top-5 {
    background: #fef3c7;
    color: #92400e;
}
.ff-vote-badge--hot {
    background: #fee2e2;
    color: #991b1b;
}
.ff-vote-badge--new {
    background: #d1fae5;
    color: #065f46;
}
.ff-vote-badge--visited {
    background: #f3f4f6;
    color: #6b7280;
}
.ff-vote-badge--new-for-you {
    background: #fef9c3;
    color: #854d0e;
    animation: ff-vote-badge-glow 2s ease-in-out 3;
}
@keyframes ff-vote-badge-glow {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 6px rgba(234,179,8,0.6); }
}

/* ------------------------------------------------------------------
   Votes today column
   ------------------------------------------------------------------ */
.ff-vote-col--votes {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}
.ff-vote-votes-today {
    font-weight: 700;
    color: #4f46e5;
}
.ff-vote-votes-label {
    color: #9ca3af;
    font-size: 11px;
}

/* ------------------------------------------------------------------
   Helpful button (now in action column)
   ------------------------------------------------------------------ */
.ff-vote-helpful-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.ff-vote-helpful-btn:hover:not(:disabled) {
    background: #fef3c7;
    border-color: #f59e0b;
    transform: scale(1.1);
}
.ff-vote-helpful-btn--active {
    background: #fef3c7;
    border-color: #f59e0b;
}
.ff-vote-helpful-btn:disabled {
    cursor: default;
    opacity: 0.75;
}

/* ------------------------------------------------------------------
   Action column
   ------------------------------------------------------------------ */
.ff-vote-col--action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

/* Save / bookmark button */
.ff-vote-save-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s, transform 0.12s;
}
.ff-vote-save-btn:hover {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #f59e0b;
    transform: scale(1.12);
}
.ff-vote-save-btn--active {
    color: #f59e0b;
    border-color: #f59e0b;
    background: #fffbeb;
}

/* Details toggle */
/* Details modal trigger button */
.ff-vote-details-modal-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ff-vote-details-modal-btn:hover {
    background: #e0e7ff;
    border-color: #6366f1;
    color: #4f46e5;
}

/* CTA button */
.ff-vote-cta-btn {
    display: inline-block;
    background: #4f46e5;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    outline: none !important;
    box-shadow: none !important;
}
.ff-vote-cta-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------
   Go confirmation modal
   ------------------------------------------------------------------ */
.ff-vote-go-modal {
    max-width: 460px;
    text-align: center;
}

.ff-vote-go-modal-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.ff-vote-go-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.ff-vote-go-modal-offer {
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
    margin: 0 0 16px;
}

.ff-vote-go-modal-tips {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: left;
    margin-bottom: 20px;
}

.ff-vote-go-modal-tips p {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 10px;
    line-height: 1.5;
}

.ff-vote-go-modal-tips p:last-child {
    margin-bottom: 0;
}

.ff-vote-go-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.ff-vote-go-modal-cancel {
    appearance: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: background .15s, color .15s;
    outline: none !important;
    box-shadow: none !important;
}

.ff-vote-go-modal-cancel:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.ff-vote-go-modal-proceed {
    display: inline-block;
    background: #4f46e5;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .15s, transform .1s;
}

.ff-vote-go-modal-proceed:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------
   Details modal
   ------------------------------------------------------------------ */
.ff-vote-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ffModalFadeIn .18s ease;
}
.ff-vote-modal-backdrop[hidden] { display: none; }
@keyframes ffModalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ff-vote-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: ffModalSlideUp .2s ease;
}
@keyframes ffModalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.ff-vote-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    z-index: 1;
}
.ff-vote-modal-close:hover { background: #e5e7eb; color: #111827; }
.ff-vote-modal-body { padding: 28px 28px 24px; }
.ff-vote-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.ff-vote-modal-img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ff-vote-modal-img[hidden] { display: none; }
.ff-vote-modal-headline {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}
.ff-vote-modal-description {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
    margin: 0 0 20px;
    white-space: pre-line;
}
.ff-vote-modal-actions { display: flex; gap: 12px; align-items: center; }
.ff-vote-modal-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #4f46e5;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .15s, transform .1s;
}
.ff-vote-modal-readmore:hover { background: #4338ca; transform: translateY(-1px); }
.ff-vote-modal-readmore[hidden] { display: none; }

/* Prevent body scroll when modal open */
body.ff-vote-modal-open { overflow: hidden; }

/* ------------------------------------------------------------------
   Empty state
   ------------------------------------------------------------------ */
.ff-vote-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}
.ff-vote-empty-state[hidden] { display: none; }
.ff-vote-empty-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.ff-vote-empty-msg  { font-size: 14px; margin: 0; }

/* ------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------ */
@keyframes ff-vote-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.ff-vote-helpful-btn--popping,
.ff-vote-save-btn--popping {
    animation: ff-vote-pop 0.3s ease;
}

@keyframes ff-vote-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ff-vote-item--animate {
    animation: ff-vote-fadein 0.22s ease forwards;
}

/* ------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
    .ff-vote-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 14px;
    }
    .ff-vote-col--clicks,
    .ff-vote-col--helpful {
        display: inline-flex;
        margin-right: 12px;
    }
    .ff-vote-col--action {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .ff-vote-tabs { gap: 6px; }
    .ff-vote-tab  { padding: 7px 12px; font-size: 12px; }
    .ff-vote-tabs-row {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .ff-vote-tabs-row .ff-disc-bar {
        justify-content: center;
        width: 100%;
        padding-bottom: 6px;
        margin-bottom: 4px;
    }
    .ff-vote-reactions { gap: 4px; }
    .ff-vote-react-label { display: none; }
    .ff-vote-status-wrap { flex-wrap: wrap; gap: 4px; }
    .ff-vote-search-wrap { padding: 0 0 12px; }
}

/* ------------------------------------------------------------------
   Visit filter strip
   ------------------------------------------------------------------ */
.ff-vote-visit-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ff-vote-visit-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-right: 2px;
}

.ff-vote-visit-btn {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    outline: none !important;
    box-shadow: none !important;
}

.ff-vote-visit-btn:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

.ff-vote-visit-btn--active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff !important;
}

/* ------------------------------------------------------------------
   Search bar
   ------------------------------------------------------------------ */
.ff-vote-search-wrap {
    margin-bottom: 16px;
}
.ff-vote-search {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #111827;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    box-sizing: border-box;
}
.ff-vote-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: #fff;
}
.ff-vote-search::placeholder { color: #9ca3af; }

/* No-results message when search yields nothing */
.ff-vote-search-empty {
    text-align: center;
    padding: 24px 0;
    color: #9ca3af;
    font-size: 14px;
    display: none;
}

/* Community toggle button */
.ff-vote-community-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.ff-vote-community-toggle:hover,
.ff-vote-community-toggle[aria-expanded="true"] {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #4338ca;
}
.ff-vote-community-chevron { font-size: 10px; }

/* Compact reaction summary (shown when panel is closed) */
.ff-vote-react-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 2px 7px;
    letter-spacing: .02em;
}

/* ------------------------------------------------------------------
   Social panel (collapsed by default)
   ------------------------------------------------------------------ */
.ff-vote-social {
    padding: 12px 16px 14px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ff-vote-social[hidden] { display: none; }

/* Social sections */
.ff-vote-social-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ff-vote-social-section--private {
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}
.ff-vote-social-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ff-vote-social-header-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ff-vote-social-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.ff-vote-social-badge--public {
    background: #dbeafe;
    color: #1d4ed8;
}
.ff-vote-social-badge--private {
    background: #fef9c3;
    color: #854d0e;
}

/* Reactions */
.ff-vote-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.ff-vote-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, transform .1s;
    line-height: 1;
    white-space: nowrap;
}
.ff-vote-react-btn:hover {
    border-color: #a5b4fc;
    background: #eef2ff;
    color: #4f46e5;
    transform: translateY(-1px);
}
.ff-vote-react-btn--active {
    border-color: #6366f1;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}
.ff-vote-react-btn--active.react--applied  { border-color: #10b981; background: #ecfdf5; color: #065f46; }
.ff-vote-react-btn--active.react--worked   { border-color: #3b82f6; background: #eff6ff; color: #1e40af; }
.ff-vote-react-btn--active.react--waiting  { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.ff-vote-react-btn--active.react--didnt    { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.ff-vote-react-count {
    font-weight: 700;
    font-size: 11px;
    min-width: 12px;
}
.ff-vote-react-label { font-size: 12px; }

/* Status pipeline */
.ff-vote-status-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ff-vote-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.ff-vote-status-btn:hover { border-color: #d1d5db; background: #f3f4f6; color: #374151; }
.ff-vote-status-btn--interested { border-color: #fbbf24; background: #fffbeb; color: #92400e; }
.ff-vote-status-btn--applied    { border-color: #60a5fa; background: #eff6ff; color: #1d4ed8; }
.ff-vote-status-btn--approved   { border-color: #34d399; background: #ecfdf5; color: #065f46; }
.ff-vote-status-btn--pass       { border-color: #d1d5db; background: #f3f4f6; color: #4b5563; }

/* Private note */
.ff-vote-note-wrap { display: flex; flex-direction: column; gap: 6px; }
.ff-vote-note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    font-size: 12px;
    background: #eef2ff;
    border: 1.5px solid #c7d2fe;
    border-radius: 6px;
    color: #4338ca;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s, border-color .15s, color .15s;
    width: fit-content;
}
.ff-vote-note-toggle:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}
.ff-vote-note-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ff-vote-note-area[hidden] { display: none; }
.ff-vote-note-input {
    width: 100%;
    max-width: 520px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    resize: vertical;
    transition: border-color .15s;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.ff-vote-note-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.ff-vote-note-saved-indicator {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s;
}
.ff-vote-note-saved-indicator.ff-vote-note-saved--visible { opacity: 1; }
