@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  overflow-x: hidden;
}

body.dark-mode {
  background: #222;
  color: #eee;
}

body.dark-mode #nicknameModal .modal-content {
  background: #2c2c2c;
  color: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode #nicknameModal input[type="text"] {
  background: #444;
  color: #eee;
  border: 1px solid #666;
}

body.dark-mode #modalError {
  color: #ff6b6b;
}

/* ======================= */
/* Menu de navegação       */
/* ======================= */

nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 1000;

  width: min(1180px, calc(100% - 28px));
  min-height: 74px;
  padding: 10px 14px 10px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border-radius: 28px;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(102, 126, 234, 0.94), rgba(118, 75, 162, 0.94));

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.20);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transform: translateX(-50%);

  overflow: visible;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  border-radius: inherit;

  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.22),
      transparent 28%,
      transparent 72%,
      rgba(255, 255, 255, 0.12)
    );

  pointer-events: none;
}

nav .logo-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

nav .logo-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 68px;
  height: 54px;

  color: #fff;
  text-decoration: none;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.12);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

nav .logo-nav a:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 12px 26px rgba(0, 0, 0, 0.16);
}

nav .logo-nav a:active {
  transform: scale(0.96);
}

nav .logo-nav a img {
  max-height: 52px;
  width: auto;
  margin-left: 0;

  object-fit: contain;

  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

nav .dashboard-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  min-width: 0;
}

#nicknameDisplay {
  max-width: 230px;
  min-height: 42px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;

  cursor: pointer;
  text-decoration: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  background: rgba(255, 255, 255, 0.13);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

#nicknameDisplay:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

#nicknameDisplay.placeholder {
  opacity: 0.82;
}

nav .dashboard-controls button {
  position: relative;

  min-height: 42px;
  padding: 0 15px;

  border: 0;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  line-height: 1;

  color: #fff;
  background: rgba(255, 255, 255, 0.14);

  cursor: pointer;
  overflow: hidden;
  isolation: isolate;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

nav .dashboard-controls button::before {
  content: "";
  position: absolute;
  inset: 0;

  width: 48%;
  left: -65%;

  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.44) 45%,
      rgba(255, 255, 255, 0) 60%
    );

  transform: skewX(-20deg);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}

nav .dashboard-controls button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  filter: brightness(1.05);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 12px 26px rgba(0, 0, 0, 0.16);
}

nav .dashboard-controls button:hover::before {
  opacity: 1;
  animation: navButtonShine 0.9s ease forwards;
}

nav .dashboard-controls button:active {
  transform: scale(0.96);
}

@keyframes navButtonShine {
  from {
    left: -65%;
  }

  to {
    left: 165%;
  }
}

/* Botão de notificação */

#notificationButton {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;

  border-radius: 50%;
}

#notificationButton .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 700;
}

#notificationButton:hover .material-symbols-outlined {
  animation: navBellWiggle 0.55s ease;
}

@keyframes navBellWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-6deg);
  }
}

/* Botão Loja */

.store-btn {
  min-width: 94px;
}

.store-btn img {
  width: 22px;
  height: 22px;

  margin-right: 0;
  vertical-align: middle;

  object-fit: contain;

  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));

  transition: transform 0.22s ease;
}

.store-btn:hover img {
  transform: rotate(-8deg) scale(1.08);
}

/* Botão Perfil */

.profile-btn {
  position: relative;

  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;

  border-radius: 50%;

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10)) !important;

  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.profile-btn img:not(.premium-crown) {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.profile-btn:hover img:not(.premium-crown) {
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(255, 255, 255, 0.22);
}

.profile-btn.active {
  transform: scale(1.15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16)) !important;
}

.premium-crown {
  position: absolute;
  top: -14px;
  left: -10px;

  width: 27px;
  height: auto;

  transform: rotate(-35deg);
  pointer-events: none;

  display: none;
  z-index: 5;

  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(255, 215, 0, 0.42));
}

.premium-crown.visible {
  display: block;
  animation: premiumCrownPop 0.45s cubic-bezier(.16, .9, .24, 1) both;
}

@keyframes premiumCrownPop {
  from {
    opacity: 0;
    transform: rotate(-35deg) translateY(6px) scale(0.65);
  }

  to {
    opacity: 1;
    transform: rotate(-35deg) translateY(0) scale(1);
  }
}

/* Dark mode */

body.dark-mode nav {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(36, 39, 88, 0.96), rgba(54, 34, 82, 0.96));

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

body.dark-mode #nicknameDisplay,
body.dark-mode nav .dashboard-controls button {
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

body.dark-mode #nicknameDisplay:hover,
body.dark-mode nav .dashboard-controls button:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsividade */

@media (max-width: 768px) {
  nav {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 76px;
    padding: 10px 10px 10px 12px;
    border-radius: 24px;
    gap: 10px;
  }

  nav .logo-nav a {
    width: 58px;
    height: 50px;
    border-radius: 18px;
  }

  nav .logo-nav a img {
    max-height: 46px;
  }

  nav .dashboard-controls {
    gap: 7px;
  }

  #nicknameDisplay {
    max-width: 150px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  nav .dashboard-controls button {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  #notificationButton {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .store-btn {
    min-width: 0;
  }

  .store-btn img {
    width: 21px;
    height: 21px;
  }

  .profile-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .profile-btn img:not(.premium-crown) {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 560px) {
  nav {
    align-items: center;
  }

  #nicknameDisplay {
    display: none;
  }

  .store-btn span {
    display: none;
  }

  .store-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .store-btn img {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 360px) {
  nav {
    width: calc(100% - 12px);
    padding-left: 7px;
    padding-right: 7px;
    gap: 5px;
  }

  nav .logo-nav a {
    width: 44px;
    height: 42px;
  }

  nav .logo-nav a img {
    max-height: 38px;
  }

  nav .dashboard-controls {
    gap: 4px;
  }

  #nicknameDisplay {
    max-width: 88px;
    min-height: 36px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  #notificationButton,
  .store-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .profile-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .profile-btn img:not(.premium-crown) {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav,
  nav *,
  nav *::before,
  nav *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ======================= */
/* Dashboard repaginado    */
/* ======================= */

.dashboard-home {
  width: min(1180px, 100%);
  margin: 150px auto 0;
  padding: 50px 24px 110px;
  font-family: 'Poppins', sans-serif;
}

.dashboard-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
  opacity: 0;
  transform: translateY(18px);
}

.dashboard-loaded .dashboard-hero {
  animation: dashboardHeroIn 0.7s cubic-bezier(.16, .9, .24, 1) forwards;
}

.dashboard-hero h1 {
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.05;
  margin: 0;
  color: #222;
  font-weight: 800;
  letter-spacing: -1px;
}

body.dark-mode .dashboard-hero h1 {
  color: #fff;
}

.dashboard-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.dashboard-album-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  isolation: isolate;
}

.dashboard-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 360px));
  gap: 26px;
  align-items: stretch;
  justify-content: center;
}

