* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  .material-symbols-outlined {
    font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
  }
  .circle-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
  }
  .notification-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    display: none;
  }
  .popup {
    position: absolute;
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    width: 90%;
    max-width: 320px;
    z-index: 1000;
  }
  .notification-popup {
    top: 60px;
    right: 10px;
    max-height: 400px;
    overflow-y: auto;
  }
  .notification-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .notification-popup li {
    padding: 8px;
    border-bottom: 1px solid #444;
    cursor: pointer;
  }
  .notification-popup li:last-child {
    border-bottom: none;
  }
  .exchange-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    text-align: center;
  }
  .exchange-title {
    font-weight: bold;
    margin-bottom: 10px;
  }
  .stickers {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
  }
  .sticker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
  }
  .sticker-container img {
    width: 100%;
    max-width: 120px;
  }
  .sticker-container p {
    margin-top: 5px;
    font-size: 14px;
  }
  .buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
  }
  .buttons button {
    flex: 1;
    margin: 0 5px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  button.no-btn {
    background-color: red !important;
    color: #fff !important;
  }
  button.yes-btn {
    background-color: green !important;
    color: #fff !important;
  }
  @media (max-width: 480px) {
    .sticker-container img {
      max-width: 80px;
    }
    .buttons button {
      font-size: 14px;
      padding: 8px 16px;
    }
  }

  /* ===================================================== */
/* POP-UP: RECOMPENSA DE ESTRELAS DO GAMEMASTER          */
/* ===================================================== */

#gmStarsPopup.popup.friend-popup {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: min(92vw, 440px);
  max-height: min(88dvh, 620px);
  padding: 30px 24px 28px;

  display: none;
  flex-direction: column;
  align-items: center;

  border-radius: 30px;
  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.24), transparent 38%),
    radial-gradient(circle at bottom right, rgba(102, 126, 234, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(28, 28, 40, 0.96);

  color: #fff;

  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.56),
    0 0 38px rgba(255, 215, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transform: translate(-50%, -50%) scale(0.98);
  z-index: 2800;

  font-family: 'Poppins', sans-serif;
  text-align: center;
}

#gmStarsPopup.popup.friend-popup[style*="display: block"],
#gmStarsPopup.popup.friend-popup[style*="display:block"] {
  display: flex !important;
  animation: gmStarsPopupIn 0.26s cubic-bezier(.16, .9, .24, 1) both;
}

@keyframes gmStarsPopupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.93);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

#gmStarsPopup.popup.friend-popup::before {
  content: "stars";

  width: 68px;
  height: 68px;
  margin: 0 auto 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 24px;

  font-family: "Material Symbols Outlined";
  font-size: 40px;
  line-height: 1;

  background: linear-gradient(145deg, #ffd56a, #f5a623);
  color: #fff;

  box-shadow:
    0 16px 34px rgba(255, 193, 7, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

#gmStarsPopup.popup.friend-popup::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.16),
      transparent 30%,
      transparent 70%,
      rgba(255, 215, 0, 0.12)
    );

  pointer-events: none;
}

#gmStarsPopup .exchange-title {
  width: 100%;
  max-width: 390px;

  margin: 0 auto 12px;

  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.6px;

  color: #fff;
  text-align: center;
}

#gmStarsMessage {
  max-width: 370px;

  margin: 10px auto 16px !important;
  padding: 14px 16px;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.09);

  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 700;

  color: rgba(255, 255, 255, 0.82);
  text-align: center;

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

#gmStarsAmount {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto !important;
  padding: 10px 18px;

  border-radius: 999px;

  background:
    linear-gradient(145deg, rgba(255, 213, 106, 0.24), rgba(245, 166, 35, 0.18));

  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1;
  font-weight: 900;

  color: #ffe7a3;

  box-shadow:
    0 10px 24px rgba(245, 166, 35, 0.18),
    inset 0 0 0 1px rgba(255, 215, 0, 0.18);
}

#gmStarsPopup .buttons {
  width: 100%;
  max-width: 280px;

  display: flex;
  justify-content: center;

  margin: 20px auto 0 !important;
}

#gmStarsPopup .buttons button,
#gmStarsPopup #gmStarsClose {
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;

  border: 0;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 900;

  color: #fff;
  background: linear-gradient(145deg, #667eea, #764ba2);

  cursor: pointer;

  box-shadow: 0 12px 28px rgba(102, 126, 234, 0.34);

  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

#gmStarsPopup .buttons button:hover,
#gmStarsPopup #gmStarsClose:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(102, 126, 234, 0.42);
}

#gmStarsPopup .buttons button:active,
#gmStarsPopup #gmStarsClose:active {
  transform: scale(0.97);
}

/* Dark mode */

body.dark-mode #gmStarsPopup.popup.friend-popup {
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(102, 126, 234, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045)),
    rgba(22, 22, 30, 0.97);

  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.68),
    0 0 38px rgba(255, 215, 0, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

body.dark-mode #gmStarsMessage {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode #gmStarsAmount {
  background:
    linear-gradient(145deg, rgba(255, 213, 106, 0.18), rgba(245, 166, 35, 0.14));
}

/* Mobile */

@media (max-width: 560px) {
  #gmStarsPopup.popup.friend-popup {
    width: min(92vw, 400px);
    padding: 26px 18px 26px;
    border-radius: 26px;
  }

  #gmStarsPopup.popup.friend-popup::before {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 34px;
    margin-bottom: 14px;
  }

  #gmStarsPopup .exchange-title {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  #gmStarsMessage {
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  #gmStarsAmount {
    font-size: 1.08rem;
  }
}

@media (max-width: 360px) {
  #gmStarsPopup.popup.friend-popup {
    padding: 22px 14px 24px;
  }

  #gmStarsMessage {
    font-size: 0.82rem;
  }

  #gmStarsPopup .buttons {
    max-width: 100%;
  }
}
  