/* 📊 PREMIUM ANKETA — DAY + DARK mode
   Default: DAY (svijetli premium).
   Dark: prati prefers-color-scheme: dark ILI .np-dark-mode klasu na body.
*/
.np-premium-poll {
    /* DAY mode (default) */
    --poll-bg: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    --poll-border: 1px solid rgba(15, 23, 42, 0.1);
    --poll-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --poll-q-color: #0f172a;
    --poll-opt-bg: rgba(15, 23, 42, 0.04);
    --poll-opt-border: 1px solid rgba(15, 23, 42, 0.12);
    --poll-opt-hover-bg: rgba(15, 23, 42, 0.07);
    --poll-opt-txt: #1e293b;
    --poll-bar-bg: rgba(99, 102, 241, 0.18);
    --poll-track-bg: rgba(15, 23, 42, 0.06);
    --poll-foot-color: #94a3b8;
    --poll-foot-b: #475569;
    --poll-voted-msg-bg: rgba(22, 163, 74, 0.1);
    --poll-voted-msg-border: rgba(22, 163, 74, 0.25);
    --poll-voted-msg-color: #15803d;

    background: var(--poll-bg);
    border: var(--poll-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--poll-shadow);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px auto;  /* centrirano u polju za tekst */
    max-width: 460px;
    transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    .np-premium-poll {
        --poll-bg: linear-gradient(160deg, #111a33 0%, #0d1428 100%);
        --poll-border: 1px solid rgba(255,255,255,0.08);
        --poll-shadow: 0 20px 60px rgba(0,0,0,0.5);
        --poll-q-color: #f1f5f9;
        --poll-opt-bg: rgba(255,255,255,0.04);
        --poll-opt-border: 1px solid rgba(255,255,255,0.1);
        --poll-opt-hover-bg: rgba(255,255,255,0.07);
        --poll-opt-txt: #e2e8f0;
        --poll-bar-bg: rgba(99,102,241,0.25);
        --poll-track-bg: rgba(255,255,255,0.06);
        --poll-foot-color: #64748b;
        --poll-foot-b: #94a3b8;
        --poll-voted-msg-bg: rgba(52,211,153,0.1);
        --poll-voted-msg-border: rgba(52,211,153,0.25);
        --poll-voted-msg-color: #34d399;
    }
}
/* Ručna klasa (CMS dark mode toggle) */
body.np-dark-mode .np-premium-poll,
body.dark-mode .np-premium-poll {
    --poll-bg: linear-gradient(160deg, #111a33 0%, #0d1428 100%);
    --poll-border: 1px solid rgba(255,255,255,0.08);
    --poll-shadow: 0 20px 60px rgba(0,0,0,0.5);
    --poll-q-color: #f1f5f9;
    --poll-opt-bg: rgba(255,255,255,0.04);
    --poll-opt-border: 1px solid rgba(255,255,255,0.1);
    --poll-opt-hover-bg: rgba(255,255,255,0.07);
    --poll-opt-txt: #e2e8f0;
    --poll-bar-bg: rgba(99,102,241,0.25);
    --poll-track-bg: rgba(255,255,255,0.06);
    --poll-foot-color: #64748b;
    --poll-foot-b: #94a3b8;
    --poll-voted-msg-bg: rgba(52,211,153,0.1);
    --poll-voted-msg-border: rgba(52,211,153,0.25);
    --poll-voted-msg-color: #34d399;
}

/* ===== ZAJEDNIČKI ELEMENTI ===== */
.np-premium-poll .p-top {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.np-premium-poll .p-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.np-premium-poll .p-live {
    font-size: 10px; color: #10b981; font-weight: 700;
    display: flex; align-items: center; gap: 5px;
}
.np-premium-poll .p-live .dot {
    width: 7px; height: 7px; background: #10b981; border-radius: 50%;
    animation: np-pulse 1.5s infinite;
}
@keyframes np-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.np-premium-poll .p-question {
    font-size: 20px; font-weight: 800; color: var(--poll-q-color);
    line-height: 1.35; margin-bottom: 22px;
}

/* Opcije */
.np-premium-poll .opt {
    display: block; width: 100%; text-align: left;
    background: var(--poll-opt-bg);
    border: var(--poll-opt-border);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.np-premium-poll .opt:hover {
    background: var(--poll-opt-hover-bg);
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-1px);
}
.np-premium-poll .opt .bar {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: var(--poll-bar-bg);
    width: 0%; transition: width 1s cubic-bezier(0.22,1,0.36,1); z-index: 0;
}
.np-premium-poll .opt .inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 12px;
}
.np-premium-poll .opt .ring {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--poll-opt-border);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.np-premium-poll .opt .ring::after {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    background: #6366f1; opacity: 0; transform: scale(0);
    transition: all 0.25s;
}
.np-premium-poll .opt .txt { flex: 1; font-size: 15px; font-weight: 600; color: var(--poll-opt-txt); }
.np-premium-poll .opt .cnt {
    font-size: 13px; font-weight: 800; color: #6366f1;
    opacity: 0; transform: translateX(8px); transition: all 0.3s;
}
.np-premium-poll .opt .pct {
    font-size: 15px; font-weight: 800; color: #6366f1;
    min-width: 44px; text-align: right;
    opacity: 0; transition: opacity 0.3s;
}
.np-premium-poll .opt.voted {
    border-color: rgba(99,102,241,0.7);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.np-premium-poll .opt.voted .ring { border-color: #6366f1; }
.np-premium-poll .opt.voted .ring::after { opacity: 1; transform: scale(1); }
.np-premium-poll .opt.voted .cnt { opacity: 1; transform: translateX(0); }
.np-premium-poll .opt.voted .pct { opacity: 1; }
.np-premium-poll .opt.voted .bar { width: 100%; }
.np-premium-poll .opt.loading { opacity: 0.6; pointer-events: none; }

/* Rezultati */
.np-premium-poll .p-results { margin-top: 4px; }
.np-premium-poll .res-row { margin-bottom: 14px; }
.np-premium-poll .res-row .rl {
    display: flex; justify-content: space-between;
    font-size: 14px; color: var(--poll-opt-txt); font-weight: 600; margin-bottom: 5px;
}
.np-premium-poll .res-row .rl .p { color: #6366f1; font-weight: 800; }
.np-premium-poll .res-row .track { background: var(--poll-track-bg); border-radius: 6px; height: 8px; overflow: hidden; }
.np-premium-poll .res-row .fill {
    background: linear-gradient(90deg, #6366f1, #818cf8);
    height: 100%; border-radius: 6px; width: 0%;
    transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.np-premium-poll .p-voted-msg {
    margin-top: 16px; padding: 12px;
    background: var(--poll-voted-msg-bg); border: 1px solid var(--poll-voted-msg-border);
    border-radius: 10px; color: var(--poll-voted-msg-color); font-weight: 700; text-align: center; font-size: 14px;
}
.np-premium-poll .p-closed {
    padding: 20px; text-align: center; color: var(--poll-foot-color); font-size: 14px;
}
.np-premium-poll .p-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--poll-border);
    font-size: 12px; color: var(--poll-foot-color);
}
.np-premium-poll .p-foot b { color: var(--poll-foot-b); }

/* VELIKI +1 */
.np-plus-one {
    position: fixed; z-index: 99999;
    font-size: 58px; font-weight: 900;
    color: #ef4444;
    text-shadow: 0 2px 18px rgba(239,68,68,0.5), 0 0 0 1px #fff;
    pointer-events: none; opacity: 0;
    transform: translate(-50%, -50%);
}
.np-plus-one.show { animation: np-floatUp 1s ease-out forwards; }
@keyframes np-floatUp {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
    100% { opacity: 0; transform: translate(-50%, -200%) scale(1); }
}

/* Mobile */
@media (max-width: 480px) {
    .np-premium-poll { padding: 20px; border-radius: 16px; }
    .np-premium-poll .p-question { font-size: 17px; }
    .np-premium-poll .opt { padding: 13px 14px; }
}