/* ============================================================ */
/* 🗳️ ГОЛОСОВАНИЯ — СТИЛИ v2.2                                  */
/* ============================================================ */

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ КАРТОЧКА ОПРОСА                                          */
/* ═══════════════════════════════════════════════════════════ */
.poll-card {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border: 1px solid var(--border, #e4e6eb);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: pollFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poll-card-vs {
    background: linear-gradient(135deg, var(--bg-card, #fff), rgba(229, 57, 53, 0.02));
}

.poll-card-vs::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E53935, #7C3AED, #FF6B00);
}

@keyframes pollFadeIn {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.poll-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.poll-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border, #e4e6eb);
    flex-shrink: 0;
}

.poll-header-info { flex: 1; min-width: 0; }

.poll-author-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.poll-author-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text, #1a1a2e);
}

.poll-admin-badge {
    font-size: 11px;
    background: #E53935;
    color: #fff;
    padding: 1px 7px;
    border-radius: 50px;
}

.poll-premium-emoji { font-size: 14px; }

.poll-premium-emoji-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 50%;
}

.poll-vs-badge {
    background: linear-gradient(135deg, #E53935, #FF6B00);
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.poll-multi-badge {
    background: rgba(26, 115, 232, 0.1);
    color: #1A73E8;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
}

.poll-anon-badge {
    background: rgba(106, 106, 138, 0.1);
    color: var(--text-muted, #9a9abf);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 600;
}

.poll-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted, #9a9abf);
    margin-top: 3px;
    flex-wrap: wrap;
}

.poll-expired-badge { color: #E53935; font-weight: 700; }

.poll-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted, #9a9abf);
    cursor: pointer;
    font-size: 15px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.poll-delete-btn:hover {
    background: rgba(229, 57, 53, 0.1);
    color: #E53935;
}

.poll-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text, #1a1a2e);
    margin-bottom: 6px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.poll-description {
    font-size: 13px;
    color: var(--text-secondary, #5a5a7a);
    margin-bottom: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ ТЕКСТОВЫЕ ВАРИАНТЫ                                        */
/* ═══════════════════════════════════════════════════════════ */
.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.poll-text-option {
    position: relative;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-input, #f0f2f5);
    border: 2.5px solid var(--border, #e4e6eb);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.poll-text-option:hover {
    transform: translateX(3px);
    border-color: #7C3AED;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
}

.poll-text-option.selected {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.06);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.poll-text-option.voted {
    border-color: #34A853;
    background: rgba(52, 168, 83, 0.06);
    cursor: default;
}

.poll-text-option.voted:hover {
    transform: none;
    box-shadow: none;
}

.poll-text-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.02));
    transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.poll-text-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.poll-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border, #e4e6eb);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 11px;
}

.poll-radio.checked {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #fff;
}

.poll-radio.voted {
    background: #34A853;
    border-color: #34A853;
    color: #fff;
}

.poll-text-label {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--text, #1a1a2e);
    word-break: break-word;
    line-height: 1.4;
}

.poll-text-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.poll-text-percent {
    font-weight: 800;
    font-size: 16px;
    color: #7C3AED;
    min-width: 48px;
    text-align: right;
}

.poll-text-option.voted .poll-text-percent { color: #34A853; }

.poll-text-votes {
    font-size: 11px;
    color: var(--text-muted, #9a9abf);
    font-weight: 600;
    min-width: 54px;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ ФОТО-ВАРИАНТЫ                                            */
/* ═══════════════════════════════════════════════════════════ */
.poll-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.poll-image-option {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border, #e4e6eb);
    background: #000;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.poll-image-option:hover {
    transform: scale(1.03);
    border-color: #7C3AED;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.poll-image-option.selected {
    border-color: #7C3AED;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
    transform: scale(1.03);
}

.poll-image-option.voted {
    border-color: #34A853;
    cursor: default;
}

.poll-image-option.voted:hover {
    transform: none;
    box-shadow: none;
}

.poll-image-option-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poll-image-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a50, #1a1a2e);
    color: #6a6a8a;
    font-size: 32px;
    gap: 6px;
    z-index: 1;
}

.poll-image-error span {
    font-size: 11px;
    font-weight: 600;
}

.poll-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 8px;
    color: #fff;
}

.poll-image-percent {
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    line-height: 1;
}

.poll-image-votes {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 600;
    margin-top: 2px;
}

.poll-image-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(0,0,0,0.3);
}

.poll-image-progress-fill {
    height: 100%;
    background: #7C3AED;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poll-image-progress-fill.voted { background: #34A853; }

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ VS-РЕЖИМ                                                 */
/* ═══════════════════════════════════════════════════════════ */
.poll-vs-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 14px;
}

.poll-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.poll-vs-text-divider {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #E53935, #FF6B00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -3px;
    transform: skewX(-8deg);
    filter: drop-shadow(0 2px 8px rgba(229, 57, 53, 0.4));
}

.poll-vs-side {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border, #e4e6eb);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-input, #f0f2f5);
    -webkit-tap-highlight-color: transparent;
}

.poll-vs-side:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.poll-vs-side.selected {
    border-color: #7C3AED;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
    transform: scale(1.03);
}

.poll-vs-side.voted {
    border-color: #34A853;
    cursor: default;
}

.poll-vs-side.voted:hover {
    transform: none;
    box-shadow: none;
}

.poll-vs-image { aspect-ratio: 1; }

.poll-vs-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poll-vs-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 14px 8px 10px;
    text-align: center;
    color: #fff;
}

.poll-vs-percent {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.poll-vs-votes {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 600;
    margin-top: 2px;
}

.poll-vs-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(0,0,0,0.4);
}

.poll-vs-progress-fill {
    height: 100%;
    background: #7C3AED;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poll-vs-progress-fill.voted { background: #34A853; }

.poll-vs-side.poll-vs-text {
    padding: 24px 14px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.poll-vs-text-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.02));
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.poll-vs-text-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.poll-vs-text-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text, #1a1a2e);
    word-break: break-word;
    line-height: 1.35;
}

.poll-vs-text-percent {
    font-size: 26px;
    font-weight: 900;
    color: #7C3AED;
    line-height: 1;
}

.poll-vs-side.voted .poll-vs-text-percent { color: #34A853; }

.poll-vs-text-votes {
    font-size: 11px;
    color: var(--text-muted, #9a9abf);
    font-weight: 600;
}

.poll-vs-text-check {
    font-size: 22px;
    color: #7C3AED;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ ГАЛОЧКА ВЫБОРА                                            */
/* ═══════════════════════════════════════════════════════════ */
.poll-check-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7C3AED;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
    animation: pollCheckPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}

.poll-check-badge.voted {
    background: #34A853;
    box-shadow: 0 4px 16px rgba(52, 168, 83, 0.5);
}

@keyframes pollCheckPop {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ ФУТЕР                                                     */
/* ═══════════════════════════════════════════════════════════ */
.poll-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.06));
    gap: 10px;
    flex-wrap: wrap;
}

.poll-footer-left,
.poll-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.poll-votes-count {
    font-size: 13px;
    color: var(--text-secondary, #5a5a7a);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.poll-votes-count i { font-size: 12px; opacity: 0.6; }

.poll-voters-btn {
    background: rgba(124, 58, 237, 0.08);
    color: #7C3AED;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.poll-voters-btn:hover { background: rgba(124, 58, 237, 0.15); }

.poll-voted-badge {
    background: rgba(52, 168, 83, 0.1);
    color: #34A853;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.poll-expires {
    font-size: 11px;
    color: #F5A623;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.poll-expires.expired { color: #E53935; }

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ МОДАЛКА ПОДТВЕРЖДЕНИЯ ГОЛОСА                              */
/* ═══════════════════════════════════════════════════════════ */
.vote-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vote-confirm-overlay.active { opacity: 1; }

.vote-confirm-modal {
    background: var(--bg-card, #fff);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid var(--border, #e4e6eb);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vote-confirm-overlay.active .vote-confirm-modal {
    transform: scale(1) translateY(0);
}

.vote-confirm-header {
    padding: 24px 24px 16px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(26, 115, 232, 0.06));
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.06));
}

.vote-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #1A73E8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.vote-confirm-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text, #1a1a2e);
    margin: 0 0 6px 0;
}

.vote-confirm-header p {
    font-size: 13px;
    color: var(--text-muted, #9a9abf);
    margin: 0;
    line-height: 1.4;
}

.vote-confirm-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.vote-confirm-question {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1a2e);
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--bg-input, #f0f2f5);
    border-radius: 10px;
    border-left: 3px solid #7C3AED;
    line-height: 1.4;
}

.vote-confirm-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.vote-confirm-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(52, 168, 83, 0.06);
    border: 2px solid rgba(52, 168, 83, 0.2);
    border-radius: 12px;
    animation: voteConfirmChoiceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.vote-confirm-choice:nth-child(1) { animation-delay: 0.05s; }
.vote-confirm-choice:nth-child(2) { animation-delay: 0.10s; }
.vote-confirm-choice:nth-child(3) { animation-delay: 0.15s; }
.vote-confirm-choice:nth-child(4) { animation-delay: 0.20s; }

@keyframes voteConfirmChoiceIn {
    from { opacity: 0; transform: translateX(-10px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.vote-confirm-choice-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(52, 168, 83, 0.3);
}

.vote-confirm-choice-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #34A853;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.vote-confirm-choice-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #1a1a2e);
    word-break: break-word;
    line-height: 1.35;
}

.vote-confirm-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: #E69500;
    font-weight: 600;
    line-height: 1.4;
}

.vote-confirm-warning i {
    font-size: 16px;
    flex-shrink: 0;
}

.vote-confirm-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-light, rgba(0,0,0,0.06));
    background: var(--bg-card, #fff);
}

.vote-confirm-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 50px;
}

