.vc-wrap {
    --vc-primary: #2563eb;
    --vc-primary-dark: #1d4ed8;
    --vc-bg: #f8fafc;
    --vc-border: #e2e8f0;
    --vc-text: #0f172a;
    --vc-muted: #64748b;
    max-width: 1320px;
    margin: 0 auto;
    color: var(--vc-text);
}

.vc-heading {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid var(--vc-border);
}

.vc-heading h3 {
    margin: 6px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.vc-heading p {
    margin: 0;
    color: var(--vc-muted);
}

.vc-kicker,
.vc-candidate-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--vc-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vc-contest-section {
    margin-top: 28px;
}

.vc-contest-heading {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-left: 5px solid var(--vc-primary);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.vc-contest-heading h4 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.1;
}

.vc-contest-heading p {
    margin: 0;
    color: var(--vc-muted);
}

.vc-cards {
    display: grid;
    grid-template-columns: repeat(var(--vc-columns, 4), minmax(0, 1fr));
    gap: 18px;
}

.vc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--vc-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.vc-card-media {
    position: relative;
    background: var(--vc-bg);
}

.vc-card-media img,
.vc-card-placeholder {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.vc-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--vc-primary-dark);
    font-size: 72px;
    font-weight: 900;
}

.vc-rank-badge,
.vc-vote-badge {
    position: absolute;
    left: 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
}

.vc-rank-badge {
    top: 12px;
    padding: 8px 12px;
    background: #facc15;
    color: #422006;
}

.vc-vote-badge {
    bottom: 12px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, .9);
    color: #fff;
    font-size: 13px;
}

.vc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.vc-candidate-content {
    flex: 1;
}

.vc-candidate-content h4 {
    margin: 8px 0 10px;
    font-size: 22px;
    line-height: 1.12;
}

.vc-card-vote-count {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 20px;
    font-weight: 900;
}

.vc-card-vote-count span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vc-candidate-description,
.vc-candidate-details {
    margin: 10px 0 0;
    color: var(--vc-muted);
    font-size: 14px;
}

.vc-candidate-details {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--vc-bg);
}

.vc-open-vote {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 16px;
    background: var(--vc-primary);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .28);
}

.vc-open-vote:hover,
.vc-open-vote:focus {
    background: var(--vc-primary-dark);
}

.vc-voter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0;
}

.vc-voter-grid label,
.vc-email-field {
    display: grid;
    gap: 6px;
}

.vc-voter-grid span {
    font-size: 12px;
    font-weight: 800;
    color: var(--vc-muted);
}

.vc-voter-grid input,
.vc-quantity-control input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--vc-border);
    border-radius: 14px;
    background: #fff;
    color: var(--vc-text);
    font: inherit;
}

.vc-voter-grid input {
    padding: 0 12px;
}

.vc-vote-row {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 18px;
    background: var(--vc-bg);
}

.vc-quantity-control {
    display: grid;
    grid-template-columns: 44px minmax(54px, 1fr) 44px;
    align-items: stretch;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--vc-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.vc-quantity-control button,
.vc-quantity-control input {
    box-sizing: border-box;
    margin: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.vc-quantity-control button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--vc-primary) !important;
    cursor: pointer;
    font-size: 24px !important;
    font-weight: 900 !important;
    text-align: center;
    appearance: none;
}

.vc-quantity-control button:hover,
.vc-quantity-control button:focus {
    background: #eff6ff !important;
    color: var(--vc-primary-dark) !important;
}

.vc-quantity-control input {
    display: block;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px;
    padding: 0 !important;
    border-width: 0 1px !important;
    border-color: var(--vc-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    text-align: center;
    font-weight: 900;
    appearance: textfield;
}

.vc-quantity-control input::-webkit-outer-spin-button,
.vc-quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.vc-total {
    display: grid;
    gap: 2px;
    text-align: left;
}

.vc-total span {
    color: var(--vc-muted);
    font-size: 12px;
    font-weight: 800;
}

.vc-total strong {
    font-size: 18px;
}

.vc-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--vc-primary);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .28);
}

.vc-submit:hover,
.vc-submit:focus {
    background: var(--vc-primary-dark);
}

.vc-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.vc-message,
.vc-empty {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--vc-border);
    background: #fff;
    font-weight: 700;
}

