.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: black;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00e5ff;
}

input:checked + .slider:before {
  transform: translateX(16px);
}
.ankh-container {
  position: relative;
  display: inline-block;
}

.ankh-menu {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00e5ff;
  border-radius: 6px;
  box-shadow: 0 0 6px #00e5ff;
  color: #00e5ff;
  font-size: 0.8rem;
  padding: 6px 10px;
  z-index: 10001;
  white-space: nowrap;
  pointer-events: auto;
  display: block;
}

.ankh-menu .menu-item {
  padding: 4px 0;
  cursor: pointer;
}

.ankh-menu .menu-item:hover {
  color: #ffcc00;
}
.ankh-wrapper {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.sparkle-top {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.sparkle-bottom {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.sparkle-left {
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
}

.sparkle-right {
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes sparkle-rise {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }
}


.ankh-coin::before,
.ankh-coin::after {
  content: '✨';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  font-size: 0.8rem;
  color: #ffccff;
  animation: none;
}

.ankh-coin::after {
  top: -10px;
}

.ankh-coin::before {
  bottom: -10px;
}

.ankh-coin:hover::before,
.ankh-coin:hover::after {
  animation: sparkle-rise 0.8s ease-out forwards;
}

.ankh-coin {
  display: inline-block;
  font-size: 2rem;
  color: #00e5ff;
  border: 1px solid #00e5ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  padding: 0;
  margin: 0 8px;
  box-shadow: 0 0 6px #00e5ff, 0 0 12px #00ffff, 0 0 24px #7300ff;
  transition: transform 0.6s ease, box-shadow 0.6s ease, color 0.6s ease;
  background: radial-gradient(circle, #000000 20%, #001f33 100%);
  text-shadow: 0 0 3px #00ffff;
}

.ankh-coin:hover {
  transform: rotateY(360deg) scale(1.1);
  color: #ff00ff;
  border-color: #ffcc00;
  box-shadow: 0 0 12px #ffcc00, 0 0 24px #ff00ff, 0 0 36px #00e5ff;
  background: radial-gradient(circle, #2a0033 20%, #000000 100%);
}
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100px;
  margin: 5px;
  background: radial-gradient(circle, #ffffff00, #000000);
  box-shadow: 0 0 3px #00e5ff;
  overflow: visible;
}

#header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

#header-center {
  text-align: center;
  flex-grow: 1;
}

#app-title {
  font-family: 'Bungee', sans-serif, monospace;
  font-size: 3.5rem;
  margin: 0;
}

#app-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100px;
}

.title-symbol {
  font-family: 'Courier New', monospace;
  margin: 10px;
  color: #c9faff;
  text-shadow: 0 0 5px #00e5ff, 0 0 12px #7300ff, 0 0 30px #f7fa3e9b;
}

.title-main {
  font-family: 'Bungee', sans-serif;
  color: #9000ff9f;
  text-shadow: 0 0 3px #00ffff, 0 0 10px #f7fa3e9b;
}

#app-subtitle {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 0.8rem;
  color: #d0aff9;
  text-shadow: 0 0 8px #00e5ff, 0 0 15px #00ffff;
  margin: 0;
}

#walletHeaderContainer {
    position: absolute;
    top: 10px;
    right: 35px;
}

#wallet-ticker-circle .ticker-letter {
  font-size: 0.4rem;
}

#walletIconWrapper {
  position: relative;
  text-align: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.wallet-hover-display {
  display: none;
  margin-top: 6px;
  font-size: 0.7rem;
  color: #00e5ff;
  text-shadow: 0 0 4px #00e5ff;
}

#metamaskIcon {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0;
  opacity: 0.9;
  animation: shimmer-spin-y 8s linear infinite;
  filter: drop-shadow(0 0 10px #00e5ff);
  cursor: pointer;
}

#wallet-display {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.wallet-display-label {
  font-size: 0.8rem;
  color: #00e5ff;
  text-shadow: 0 0 4px #00e5ff, 0 0 8px #7300ff;
  font-weight: bold;
}

/* Ticker circle styles */
.ticker-wrapper.wallet-ticker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 121px;
  height: 121px;
  transform: translate(-33%, -58%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.ticker-circle-metamask {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center center;
}

@keyframes rotate-circle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ticker-circle-metamask.animated {
  animation: rotate-circle 15s linear infinite;
}

.ticker-letter {
  position: absolute;
  font-size: 0.5rem;
  color: #00e5ff;
  text-shadow: 0 0 4px #d6e101d7;
  transform: translate(-50%, -50%);
}

.ticker-letter-logo {
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 4px #00e5ff);
}

#wallet-connect {
  position: absolute;
  top: -5px;
  right: -15px;
  background: transparent;
  border: 2px solid; /* base style, color set by state */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 0 10px; /* color set by state */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#wallet-connect img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
}

#wallet-connect:hover {
  box-shadow: 0 0 15px #ff9800;
  border-color: #ff9800;
}

/* Disconnected state: red neon border */
#wallet-connect.disconnected {
  border-color: #ff5722;
  box-shadow: 0 0 10px #ff5722;
}
/* Connected state: green neon border */
#wallet-connect.connected {
  border-color: #00e676;
  box-shadow: 0 0 10px #00e676;
}
/* Connected hover: blue-green neon border */
#wallet-connect.connected:hover {
  border-color: #00ffcc;
  box-shadow: 0 0 15px #00ffcc;
}