.dashboard-loaded .dashboard-album-card {
  animation: dashboardCardIn 0.78s cubic-bezier(.16, .9, .24, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.dashboard-album-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.14) 48%,
      rgba(0, 0, 0, 0.78) 100%
    );
  transition: opacity 0.35s ease;
}

.dashboard-album-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.34) 48%,
      transparent 58%,
      transparent 100%
    );
  transform: translateX(-75%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.dashboard-album-card:hover::after {
  animation: dashboardCoverShine 0.85s ease forwards;
}

.dashboard-album-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.dashboard-album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06) translateX(-10px);
  filter: saturate(1.06) contrast(1.03);
  transition:
    transform 0.65s cubic-bezier(.16, .9, .24, 1),
    filter 0.45s ease;
}

.dashboard-loaded .dashboard-album-cover {
  animation: dashboardImageDrift 1.2s cubic-bezier(.16, .9, .24, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.dashboard-album-card:hover .dashboard-album-cover {
  transform: scale(1.12) translateX(0);
  filter: saturate(1.15) contrast(1.08) brightness(1.03);
}

.dashboard-album-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.dashboard-album-card:hover .dashboard-album-info {
  transform: translateY(-4px);
}

.dashboard-album-info h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.dashboard-album-card:focus-visible {
  outline: 4px solid #667eea;
  outline-offset: 5px;
}

.show-more-albums-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 34px auto 0;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #667eea, #764ba2);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(102, 126, 234, 0.28);
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease;
}

.show-more-albums-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(102, 126, 234, 0.36);
}

.show-more-albums-btn:active {
  transform: translateY(0);
}

@keyframes dashboardHeroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes dashboardCardIn {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
    filter: blur(10px);
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dashboardImageDrift {
  0% {
    transform: scale(1.1) translateX(-22px);
  }

  55% {
    transform: scale(1.07) translateX(8px);
  }

  100% {
    transform: scale(1.06) translateX(0);
  }
}

@keyframes dashboardCoverShine {
  0% {
    opacity: 0;
    transform: translateX(-75%) rotate(8deg);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(75%) rotate(8deg);
  }
}

/* ======================= */
/* Modal Nickname moderno  */
/* ======================= */

#nicknameModal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 126, 234, 0.22), transparent 34%),
    rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* ======================= */
/* Modal Nickname - Claro  */
/* ======================= */

#nicknameModal .modal-content {
  position: relative;
  width: min(420px, 92vw);
  padding: 30px 24px 28px;
  border-radius: 26px;
  text-align: center;
  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.12), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);

  color: #222;

  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(102, 126, 234, 0.10);

  animation: nicknameModalIn 0.24s ease-out;
}

#nicknameModal .modal-content h3 {
  margin: 0 0 10px;

  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  line-height: 1.05;
  font-weight: 800;

  color: #222 !important;
}

#nicknameModal .modal-content h3::after {
  content: "Escolha como você quer ser visto pelos outros colecionadores.";
  display: block;

  max-width: 310px;
  margin: 10px auto 24px;

  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;

  color: #6f7280 !important;
}

#nicknameModal input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  margin: 0 0 14px;

  border: 1px solid #d8dbe8;
  border-radius: 18px;

  background: #fff !important;
  color: #222 !important;

  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;

  caret-color: #667eea;
  outline: none;

  box-shadow:
    inset 0 0 0 1px rgba(102, 126, 234, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.07);

  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

#nicknameModal input[type="text"]::placeholder {
  color: #9a9daa !important;
  opacity: 1;
}

#nicknameModal input[type="text"]:focus {
  border-color: #667eea;

  background: #fff !important;

  box-shadow:
    0 0 0 4px rgba(102, 126, 234, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.09);
}

#modalError {
  min-height: 20px;
  margin: 2px 0 12px;

  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;

  color: #e53935;
}

/* ======================= */
/* Modal Nickname - Escuro */
/* ======================= */

body.dark-mode #nicknameModal .modal-content {
  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.18), transparent 42%),
    linear-gradient(180deg, #2c2c34 0%, #1e1e24 100%);

  color: #fff;

  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode #nicknameModal .modal-content h3 {
  color: #fff !important;
}

body.dark-mode #nicknameModal .modal-content h3::after {
  color: rgba(255, 255, 255, 0.68) !important;
}

body.dark-mode #nicknameModal input[type="text"] {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12);
  caret-color: #8d9bff;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

body.dark-mode #nicknameModal input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
}

body.dark-mode #nicknameModal input[type="text"]:focus {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: #8d9bff;

  box-shadow:
    0 0 0 4px rgba(141, 155, 255, 0.14),
    0 12px 26px rgba(0, 0, 0, 0.28);
}

body.dark-mode #modalError {
  color: #ff6b6b;
}

  #modalSave {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: #ccc;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
  }

  #modalSave.enabled {
    background: #28a745;
  }

  #modalSave:hover.enabled {
    background: #218838;
  }

  #modalError {
    color: red;
    font-size: 0.9em;
    margin-bottom: 10px;
  }

/* Animações */
@keyframes nicknameModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes nicknameGlowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nicknameBtnShine {
  from {
    left: -60%;
  }

  to {
    left: 160%;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #nicknameModal {
    padding: 16px;
  }

  #nicknameModal .modal-content {
    padding: 26px 18px 20px;
    border-radius: 24px;
  }

  #nicknameModal .modal-content::after {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 30px;
  }

  #nicknameModal .modal-content h3 {
    font-size: 1.45rem;
  }

  #nicknameModal input[type="text"],
  #modalSave {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #nicknameModal .modal-content,
  #nicknameModal .modal-content::before,
  #modalSave.enabled::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Ícone decorativo do modal de nickname */
#nicknameModal .nickname-icon {
  margin: 18px auto 0;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(102, 126, 234, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#nicknameModal .nickname-modal-icon .material-symbols-outlined,
#nicknameModal .modal-icon .material-symbols-outlined,
#nicknameModal .nickname-icon .material-symbols-outlined {
  font-size: 34px;
  line-height: 1;
}

#modalSave + .nickname-modal-icon,
#modalSave + .modal-icon,
#modalSave + .nickname-icon {
  margin-top: 18px;
}

/* ======================= */
/* Botão circular          */
/* ======================= */

#notificationButton {
  padding: 6px;
  border: none;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

#notificationButton:hover {
  background: linear-gradient(145deg, #556cd6, #5a3d7a);
}

/* ======================= */
/* Perfil e loja           */
/* ======================= */

