:root {
  --bg: #0f0f16;
  --card: rgba(255, 255, 255, 0.04);
  --accent: #5c64ff;
  --muted: #bfc7d6;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.99)),
    url('../../assets/img/meanmice/background.png');

  background-repeat: no-repeat, no-repeat;
  background-position: center, center;

  background-size: 110% 110%, auto;

  color: #fff;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.back-bubble {
  position: fixed;
  top: 18px;
  left: 18px;

  padding: 8px 12px;
  background: var(--card);
  border-radius: 999px;

  font-family: monospace;
  font-size: 13px;
  color: #fff;
  text-decoration: none;

  backdrop-filter: blur(6px);
  /* border: 1px solid rgba(255, 255, 255, 0.08); */

  z-index: 9999;
  transition: 0.2s;
}

.back-bubble:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

#app {
  max-width: 720px;
  margin: 140px auto;
  text-align: center;
  padding: 28px;
}

h1 {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 600;
}

#controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

button {
  background: var(--accent);
  border: 0;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

#status {
  color: var(--muted);
  margin-top: 12px;
  min-height: 24px;
}

.wallet-hidden {
  display: none;
}
#walletPanel {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 9999;
}
.bubble {
  padding: 8px 12px;
  background: var(--card);
  border-radius: 999px;
  font-family: monospace;
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(6px);
}
.disconnect {
  background: #ff5c5c;
  border: none;
  cursor: pointer;
}
.disconnect:hover {
  filter: brightness(0.95);
}

/* GALLERY */
.gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* NFT CARD */
.gallery-item {
  width: 190px;
  padding: 12px;
  border-radius: 16px;

  background: linear-gradient(
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);

  position: relative;
  overflow: hidden;
  cursor: pointer;

  transition: all 0.25s ease;
  box-shadow: 0px 0px 0px rgba(138, 92, 255, 0);
}

/* Glow on hover */
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 22px rgba(138, 92, 255, 0.25);
  border-color: rgba(92, 108, 255, 0.45);
}

/* NFT IMAGE */
.gallery-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* TITLE */
.gallery-item-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #e1e5ef;
  letter-spacing: 0.3px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
}

.gallery-item-title {
  font-size: 14px;
  margin-top: 8px;
  color: #bfc7d6;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background: linear-gradient(rgba(26, 26, 37, 0.93), rgba(20, 20, 30, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px;
  width: 95%;
  max-width: 500px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 16px rgba(138, 92, 255, 0.18);
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-body {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.modal-left {
  width: 100%;
  text-align: center;
}

.modal-left img {
  width: 320px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(138, 92, 255, 0.35);
}

.modal-right {
  flex: 1;
  min-width: 240px;
}

.modal-right h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.modal-description {
  font-size: 15px;
  line-height: 1.5;
  color: #c9cfdd;
  margin-bottom: 18px;
}

.modal-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attr-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: #e3e7f3;
  text-transform: capitalize;
  box-shadow: inset 0 0 12px rgba(138, 92, 255, 0.12);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
  color: #b598ff;
}

.scan-link {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #d6d4ff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.scan-link:hover {
  background: rgba(255, 255, 255, 0.12);
}
