.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 18, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.popup-overlay.is-open {
  opacity: 1;
}

.popup-card {
  position: relative;
  background: rgba(26, 26, 46, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px 24px;
  width: min(90vw, 380px);
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.15);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.popup-overlay.is-open .popup-card {
  transform: scale(1);
}

.timer-ring {
  position: absolute;
  top: 16px;
  right: 16px;
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 5;
}

.timer-ring-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
}

.timer-ring-text {
  fill: var(--gold);
  font-size: 16px;
  font-weight: 700;
  transform: rotate(90deg);
  transform-origin: 32px 32px;
}

.popup-label {
  color: var(--text-muted);
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.popup-name {
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
  margin-bottom: 4px;
}

.popup-unit {
  color: var(--white);
  margin: 0 0 6px;
}

.popup-category {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.popup-catatan {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  padding: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.popup-actions {
  display: flex;
  gap: 12px;
}

.btn-hadir, .btn-tidak {
  flex: 1;
  padding: 14px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  transition: transform 0.15s ease;
}

.btn-hadir:hover, .btn-tidak:hover {
  transform: translateY(-2px);
}

.btn-hadir {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
}

.btn-tidak {
  background: linear-gradient(135deg, var(--red-1), var(--red-2));
}