.profile-btn {
  position: relative;
  padding: 6px;
  border: none;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.profile-btn img:not(.premium-crown) {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.premium-crown {
  position: absolute;
  top: -12px;
  left: -8px;
  width: 25px;
  height: auto;
  transform: rotate(-35deg);
  pointer-events: none;
  display: none;
  z-index: 2;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.premium-crown.visible {
  display: block;
}

.profile-btn.active {
  transform: scale(1.16) rotate(-4deg);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .22),
    0 12px 28px rgba(0, 0, 0, .24);
}

.store-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9em;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.store-btn:hover {
  background: linear-gradient(145deg, #556cd6, #5a3d7a);
}

.store-btn img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* ======================= */
/* Menu deslizante         */
/* ======================= */

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 330px);
  height: 100%;
  padding: 96px 14px 24px;
  z-index: 999;

  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,248,255,.92)),
    radial-gradient(circle at top right, rgba(102,126,234,.22), transparent 42%);
  color: #242438;

  box-shadow:
    -18px 0 40px rgba(0, 0, 0, .18),
    inset 1px 0 0 rgba(255, 255, 255, .5);

  transform: translateX(112%);
  opacity: .65;
  visibility: hidden;
  pointer-events: none;

  transition:
    transform .42s cubic-bezier(.16, .9, .24, 1),
    opacity .32s ease,
    visibility .32s ease,
    box-shadow .32s ease;

  overflow-y: auto;
  overscroll-behavior: contain;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.dark-mode .side-menu {
  background:
    linear-gradient(180deg, rgba(38,38,46,.96), rgba(28,28,36,.94)),
    radial-gradient(circle at top right, rgba(118,75,162,.28), transparent 42%);
  color: #f4f4f8;
  box-shadow:
    -18px 0 45px rgba(0, 0, 0, .45),
    inset 1px 0 0 rgba(255, 255, 255, .08);
}

.side-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-menu::before {
  content: "Menu";
  position: absolute;
  top: 34px;
  left: 22px;

  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.4px;

  color: #222;
}

body.dark-mode .side-menu::before {
  color: #fff;
}

.side-menu::after {
  content: "";
  position: absolute;
  top: 62px;
  left: 22px;

  width: 56px;
  height: 5px;
  border-radius: 999px;

  background: linear-gradient(145deg, #667eea, #764ba2);
  box-shadow: 0 8px 18px rgba(102, 126, 234, .28);
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-menu ul li {
  padding: 0;
  opacity: 0;
  transform: translateX(22px);
}

.side-menu.active ul li {
  animation: sideMenuItemIn .48s cubic-bezier(.16, .9, .24, 1) forwards;
}

.side-menu.active ul li:nth-child(1) { animation-delay: .06s; }
.side-menu.active ul li:nth-child(2) { animation-delay: .11s; }
.side-menu.active ul li:nth-child(3) { animation-delay: .16s; }
.side-menu.active ul li:nth-child(4) { animation-delay: .21s; }
.side-menu.active ul li:nth-child(5) { animation-delay: .26s; }

.side-menu ul li a,
.side-menu ul li button {
  position: relative;

  width: 100%;
  min-height: 52px;
  padding: 12px 14px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .56);
  color: inherit;

  font-family: 'Poppins', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
  overflow: hidden;

  box-shadow:
    inset 0 0 0 1px rgba(102, 126, 234, .08),
    0 8px 18px rgba(0, 0, 0, .04);

  transition:
    transform .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    color .22s ease;
}

body.dark-mode .side-menu ul li a,
body.dark-mode .side-menu ul li button {
  background: rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 8px 18px rgba(0, 0, 0, .12);
}

.side-menu ul li a::before,
.side-menu ul li button::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(145deg, rgba(102,126,234,.18), rgba(118,75,162,.18));
  opacity: 0;

  transition: opacity .22s ease;
}

.side-menu ul li a::after,
.side-menu ul li button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;

  width: 7px;
  height: 7px;

  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;

  opacity: 0;
  transform: translate(-8px, -50%) rotate(45deg);

  transition:
    opacity .22s ease,
    transform .22s ease;
}

.side-menu ul li a:hover,
.side-menu ul li button:hover {
  transform: translateX(-4px);
  background: rgba(255, 255, 255, .82);
  color: #5d5fdd;
  box-shadow:
    inset 0 0 0 1px rgba(102, 126, 234, .16),
    0 12px 26px rgba(102, 126, 234, .16);
}

body.dark-mode .side-menu ul li a:hover,
body.dark-mode .side-menu ul li button:hover {
  background: rgba(255, 255, 255, .11);
  color: #bfc7ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 12px 26px rgba(0, 0, 0, .22);
}

.side-menu ul li a:hover::before,
.side-menu ul li button:hover::before {
  opacity: 1;
}

.side-menu ul li a:hover::after,
.side-menu ul li button:hover::after {
  opacity: .75;
  transform: translate(0, -50%) rotate(45deg);
}

.side-menu ul li a:active,
.side-menu ul li button:active {
  transform: translateX(-2px) scale(.99);
}

.side-menu ul li a:focus-visible,
.side-menu ul li button:focus-visible {
  outline: 3px solid rgba(102, 126, 234, .45);
  outline-offset: 3px;
}

.side-menu .material-symbols-outlined {
  position: relative;
  z-index: 1;

  width: 34px;
  height: 34px;
  min-width: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #667eea, #764ba2);
  box-shadow: 0 8px 18px rgba(102, 126, 234, .22);

  font-size: 21px;

  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.side-menu ul li a:hover .material-symbols-outlined,
.side-menu ul li button:hover .material-symbols-outlined {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 10px 22px rgba(102, 126, 234, .32);
}

.side-menu ul li a span:not(.material-symbols-outlined),
.side-menu ul li button span:not(.material-symbols-outlined) {
  position: relative;
  z-index: 1;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;

  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, .22), transparent 28%),
    rgba(0, 0, 0, .34);

  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);

  transition:
    opacity .32s ease,
    visibility .32s ease,
    backdrop-filter .32s ease;
}

.menu-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

body.dark-mode .menu-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, .26), transparent 28%),
    rgba(0, 0, 0, .52);
}