.vote-confirm-btn:active { transform: scale(0.97); }

.vote-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vote-confirm-btn.cancel {
    background: var(--bg-input, #f0f2f5);
    color: var(--text-secondary, #5a5a7a);
    border: 2px solid var(--border, #e4e6eb);
    flex: 0 1 auto;
    min-width: 110px;
}

.vote-confirm-btn.cancel:hover:not(:disabled) {
    border-color: #E53935;
    color: #E53935;
    transform: translateY(-2px);
}

.vote-confirm-btn.confirm {
    background: linear-gradient(135deg, #34A853, #1E7E34);
    color: #fff;
    box-shadow: 0 6px 24px rgba(52, 168, 83, 0.35);
}

.vote-confirm-btn.confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(52, 168, 83, 0.5);
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ МОДАЛКА ПРОГОЛОСОВАВШИХ                                   */
/* ═══════════════════════════════════════════════════════════ */
.poll-voters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poll-voters-overlay.active { opacity: 1; }

.poll-voters-modal {
    background: var(--bg-card, #fff);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border, #e4e6eb);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poll-voters-overlay.active .poll-voters-modal { transform: scale(1); }

.poll-voters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border, #e4e6eb);
    flex-shrink: 0;
}

.poll-voters-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text, #1a1a2e);
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-voters-header h3 i { color: #7C3AED; }

.poll-voters-close {
    background: var(--bg-input, #f0f2f5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted, #9a9abf);
    font-size: 16px;
    transition: all 0.2s;
}

.poll-voters-close:hover {
    background: #E53935;
    color: #fff;
    transform: rotate(90deg);
}

.poll-voters-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    min-height: 100px;
}

.poll-voters-loading,
.poll-voters-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted, #9a9abf);
    font-size: 14px;
}

.poll-voter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.06));
}

.poll-voter-item:last-child { border-bottom: none; }

.poll-voter-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border, #e4e6eb);
    flex-shrink: 0;
}

.poll-voter-info { flex: 1; min-width: 0; }

.poll-voter-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text, #1a1a2e);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.poll-voter-username {
    font-size: 12px;
    color: var(--text-muted, #9a9abf);
}

.poll-voter-choice {
    font-size: 11px;
    color: #7C3AED;
    margin-top: 3px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.poll-voter-choice-img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.poll-voter-time {
    font-size: 11px;
    color: var(--text-muted, #9a9abf);
    text-align: right;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ ПУСТОЕ СОСТОЯНИЕ                                          */
/* ═══════════════════════════════════════════════════════════ */
.polls-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #9a9abf);
}

.polls-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.15;
}

.polls-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-secondary, #5a5a7a);
}

.polls-empty-text {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.65;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.polls-create-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.polls-create-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #7C3AED, #6C2BD9);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.polls-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ МОДАЛКА СОЗДАНИЯ                                          */
/* ═══════════════════════════════════════════════════════════ */
.create-poll-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.create-poll-overlay.active { opacity: 1; }

.create-poll-modal {
    background: var(--bg-card, #fff);
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border: 1px solid var(--border, #e4e6eb);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.create-poll-overlay.active .create-poll-modal { transform: scale(1); }

.create-poll-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, #e4e6eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card, #fff);
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.create-poll-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--text, #1a1a2e);
    display: flex;
    align-items: center;
    gap: 10px;
}

.create-poll-header h3 i { color: #7C3AED; }

.create-poll-close {
    background: var(--bg-input, #f0f2f5);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--text-muted, #9a9abf);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.create-poll-close:hover {
    background: #E53935;
    color: #fff;
    transform: rotate(90deg);
}

.create-poll-body {
    padding: 20px 24px 24px;
    flex: 1;
}

.create-poll-field { margin-bottom: 16px; }

.create-poll-field label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-secondary, #5a5a7a);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-poll-field label .required { color: #E53935; }
.create-poll-field label .optional {
    opacity: 0.5;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.create-poll-input,
.create-poll-textarea,
.create-poll-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border, #e4e6eb);
    border-radius: 12px;
    background: var(--bg-input, #f0f2f5);
    color: var(--text, #1a1a2e);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.create-poll-input:focus,
.create-poll-textarea:focus,
.create-poll-select:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.create-poll-textarea {
    resize: vertical;
    min-height: 60px;
}

.create-poll-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.create-poll-type-btn {
    padding: 14px 12px;
    border-radius: 14px;
    border: 2px solid var(--border, #e4e6eb);
    background: transparent;
    color: var(--text-secondary, #5a5a7a);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.create-poll-type-btn i { font-size: 22px; }

.create-poll-type-btn.active {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.08);
    color: #7C3AED;
}

.create-poll-vs-box {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.06), rgba(255, 107, 0, 0.06));
    border: 2px solid rgba(255, 107, 0, 0.25);
    border-radius: 14px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.create-poll-vs-box.active {
    border-color: #FF6B00;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(255, 107, 0, 0.12));
}

.create-poll-vs-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.create-poll-vs-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #FF6B00;
    cursor: pointer;
}

.create-poll-vs-title {
    font-weight: 800;
    font-size: 14px;
    color: #FF6B00;
    display: flex;
    align-items: center;
    gap: 6px;
}

.create-poll-vs-hint {
    font-size: 11px;
    color: var(--text-muted, #9a9abf);
    margin-top: 2px;
}

.create-poll-upload {
    border: 3px dashed var(--border, #e4e6eb);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-input, #f0f2f5);
    transition: all 0.3s;
}

.create-poll-upload:hover {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.04);
}

.create-poll-upload i {
    font-size: 42px;
    color: #7C3AED;
    margin-bottom: 10px;
    display: block;
}

.create-poll-upload-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text, #1a1a2e);
}

.create-poll-upload-hint {
    font-size: 12px;
    color: var(--text-muted, #9a9abf);
    margin-top: 4px;
}

.create-poll-images-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.create-poll-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border, #e4e6eb);
    background: var(--bg-input, #f0f2f5);
    animation: pollCheckPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.create-poll-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-poll-image-num {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.create-poll-images-count {
    font-size: 12px;
    color: var(--text-muted, #9a9abf);
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
}

.create-poll-images-count.ok { color: #34A853; }

.create-poll-option-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.create-poll-option-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.create-poll-remove-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(229, 57, 53, 0.1);
    color: #E53935;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.create-poll-remove-option:hover {
    background: #E53935;
    color: #fff;
}

.create-poll-add-option {
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px dashed var(--border, #e4e6eb);
    background: transparent;
    color: var(--text-secondary, #5a5a7a);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: all 0.2s;
}

.create-poll-add-option:hover {
    border-color: #7C3AED;
    color: #7C3AED;
}

.create-poll-settings {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-input, #f0f2f5);
    border-radius: 14px;
    border: 1px solid var(--border, #e4e6eb);
}

.create-poll-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 12px;
}

.create-poll-checkbox:last-child { margin-bottom: 0; }

.create-poll-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #7C3AED;
    cursor: pointer;
    flex-shrink: 0;
}

.create-poll-checkbox-title {
    font-size: 13px;
    color: var(--text, #1a1a2e);
    font-weight: 600;
}

.create-poll-checkbox-hint {
    font-size: 11px;
    color: var(--text-muted, #9a9abf);
}

.create-poll-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border, #e4e6eb);
    background: var(--bg-card, #fff);
    border-radius: 0 0 24px 24px;
    position: sticky;
    bottom: 0;
}

.create-poll-btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    min-height: 48px;
}

.create-poll-btn.cancel {
    background: transparent;
    color: var(--text-secondary, #5a5a7a);
    border: 2px solid var(--border, #e4e6eb);
    flex: 0 1 auto;
    min-width: 100px;
}

.create-poll-btn.cancel:hover {
    border-color: #E53935;
    color: #E53935;
}

.create-poll-btn.submit {
    background: linear-gradient(135deg, #7C3AED, #6C2BD9);
    color: #fff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
}

.create-poll-btn.submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.create-poll-btn.submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════ */
/* ⭐ АДАПТИВ                                                   */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .poll-card { padding: 14px 16px; border-radius: 14px; }
    .poll-title { font-size: 16px; }
    .poll-vs-text-divider { font-size: 22px; }
    .poll-options-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .poll-vs-container { gap: 6px; }
    .poll-vs-side { border-width: 2.5px; }
    .poll-text-option { padding: 12px 14px; }
    .poll-text-label { font-size: 13px; }
    .poll-text-percent { font-size: 14px; min-width: 40px; }
    .poll-text-votes { font-size: 10px; min-width: 42px; }
    .poll-check-badge { width: 26px; height: 26px; font-size: 12px; top: 6px; right: 6px; }

    .vote-confirm-modal { border-radius: 20px; }
    .vote-confirm-header { padding: 20px 20px 14px; }
    .vote-confirm-icon { width: 56px; height: 56px; font-size: 24px; }
    .vote-confirm-header h3 { font-size: 18px; }
    .vote-confirm-body { padding: 16px 20px; }
    .vote-confirm-actions { padding: 12px 20px 16px; }
    .vote-confirm-btn { min-height: 46px; font-size: 14px; padding: 12px 16px; }
    .vote-confirm-btn.cancel { min-width: 90px; }

    .create-poll-modal { border-radius: 20px; }
    .create-poll-header { padding: 16px 18px; border-radius: 20px 20px 0 0; }
    .create-poll-header h3 { font-size: 17px; }
    .create-poll-body { padding: 16px 18px 20px; }
    .create-poll-footer { padding: 12px 18px 16px; border-radius: 0 0 20px 20px; }
    .create-poll-images-preview { grid-template-columns: repeat(3, 1fr); }
}