.poll-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 2vw, 22px);
    margin-top: 0;
}

.poll-card-horizontal {
    flex-shrink: 0;
    width: 320px;
}

.home-main-section {
    width: 100%;
    min-width: 0;
}

.poll-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.4vw, 22px);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
    height: auto;
}

.poll-card-dashboard {
    padding: 16px;
    gap: 12px;
}

.poll-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-subtle);
}

.poll-card-header { display: flex; align-items: center; gap: 10px; }

.poll-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--copy-primary);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hover-bg);
}

.author-name { font-weight: 600; font-size: 0.9rem; color: var(--copy-primary); }

.poll-title {
    font-size: 1.15rem;
    line-height: 1.5;
    display: block;
    overflow: visible;
    margin-bottom: 4px;
}

.category-achiev {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--hover-bg);
    padding: 4px 10px;
    border-radius: 12px;
    color: var(--copy-muted);
    width: fit-content;
    display: inline-flex;
    align-items: center;
}

.poll-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.poll-vote-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--copy-muted);
}

.poll-vote-count { line-height: 1; }

.poll-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(18px, 3vw, 28px);
    align-items: start;
    width: 100%;
    margin-top: 0;
}

.poll-detail-primary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sticky-sidebar {
    position: sticky;
    top: 32px;
    align-self: start;
}

.poll-creator-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.poll-creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hover-bg);
}

.poll-creator-name { font-weight: 650; font-size: var(--font-size-body); }

.insight-locked-box {
    background: var(--hover-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: var(--copy-muted);
    font-style: italic;
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poll-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.poll-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.poll-choice:hover:not(.disabled) {
    border-color: var(--accent-color);
    background: var(--accent-light);
}

.poll-choice.selected {
    background: var(--accent-light);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.poll-choice.selected .poll-choice-text { color: var(--accent-color); }
.poll-choice.disabled:not(.selected) { opacity: 0.65; cursor: default; }
.poll-choice.disabled.selected { cursor: default; opacity: 1; }

.poll-result-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(37, 99, 235, 0.08);
    border-right: 2px solid rgba(37, 99, 235, 0.3);
    z-index: 0;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.poll-inner-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.poll-choice-text,
.poll-percentage { font-weight: 600; }

.poll-percentage { color: var(--accent-color); }

.demographics-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.demographic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: clamp(14px, 2vw, 18px);
}

.demographic-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--copy-muted);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.demographic-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: var(--font-size-sm);
}

.demographic-list-item { display: flex; flex-direction: column; gap: 4px; }
.demographic-item-meta { display: flex; justify-content: space-between; font-weight: 600; }

.demographic-value-bar-track {
    background: var(--hover-bg);
    height: 6px;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
}

.demographic-value-bar-fill {
    background: var(--accent-color);
    height: 100%;
    display: block;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.demographic-total-voters-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.total-voters-verified-group,
.total-voters-unverified-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.total-voters-unverified-group {
    justify-content: flex-end;
    border-left: 1px solid var(--border-light);
    padding-left: 16px;
}

.demographic-total-count {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--copy-primary);
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

.demographic-total-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--copy-muted);
}

.demographic-subtitle-text {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--copy-muted);
    width: 100%;
    display: block;
}

.demographic-divider {
    height: 1px;
    width: 100%;
    margin: 12px 0;
    border: none;
    background: var(--border-light);
}

.icon-fire {
    color: #ef4444;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.icon-verified {
    color: #2563eb;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    width: 18px;
    height: 18px;
}

.icon-fire-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-danger-bg);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.poll-helpful-actions {
    border-top: 1px solid var(--border-light);
}

@media (min-width: 1024px) {
    .poll-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-page-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: clamp(18px, 3vw, 32px);
        align-items: start;
    }

    .home-page-shell .home-main-section {
        grid-column: 1;
        min-width: 0;
    }

    .home-page-shell #viralSection {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        position: sticky;
        top: calc(var(--header-height) + 24px);
        background: var(--bg-card);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-lg);
        padding: 20px;
    }

    .home-page-shell .poll-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-page-shell #viralSection .horizontal-scroller-viewport {
        overflow: visible;
    }

    .home-page-shell #viralSection .viral-poll-track {
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        padding: 0;
        gap: 0;
    }

    .home-page-shell #viralSection .poll-card-header {
        display: none;
    }

    .home-page-shell #viralSection .viral-poll-track > a {
        padding: 14px 0;
        border-top: 1px solid var(--border-light);
    }

    .home-page-shell #viralSection .viral-poll-track > a:first-child {
        border-top: none;
        padding-top: 0;
    }

    .home-page-shell #viralSection .viral-poll-track > a:last-child {
        padding-bottom: 0;
    }

    .home-page-shell #viralSection .poll-card {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        gap: 12px;
        box-shadow: none;
    }

    .home-page-shell #viralSection .poll-card:hover { transform: none; }

    .home-page-shell #viralSection .poll-card-horizontal {
        width: 100%;
        flex-shrink: 1;
    }
}

@media (min-width: 768px) {
    .poll-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .poll-detail-layout { grid-template-columns: 1fr; gap: 24px; }
    .sticky-sidebar { position: relative; top: 0; }
    .demographics-grid-4 { grid-template-columns: 1fr; }
    .poll-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .demographic-total-voters-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .total-voters-unverified-group {
        justify-content: flex-start;
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-left: 0;
        padding-top: 12px;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .home-page-shell #viralSection .jago-card {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        gap: 8px;
        box-shadow: none;
    }

    .home-page-shell #viralSection .jago-card:hover { transform: none; }

    .home-page-shell #viralSection .viral-poll-track > a.poll-card-horizontal {
        width: 100%;
        flex-shrink: 1;
    }
}