@keyframes sideMenuItemIn {
  from {
    opacity: 0;
    transform: translateX(22px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@media (max-width: 560px) {
  .side-menu {
    width: min(88vw, 310px);
    padding: 92px 12px 22px;
  }

  .side-menu::before {
    top: 32px;
    left: 20px;
    font-size: 1.42rem;
  }

  .side-menu::after {
    top: 59px;
    left: 20px;
  }

  .side-menu ul li a,
  .side-menu ul li button {
    min-height: 50px;
    padding: 11px 12px;
    border-radius: 15px;
    font-size: .94rem;
  }

  .side-menu .material-symbols-outlined {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 11px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-menu,
  .side-menu ul li,
  .side-menu ul li a,
  .side-menu ul li button,
  .side-menu .material-symbols-outlined,
  .menu-overlay {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  .side-menu.active ul li {
    opacity: 1;
    transform: none;
  }
}

/* ======================= */
/* Botão flutuante Missions*/
/* ======================= */

.floating-missions-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background 0.3s, transform 0.25s ease;
  z-index: 1000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.floating-missions-btn:hover {
  background: linear-gradient(145deg, #556cd6, #5a3d7a);
  transform: translateY(-2px);
}

.floating-missions-icon {
  width: 35px;
  height: 35px;
  margin-right: 8px;
  vertical-align: middle;
}

/* Premium missions button */
.floating-missions-premium-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  will-change: transform, width, height, padding, opacity, border-radius;
  transition:
    width .28s ease,
    height .28s ease,
    padding .28s ease,
    border-radius .28s ease,
    transform .24s ease,
    opacity .24s ease,
    box-shadow .24s ease;
  transform: translateY(0);
  opacity: 1;
}

.floating-missions-premium-btn:hover {
  background: linear-gradient(145deg, #556cd6, #5a3d7a);
  transform: translateY(-1px);
}

.floating-missions-premium-icon {
  width: 35px;
  height: 35px;
  margin-right: 8px;
  vertical-align: middle;
  transition: transform .28s ease, margin .28s ease;
}

.floating-missions-premium-label {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .22s ease, margin .28s ease, max-width .28s ease;
  margin-left: 0;
}

.floating-missions-premium-btn.premium-compact {
  border-radius: 50%;
  width: 56px;
  height: 56px;
  padding: 10px;
  justify-content: center;
}

.floating-missions-premium-btn.premium-compact .floating-missions-premium-label {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
}

.floating-missions-premium-btn.premium-compact .floating-missions-premium-icon {
  margin-right: 0;
  transform: scale(1.02);
}

.floating-missions-premium-btn.premium-compact:hover {
  transform: translateY(-2px) scale(1.03);
}

.floating-missions-premium-btn.will-animate {
  transform: translateY(8px);
  opacity: 0.01;
}

/* Bolinha vermelha */
.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
}

/* ======================= */
/* Loading Overlay         */
/* ======================= */

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 1s ease;
}

#loadingOverlay.dark {
  background: #333;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #667eea;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

#loadingOverlay.dark .spinner {
  border: 8px solid #555;
  border-top: 8px solid #667eea;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ======================= */
/* Página 404 / utilitários */
/* ======================= */

.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  margin-top: 100px;
  min-height: calc(100vh - 100px);
}

.erro-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.erro-texto p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.erro-botao,
.botao-voltar {
  margin-top: 20px;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1em;
  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer;
}

.erro-botao:hover,
.botao-voltar:hover {
  background: linear-gradient(145deg, #556cd6, #5a3d7a);
}

body.dark-mode .erro-texto {
  color: #eee;
}

.pagina-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 85px;
  padding: 20px;
}

.imagens-404 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.imagens-404 img {
  max-width: 400px;
  height: auto;
}

.texto-404 {
  margin-top: -30px;
  font-family: 'Poppins', sans-serif;
}

.texto-404 .linha1 {
  font-size: 1.4em;
}

.texto-404 .linha2 {
  font-size: 1em;
}

/* ======================= */
/* Responsividade          */
/* ======================= */

@media (max-width: 768px) {
  #nicknameDisplay {
    display: inline-flex;
    max-width: 118px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  nav .logo-nav {
    margin-left: 10px;
  }

.dashboard-home {
  margin-top: 130px;
  padding: 20px 14px 100px;
}

  .dashboard-hero {
    margin-bottom: 22px;
  }

  .dashboard-albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: center;
  }

  .dashboard-album-card {
    aspect-ratio: 2 / 3;
    min-height: 0;
    border-radius: 16px;
  }

  .dashboard-album-cover {
    object-fit: cover;
  }

  .dashboard-album-info {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .dashboard-album-info h2 {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
    line-height: 1.08;
  }

  .show-more-albums-btn {
    margin-top: 24px;
    width: min(100%, 280px);
  
}

  .imagens-404 img {
    max-width: 80%;
  }

  .texto-404 .linha1 {
    font-size: 1.2em;
  }

  .texto-404 .linha2 {
    font-size: 0.95em;
  }

  .botao-voltar {
    font-size: 0.95em;
    padding: 10px 16px;
  }
}

@media (max-width: 560px) {
  nav {
    align-items: center;
    gap: 6px;
  }

  nav .logo-nav a {
    width: 48px;
    height: 46px;
    border-radius: 16px;
  }

  nav .logo-nav a img {
    max-height: 42px;
  }

  nav .dashboard-controls {
    gap: 5px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  #nicknameDisplay {
    display: inline-flex;
    flex: 1 1 auto;
    max-width: 108px;
    min-width: 0;
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .store-btn span {
    display: none;
  }

  .store-btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .store-btn img {
    width: 22px;
    height: 22px;
  }

  #notificationButton {
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 auto;
  }

  .profile-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    flex: 0 0 auto;
  }

  .profile-btn img:not(.premium-crown) {
    width: 36px;
    height: 36px;
  }
}

/* ======================= */
/* Pop-up de notificações  */
/* ======================= */

#notificationPopup.notification-popup {
  position: fixed !important;
  top: 92px !important;
  right: 388px !important;
  left: auto !important;

  width: min(320px, calc(100vw - 28px));
  max-height: 390px;
  overflow-y: auto;

  display: none;
  padding: 14px;

  border-radius: 20px;

  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 255, 0.96));

  color: #222;
  z-index: 1800;

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.20),
    inset 0 0 0 1px rgba(102, 126, 234, 0.14);

  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#notificationPopup.notification-popup.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#notificationPopup.notification-popup::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 54px;

  width: 18px;
  height: 18px;

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 255, 0.96));

  transform: rotate(45deg);
  box-shadow:
    inset 1px 1px 0 rgba(102, 126, 234, 0.12);
}

/* Lista das notificações */

#notificationList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#notificationList li {
  position: relative;

  padding: 12px 14px;
  border-radius: 14px;

  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;

  color: #252538;
  cursor: pointer;

  background: transparent;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#notificationList li:not(.empty-notification):hover {
  background: rgba(102, 126, 234, 0.11);
  color: #4f55c9;
  transform: translateX(3px);
  box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.10);
}

.empty-notification {
  text-align: center;
  cursor: default !important;
  color: rgba(0, 0, 0, 0.62) !important;
  padding: 18px 14px !important;
  background: rgba(102, 126, 234, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.08);
}

