/* Base cards */
.vc-nominees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.vc-nominee-item,
.vc-vote-wrap,
.vc-counter-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.vc-thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.vc-title {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
}

/* Buttons */
.vc-vote-btn,
.vc-submit-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: #111827;
  color: #fff;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vc-vote-btn:hover,
.vc-submit-btn:hover {
  background: var(--vc-hover);
  transform: translateY(-1px);
}
.vc-vote-btn:active,
.vc-submit-btn:active {
  transform: translateY(0);
}
.vc-vote-btn[disabled],
.vc-submit-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.vc-vote-btn.vc-busy,
.vc-submit-btn.vc-busy {
  opacity: 0.7;
}

.vc-total-votes {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

/* Counter UI */
.vc-counter-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.vc-counter-controls .vc-dec,
.vc-counter-controls .vc-inc {
  background: #f3f4f6;
  border: none;
  width: 48px;
  height: 40px;
  font-size: 20px;
  line-height: 40px;
  cursor: pointer;
}
.vc-counter-controls .vc-dec {
  border-right: 1px solid #e5e7eb;
}
.vc-counter-controls .vc-inc {
  border-left: 1px solid #e5e7eb;
}
.vc-counter-controls .vc-dec:disabled,
.vc-counter-controls .vc-inc:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.vc-count {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}
.vc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.vc-balance {
  font-weight: 600;
}

/* Disabled look */
.vc-counter-wrap.vc-disabled {
  opacity: 0.7;
}
.vc-counter-wrap.vc-disabled .vc-count {
  color: #9ca3af;
}

/* Modal */
.vc-modal-backdrop {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.vc-modal {
  background: #fff;
  border-radius: 12px;
  width: min(480px, 90vw);
  padding: 20px 20px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.vc-modal-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.vc-modal-msg {
  margin: 0 0 16px;
}
.vc-modal-ok {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #be123c;
  color: #fff;
  cursor: pointer;
}
.vc-modal-ok:hover {
  filter: brightness(1.05);
}

.button-danger {
  background: #d63638 !important;
  color: #fff !important;
  border-color: #a00 !important;
}
.button-danger:hover {
  background: #b32d2e !important;
}
