body {
  margin: 0;
  font-family: 'Ancizar Sans', sans-serif;
  background: #181a1f;
  color: #f0f0f0;
  padding: 20px;
  
}

.kvk-container {
  max-width: 800px;
  margin: auto;
  background-color: #1a1f25;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s cubic-bezier(.4,2,.6,1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}

h1 {
  text-align: center;
  color: #ffd700;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 16px #ffd70044, 0 1px 0 #fff2;
  animation: popIn 0.7s cubic-bezier(.4,2,.6,1);
}

.description {
  text-align: center;
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 30px;
}

.input-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  margin-top: 15px;
}

.input-name {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #444;
  border-radius: 7px;
  background-color: #2a2e35;
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 0;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px #0002;
  max-width: 180px;
  width: 100%;
}

.input-name:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 2px #ffd70033;
  outline: none;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px #ffd70033, 0 0 0 0 #ffd70022;
  background: #23272f;
  border: 2.5px solid #ffd70055;
  transition: box-shadow 0.4s, border 0.3s, transform 0.3s;
  animation: avatarPulse 2.5s infinite alternate;
}

.kvk-options {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kvk-options-guide {
  text-align: center;
  color: #ffd700b0;
  font-size: 1.04rem;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.kvk-option {
  background-color: #252b32;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  cursor: pointer;
  transform: scale(1);
  box-shadow: 0 2px 12px #0004;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
  height: 100%;
}

.kvk-option:hover,
.kvk-option.selected label,
.kvk-option input:checked + label {
  border-color: #ffd700;
  box-shadow: 0 0 24px #ffd70066, 0 2px 12px #0006;
  transform: scale(1.04) rotate(-1deg);
}

.kvk-option input {
  display: none;
}

.kvk-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  cursor: pointer;
  padding: 15px;
  transition: background 0.2s;
  position: relative;
  border-radius: 8px;
  box-shadow: none;
  border: 2px solid transparent;
  height: 100%;
  min-height: unset;
}

.kvk-option .selected-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffd700;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}

.kvk-option.selected label,
.kvk-option input:checked + label {
  background: linear-gradient(90deg, #ffd70022 60%, #ffdf6c11 100%);
  border-color: #ffd700;
  box-shadow: 0 0 18px #ffd70099;
  position: relative;
}

.kvk-option.selected label .selected-indicator,
.kvk-option input:checked + label .selected-indicator {
  opacity: 1;
  transform: scale(1.1);
}

.kvk-option label .selected-indicator::before {
  content: "✔";
  display: block;
  font-size: 1.2rem;
  line-height: 28px;
  text-align: center;
}

.kvk-option img {
  width: 100%;
  max-width: 351px;
  max-height: 120px;
  aspect-ratio: 351 / 97;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #23272f 60%, #181a1f 100%);
  box-shadow: 0 2px 12px #0004;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
  border: 1.5px solid #ffd70033;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
}

.kvk-option:hover img,
.kvk-option.selected label img,
.kvk-option input:checked + label img {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 0 24px #ffd70044, 0 2px 12px #0006;
}

.kvk-option h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffdf6c;
}

.kvk-option p {
  font-size: 0.9rem;
  color: #ccc;
}

#voteBtn,
#showResultBtn,
#showLiveBtn,
#closeModalBtn,
#closeLiveCountModalBtn {
  margin-top: 30px;
  width: auto;
  min-width: 150px;
  max-width: 260px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  padding: 14px 0;
  font-size: 1.13rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffd700 60%, #ffdf6c 100%);
  color: #23272f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 16px #ffd70033, 0 1.5px 0 #fff2;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: popIn 0.7s cubic-bezier(.4,2,.6,1) 0.2s backwards;
}

#voteBtn:hover,
#showResultBtn:hover,
#showLiveBtn:hover,
#closeModalBtn:hover,
#closeLiveCountModalBtn:hover {
  background: linear-gradient(90deg, #ffe066 60%, #ffd700 100%);
  color: #000;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 24px #ffd70077, 0 2px 12px #ffd70033;
}

#voteBtn:active,
#showResultBtn:active,
#showLiveBtn:active,
#closeModalBtn:active,
#closeLiveCountModalBtn:active {
  transform: scale(0.98);
  background: linear-gradient(90deg, #ffd700 60%, #ffe066 100%);
}

#voteBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ffd70099;
  color: #444;
  box-shadow: none;
}

#statusMessage {
  margin-top: 15px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s;
}

.avatar-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 40%, #ff7e5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: #222;
  box-shadow: 0 2px 8px #ffd70033;
  transition: background 0.3s;
  animation: avatarPulse 2.5s infinite alternate;
}