.empty-notification::before {
  content: "notifications";
  display: block;
  margin: 0 auto 8px;

  font-family: "Material Symbols Outlined";
  font-size: 34px;
  line-height: 1;

  color: #667eea;
}

/* Dark mode */

body.dark-mode #notificationPopup.notification-popup {
  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(44, 44, 52, 0.98), rgba(32, 32, 40, 0.96));

  color: #fff;

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode #notificationPopup.notification-popup::before {
  background:
    linear-gradient(145deg, rgba(44, 44, 52, 0.98), rgba(32, 32, 40, 0.96));

  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode #notificationList li {
  color: rgba(255, 255, 255, 0.88);
}

body.dark-mode #notificationList li:not(.empty-notification):hover {
  background: rgba(102, 126, 234, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.dark-mode .empty-notification {
  color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Responsivo */

@media (max-width: 768px) {
  #notificationPopup.notification-popup {
    top: 86px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto;
  }

  #notificationPopup.notification-popup::before {
    right: 126px;
  }
}

@media (max-width: 480px) {
  #notificationPopup.notification-popup {
    top: 82px !important;
    left: 10px !important;
    right: 10px !important;
  }

  #notificationPopup.notification-popup::before {
    right: 88px;
  }
}

/* ======================= */
/* Sino de notificação     */
/* ======================= */

nav .dashboard-controls #notificationButton {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent !important;
  color: #fff;

  overflow: visible !important;
  isolation: isolate;
}

/* Remove totalmente o brilho genérico dos botões no sino */
nav .dashboard-controls #notificationButton::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0 !important;
  width: auto !important;

  border-radius: 50%;
  background: linear-gradient(145deg, #667eea, #764ba2);

  opacity: 1 !important;
  transform: none !important;
  animation: none !important;

  z-index: -1;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.20),
    0 8px 18px rgba(0, 0, 0, 0.12);

  transition:
    filter 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

/* Brilho preso dentro do círculo: não move o pseudo-elemento, só o background */
nav .dashboard-controls #notificationButton::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 50%;
  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 36%,
      rgba(255, 255, 255, 0.48) 48%,
      transparent 60%,
      transparent 100%
    );

  background-size: 260% 100%;
  background-position: -180% 0;

  opacity: 0;
  clip-path: circle(50% at 50% 50%);
}

nav .dashboard-controls #notificationButton:hover {
  transform: translateY(-2px);
  filter: none;
  background: transparent !important;
}

nav .dashboard-controls #notificationButton:hover::before {
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 12px 26px rgba(102, 126, 234, 0.28);
}

nav .dashboard-controls #notificationButton:hover::after {
  opacity: 1;
  animation: notificationCircleShine 0.78s ease forwards;
}

@keyframes notificationCircleShine {
  from {
    background-position: -180% 0;
  }

  to {
    background-position: 180% 0;
  }
}

nav .dashboard-controls #notificationButton:active {
  transform: scale(0.96);
}

#notificationButton .material-symbols-outlined {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 700;
}

#notificationButton:hover .material-symbols-outlined {
  animation: navBellWiggle 0.55s ease;
}

/* Bolinha fora do círculo, sem ser cortada */
#notifDot,
.notification-indicator {
  position: absolute;
  top: -4px;
  right: -4px;

  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;

  display: none;
  border-radius: 50%;

  background: #ff2f55;
  border: 2px solid rgba(255, 255, 255, 0.96);

  box-shadow:
    0 0 0 2px rgba(255, 47, 85, 0.18),
    0 4px 10px rgba(255, 47, 85, 0.45);

  z-index: 5;
  pointer-events: none;
}

#notifDot[style*="block"],
.notification-indicator[style*="block"] {
  display: block !important;
}

@media (max-width: 560px) {
  nav .dashboard-controls #notificationButton {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* ===================================================== */
/* POP-UP DE TROCA DE FIGURINHAS - DESIGN CORRIGIDO      */
/* ===================================================== */

#exchangePopup.popup.exchange-popup {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: min(92vw, 440px);
  max-height: min(88dvh, 650px);
  padding: 26px 24px 28px;

  display: none;
  flex-direction: column;
  align-items: center;

  border-radius: 28px;
  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(28, 28, 40, 0.94);

  color: #fff;

  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transform: translate(-50%, -50%) scale(0.98);
  z-index: 2600;

  font-family: 'Poppins', sans-serif;
  text-align: center;
}

#exchangePopup.popup.exchange-popup[style*="display: block"],
#exchangePopup.popup.exchange-popup[style*="display:block"] {
  display: flex !important;
  animation: exchangePopupIn 0.24s cubic-bezier(.16, .9, .24, 1) both;
}

@keyframes exchangePopupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.94);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

#exchangePopup.popup.exchange-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.16),
      transparent 32%,
      transparent 68%,
      rgba(102, 126, 234, 0.12)
    );

  pointer-events: none;
}

/* Remove qualquer ícone central antigo aplicado direto no popup */
#exchangePopup.popup.exchange-popup::after {
  content: none !important;
  display: none !important;
}

/* Título */
#exchangePopup.popup.exchange-popup .exchange-title {
  width: 100%;
  max-width: 390px;

  margin: 0 auto 22px;

  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 4.8vw, 1.72rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.5px;

  color: #fff;
  text-align: center;
}

/* Área das duas figurinhas - 3 colunas para manter tudo alinhado */
#exchangePopup.popup.exchange-popup .stickers {
  position: relative;

  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: start;
  justify-items: center;
  gap: 10px;

  width: 100%;
  max-width: 430px;
  margin: 0 auto 26px;
}

/* Remove o ícone antigo aplicado na área das figurinhas */
#exchangePopup.popup.exchange-popup .stickers::before {
  content: none !important;
  display: none !important;
}

/* Ícone central em coluna própria */
#exchangePopup.popup.exchange-popup .stickers::after {
  content: "sync_alt";
  grid-column: 2;
  grid-row: 1;

  width: 46px;
  height: 46px;
  margin-top: 78px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-family: "Material Symbols Outlined";
  font-size: 28px;
  line-height: 1;

  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;

  box-shadow:
    0 12px 26px rgba(102, 126, 234, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);

  z-index: 2;
  pointer-events: none;
}

#exchangePopup.popup.exchange-popup .sticker-container:first-child {
  grid-column: 1;
}

#exchangePopup.popup.exchange-popup .sticker-container:nth-child(2) {
  grid-column: 3;
}

#exchangePopup.popup.exchange-popup .sticker-container {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#exchangePopup.popup.exchange-popup .sticker-container img {
  width: 122px;
  aspect-ratio: 160 / 250;
  height: auto;

  display: block;
  object-fit: cover;

  border-radius: 15px;
  background: #111;

  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.14);
}