.vc-message-approved,
.vc-message-transferred {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.vc-message-canceled,
.vc-message-failed,
.vc-message-error,
.vc-message-invalid,
.vc-message-config {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.vc-modal-open {
    overflow: hidden;
}

.vc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vc-modal.is-open {
    display: flex;
}

.vc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(4px);
}

.vc-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .35);
    padding: 22px;
}

.vc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--vc-bg);
    color: var(--vc-text);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.vc-modal-candidate {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: center;
    margin-right: 38px;
    margin-bottom: 20px;
}

.vc-modal-photo {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--vc-bg);
}

.vc-modal-candidate h4 {
    margin: 6px 0 0;
    font-size: 26px;
    line-height: 1.1;
}

.vc-modal-form .vc-voter-grid {
    margin-bottom: 18px;
}

.vc-modal-form .vc-vote-row {
    margin-bottom: 18px;
}

.vc-wrap {
    --vc-accent: #facc15;
}

.vc-card-style-square .vc-card,
.vc-card-style-square .vc-heading,
.vc-card-style-square .vc-contest-heading,
.vc-card-style-square .vc-open-vote,
.vc-card-style-square .vc-submit {
    border-radius: 6px;
}

.vc-card-style-shadow .vc-card {
    box-shadow: 0 26px 70px rgba(15, 23, 42, .18);
}

.vc-contest-heading.has-image {
    display: grid;
    grid-template-columns: minmax(160px, 280px) 1fr;
    gap: 18px;
    align-items: center;
}

.vc-contest-image {
    width: 100%;
    height: 170px;
    border-radius: 18px;
    object-fit: cover;
}

.vc-status-badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.vc-status-upcoming {
    background: #fffbeb;
    color: #92400e;
}

.vc-status-ended {
    background: #f1f5f9;
    color: #475569;
}

.vc-contest-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.vc-contest-meta span,
.vc-countdown {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--vc-bg);
    color: var(--vc-muted);
    font-size: 12px;
    font-weight: 800;
}

.vc-countdown {
    display: inline-flex;
    margin-top: 12px;
    color: var(--vc-primary);
}

.vc-top-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.vc-top-card {
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--vc-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.vc-top-card span,
.vc-top-card em {
    display: block;
    color: var(--vc-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.vc-top-card strong {
    display: block;
    margin: 6px 0;
    font-size: 18px;
}

.vc-top-1 {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb, #fff);
}

.vc-top-2 {
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #f8fafc, #fff);
}

.vc-top-3 {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.vc-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px;
    margin-bottom: 16px;
}

.vc-toolbar input,
.vc-toolbar select {
    min-height: 44px;
    border: 1px solid var(--vc-border);
    border-radius: 14px;
    background: #fff;
    color: var(--vc-text);
    font: inherit;
}

.vc-toolbar input {
    padding: 0 14px;
}

.vc-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.vc-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vc-primary), var(--vc-accent));
}

.vc-price {
    margin: 10px 0 0;
    color: var(--vc-primary);
    font-size: 13px;
    font-weight: 900;
}

.vc-open-vote.is-disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.vc-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.vc-share a,
.vc-share button {
    padding: 7px 10px;
    border: 1px solid var(--vc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--vc-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.vc-modal-summary,
.vc-secure-note {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--vc-bg);
}

.vc-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vc-modal-summary span,
.vc-secure-note {
    color: var(--vc-muted);
    font-size: 13px;
    font-weight: 800;
}

.vc-modal-summary strong {
    color: var(--vc-primary);
    font-size: 18px;
}

.vc-modal-contest {
    margin: 6px 0 0;
    color: var(--vc-muted);
    font-size: 13px;
    font-weight: 700;
}

.vc-quick-votes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.vc-quick-votes button {
    min-height: 38px;
    border: 1px solid var(--vc-border);
    border-radius: 12px;
    background: #fff;
    color: var(--vc-primary);
    cursor: pointer;
    font-weight: 900;
}

.vc-quick-votes button:hover,
.vc-quick-votes button.is-active {
    border-color: var(--vc-primary);
    background: #eff6ff;
}

.vc-card.is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .vc-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .vc-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .vc-heading,
    .vc-card-body {
        padding: 18px;
    }

    .vc-contest-heading.has-image,
    .vc-top-three,
    .vc-toolbar {
        grid-template-columns: 1fr;
    }

    .vc-cards {
        grid-template-columns: 1fr;
    }

    .vc-card-media img,
    .vc-card-placeholder {
        height: 300px;
    }

    .vc-quick-votes {
        grid-template-columns: repeat(3, 1fr);
    }
}