.hover-popup {
  position: absolute;
  top: 70%;
  left: calc(50% + 50px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #00e5ff;
  padding: 10px;
  border: 1px solid #00e5ff;
  border-radius: 6px;
  font-size: 0.75rem;
  z-index: 10000;
  white-space: nowrap;
  max-width: 300px;
  box-shadow: 0 0 8px #00e5ff;
}

.hover-popup div a {
  color: #00ffff;
  text-decoration: none;
}

.hover-popup div a:hover {
  text-decoration: underline;
}

.snapshot-import-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 0;
}

.snapshot-import-wrapper input {
  background: #000;
  color: #00e5ff;
  border: 1px solid #00e5ff;
  padding: 4px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.snapshot-import-wrapper button {
  background: #00e5ff;
  color: #000;
  border: none;
  padding: 5px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.snapshot-import-wrapper button:hover {
  background: #00ffff;
  color: #000;
}
/* Sparkle base class: disabled by default, animation only on hover */
.sparkle {
  position: absolute;
  font-size: 1.1rem;
  color: #ffccff;
  pointer-events: none;
  opacity: 0;
  animation: none;
  z-index: 1;
}

.ankh-wrapper:hover .sparkle {
  animation: sparkle-rise 0.8s ease-out forwards;
}

/* --- Dropdown Option and Token Balance Styles --- */
.dropdown-option {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease-in-out;
  background: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}
.dropdown-option a {
  color: white;
  text-decoration: none;
}

.dropdown-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-option img {
  width: 35px;
  height: 35px;
  box-shadow: 0 0 6px #00e5ff; border-radius: 50%;
}

.token-balance {
  padding: 10px 12px;
  color: white;
  background: rgba(19, 41, 37, 0.5);
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}
#app-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100px;
}

.ankh-left,
.ankh-right {
  display: flex;
  align-items: center;
}

.title-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.right-ankh-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  background: rgba(1, 154, 131, 0.838);
  padding: 10px;
}

.dropdown-menu.right-ankh-menu {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00e5ff;
  border-radius: 6px;
  box-shadow: 0 0 6px #00e5ff;
  color: #00e5ff;
  font-size: 0.8rem;
  padding: 6px 10px;
  z-index: 10001;
  white-space: nowrap;
  pointer-events: auto;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10010;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  border: 1px solid #00e5ff;
  border-radius: 10px;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 0 20px #00e5ff;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffccff;
}

.subscription-tiers {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.subscription-card {
  background: #000;
  border: 1px solid #00e5ff;
  border-radius: 8px;
  padding: 15px;
  width: 220px;
  text-align: center;
  box-shadow: 0 0 10px #00e5ff;
}

.subscription-card img {
  height: 50px;
  margin-bottom: 10px;
}

.subscription-card h3 {
  color: #00e5ff;
  margin-bottom: 10px;
}

.subscription-card p {
  color: #d0d0d0;
  margin-bottom: 10px;
}

.subscription-card input {
  width: 80%;
  padding: 5px;
  margin: 5px 0;
  background: #000;
  border: 1px solid #00e5ff;
  color: #00e5ff;
  text-align: center;
  border-radius: 4px;
}

.subscription-card button {
  background: #00e5ff;
  color: #000;
  padding: 6px 10px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.subscription-card button:hover {
  background: #00ffff;
}

/* ── Network status banner (shown below the wallet button) ── */
.network-banner {
  position: absolute;
  top: 90px;
  right: 0;
  min-width: 170px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.4;
  z-index: 10002;
  pointer-events: auto;
  white-space: nowrap;
  display: none;
}

.network-connected {
  display: block;
  background: rgba(0, 30, 0, 0.85);
  border: 1px solid #00e676;
  color: #00e676;
  box-shadow: 0 0 6px #00e676;
}

.network-wrong {
  display: block;
  background: rgba(30, 0, 0, 0.85);
  border: 1px solid #ff5722;
  color: #ff5722;
  box-shadow: 0 0 6px #ff5722;
}

.network-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.connected-dot {
  background: #00e676;
  box-shadow: 0 0 4px #00e676;
}

.wrong-dot {
  background: #ff5722;
  box-shadow: 0 0 4px #ff5722;
}

.network-address {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: #00e5ff;
  opacity: 0.85;
}

.network-switch-btn {
  margin-top: 5px;
  padding: 3px 8px;
  background: #ff5722;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: bold;
}

.network-switch-btn:hover {
  background: #ff7043;
}

/* ── Version switcher ── */
.version-switcher {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10003;
  font-size: 0.65rem;
}

.version-label {
  color: #d0aff9;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 4px #7300ff;
  margin-right: 2px;
}

.version-btn {
  background: transparent;
  border: 1px solid #7300ff;
  color: #d0aff9;
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
  font-size: 0.62rem;
  font-family: 'Courier New', monospace;
  transition: background 0.2s, color 0.2s;
}

.version-btn:hover,
.version-btn.active {
  background: #7300ff;
  color: #fff;
  box-shadow: 0 0 5px #7300ff;
}

.version-btn.unavailable,
.version-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #555;
  color: #888;
}