/* Změna #048: pop-up s eventem. Dokud běží, horní lišta je skrytá. */
.ev-popup-pending .notification-top {
  display: none !important;
}

.ev-popup[hidden] {
  display: none;
}
.ev-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}
.ev-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ev-popup-dialog {
  position: relative;
  width: min(52rem, 100%);
  max-height: calc(100vh - 3.2rem);
  overflow-y: auto;
  border-radius: 2rem;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)),
    radial-gradient(80% 60% at 50% 100%, rgba(240, 127, 26, 0.16), transparent 70%),
    #151a2e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(1.6rem) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ev-popup.is-open .ev-popup-backdrop,
.ev-popup.is-open .ev-popup-dialog {
  opacity: 1;
  transform: none;
}
.ev-popup-image {
  display: block;
  width: 100%;
  height: auto;
}
.ev-popup-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 18, 35, 0.75);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.ev-popup-close:hover,
.ev-popup-close:focus-visible {
  background: rgba(15, 18, 35, 0.95);
  outline: 2px solid #f07f1a;
  outline-offset: 2px;
}
.ev-popup-body {
  padding: 2.4rem 3rem 3rem;
}
.ev-popup-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f07f1a;
}
.ev-popup .ev-popup-title {
  margin: 0.8rem 0 1rem;
  font-size: 2.8rem;
  line-height: 1.2;
  color: #fff;
}
.ev-popup-text {
  margin: 0 0 2.2rem;
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.ev-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.ev-popup .ev-popup-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}
.ev-popup .ev-popup-btn-primary {
  background: #f07f1a;
  color: #162038;
}
.ev-popup .ev-popup-btn-primary:hover {
  background: #f5953f;
}
.ev-popup .ev-popup-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(240, 127, 26, 0.7);
  color: #fff;
}
.ev-popup .ev-popup-btn-ghost:hover {
  background: rgba(240, 127, 26, 0.2);
}

@media (max-width: 600px) {
  .ev-popup .ev-popup-title {
    font-size: 2.2rem;
  }
  .ev-popup-body {
    padding: 2rem;
  }
  .ev-popup-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-popup-backdrop,
  .ev-popup-dialog {
    transition: none;
  }
}
