:root {
  --frame-radius: 24px;
}

@font-face {
  font-family: "Space Age";
  src: url("SpaceAge.ttf") format("truetype");
}

body {
  font-family: "Space Mono", monospace;
  background: linear-gradient(145deg, #d8d8d8, #bfbfbf);
  color: black;
  padding: 40px;
  line-height: 1.6;
  font-size: 16px;
}

/* Container Glass Card */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.space-age-title {
  font-family: "Space Age", sans-serif;
  font-size: 40px;
  letter-spacing: 1px;
  font-weight: normal;
}

.highlight {
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 500;
}

/* Popup Container */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--frame-radius);
  padding: 0;
  z-index: 1000;
  overflow: hidden;
}

/* Popup Frame - NO shiny/glass effects */
.popup-frame {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--frame-radius) - 6px);
  padding: 30px 36px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  background-size: 300% 300%;
  animation: popupEnter 0.6s ease forwards;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #000;
  max-width: 600px;
  width: 90%;
  font-family: "Michroma", sans-serif;
  overflow: hidden;
}

/* Removed the shiny/glare effects by deleting .popup-frame::before and .popup-frame::after */

/* Popup header */
.popup-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.popup-header img {
  width: 80px;
  height: auto;
}

.popup-header h1 {
  font-size: 34px;
  margin: 0;
  line-height: 1;
}

/* Title under header */
.popup-frame h2 {
  font-size: 26px;
  margin-top: 20px;
  margin-bottom: 15px;
  text-align: left;
  padding-left: 21px;
}

.popup-frame ul li {
  margin: 6px 0;
  font-size: 14px;
}

.popup-frame p {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.popup-frame small {
  font-size: 11px;
  color: #444;
  display: block;
  text-align: center;
}

/* Email input + button inline */
.email-form {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #000;
  min-width: 0;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-family: "Michroma", sans-serif;
}

.email-form button {
  padding: 12px 18px;
  font-size: 14px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: "Michroma", sans-serif;
}

/* Wishlist count style */
#wishlist-count {
  margin: 0 0 12px 4px; /* left-aligned with slight indent */
  font-size: 10px;
  font-weight: 600;
  color: #444;
  font-family: "Michroma", sans-serif;
  opacity: 0.85;
  user-select: none;
}

/* Smaller subtitle below */
.popup-frame small {
  font-size: 11px;
  color: #666;
  display: block;
  margin-left: 4px;
  margin-top: -6px; /* tuck closer to counter */
}
/* Animations */
@keyframes popupEnter {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