#exchangePopup.popup.exchange-popup .sticker-container p {
  min-height: 38px;
  max-width: 132px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 6px 10px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.09);

  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  line-height: 1.1;
  font-weight: 900;

  color: rgba(255, 255, 255, 0.78);
  text-align: center;

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Botões */
#exchangePopup.popup.exchange-popup .buttons {
  width: 100%;
  max-width: 380px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;

  margin: 0 auto;
}

#exchangePopup.popup.exchange-popup .buttons button,
#exchangePopup.popup.exchange-popup .no-btn,
#exchangePopup.popup.exchange-popup .yes-btn {
  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;
  cursor: pointer;

  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

#exchangePopup.popup.exchange-popup .no-btn {
  background: linear-gradient(145deg, #ff3b3b, #d71920);
  box-shadow: 0 12px 28px rgba(255, 59, 59, 0.34);
}

#exchangePopup.popup.exchange-popup .yes-btn {
  background: linear-gradient(145deg, #2dbd52, #168a35);
  box-shadow: 0 12px 28px rgba(45, 189, 82, 0.34);
}

#exchangePopup.popup.exchange-popup .buttons button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

#exchangePopup.popup.exchange-popup .buttons button:active {
  transform: scale(0.97);
}

#exchangePopup.popup.exchange-popup #exchangeMessage {
  margin-top: 14px !important;

  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;

  color: rgba(255, 255, 255, 0.82);
}

/* Dark mode */
body.dark-mode #exchangePopup.popup.exchange-popup {
  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.20), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.045)),
    rgba(22, 22, 30, 0.96);

  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.64),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* Mobile */
@media (max-width: 560px) {
  #exchangePopup.popup.exchange-popup {
    width: min(92vw, 400px);
    padding: 24px 18px 26px;
    border-radius: 26px;
  }

  #exchangePopup.popup.exchange-popup .exchange-title {
    margin-bottom: 20px;
    font-size: clamp(1.18rem, 6vw, 1.55rem);
  }

  #exchangePopup.popup.exchange-popup .stickers {
    grid-template-columns: 1fr 44px 1fr;
    gap: 7px;
    max-width: 350px;
    margin-bottom: 26px;
  }

  #exchangePopup.popup.exchange-popup .stickers::after {
    width: 40px;
    height: 40px;
    margin-top: 70px;
    font-size: 24px;
  }

  #exchangePopup.popup.exchange-popup .sticker-container img {
    width: min(106px, 30vw);
    border-radius: 13px;
  }

  #exchangePopup.popup.exchange-popup .sticker-container p {
    max-width: 112px;
    min-height: 34px;
    padding: 5px 8px;
    font-size: 0.66rem;
  }

  #exchangePopup.popup.exchange-popup .buttons {
    max-width: 340px;
    gap: 14px;
  }

  #exchangePopup.popup.exchange-popup .buttons button,
  #exchangePopup.popup.exchange-popup .no-btn,
  #exchangePopup.popup.exchange-popup .yes-btn {
    min-height: 46px;
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  #exchangePopup.popup.exchange-popup {
    padding: 22px 14px 24px;
  }

  #exchangePopup.popup.exchange-popup .stickers {
    grid-template-columns: 1fr 38px 1fr;
    gap: 5px;
  }

  #exchangePopup.popup.exchange-popup .stickers::after {
    width: 36px;
    height: 36px;
    margin-top: 64px;
    font-size: 22px;
  }

  #exchangePopup.popup.exchange-popup .sticker-container img {
    width: min(92px, 29vw);
  }

  #exchangePopup.popup.exchange-popup .buttons {
    gap: 10px;
  }
}

/* ===================================================== */
/* Botão Loja: brilho contido + bolinha do presente      */
/* ===================================================== */

nav .dashboard-controls #storeButton.store-btn {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
  background: transparent !important;
}

/* Remove o brilho genérico e transforma o ::before no fundo do botão */
nav .dashboard-controls #storeButton.store-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0 !important;
  width: auto !important;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);

  opacity: 1 !important;
  transform: none !important;
  animation: none !important;

  z-index: -1;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.10);

  transition:
    filter 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

/* Brilho preso dentro do formato do botão Loja */
nav .dashboard-controls #storeButton.store-btn::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 999px;
  z-index: 0;
  pointer-events: none;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 36%,
      rgba(255, 255, 255, 0.48) 48%,
      transparent 60%,
      transparent 100%
    );

  background-size: 260% 100%;
  background-position: -180% 0;

  opacity: 0;
  clip-path: inset(0 round 999px);
}

nav .dashboard-controls #storeButton.store-btn:hover {
  transform: translateY(-2px);
  filter: none;
  background: transparent !important;
}

nav .dashboard-controls #storeButton.store-btn:hover::before {
  background: rgba(255, 255, 255, 0.22);
  filter: brightness(1.08);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 12px 26px rgba(0, 0, 0, 0.16);
}

nav .dashboard-controls #storeButton.store-btn:hover::after {
  opacity: 1;
  animation: storeButtonContainedShine 0.78s ease forwards;
}

@keyframes storeButtonContainedShine {
  from {
    background-position: -180% 0;
  }

  to {
    background-position: 180% 0;
  }
}

/* Garante que imagem, texto e bolinha fiquem acima do brilho */
nav .dashboard-controls #storeButton.store-btn img,
nav .dashboard-controls #storeButton.store-btn span:not(#storeDot) {
  position: relative;
  z-index: 2;
}

/* Bolinha vermelha da Loja */
#storeDot,
.store-notification-indicator {
  position: absolute;
  top: -4px;
  right: -4px;

  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;

  display: none;
  border-radius: 50%;

  background: #ff2f55;
  border: 2px solid rgba(255, 255, 255, 0.96);

  box-shadow:
    0 0 0 2px rgba(255, 47, 85, 0.18),
    0 4px 10px rgba(255, 47, 85, 0.45);

  z-index: 5;
  pointer-events: none;
}

#storeDot[style*="block"],
.store-notification-indicator[style*="block"] {
  display: block !important;
}

/* Dark mode */
body.dark-mode nav .dashboard-controls #storeButton.store-btn::before {
  background: rgba(255, 255, 255, 0.09);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

body.dark-mode nav .dashboard-controls #storeButton.store-btn:hover::before {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile: quando a Loja vira circular, o brilho também vira circular */
@media (max-width: 560px) {
  nav .dashboard-controls #storeButton.store-btn::before,
  nav .dashboard-controls #storeButton.store-btn::after {
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
  }
}

/* ===================================================== */
/* Perfil do menu — brilho circular igual ao sino         */
/* ===================================================== */

nav .dashboard-controls #profileButton {
  position: relative !important;

  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 !important;

  border: 0;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent !important;
  color: #fff;

  overflow: visible !important;
  isolation: isolate;
}

