/* ===== Buy $HODL Popup (Win98/ME style) ===== */
.buy-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.buy-popup-overlay.visible {
  opacity: 1;
}

.buy-popup-dialog {
  width: 420px;
  max-width: calc(100vw - 24px);
  /* Classic Win98 raised border: light top-left, dark bottom-right */
  border: none;
  outline: 2px solid #000;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset 2px 2px 0 #dfdfdf,
    inset -1px -1px 0 #404040,
    inset -2px -2px 0 #808080;
  background: #c0c0c0;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', 'Segoe UI', Tahoma, Geneva, sans-serif;
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  image-rendering: pixelated;
}

.buy-popup-overlay.visible .buy-popup-dialog {
  transform: scale(1);
}

/* Title bar — Win98 navy-to-blue gradient */
.buy-popup-titlebar {
  background: linear-gradient(90deg, #00007b 0%, #0855a8 40%, #1084d0 100%);
  padding: 2px 3px 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Tahoma, sans-serif;
}

.buy-popup-titleicon {
  font-size: 14px;
  line-height: 1;
  filter: saturate(0.8);
}

.buy-popup-titletext {
  font-size: 12px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}

/* Window control button group — _ [] X */
.buy-popup-controls {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.buy-popup-ctrl-btn {
  width: 21px;
  height: 21px;
  background: #c0c0c0;
  border: none;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    inset 2px 2px 0 #dfdfdf,
    inset -2px -2px 0 #808080;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'MS Sans Serif', 'Marlett', Arial, sans-serif;
}

.buy-popup-ctrl-btn:active {
  box-shadow:
    inset 1px 1px 0 #404040,
    inset -1px -1px 0 #ffffff,
    inset 2px 2px 0 #808080,
    inset -2px -2px 0 #dfdfdf;
}

.buy-popup-ctrl-btn .ctrl-icon {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 0.8;
  margin-top: -1px;
}

/* Body — retro scanline + dither effect */
.buy-popup-body {
  padding: 20px 24px 18px;
  text-align: center;
  background:
    /* Teal dithered pattern inside the window body */
    repeating-conic-gradient(#008080 0% 25%, #006868 0% 50%) 0 0 / 4px 4px;
  /* Sunken inner border for the content area */
  border-top: 1px solid #808080;
  margin: 0 2px 2px 2px;
  box-shadow:
    inset 1px 1px 0 #808080,
    inset -1px -1px 0 #ffffff;
}

.buy-popup-heading {
  font-size: 20px;
  font-weight: 700;
  color: #ffd644;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Tahoma, sans-serif;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  /* Retro low-bit text — no anti-aliasing feel */
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

.buy-popup-sub {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
  margin-bottom: 18px;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Tahoma, sans-serif;
  -webkit-font-smoothing: none;
}

.buy-popup-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  font-family: 'MS Sans Serif', 'Microsoft Sans Serif', Tahoma, sans-serif;
  letter-spacing: 1px;
  color: #000;
  cursor: pointer;
  /* Flatter, more 8-bit golden button */
  background: linear-gradient(180deg, #ffd644 0%, #e8a817 50%, #d49600 100%);
  border: none;
  box-shadow:
    inset 1px 1px 0 #ffe888,
    inset 2px 2px 0 rgba(255,255,255,0.3),
    inset -1px -1px 0 #996600,
    inset -2px -2px 0 #b37700,
    1px 1px 0 #000;
  -webkit-font-smoothing: none;
}

.buy-popup-btn:hover {
  background: linear-gradient(180deg, #ffe066 0%, #f0b020 50%, #d49600 100%);
}

.buy-popup-btn:active {
  box-shadow:
    inset 1px 1px 0 #996600,
    inset 2px 2px 0 #b37700,
    inset -1px -1px 0 #ffe888,
    inset -2px -2px 0 rgba(255,255,255,0.3);
  padding: 11px 0 9px;
}