@keyframes avatarPulse {
  0% { box-shadow: 0 2px 8px #ffd70033, 0 0 0 0 #ffd70022; }
  100% { box-shadow: 0 2px 18px #ffd70077, 0 0 0 12px #ffd70011; }
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #222;
  border-radius: 5px;
  margin-top: 18px;
  overflow: hidden;
  box-shadow: 0 1px 6px #ffd70033;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd700 60%, #ff7e5f 100%);
  transition: width 0.5s;
  animation: progressGlow 1.2s infinite alternate;
}

@keyframes progressGlow {
  0% { box-shadow: 0 0 8px #ffd70044; }
  100% { box-shadow: 0 0 18px #ffd70099; }
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #23272f;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 32px #000a;
  text-align: center;
  color: #ffd700;
  min-width: 260px;
  animation: popIn 0.4s cubic-bezier(.4,2,.6,1);
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-box button {
  margin-top: 18px;
  padding: 10px 28px;
  background: #ffd700;
  color: #222;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-box button:hover {
  background: #e6c200;
}

#liveCountModal .modal-box {
  max-width: 420px;
  width: 95vw;
  background: #23272f;
  color: #fff;
  padding: 28px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 32px #000a;
  text-align: center;
}

#closeLiveCountModalBtn {
  width: auto;
  min-width: 90px;
  max-width: 180px;
  padding: 10px 28px;
  margin: 18px auto 0 auto;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffd700 60%, #ffdf6c 100%);
  color: #23272f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 12px #ffd70033;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#closeLiveCountModalBtn:hover {
  background: linear-gradient(90deg, #ffe066 60%, #ffd700 100%);
  color: #000;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 24px #ffd70077, 0 2px 12px #ffd70033;
}

#closeLiveCountModalBtn:active {
  transform: scale(0.98);
  background: linear-gradient(90deg, #ffd700 60%, #ffe066 100%);
}

.kvk-title-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  gap: 4px;
  width: 100%;
  flex: 1 0 auto;
  padding-bottom: 0;
  min-height: 0;
  height: 70px; /* Fixed height for all cards */
}

.kvk-title-date h3 {
  margin: 0;
  font-size: 1.13rem;
  color: #ffdf6c;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.kvk-date {
  font-size: 0.97rem;
  color: #ffd700b0;
  font-weight: 500;
  margin: 4px 0 0 0;
  text-align: center;
  letter-spacing: 0.2px;
  display: block;
  line-height: 1.2;
}

/* Responsive: pastikan kotak tetap proporsional dan tidak kosong di mobile */
@media (max-width: 600px) {
  .kvk-title-date {
    height: 54px;
    gap: 2px;
  }
  .kvk-title-date h3 {
    font-size: 1.02rem;
  }
  .kvk-date {
    font-size: 0.93rem;
    margin: 3px 0 0 0;
  }
}

/* Hilangkan margin bawah pada .kvk-option jika tidak ada deskripsi */
.kvk-option p {
  display: none;
}

/* Responsive: pastikan kotak tetap proporsional di mobile */
@media (max-width: 600px) {
  .kvk-title-date {
    height: 48px;
    min-height: 0;
    gap: 2px;
  }
  .kvk-option label {
    min-height: unset;
    height: auto;
  }
  .kvk-option {
    min-height: unset;
    height: auto;
  }
}

@media (max-width: 900px) {
  .kvk-options {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .kvk-option {
    max-width: 100%;
    min-width: 0;
  }
}

/* Batasi lebar input nama dan tombol di desktop */
.input-row {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.input-name {
  max-width: 180px;
  width: 100%;
}

/* Tombol utama agar tidak terlalu panjang di desktop */
#voteBtn,
#showResultBtn,
#showLiveBtn,
#closeModalBtn,
#closeLiveCountModalBtn {
  width: auto;
  min-width: 150px;
  max-width: 260px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Responsive: tetap nyaman di mobile */
@media (max-width: 600px) {
  .input-row {
    max-width: 100%;
    gap: 8px;
  }
  .input-name {
    max-width: 100%;
  }
  #voteBtn,
  #showResultBtn,
  #showLiveBtn,
  #closeModalBtn,
  #closeLiveCountModalBtn {
    min-width: 90px;
    max-width: 100%;
    width: 100%;
  }
}
.footer, footer {
  margin-top: 48px;
  text-align: center;
  color: #aaa;
  font-size: 0.98rem;
  padding: 18px 0 0 0;
  border-top: 1.5px solid #222;
  background: none;
  box-shadow: none;
  letter-spacing: 0.2px;
}
