/* Live poll — works inside main site layout */
.live-poll-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.live-poll-card {
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.live-poll-timer {
    font-variant-numeric: tabular-nums;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
    text-align: center;
    margin: 0.5rem 0 1rem;
}

.live-poll-timer--warn {
    color: #fd7e14;
}

.live-poll-timer--ended {
    color: var(--bs-secondary, #6c757d);
    font-size: 1.25rem;
}

.live-poll-phase {
    text-align: center;
    font-size: 0.9rem;
    color: var(--bs-secondary, #6c757d);
    margin-bottom: 0.5rem;
}

.live-poll-qr {
    display: inline-block;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
}

.live-poll-qr img,
.live-poll-qr canvas {
    display: block;
}

.live-poll-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 2px solid var(--bs-primary, #0d6efd);
    border-radius: 0.75rem;
    background: rgba(13, 110, 253, 0.06);
    color: inherit;
    font-size: 1.05rem;
    transition: background 0.15s, border-color 0.15s;
}

.live-poll-option-btn:hover:not(:disabled) {
    background: rgba(13, 110, 253, 0.12);
}

.live-poll-option-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.live-poll-bar-row {
    margin-bottom: 0.85rem;
}

.live-poll-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.live-poll-bar-track {
    height: 0.65rem;
    background: var(--bs-secondary-bg, #e9ecef);
    border-radius: 999px;
    overflow: hidden;
}

.live-poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.live-poll-muted {
    color: var(--bs-secondary, #6c757d);
    font-size: 0.875rem;
}

/* Voter screen — focused dark UI (mobile / QR scan) */
.live-poll-vote-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    color: #e2e8f0;
}

.live-poll-vote-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-poll-vote-brand {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.live-poll-vote-main {
    padding: 1.5rem 1rem 3rem;
    max-width: 480px;
    margin: 0 auto;
}

.live-poll-vote-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    backdrop-filter: blur(8px);
}

.live-poll-vote-title {
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.live-poll-vote-body .live-poll-phase {
    color: #94a3b8;
}

.live-poll-vote-body .live-poll-timer {
    color: #38bdf8;
}

.live-poll-vote-body .live-poll-timer--warn {
    color: #fbbf24;
}

.live-poll-vote-body .live-poll-timer--ended {
    color: #94a3b8;
}

.live-poll-vote-body .live-poll-muted {
    color: #94a3b8;
}

.live-poll-vote-body .live-poll-option-btn {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.1);
    color: #f1f5f9;
}

.live-poll-vote-body .live-poll-option-btn:hover:not(:disabled) {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #fff;
}

.live-poll-vote-thanks {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    font-size: 1.05rem;
}

.live-poll-vote-results-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.live-poll-vote-body .live-poll-bar-track {
    background: rgba(255, 255, 255, 0.1);
}

.live-poll-vote-body .live-poll-bar-fill {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.live-poll-vote-body .live-poll-bar-label {
    color: #e2e8f0;
}