/* Remove o brilho genérico dos botões e cria o fundo circular */
nav .dashboard-controls #profileButton::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0 !important;
  width: auto !important;

  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10));

  opacity: 1 !important;
  transform: none !important;
  animation: none !important;

  z-index: -1;

  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.24),
    0 8px 20px rgba(0, 0, 0, 0.16);

  transition:
    filter 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

/* Brilho preso dentro da circunferência */
nav .dashboard-controls #profileButton::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 50%;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 36%,
      rgba(255, 255, 255, 0.48) 48%,
      transparent 60%,
      transparent 100%
    );

  background-size: 260% 100%;
  background-position: -180% 0;

  opacity: 0;
  clip-path: circle(50% at 50% 50%);
}

nav .dashboard-controls #profileButton:hover {
  transform: translateY(-2px);
  filter: none;
  background: transparent !important;
}

nav .dashboard-controls #profileButton:hover::before {
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.34),
    0 12px 26px rgba(102, 126, 234, 0.28);
}

nav .dashboard-controls #profileButton:hover::after {
  opacity: 1;
  animation: profileCircleShine 0.78s ease forwards;
}

@keyframes profileCircleShine {
  from {
    background-position: -180% 0;
  }

  to {
    background-position: 180% 0;
  }
}

nav .dashboard-controls #profileButton:active {
  transform: scale(0.96);
}

/* Imagem do perfil acima do brilho */
nav .dashboard-controls #profileButton img:not(.premium-crown) {
  position: relative;
  z-index: 2;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.36);
}

/* Coroa premium acima de tudo */
nav .dashboard-controls #profileButton .premium-crown {
  position: absolute !important;

  top: -13px !important;
  left: -12px !important;

  width: 28px !important;
  height: auto !important;

  display: none;
  z-index: 6 !important;

  transform: rotate(-35deg) !important;
  pointer-events: none;

  filter: none !important;
  box-shadow: none !important;
  animation: none !important;
}

nav .dashboard-controls #profileButton .premium-crown.visible {
  display: block !important;
}

/* Estado ativo do menu */
nav .dashboard-controls #profileButton.active {
  transform: scale(1.15);
}

nav .dashboard-controls #profileButton.active::before {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16));
}

/* Responsivo */
@media (max-width: 560px) {
  nav .dashboard-controls #profileButton {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  nav .dashboard-controls #profileButton img:not(.premium-crown) {
    width: 36px;
    height: 36px;
  }

  nav .dashboard-controls #profileButton .premium-crown {
    top: -11px !important;
    left: -10px !important;
    width: 25px !important;
  }
}

@media (max-width: 360px) {
  nav .dashboard-controls #profileButton {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  nav .dashboard-controls #profileButton img:not(.premium-crown) {
    width: 34px;
    height: 34px;
  }

  nav .dashboard-controls #profileButton .premium-crown {
    top: -10px !important;
    left: -9px !important;
    width: 23px !important;
  }
}

/* ===================================================== */
/* POP-UP: TROCA REALIZADA COM SUCESSO                   */
/* ===================================================== */

#completedExchangePopup.popup.exchange-popup {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: min(92vw, 460px);
  max-height: min(88dvh, 680px);
  padding: 28px 24px 30px;

  display: none;
  flex-direction: column;
  align-items: center;

  border-radius: 30px;
  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(45, 189, 82, 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 36px rgba(45, 189, 82, 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: 2700;

  font-family: 'Poppins', sans-serif;
  text-align: center;
}

#completedExchangePopup.popup.exchange-popup[style*="display: block"],
#completedExchangePopup.popup.exchange-popup[style*="display:block"] {
  display: flex !important;
  animation: completedExchangePopupIn 0.26s cubic-bezier(.16, .9, .24, 1) both;
}

@keyframes completedExchangePopupIn {
  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);
  }
}

#completedExchangePopup.popup.exchange-popup::before {
  content: "check_circle";
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;

  font-family: "Material Symbols Outlined";
  font-size: 38px;
  line-height: 1;

  background: linear-gradient(145deg, #2dbd52, #168a35);
  color: #fff;

  box-shadow:
    0 16px 34px rgba(45, 189, 82, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

#completedExchangePopup.popup.exchange-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(45, 189, 82, 0.12)
    );

  pointer-events: none;
}

#completedExchangePopup .exchange-title {
  width: 100%;
  max-width: 390px;

  margin: 0 auto 10px;

  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;
}

#completedExchangeUser {
  max-width: 360px;

  margin: 0 auto 22px !important;
  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.09);

  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 800;

  color: rgba(255, 255, 255, 0.78);

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

#completedExchangePopup .stickers {
  position: relative;

  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: start;
  justify-items: center;
  gap: 10px;

  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

#completedExchangePopup .stickers::before {
  content: none !important;
  display: none !important;
}

#completedExchangePopup .stickers::after {
  content: "sync_alt";
  grid-column: 2;
  grid-row: 1;

  width: 48px;
  height: 48px;
  margin-top: 78px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-family: "Material Symbols Outlined";
  font-size: 29px;
  line-height: 1;

  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;

  box-shadow:
    0 13px 28px rgba(102, 126, 234, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);

  z-index: 2;
  pointer-events: none;
}

#completedExchangePopup .sticker-container:first-child {
  grid-column: 1;
}

#completedExchangePopup .sticker-container:nth-child(2) {
  grid-column: 3;
}

#completedExchangePopup .sticker-container {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#completedExchangePopup .sticker-container img {
  width: 124px;
  aspect-ratio: 160 / 250;
  height: auto;

  display: block;
  object-fit: cover;

  border-radius: 16px;
  background: #111;

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    0 0 0 2px rgba(255, 255, 255, 0.14);
}

#completedExchangePopup .sticker-container p {
  min-height: 40px;
  max-width: 136px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 7px 10px;

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.09);

  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  line-height: 1.12;
  font-weight: 900;

  color: rgba(255, 255, 255, 0.8);
  text-align: center;

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#completedExchangePopup #completedReceivedCaption {
  background: rgba(45, 189, 82, 0.16);
  color: #b8ffca;
}

#completedExchangePopup #completedGivenCaption {
  background: rgba(255, 255, 255, 0.08);
}

