/**
 * Vote Counter Styles (green=A/Yes, red=B/No) — independent of people.css
 * 
 * Advanced people counter with men/women tracking and capacity limits.
 */

/* ============================================
   People Counter Card Base
   ============================================ */

.counter-type-vote {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.counter-type-vote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--counter-color, #10b981);
}

.counter-type-vote:hover {
    transform: translateY(-4px);
    border-color: var(--counter-color, #10b981);
    box-shadow: var(--shadow-large);
}

/* Locked state */
.counter-type-vote.counter-locked {
    opacity: 0.7;
}

/* Near capacity state */
.counter-type-vote.near-capacity {
    border-color: var(--warning-color);
}

.counter-type-vote.near-capacity::before {
    background: var(--warning-color);
}

/* At capacity state */
.counter-type-vote.at-capacity {
    border-color: var(--error-color);
}

.counter-type-vote.at-capacity::before {
    background: var(--error-color);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   Header (uses standard counter-header)
   ============================================ */

.counter-type-vote .counter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.counter-type-vote .counter-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.counter-type-vote .counter-header-actions {
    flex-shrink: 0;
}

.counter-type-vote .counter-type-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.counter-type-vote .counter-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Total Display (Main Center)
   ============================================ */

.counter-type-vote .counter-main {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.vote-total-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    width: 100%;
    min-height: 7.5rem;
}

.vote-total-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.vote-total-value {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--counter-color, #10b981);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.vote-capacity {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* ============================================
   Capacity Warning
   ============================================ */

.counter-capacity-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 0.5rem;
    color: var(--error-color);
    font-size: 0.8125rem;
    font-weight: 600;
}

.counter-capacity-warning i {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* ============================================
   People Counters Grid (Men/Women)
   ============================================ */

.vote-choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vote-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    min-width: 0;
}

.vote-group:hover {
    border-color: var(--counter-color, #10b981);
}

/* Group Headers */
.vote-group-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.vote-group-header i {
    font-size: 1rem;
}

.vote-a .vote-group-header {
    color: var(--vote-a-color, #10b981);
}

.vote-b .vote-group-header {
    color: var(--vote-b-color, #ef4444);
}

.vote-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Group Values */
.vote-group-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.75rem;
}

/* Group Controls (+/-) */
.vote-group-controls {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.vote-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    flex: 1 1 0;
    max-width: 88px;
    height: 48px;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.vote-ctrl-minus {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.vote-ctrl-minus:hover:not(:disabled) {
    background: #f43f5e;
    border-color: #f43f5e;
    color: #fff;
}

.vote-ctrl-plus {
    background: var(--counter-color, #10b981);
    color: #fff;
}

.vote-a .vote-ctrl-plus {
    background: var(--vote-a-color, #10b981);
}

.vote-b .vote-ctrl-plus {
    background: var(--vote-b-color, #ef4444);
}

.vote-ctrl-plus:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.vote-ctrl-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.vote-ctrl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Footer
   ============================================ */

.counter-type-vote .counter-footer {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.counter-type-vote .counter-footer-actions {
    display: flex;
    gap: 1rem;
}

.counter-type-vote .counter-footer-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.counter-type-vote .counter-footer-btn:hover:not(:disabled) {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.counter-type-vote .counter-footer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 360px) {
    .vote-choices-grid {
        grid-template-columns: 1fr;
    }

    .vote-group {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .vote-group-value {
        font-size: 1.5rem;
        margin: 0;
    }
}

/* ============================================
   Fullscreen Mode (People Counter)
   ============================================ */

.counter-type-vote:fullscreen,
.counter-type-vote:-webkit-full-screen,
.counter-type-vote.counter-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    background: var(--bg-primary);
    border-radius: 0;
    border: none;
    transform: none !important;
    overflow: hidden;
    box-shadow: none;
    /* Disable text selection on mobile */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.counter-type-vote:fullscreen:hover,
.counter-type-vote:-webkit-full-screen:hover,
.counter-type-vote.counter-fullscreen:hover {
    transform: none !important;
    box-shadow: none;
}

.counter-type-vote:fullscreen::before,
.counter-type-vote:-webkit-full-screen::before,
.counter-type-vote.counter-fullscreen::before {
    display: none;
}

/* Header in fullscreen */
.counter-type-vote:fullscreen .counter-header,
.counter-type-vote:-webkit-full-screen .counter-header,
.counter-type-vote.counter-fullscreen .counter-header {
    position: relative;
    width: 100%;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Hide menu button in fullscreen */
.counter-type-vote:fullscreen .counter-menu-btn,
.counter-type-vote:-webkit-full-screen .counter-menu-btn,
.counter-type-vote.counter-fullscreen .counter-menu-btn {
    display: none;
}

/* Hide counter menu in fullscreen */
.counter-type-vote:fullscreen .counter-menu,
.counter-type-vote:-webkit-full-screen .counter-menu,
.counter-type-vote.counter-fullscreen .counter-menu {
    display: none !important;
}

/* Show exit-fullscreen button (red) */
.counter-type-vote:fullscreen .counter-exit-fullscreen-btn,
.counter-type-vote:-webkit-full-screen .counter-exit-fullscreen-btn,
.counter-type-vote.counter-fullscreen .counter-exit-fullscreen-btn {
    display: flex;
    color: #ef4444;
}

/* Show reset + theme buttons in fullscreen header */
.counter-type-vote:fullscreen .counter-header-fs-reset,
.counter-type-vote:-webkit-full-screen .counter-header-fs-reset,
.counter-type-vote.counter-fullscreen .counter-header-fs-reset {
    display: flex;
}

.counter-type-vote:fullscreen .counter-header-fs-theme,
.counter-type-vote:-webkit-full-screen .counter-header-fs-theme,
.counter-type-vote.counter-fullscreen .counter-header-fs-theme {
    display: flex;
}

/* Main area - push down from header, pull up from bottom */
.counter-type-vote:fullscreen .counter-main,
.counter-type-vote:-webkit-full-screen .counter-main,
.counter-type-vote.counter-fullscreen .counter-main {
    flex: 0 0 auto;
    margin-top: auto;
    margin-bottom: 0;
}

.counter-type-vote:fullscreen .vote-total-display,
.counter-type-vote:-webkit-full-screen .vote-total-display,
.counter-type-vote.counter-fullscreen .vote-total-display {
    padding: 0.75rem 2.5rem;
}

.counter-type-vote:fullscreen .vote-total-value,
.counter-type-vote:-webkit-full-screen .vote-total-value,
.counter-type-vote.counter-fullscreen .vote-total-value {
    font-size: 5rem;
}

/* People counters grid - centered pyramid below total */
.counter-type-vote:fullscreen .vote-choices-grid,
.counter-type-vote:-webkit-full-screen .vote-choices-grid,
.counter-type-vote.counter-fullscreen .vote-choices-grid {
    gap: 1.5rem;
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: auto;
    padding: 0.5rem 0;
}

/* People group values - larger, clickable for quick increment */
.counter-type-vote:fullscreen .vote-group-value,
.counter-type-vote:-webkit-full-screen .vote-group-value,
.counter-type-vote.counter-fullscreen .vote-group-value {
    font-size: 2.5rem;
    cursor: pointer;
}

.counter-type-vote:fullscreen .vote-group-value:active,
.counter-type-vote:-webkit-full-screen .vote-group-value:active,
.counter-type-vote.counter-fullscreen .vote-group-value:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Fullscreen control buttons */
.counter-type-vote:fullscreen .vote-ctrl-btn,
.counter-type-vote:-webkit-full-screen .vote-ctrl-btn,
.counter-type-vote.counter-fullscreen .vote-ctrl-btn {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: 0.75rem;
}

/* Hide footer in fullscreen (reset moved to header) */
.counter-type-vote:fullscreen .counter-footer,
.counter-type-vote:-webkit-full-screen .counter-footer,
.counter-type-vote.counter-fullscreen .counter-footer {
    display: none !important;
}

/* Capacity warning in fullscreen */
.counter-type-vote:fullscreen .counter-capacity-warning,
.counter-type-vote:-webkit-full-screen .counter-capacity-warning,
.counter-type-vote.counter-fullscreen .counter-capacity-warning {
    max-width: 500px;
    width: 90%;
}

/* ================================================================
   Relocated from inline <style> blocks (behavior-preserving refactor).
   Selectors are verbatim — moved out of the Blade views, not changed.
   ================================================================ */

/* ---- vote/manage.blade : page + tally + hint ---- */
.vote-cloud-page{max-width:640px;margin:0 auto;padding:1.5rem 1rem 4rem}
.vote-cloud-tally{display:flex;align-items:center;justify-content:center;gap:.4rem;color:var(--text-secondary);font-size:.8rem;margin:1rem 0 0;text-align:center}
.vote-cloud-tally i{color:#10b981}
.vote-cloud-tally b{color:var(--text-primary)}
.vote-cloud-hint{color:var(--text-secondary);font-size:.85rem;margin:.5rem 0 0;text-align:center}
.vote-cloud-hint b{color:var(--text-primary)}
.vote-cloud-hint a{color:#10b981;font-weight:600}

/* Poll analytics panel (vote/partials/analytics.blade) */
.vote-analytics{margin:1.75rem 0 0;background:var(--surface,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:14px;padding:1.25rem 1.25rem 1.35rem;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.vote-analytics__title{display:flex;align-items:center;gap:.5rem;font-size:1rem;font-weight:700;margin:0 0 .35rem;color:var(--text-primary,#111827)}
.vote-analytics__title i{color:#6366f1}
.vote-analytics__total{font-size:.85rem;color:var(--text-secondary,#6b7280);margin:0 0 1rem}
.vote-analytics__total b{color:var(--text-primary,#111827)}
.vote-analytics section{margin-top:1.25rem}
.vote-analytics section:first-of-type{margin-top:0}
.vote-analytics h3{font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary,#9ca3af);font-weight:700;margin:0 0 .6rem}

.va-split-row{margin:0 0 .7rem}
.va-split-row:last-child{margin-bottom:0}
.va-split-head{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;margin:0 0 .3rem;font-size:.85rem}
.va-split-label{font-weight:600;color:var(--text-primary,#111827);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.va-split-meta{color:var(--text-secondary,#6b7280);white-space:nowrap;flex:none}
.va-split-meta b{color:var(--text-primary,#111827)}
.va-bar{height:9px;border-radius:6px;background:var(--border-color,#eef0f3);overflow:hidden}
.va-bar > span{display:block;height:100%;border-radius:6px;transition:width .25s ease;min-width:2px}

.va-usage{margin:0}
.va-usage__count{font-size:.85rem;color:var(--text-primary,#111827);margin:0 0 .45rem}
.va-usage__count b{font-weight:700}
.va-usage__bar{height:8px;border-radius:6px;background:var(--border-color,#eef0f3);overflow:hidden}
.va-usage__bar > span{display:block;height:100%;border-radius:6px;background:#6366f1;transition:width .25s ease;min-width:2px}
.va-usage__bar.is-full > span{background:#ef4444}
.va-usage__note{font-size:.78rem;color:var(--text-secondary,#6b7280);margin:.55rem 0 0}
.va-usage__note a{color:#6366f1;font-weight:600;text-decoration:none}
.va-usage__note a:hover{text-decoration:underline}
.va-pro-note{font-size:.85rem;color:var(--text-secondary,#6b7280);margin:0}
.va-pro-note b{color:var(--text-primary,#111827)}

.va-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.va-link{border:1px solid var(--border-color,#e5e7eb);border-radius:10px;padding:.6rem .7rem}
.va-link__head{display:flex;align-items:center;gap:.5rem;margin:0 0 .4rem}
.va-link__label{font-weight:600;font-size:.85rem;color:var(--text-primary,#111827);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.va-badge{flex:none;font-size:.66rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:.12rem .45rem;border-radius:999px}
.va-badge--vote{background:#ecfdf5;color:#047857}
.va-badge--view{background:#eef2ff;color:#4338ca}
.va-link__count{margin-left:auto;flex:none;font-size:.76rem;color:var(--text-secondary,#6b7280)}
.va-link__count b{color:var(--text-primary,#111827)}
.va-link__urlrow{display:flex;align-items:stretch;gap:.4rem}
.va-link__url{flex:1;min-width:0;box-sizing:border-box;font-size:.74rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text-secondary,#6b7280);background:var(--border-color,#f6f7f9);border:1px solid var(--border-color,#e5e7eb);border-radius:7px;padding:.35rem .5rem}
.va-copy-btn{flex:none;display:inline-flex;align-items:center;gap:.3rem;font-size:.74rem;font-weight:600;color:var(--text-primary,#111827);background:var(--surface,#fff);border:1px solid var(--border-color,#e5e7eb);border-radius:7px;padding:.35rem .6rem;cursor:pointer;white-space:nowrap}
.va-copy-btn:hover{background:var(--border-color,#f6f7f9)}
.va-copy-btn.is-copied{color:#047857;border-color:#a7f3d0;background:#ecfdf5}
.va-empty{font-size:.83rem;color:var(--text-secondary,#9ca3af);margin:0}

.va-days{width:100%;border-collapse:collapse;font-size:.83rem}
.va-days th,.va-days td{text-align:left;padding:.4rem .2rem;border-bottom:1px solid var(--border-color,#f0f1f4)}
.va-days th{color:var(--text-secondary,#9ca3af);font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.03em}
.va-days td:last-child,.va-days th:last-child{text-align:right}
.va-days tr:last-child td{border-bottom:none}
.va-days td b{color:var(--text-primary,#111827)}

/* ---- vote/ballot.blade : public voting page ---- */
.vv-page{max-width:640px;margin:0 auto;padding:2.5rem 1rem 4rem;text-align:center}
.vv-eyebrow{
    display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:600;
    text-transform:uppercase;letter-spacing:.08em;color:var(--text-secondary);
    margin-bottom:1rem;
}
.vv-question{font-size:1.75rem;line-height:1.25;font-weight:700;margin:0 0 2rem}
.vv-choices{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:480px){.vv-choices{grid-template-columns:1fr}}
.vv-choice{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;
    padding:2rem 1rem;border-radius:16px;border:2px solid var(--border-color);
    background:var(--bg-secondary);cursor:pointer;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
    font-size:1.25rem;font-weight:700;color:var(--text-primary);
}
.vv-choice:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.vv-choice[data-side="a"]:hover{border-color:#10b981}
.vv-choice[data-side="b"]:hover{border-color:#ef4444}
.vv-choice i{font-size:2.25rem}
.vv-choice[data-side="a"] i{color:#10b981}
.vv-choice[data-side="b"] i{color:#ef4444}
.vv-choice:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}

.vv-done{margin-top:1.5rem;font-size:1.0625rem;font-weight:600;color:#10b981;min-height:1.5rem}
.vv-note{margin-top:.5rem;font-size:.8125rem;color:var(--text-secondary)}

.vv-results{margin-top:2rem;text-align:left;display:none}
.vv-results.is-visible{display:block}
.vv-result-row{margin-bottom:1rem}
.vv-result-head{display:flex;justify-content:space-between;font-weight:600;margin-bottom:.35rem;font-size:.9375rem}
.vv-result-head .vv-pct{color:var(--text-secondary);font-variant-numeric:tabular-nums}
.vv-bar{height:14px;border-radius:999px;background:var(--border-color);overflow:hidden}
.vv-bar-fill{height:100%;border-radius:999px;transition:width .4s ease;width:0}
.vv-result-row[data-side="a"] .vv-bar-fill{background:#10b981}
.vv-result-row[data-side="b"] .vv-bar-fill{background:#ef4444}
.vv-total{margin-top:.5rem;font-size:.8125rem;color:var(--text-secondary);text-align:center}

.vv-share{
    margin-top:2rem;display:inline-flex;align-items:center;gap:.5rem;
    padding:.6rem 1.1rem;border-radius:999px;
    border:1px solid var(--border-color);background:var(--bg-secondary);
    color:var(--text-primary);font:inherit;font-size:.9375rem;font-weight:600;
    cursor:pointer;transition:background .12s ease,border-color .12s ease;
}
.vv-share:hover{background:var(--bg-tertiary);border-color:var(--primary-color)}
.vv-share i{color:var(--primary-color)}

.vv-foot{margin-top:2.5rem;font-size:.75rem;color:var(--text-secondary)}
.vv-foot a{color:var(--text-secondary)}

/* ---- vote/partials/share-modal.blade : share links modal ---- */
.vc-share-modal-content{max-width:640px;width:100%}
.vc-share-counter-name{color:var(--text-secondary);font-weight:500;font-size:.875rem}
.vc-share-intro{
    color:var(--text-secondary);font-size:.875rem;line-height:1.55;
    margin:0 0 1.25rem;
}
.vc-share-intro em{color:var(--text-primary);font-style:normal;background:var(--bg-tertiary);padding:.05rem .35rem;border-radius:4px}

/* Two fixed slots (voting link + results link) */
.vc-share-slots{
    display:flex;flex-direction:column;gap:1rem;margin-bottom:.5rem;
}
.vc-share-slot{
    padding:1rem;border:1px solid var(--border-color);border-radius:12px;
    background:var(--bg-secondary);
}
.vc-share-slot-head{
    display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem;
}
.vc-share-slot-desc{
    margin:0 0 .75rem;font-size:.78rem;line-height:1.45;color:var(--text-secondary);
}
.vc-share-mode-badge{
    font-size:.6875rem;text-transform:uppercase;letter-spacing:.06em;
    padding:.2rem .55rem;border-radius:999px;font-weight:700;flex-shrink:0;
    display:inline-flex;align-items:center;gap:.35rem;
}
.vc-share-mode-badge[data-mode="view"]{background:rgba(59,130,246,.15);color:#3b82f6}
.vc-share-mode-badge[data-mode="vote"]{background:rgba(16,185,129,.15);color:#10b981}

/* Live link inside a slot */
.vc-share-link-controls{
    display:flex;align-items:center;gap:.4rem;margin-bottom:.5rem;
}
.vc-share-link-url{
    flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
    font-size:.75rem;padding:.4rem .6rem;border:1px solid var(--border-color);
    border-radius:6px;background:var(--bg-primary);color:var(--text-primary);
    min-width:0;
}
.vc-share-link-btn{
    padding:.45rem .55rem;border-radius:6px;border:1px solid var(--border-color);
    background:var(--bg-primary);color:var(--text-primary);cursor:pointer;font-size:.8125rem;
    display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
}
.vc-share-link-btn:hover{background:var(--bg-tertiary)}
.vc-share-link-btn-danger{color:#ef4444;border-color:rgba(239,68,68,.3)}
.vc-share-link-meta{
    font-size:.75rem;color:var(--text-secondary);margin:0 0 .5rem;
}
.vc-share-link-actions{
    display:flex;gap:.4rem;flex-wrap:wrap;
}
.vc-share-voter-check{
    display:flex;align-items:center;gap:.5rem;font-size:.82rem;
    color:var(--text-secondary);margin-top:.7rem;cursor:pointer;
}
.vc-share-voter-check input{flex-shrink:0}

/* "Create …" call-to-action inside an empty slot */
.vc-share-create-btn{
    width:100%;padding:.65rem 1rem;border-radius:8px;
    border:1px dashed var(--border-color);background:var(--bg-primary);
    color:var(--text-primary);cursor:pointer;font-size:.875rem;font-weight:600;
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    transition:background .12s ease, border-color .12s ease;
}
.vc-share-create-btn:hover{background:var(--bg-tertiary);border-color:var(--primary-color)}

.vc-share-foot{
    margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border-color);
    font-size:.75rem;color:var(--text-secondary);
}

/* Pro upsell shown per-slot for free users (and on a 422 gate response).
   Uses the app's standard Pro branding (brand blue + crown), matching
   the cloud-counter-share-modal upsell. */
.vc-share-upsell{
    padding:.7rem .8rem;border-radius:10px;
    background:color-mix(in srgb, #2ba8ff 8%, transparent);
    border:1px solid color-mix(in srgb, #2ba8ff 35%, var(--border-color));
    color:var(--text-primary);font-size:.82rem;line-height:1.45;
}
.vc-share-upsell .pc-upsell-msg{display:block;margin-bottom:.55rem;color:var(--text-secondary)}
.vc-share-upsell .pc-upsell-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
    width:100%;padding:.55rem .8rem;border-radius:8px;
    text-decoration:none;font-weight:700;font-size:.82rem;
    color:#fff;background:linear-gradient(135deg,#2ba8ff,#1c7fd6);
}
.vc-share-upsell .pc-upsell-btn:hover{filter:brightness(1.05)}

/* ---- vote/partials/settings-modal.blade : settings modal ---- */
.vote-settings-presets{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:flex-end}
.vote-settings-preset{
    padding:.4rem .7rem;border-radius:999px;
    border:1px solid var(--border-color);background:var(--bg-secondary);
    color:var(--text-primary);cursor:pointer;font-size:.8125rem;font-weight:600;
    transition:background .12s ease, border-color .12s ease;
}
.vote-settings-preset:hover{background:var(--bg-tertiary)}
.vote-settings-preset.is-active{
    border-color:var(--primary-color);
    background:color-mix(in srgb, var(--primary-color) 12%, transparent);
}
.vote-settings-side-a i{color:#10b981}
.vote-settings-side-b i{color:#ef4444}

/* ---- vote/partials/dashboard-table.blade : dashboard rows + create form ---- */
.counter-inline-vote{display:flex;gap:1.5rem;flex-wrap:wrap}
.vote-side{display:flex;align-items:center;gap:.5rem}
.vote-side-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;margin-right:.25rem;font-weight:600}
.vote-side-a .vote-side-label{color:#10b981}
.vote-side-b .vote-side-label{color:#ef4444}
.vote-value-a, .vote-value-b{min-width:2.5em;display:inline-block;text-align:center}
.vote-side-a .vote-value-a{color:#10b981}
.vote-side-b .vote-value-b{color:#ef4444}
.vote-question{display:block;font-size:.75rem;color:var(--text-secondary);font-style:italic;margin-top:.1rem}

.vote-create{position:relative;display:inline-block}
.vote-create-form{
    position:absolute;top:calc(100% + .5rem);right:0;z-index:50;
    min-width:min(400px, 92vw);
    padding:1rem;
    background:var(--bg-secondary);
    border:1px solid var(--border-color);
    border-radius:.625rem;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
}
.vote-create-row{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.875rem}
.vote-create-sides{display:flex;gap:.75rem}
.vote-create-sides .vote-create-label{flex:1;min-width:0}
.vote-create-label{
    display:flex;flex-direction:column;gap:.3rem;
    font-size:.8125rem;font-weight:600;color:var(--text-primary);
}
.vote-create-optional{font-weight:400;color:var(--text-tertiary);font-size:.75rem}
.vote-create-label input{
    padding:.55rem .7rem;border:1px solid var(--border-color);border-radius:.4rem;
    background:var(--bg-primary);color:var(--text-primary);font-size:.875rem;
}
.vote-create-label input:focus{outline:2px solid #10b981;border-color:#10b981}
.vote-create-side-a input:focus{outline-color:#10b981;border-color:#10b981}
.vote-create-side-b input:focus{outline-color:#ef4444;border-color:#ef4444}
.vote-create-actions{display:flex;gap:.5rem;justify-content:flex-end}
.vote-create-cancel,
.vote-create-submit{
    padding:.5rem 1rem;border-radius:.4rem;font-size:.8125rem;font-weight:600;cursor:pointer;border:1px solid var(--border-color);
}
.vote-create-cancel{background:var(--bg-primary);color:var(--text-secondary)}
.vote-create-submit{background:#10b981;color:#fff;border-color:#10b981}
.vote-create-submit:hover{background:#059669}
