.vote-action-btn {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.vote-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #229ed9 10%, transparent);
  border: 1px solid color-mix(in srgb, #229ed9 22%, transparent);
}

.vote-modal-telegram {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.vote-modal-brand-label {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text, #f1f5f9);
  line-height: 1.35;
}

.vote-modal-brand-label strong {
  color: #4fc3f7;
}

.vote-modal-text strong {
  color: var(--text, #f1f5f9);
  font-weight: 700;
}

.vote-modal-text em {
  color: var(--muted, #94a3b8);
  font-style: italic;
}

.vote-modal-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vote-modal-root[hidden] {
  display: none !important;
}

.vote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vote-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--text, #f1f5f9) 14%, transparent);
  background: color-mix(in srgb, var(--surface, #12182b) 92%, #000);
  color: var(--text, #f1f5f9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: vote-modal-in 0.28s ease;
}

@keyframes vote-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vote-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #94a3b8);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.vote-modal-close:hover {
  background: color-mix(in srgb, var(--text, #f1f5f9) 8%, transparent);
}

.vote-modal-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.vote-modal-text {
  margin: 0 0 22px;
  color: var(--muted, #94a3b8);
  font-size: 0.98rem;
  line-height: 1.65;
}

.vote-modal-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent, #22c55e);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vote-modal-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.vote-modal-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.vote-card--voted .vote-action-btn,
.vote-card--disabled .vote-action-btn {
  pointer-events: none;
}

.vote-action-btn--voted {
  background: color-mix(in srgb, var(--accent, #22c55e) 18%, transparent) !important;
  color: var(--accent, #22c55e) !important;
  border-color: var(--accent, #22c55e) !important;
  cursor: default !important;
}

.vote-action-btn--disabled {
  opacity: 0.45 !important;
  filter: grayscale(0.35);
  cursor: not-allowed !important;
}

body.vote-modal-open {
  overflow: hidden;
}