/* Dark mode */
body.dark-mode #completedExchangePopup.popup.exchange-popup {
  background:
    radial-gradient(circle at top, rgba(45, 189, 82, 0.20), 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 36px rgba(45, 189, 82, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* Mobile */
@media (max-width: 560px) {
  #completedExchangePopup.popup.exchange-popup {
    width: min(92vw, 400px);
    padding: 25px 18px 27px;
    border-radius: 26px;
  }

  #completedExchangePopup.popup.exchange-popup::before {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 34px;
    margin-bottom: 14px;
  }

  #completedExchangePopup .exchange-title {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  #completedExchangeUser {
    margin-bottom: 20px !important;
    font-size: 0.78rem;
  }

  #completedExchangePopup .stickers {
    grid-template-columns: 1fr 44px 1fr;
    gap: 7px;
    max-width: 350px;
  }

  #completedExchangePopup .stickers::after {
    width: 40px;
    height: 40px;
    margin-top: 70px;
    font-size: 24px;
  }

  #completedExchangePopup .sticker-container img {
    width: min(106px, 30vw);
    border-radius: 13px;
  }

  #completedExchangePopup .sticker-container p {
    max-width: 112px;
    min-height: 35px;
    padding: 5px 8px;
    font-size: 0.64rem;
  }
}

@media (max-width: 360px) {
  #completedExchangePopup.popup.exchange-popup {
    padding: 22px 14px 24px;
  }

  #completedExchangePopup .stickers {
    grid-template-columns: 1fr 38px 1fr;
    gap: 5px;
  }

  #completedExchangePopup .stickers::after {
    width: 36px;
    height: 36px;
    margin-top: 64px;
    font-size: 22px;
  }

  #completedExchangePopup .sticker-container img {
    width: min(92px, 29vw);
  }
}

/* ===================================================== */
/* POP-UP DE PEDIDO DE AMIZADE                           */
/* ===================================================== */

#friendPopup.popup.friend-popup {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: min(92vw, 430px);
  max-height: min(88dvh, 620px);
  padding: 28px 24px 30px;

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 30px;
  overflow: hidden;

  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.28), transparent 38%),
    radial-gradient(circle at bottom right, rgba(118, 75, 162, 0.20), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06)),
    rgba(28, 28, 40, 0.96);

  color: #fff;

  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.56),
    0 0 36px rgba(102, 126, 234, 0.14),
    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: 2700;

  font-family: 'Poppins', sans-serif;
  text-align: center;
}

#friendPopup.popup.friend-popup[style*="display: block"],
#friendPopup.popup.friend-popup[style*="display:block"] {
  display: flex !important;
  animation: friendPopupIn 0.26s cubic-bezier(.16, .9, .24, 1) both;
}

@keyframes friendPopupIn {
  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);
  }
}

#friendPopup.popup.friend-popup::before {
  content: "group_add";
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;

  font-family: "Material Symbols Outlined";
  font-size: 38px;
  line-height: 1;

  background: linear-gradient(145deg, #667eea, #764ba2);
  color: #fff;

  box-shadow:
    0 16px 34px rgba(102, 126, 234, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

#friendPopup.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(102, 126, 234, 0.12)
    );

  pointer-events: none;
}

#friendPopup .friend-avatar-popup {
  width: 112px;
  height: 112px;
  margin: 0 auto 16px;

  display: block;
  object-fit: cover;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(255, 255, 255, 0.15),
    0 0 0 8px rgba(102, 126, 234, 0.16);
}

#friendMsg {
  width: 100%;
  max-width: 360px;

  margin: 0 auto 24px;

  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.08rem, 4vw, 1.38rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.35px;

  color: #fff;
  text-align: center;
}

#friendPopup .buttons {
  width: 100%;
  max-width: 360px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  margin: 0 auto;
}

#friendPopup .buttons button,
#friendPopup .no-btn,
#friendPopup .yes-btn {
  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;
  cursor: pointer;

  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

#friendPopup .no-btn {
  background: linear-gradient(145deg, #ff3b3b, #d71920);
  box-shadow: 0 12px 28px rgba(255, 59, 59, 0.34);
}

#friendPopup .yes-btn {
  background: linear-gradient(145deg, #2dbd52, #168a35);
  box-shadow: 0 12px 28px rgba(45, 189, 82, 0.34);
}

#friendPopup .buttons button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

#friendPopup .buttons button:active {
  transform: scale(0.97);
}

#friendPopup .buttons button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

body.dark-mode #friendPopup.popup.friend-popup {
  background:
    radial-gradient(circle at top, rgba(102, 126, 234, 0.22), transparent 38%),
    radial-gradient(circle at bottom right, rgba(118, 75, 162, 0.18), transparent 44%),
    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 36px rgba(102, 126, 234, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

@media (max-width: 560px) {
  #friendPopup.popup.friend-popup {
    width: min(92vw, 390px);
    padding: 25px 18px 27px;
    border-radius: 26px;
  }

  #friendPopup.popup.friend-popup::before {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 34px;
    margin-bottom: 14px;
  }

  #friendPopup .friend-avatar-popup {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
  }

  #friendMsg {
    margin-bottom: 22px;
    font-size: clamp(1rem, 5.5vw, 1.22rem);
  }

  #friendPopup .buttons {
    max-width: 330px;
    gap: 12px;
  }

  #friendPopup .buttons button,
  #friendPopup .no-btn,
  #friendPopup .yes-btn {
    min-height: 46px;
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  #friendPopup.popup.friend-popup {
    padding: 22px 14px 24px;
  }

  #friendPopup .friend-avatar-popup {
    width: 88px;
    height: 88px;
  }

  #friendPopup .buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ===================================================== */
/* POP-UP: TROCA RECUSADA                                */
/* ===================================================== */

#completedExchangePopup.popup.exchange-popup.exchange-declined {
  background:
    radial-gradient(circle at top, rgba(255, 145, 35, 0.28), transparent 38%),
    radial-gradient(circle at bottom right, rgba(102, 126, 234, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(28, 28, 40, 0.96);

  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.56),
    0 0 36px rgba(255, 145, 35, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

#completedExchangePopup.popup.exchange-popup.exchange-declined::before {
  content: "cancel";
  background: linear-gradient(145deg, #ff9f2f, #e36b12);
  color: #fff;

  box-shadow:
    0 16px 34px rgba(255, 145, 35, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

#completedExchangePopup.popup.exchange-popup.exchange-declined::after {
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.16),
      transparent 30%,
      transparent 70%,
      rgba(255, 145, 35, 0.14)
    );
}

#completedExchangePopup.exchange-declined #completedReceivedCaption {
  background: rgba(255, 145, 35, 0.20);
  color: #ffd7a1;

  box-shadow:
    inset 0 0 0 1px rgba(255, 171, 76, 0.18),
    0 8px 18px rgba(255, 145, 35, 0.10);
}

body.dark-mode #completedExchangePopup.popup.exchange-popup.exchange-declined {
  background:
    radial-gradient(circle at top, rgba(255, 145, 35, 0.24), transparent 38%),
    radial-gradient(circle at bottom right, rgba(102, 126, 234, 0.14), 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 36px rgba(255, 145, 35, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}