.mine-animation {
  display: none;
  font-size: 60px;
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

#mine-animation-left {
  left: -80px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

#mine-animation-right {
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.mine-animation.active {
  display: block;
  animation: handClap 0.6s ease-out;
}

@keyframes handClap {
  0% {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 0;
  }

  30% {
    transform: translateY(-50%) translateX(30px) scale(1.3) rotate(15deg);
    opacity: 1;
  }

  60% {
    transform: translateY(-50%) translateX(20px) scale(1.1) rotate(-10deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) translateX(0) scale(0.8);
    opacity: 0;
  }
}

#mine-animation-right.active {
  animation: handClapRight 0.6s ease-out;
}

@keyframes handClapRight {
  0% {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 0;
  }

  30% {
    transform: translateY(-50%) translateX(-30px) scale(1.3) rotate(-15deg);
    opacity: 1;
  }

  60% {
    transform: translateY(-50%) translateX(-20px) scale(1.1) rotate(10deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-50%) translateX(0) scale(0.8);
    opacity: 0;
  }
}

#helpers {
  margin-top: 10px;
}

.helper {
  font-size: 30px;
  display: inline-block;
  animation: bob 1s infinite;
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

#price-arrow {
  font-size: 20px;
  color: white;
}

.shop-helper {
  font-size: 30px;
  display: inline-block;
}

.wallet-container {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(40, 40, 40, 0.9));
  border: 2px solid #61dafb;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(97, 218, 251, 0.2);
  margin-bottom: 30px;
}

.wallet-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(97, 218, 251, 0.3);
}

.wallet-title {
  font-size: 28px;
  font-weight: bold;
  color: #61dafb;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(97, 218, 251, 0.3);
}

.wallet-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 8px;
}

.wallet-table {
  width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  border-collapse: separate;
  border-spacing: 0;
}

.wallet-table thead {
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.2), rgba(74, 159, 216, 0.2));
}

.wallet-table thead th {
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #61dafb;
  font-weight: 600;
  border-bottom: 2px solid #61dafb;
}

.wallet-table tbody tr {
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(97, 218, 251, 0.1);
}

.wallet-table tbody tr:hover {
  background: rgba(97, 218, 251, 0.1);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(97, 218, 251, 0.3);
}

.wallet-table tbody td {
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  color: #e5e7eb;
}

.wallet-table tbody td:nth-child(2) {
  color: #fbbf24;
  font-weight: bold;
  font-size: 14px;
}

.wallet-table tbody td:nth-child(3) {
  color: #4ade80;
  font-weight: bold;
  font-size: 14px;
}

.wallet-table tbody td:nth-child(7) {
  font-family: 'Courier New', monospace;
  color: #61dafb;
  font-size: 11px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-table .fixed-col {
  position: sticky;
  left: 0;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.8));
  z-index: 1;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.wallet-table tbody tr:hover .fixed-col {
  background: linear-gradient(90deg, rgba(97, 218, 251, 0.15), rgba(97, 218, 251, 0.1));
}

.wallet-table .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.wallet-table .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.5);
}

.wallet-table .btn-danger:active {
  transform: translateY(0);
}

.graph-section,
.stats,
.mine-section,
.shop-panel {
  margin-bottom: 20px;
}

.stats-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.stat-inline {
  font-size: 18px;
  color: #ccc;
}

.stat-label-inline {
  color: #888;
  margin-right: 5px;
}

.stat-value-inline {
  font-weight: bold;
  color: #61dafb;
  font-size: 22px;
}

.cursor-cps {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(135deg, #61dafb, #4a9fd8);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(97, 218, 251, 0.6);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-cps.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

#powerups-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.powerup {
  position: absolute;
  font-size: 50px;
  cursor: pointer;
  pointer-events: all;
  animation: float 3s ease-in-out infinite, fadeIn 0.5s ease-out;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.powerup:hover {
  transform: scale(1.2);
}

.powerup.activated {
  animation: powerupActivate 0.5s ease-out;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes powerupActivate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(2) rotate(360deg);
    opacity: 0.5;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.powerup-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 30px 60px;
  border-radius: 20px;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 60px rgba(102, 126, 234, 0.8), 0 0 100px rgba(240, 147, 251, 0.6);
  z-index: 10000;
  animation: powerupNotification 3s ease-out;
  pointer-events: none;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.powerup-notification::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: powerupPulse 3s ease-out;
  pointer-events: none;
}

@keyframes powerupNotification {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
  }

  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
  }

  15% {
    transform: translate(-50%, -50%) scale(0.95) rotate(-3deg);
  }

  20% {
    transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
  }

  30% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  85% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(10deg);
  }
}

@keyframes powerupPulse {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  20% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.mine-btn {
  padding: 20px 40px;
  font-size: 24px;
  background-color: #61dafb;
  border: none;
  border-radius: 10px;
  box-shadow: 0 9px #999;
  transition: transform 0.1s, box-shadow 0.1s;
}

.mine-btn:active {
  transform: scale(0.95);
  box-shadow: 0 5px #666;
}

.blockchain-fact-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
  color: white;
  padding: 20px 25px;
  padding-right: 45px;
  border-radius: 15px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(126, 34, 206, 0.6), 0 0 20px rgba(30, 60, 114, 0.8);
  z-index: 9999;
  animation: factSlideIn 0.5s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

@keyframes factSlideIn {
  0% {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.fact-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #fbbf24;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fact-text {
  font-size: 15px;
  line-height: 1.6;
  color: #e5e7eb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fact-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.fact-close-button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.fact-close-button:active {
  transform: scale(0.95);
}

.block-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.block-modal-content {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border: 2px solid #61dafb;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(97, 218, 251, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.block-modal-header {
  font-size: 24px;
  font-weight: bold;
  color: #61dafb;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #61dafb;
  text-align: center;
}

.block-detail-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(97, 218, 251, 0.05);
  border-radius: 8px;
  border-left: 3px solid #61dafb;
}

.block-detail-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.block-detail-value {
  font-size: 16px;
  color: #fff;
  word-break: break-all;
}

.block-detail-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #61dafb;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 4px;
}

.block-fun-fact {
  margin-top: 15px;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.1), rgba(74, 159, 216, 0.1));
  border-left: 3px solid #61dafb;
  border-radius: 6px;
  font-size: 13px;
  color: #a0d8ef;
  line-height: 1.5;
  font-style: italic;
}

.block-modal-close {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #61dafb, #4a9fd8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(97, 218, 251, 0.6);
}

.block-modal-close:active {
  transform: translateY(0);
}

.shop-panel .table {
  font-size: 14px;
}

.shop-panel .table td,
.shop-panel .table th {
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

.shop-panel .table button {
  font-size: 12px;
  padding: 4px 8px;
  white-space: nowrap;
}

.mining-visualization-container {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(40, 40, 40, 0.9));
  border: 2px solid #61dafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(97, 218, 251, 0.2);
}

.mining-header {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.mining-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 80px;
}

.stat-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #61dafb;
  font-family: 'Courier New', monospace;
}

.hash-display-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
}

.hash-display-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hash-display {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  line-height: 1.8;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.hash-zeros {
  color: #4ade80;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  animation: pulseGlow 1s ease-in-out infinite;
}

.hash-rest {
  color: #e5e7eb;
}

@keyframes pulseGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  }

  50% {
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.8);
  }
}

.hash-display.hash-success {
  animation: hashSuccess 0.5s ease-out;
}

@keyframes hashSuccess {
  0% {
    background: rgba(74, 222, 128, 0);
  }

  50% {
    background: rgba(74, 222, 128, 0.3);
  }

  100% {
    background: rgba(74, 222, 128, 0);
  }
}

.blockchain-container-compact {
  display: flex;
  overflow-x: auto;
  padding: 10px;
  background-color: rgba(26, 26, 26, 0.5);
  border-radius: 8px;
  gap: 8px;
  max-height: 80px;
  scrollbar-width: thin;
  scrollbar-color: #61dafb #1a1a1a;
}

.blockchain-container-compact::-webkit-scrollbar {
  height: 6px;
}

.blockchain-container-compact::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.blockchain-container-compact::-webkit-scrollbar-thumb {
  background: #61dafb;
  border-radius: 3px;
}

.block-card-compact {
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
  border: 1px solid #61dafb;
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.block-card-compact:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(97, 218, 251, 0.6);
}

.block-card-compact.block-new {
  animation: blockPop 0.5s ease-out;
}

.block-card-compact.block-connecting {
  animation: blockPulse 0.3s ease-out;
}

@keyframes blockPop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }

  60% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes blockPulse {

  0%,
  100% {
    border-color: #61dafb;
  }

  50% {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
  }
}

.block-card-compact::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #61dafb;
  z-index: -1;
}

.block-card-compact:last-child::after {
  content: '';
}

.block-number-compact {
  font-size: 18px;
  font-weight: bold;
  color: #61dafb;
  line-height: 1;
}

.block-label-compact {
  font-size: 8px;
  color: #888;
  text-transform: uppercase;
  margin-top: 2px;
}

.info-button,
.header-info-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: none;
}

.info-button:hover,
.header-info-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #61dafb;
  border-color: rgba(97, 218, 251, 0.3);
  transform: translateY(-1px);
}

.info-button:active,
.header-info-btn:active {
  transform: scale(0.95);
}

.info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.info-modal-content {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border: 2px solid #61dafb;
  border-radius: 15px;
  padding: 30px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(97, 218, 251, 0.4);
  animation: modalSlideIn 0.3s ease-out;
}

.info-modal-header {
  font-size: 28px;
  font-weight: bold;
  color: #61dafb;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #61dafb;
  text-align: center;
}

.info-section {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(97, 218, 251, 0.05);
  border-radius: 8px;
  border-left: 3px solid #61dafb;
}

.info-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #fbbf24;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section-text {
  font-size: 15px;
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 10px;
}

.info-section-text code {
  background: rgba(97, 218, 251, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: #61dafb;
  font-size: 14px;
}

.info-section-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}

.info-section-list li {
  padding: 8px 0;
  color: #e5e7eb;
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}

.info-section-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #61dafb;
  font-weight: bold;
}

.info-section-list li code {
  display: block;
  margin-top: 5px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.5;
}

.info-modal-close {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #61dafb, #4a9fd8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(97, 218, 251, 0.6);
}

.info-modal-close:active {
  transform: translateY(0);
}

/* ==========================================
   MetaMask Wallet Connection Styles
   ========================================== */

/* Full-screen overlay */
.wallet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(12px);
  animation: walletOverlayIn 0.5s ease-out;
}

.wallet-overlay-hidden {
  animation: walletOverlayOut 0.5s ease-out forwards;
}

@keyframes walletOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes walletOverlayOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.wallet-overlay-content {
  text-align: center;
  max-width: 480px;
  width: 90%;
  padding: 50px 40px;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(50, 50, 50, 0.95));
  border: 2px solid #f6851b;
  border-radius: 24px;
  box-shadow:
    0 0 60px rgba(246, 133, 27, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: walletCardIn 0.6s ease-out 0.2s both;
}

@keyframes walletCardIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wallet-overlay-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: foxBounce 2s ease-in-out infinite;
}

@keyframes foxBounce {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(-5deg);
  }

  75% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.wallet-overlay-title {
  font-size: 32px;
  font-weight: bold;
  color: #f6851b;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(246, 133, 27, 0.3);
}

.wallet-overlay-desc {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.6;
}

.wallet-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #f6851b, #e2761b);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(246, 133, 27, 0.4);
  margin-bottom: 20px;
}

.wallet-connect-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(246, 133, 27, 0.6);
  background: linear-gradient(135deg, #e2761b, #cd6116);
}

.wallet-connect-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(246, 133, 27, 0.3);
}

.wallet-btn-icon {
  font-size: 28px;
}

.wallet-overlay-error {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 10px;
  display: none;
  animation: shake 0.5s ease-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.wallet-overlay-hint {
  font-size: 13px;
  color: #666;
  margin-top: 15px;
}

.wallet-overlay-hint a {
  color: #f6851b;
  text-decoration: underline;
  transition: color 0.2s;
}

.wallet-overlay-hint a:hover {
  color: #ffa64d;
}

/* ==========================================
   MODERN HEADER BAR SYSTEM
   ========================================== */

.app-header {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin: 12px 0 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #61dafb 0%, #a78bfa 50%, #f472b6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.version-badge {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-wallet {
  display: flex;
  align-items: center;
}

/* Header wallet status */
.wallet-status {
  display: inline-block;
  vertical-align: middle;
  margin-left: 15px;
}

.wallet-header-btn {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.wallet-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #818cf8, #a78bfa);
}

.wallet-header-btn:active {
  transform: translateY(0);
}

.wallet-connected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 10px;
  font-size: 13px;
  animation: connectedPulse 0.5s ease-out;
  transition: all 0.2s ease;
}

.wallet-connected:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
}

@keyframes connectedPulse {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wallet-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
  }

  50% {
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  }
}

.wallet-address {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: #4ade80;
  font-size: 12px;
  font-weight: 500;
  cursor: default;
  letter-spacing: 0.3px;
}

.wallet-disconnect-btn {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  font-size: 13px;
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 8px 16px;
  font-weight: 500;
}

.wallet-disconnect-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  transform: translateY(-1px);
}

/* Disabled states */
.mine-btn-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  filter: grayscale(60%);
}

.mine-btn-disabled:active {
  transform: none !important;
}

.shop-btn-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  filter: grayscale(60%);
}

/* ==========================================
   TCG SHOP STYLES (Trading Card Game)
   ========================================== */

/* Outer Wooden Frame Wrapper */
.tcg-shop-wrapper {
  background: #3e2723;
  /* Dark earthy wood base */
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 2px, transparent 2px, transparent 4px),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  border: 12px solid #5d4037;
  border-radius: 16px;
  padding: 15px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 0, 0, 0.9);
  height: 100%;
}

/* Metallic Corner Accents */
.tcg-shop-wrapper::before,
.tcg-shop-wrapper::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #a1887f 20%, #4e342e 80%);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 4px 6px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.tcg-shop-wrapper::before {
  top: -12px;
  left: -12px;
}

.tcg-shop-wrapper::after {
  top: -12px;
  right: -12px;
}

/* The Pill Sign Header */
.tcg-shop-header-sign {
  background: linear-gradient(to bottom, #d7ccc8, #a1887f);
  border: 4px solid #4e342e;
  border-radius: 30px;
  padding: 8px 30px;
  text-align: center;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 60%;
}

/* Hide the old chains */
.tcg-shop-header-sign::before,
.tcg-shop-header-sign::after {
  display: none;
}


.tcg-shop-header-sign h2 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 0 #4e342e, -1px -1px 0 #3e2723, 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 0;
  letter-spacing: 3px;
  font-family: 'Impact', 'Arial Black', sans-serif;
  text-transform: uppercase;
}

.tcg-gems-badge {
  background: #3e2723;
  border: 2px solid #a1887f;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 900;
  color: #ffca28;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Inner Board Background */
.tcg-shop-panel {
  background-color: #3b2a26;
  border: 4px solid #1a100d;
  border-radius: 8px;
  padding: 40px 0 20px 0;
  min-height: 300px;
  margin-top: 10px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Gradient fade edges for scroll hint */
.tcg-shop-panel::before,
.tcg-shop-panel::after {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 20px;
  width: 30px;
  z-index: 5;
  pointer-events: none;
}

.tcg-shop-panel::before {
  left: 0;
  background: linear-gradient(to right, #3b2a26 0%, transparent 100%);
  border-radius: 8px 0 0 8px;
}

.tcg-shop-panel::after {
  right: 0;
  background: linear-gradient(to left, #3b2a26 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

.tcg-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 15px 25px 20px 25px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Custom horizontal scrollbar */
.tcg-grid::-webkit-scrollbar {
  height: 8px;
}

.tcg-grid::-webkit-scrollbar-track {
  background: #2a1c18;
  border-radius: 4px;
  margin: 0 20px;
}

.tcg-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #8d6e63, #bcaaa4);
  border-radius: 4px;
  border: 1px solid #4e342e;
}

.tcg-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #a1887f, #d7ccc8);
}

/* ==========================================
   NEW BEIGE CARD UNIFIED DESIGN 
   (Used for Shop & My Collection)
   ========================================== */

.nft-card {
  position: relative;
  background-color: #fcf6ef;
  border: 4px solid #4a3424;
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  max-width: 260px;
  /* Limits maximum width on very large screens */
  margin: 0 auto;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nft-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.6);
}

/* Active Green Badge */
.nft-card-active-badge {
  position: absolute;
  top: -12px;
  right: 15px;
  background-color: #3ade82;
  color: #064e3b;
  font-weight: 900;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nft-card-active-badge::before {
  content: "⚡ ";
}

/* Image Wrapper */
.nft-card-image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #332117;
  margin-bottom: 12px;
  background-color: #000;
}

.nft-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card Title */
.nft-card-title {
  font-family: 'Impact', sans-serif;
  color: #4a3424;
  font-size: 18px;
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* Inner Bubble Box (Count / Price) */
.nft-card-bubble {
  background-color: #5c4333;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 16px;
  border-radius: 16px;
  margin-bottom: 6px;
  display: inline-block;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nft-card-bubble-price {
  color: #ffca28;
}

/* Sub-stat text (e.g. +30 CPS total) */
.nft-card-substat {
  font-size: 12px;
  color: #8b7361;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Action Button */
.nft-card-btn {
  background: #4ade80;
  border: 2px solid #166534;
  border-radius: 6px;
  color: #064e3b;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 20px;
  cursor: pointer;
  transition: all 0.1s;
  width: 90%;
  margin-top: auto;
}

.nft-card-btn:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
}

.nft-card-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.nft-card-btn:disabled {
  background: #9ca3af !important;
  border-color: #4b5563 !important;
  color: #374151 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* NFT Showcase Grid - Wrap inside UI frame */
.nft-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 15px 20px 20px 20px;
  width: 100%;
  justify-items: center;
  user-select: none;
}

/* Responsive */
@media (max-width: 576px) {
  .nft-card {
    min-width: 160px;
    width: 160px;
  }

  .nft-card-image-wrapper {
    height: 150px;
  }
}

/* ==========================================
   TAB MENU SYSTEM
   ========================================== */

.game-menu-wrapper {
  margin-bottom: 30px;
}

.game-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
}

.game-tab {
  flex: 1;
  background: linear-gradient(to bottom, #1a1a1a, #222);
  border: 2px solid #333;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 14px 20px;
  color: #888;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.game-tab:hover {
  background: linear-gradient(to bottom, #2a2a2a, #333);
  color: #61dafb;
}

.game-tab.active {
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.9), rgba(40, 40, 40, 0.9));
  color: #61dafb;
  border-color: #61dafb;
  box-shadow: 0 -4px 10px rgba(97, 218, 251, 0.2);
  transform: translateY(-3px);
  z-index: 2;
  position: relative;
}

.game-tab span {
  font-size: 16px;
}

.game-tab-content {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(40, 40, 40, 0.9));
  border: 2px solid #61dafb;
  border-radius: 0 0 16px 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(97, 218, 251, 0.05);
  min-height: 300px;
}

.game-tab-panel {
  display: none;
}

.game-tab-panel.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   NFT SHOWCASE (My NFTs Tab)
   ========================================== */

.nft-showcase {
  padding: 10px;
}

.nft-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #5d4037;
}

.nft-showcase-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: #efebe9;
  font-family: 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 2px 2px 0 #3e2723;
}

.nft-total-power {
  background: rgba(97, 218, 251, 0.15);
  border: 2px solid #61dafb;
  border-radius: 20px;
  padding: 6px 16px;
  color: #61dafb;
  font-weight: 900;
  font-size: 16px;
  font-family: 'Courier New', Courier, monospace;
}

.nft-empty-state {
  flex: 0 0 100%;
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.nft-empty-icon {
  font-size: 60px;
  margin-bottom: 10px;
}

.nft-empty-state p {
  font-size: 16px;
  margin: 4px 0;
}

/* ==========================================
   DARK WALLET THEME FOR CARDS
   ========================================== */
.game-tab-panel .wallet-container {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.game-tab-panel .nft-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(40, 40, 40, 0.9));
  border: 2px solid #61dafb;
  box-shadow: 0 4px 15px rgba(97, 218, 251, 0.2);
  transition: all 0.3s ease;
}

.game-tab-panel .nft-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 25px rgba(97, 218, 251, 0.8), 0 0 45px rgba(97, 218, 251, 0.4);
  border-color: #fff;
  z-index: 10;
}

.game-tab-panel .nft-card-title {
  color: #61dafb;
  text-shadow: 0 0 5px rgba(97, 218, 251, 0.3);
}

.game-tab-panel .nft-card-bubble {
  background-color: rgba(97, 218, 251, 0.1);
  color: #61dafb;
  border: 1px solid #61dafb;
}

.game-tab-panel .nft-card-substat {
  color: #aaa;
}

.game-tab-panel .nft-card-image-wrapper {
  border-color: #61dafb;
  box-shadow: inset 0 0 10px rgba(97, 218, 251, 0.2);
}

.game-tab-panel .nft-card-active-badge {
  background-color: rgba(97, 218, 251, 0.2);
  color: #61dafb;
  border: 1px solid #61dafb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   TRANSFER PANEL (Transfer Tab)
   ========================================== */

.transfer-panel {
  max-width: 500px;
  margin: 0 auto;
  padding: 10px;
}

.transfer-header {
  text-align: center;
  margin-bottom: 20px;
}

.transfer-header h2 {
  font-size: 26px;
  font-weight: 900;
  color: #61dafb;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 2px;
  margin: 0 0 5px 0;
  text-shadow: 0 0 10px rgba(97, 218, 251, 0.3);
}

.transfer-header p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

.transfer-balance {
  background: rgba(97, 218, 251, 0.05);
  border: 2px solid rgba(97, 218, 251, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.transfer-balance-label {
  color: #888;
  font-size: 14px;
}

.transfer-balance-value {
  color: #61dafb;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
}

.transfer-balance-unit {
  color: #4a9fd8;
  font-size: 14px;
  font-weight: 700;
}

.transfer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transfer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.transfer-field label {
  color: #888;
  font-size: 14px;
  font-weight: 700;
}

.transfer-field input {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 16px;
  font-family: 'Courier New', Courier, monospace;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.transfer-field input:focus {
  border-color: #61dafb;
  box-shadow: 0 0 10px rgba(97, 218, 251, 0.2);
}

.transfer-field input::placeholder {
  color: #555;
}

.transfer-max-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(97, 218, 251, 0.2);
  border: 1px solid #61dafb;
  border-radius: 4px;
  color: #61dafb;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.transfer-max-btn:hover {
  background: rgba(97, 218, 251, 0.4);
  transform: scale(1.05);
}

.transfer-summary {
  background: rgba(97, 218, 251, 0.05);
  border: 1px solid rgba(97, 218, 251, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
}

.transfer-summary-row {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 14px;
  margin: 4px 0;
}

.transfer-send-btn {
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.2), rgba(74, 159, 216, 0.4));
  border: 2px solid #61dafb;
  border-radius: 10px;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 0 4px 10px rgba(97, 218, 251, 0.2);
  transition: all 0.2s;
}

.transfer-send-btn:hover {
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.4), rgba(74, 159, 216, 0.6));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(97, 218, 251, 0.4);
}

.transfer-send-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.transfer-status {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

.transfer-status.success {
  color: #4ade80;
}

.transfer-status.error {
  color: #f87171;
}

/* Responsive Tabs */
@media (max-width: 576px) {
  .game-tab {
    font-size: 14px;
    padding: 10px 8px;
  }

  .game-tab span {
    font-size: 12px;
  }

  .nft-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .transfer-balance-value {
    font-size: 22px;
  }
}

/* ==========================================
   RANKING SYSTEM STYLES
   ========================================== */

/* Rank Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
  min-width: 36px;
}

.badge-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.badge-silver {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.badge-bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.badge-info {
  background: rgba(97, 218, 251, 0.15);
  color: #61dafb;
  border: 1px solid rgba(97, 218, 251, 0.3);
}

/* Ranking Sub-tabs */
.ranking-sub-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ranking-sub-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(97, 218, 251, 0.2);
  color: #888;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.ranking-sub-tab:hover {
  background: rgba(97, 218, 251, 0.1);
  color: #61dafb;
  border-color: rgba(97, 218, 251, 0.4);
}

.ranking-sub-tab.active {
  background: linear-gradient(135deg, rgba(97, 218, 251, 0.25), rgba(74, 159, 216, 0.2));
  color: #61dafb;
  border-color: #61dafb;
  box-shadow: 0 2px 10px rgba(97, 218, 251, 0.25);
}

/* Highlight current player row */
.ranking-highlight {
  background: rgba(97, 218, 251, 0.12) !important;
  border-left: 3px solid #61dafb;
}

.ranking-highlight td {
  color: #61dafb !important;
}

/* "YOU" tag */
.ranking-me-tag {
  display: inline-block;
  background: linear-gradient(135deg, #61dafb, #4a9fd8);
  color: #1a1a1a;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* Ranking Footer */
.ranking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(97, 218, 251, 0.1);
}

.ranking-player-count {
  font-size: 12px;
  color: #666;
  letter-spacing: 0.3px;
}

.ranking-refresh-btn {
  background: rgba(97, 218, 251, 0.1);
  border: 1px solid rgba(97, 218, 251, 0.2);
  color: #61dafb;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.ranking-refresh-btn:hover {
  background: rgba(97, 218, 251, 0.2);
  border-color: #61dafb;
  transform: rotate(90deg);
}

/* Responsive Ranking Sub-tabs */
@media (max-width: 576px) {
  .ranking-sub-tab {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ==========================================
   CUSTOM MODAL STYLES
   ========================================== */

.custom-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.custom-modal.show {
  display: flex !important;
}

.custom-modal-content {
  background: #1a1a2e;
  border: 1px solid #00f3ff;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

.custom-modal-content h3 {
  color: #00f3ff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-modal-content p {
  color: #e0e0e0;
  margin-bottom: 25px;
  line-height: 1.5;
  font-size: 1.1rem;
}

.custom-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.modal-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-btn.confirm {
  background: #00f3ff;
  color: #1a1a2e;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.modal-btn.confirm:hover {
  background: #00d0ff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.8);
  transform: translateY(-2px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   WALLET PAGINATION STYLES
   ========================================== */

.wallet-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.pagination-btn {
  background: rgba(0, 243, 255, 0.1);
  color: #00f3ff;
  border: 1px solid #00f3ff;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(0, 243, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-info {
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: bold;
}

/* ==========================================
   BLOCK DETAILS MODAL 
   ========================================== */

.hash-link {
  color: #00f3ff;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0, 243, 255, 0.4);
  text-underline-offset: 3px;
  transition: all 0.2s;
}

.hash-link:hover {
  text-decoration-color: #00f3ff;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

/* ==========================================
   PHASE 13 UI ENHANCEMENTS 
   ========================================== */

/* Live Indicator */
.live-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: pulseLive 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8), 0 0 20px rgba(74, 222, 128, 0.2);
    transform: scale(1.1);
  }
}

/* Wallet Header Wrapper */
.wallet-wrapper {
  position: relative;
  display: inline-block;
  font-size: 14px;
}

/* Copy Button & Icons */
.wallet-icon-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.wallet-icon-btn:hover {
  color: #4ade80;
}

/* Wallet Dropdown */
.wallet-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  transform: none;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  width: 260px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 100;
  animation: dropdownSlide 0.2s ease-out forwards;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-address {
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: rgba(255, 255, 255, 0.45);
  word-break: break-all;
}

.dropdown-balances {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dropdown-balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.balance-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.balance-value {
  font-size: 17px;
  font-weight: 700;
  color: #61dafb;
}

.dropdown-disconnect-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  display: block;
  border: 1px solid rgba(255, 107, 107, 0.2) !important;
}

/* Active Tab Contrast */
.game-tab {
  transition: all 0.3s ease;
  padding-bottom: 8px;
}

.game-tab.active {
  border-bottom: 3px solid #61dafb;
  background-color: rgba(97, 218, 251, 0.1);
  color: #fff;
  font-weight: bold;
}

.game-tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.tab-label {
  margin-left: 5px;
}

/* Dashboard Stat Highlights */
.mining-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value.highlight {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  line-height: 1.1;
  margin-top: 5px;
}

/* Progress Bar Tweaks */
.progress {
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar {
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.8);
}

/* Glow Button (Mine NHCoin) */
.glow-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6) !important;
  transition: all 0.2s ease-in-out !important;
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.9) !important;
}

.glow-btn:active {
  transform: translateY(1px);
}

/* Powerup Ad Buttons */
.powerup-btn {
  font-weight: bold;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s !important;
}

.powerup-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ==========================================
   SWAP NHC → GEMS WIDGET
   ========================================== */

/* ==========================================
   SWAP NHC → GEMS WIDGET (Glassmorphism v3)
   ========================================== */

.swap-widget {
  margin-top: 30px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(40, 40, 40, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 243, 255, 0.4);
  /* Default Cyan for NHC */
  border-radius: 12px;
  /* Matching Mining Container */
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 243, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swap-widget.is-nhc-theme {
  border-color: rgba(0, 243, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 243, 255, 0.2);
}

.swap-widget.is-gems-theme {
  border-color: rgba(163, 51, 255, 0.5);
  box-shadow: 0 4px 30px rgba(163, 51, 255, 0.2);
}

.swap-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
  animation: swapShimmer 6s linear infinite;
}

@keyframes swapShimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.swap-widget-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.swap-widget-title {
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.swap-rate-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 14px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
}

.swap-rate-badge span {
  color: #00f3ff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.swap-widget-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.swap-input-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid transparent;
}

.swap-input-container.is-nhc {
  border-left-color: #00f3ff;
}

.swap-input-container.is-gems {
  border-left-color: #a333ff;
}

.swap-input-container:focus-within {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(0, 243, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.swap-input-container.is-gems:focus-within {
  border-color: rgba(163, 51, 255, 0.6);
  box-shadow: 0 0 20px rgba(163, 51, 255, 0.2);
}

.swap-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.swap-label-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.swap-balance-text {
  color: #888;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#swap-send-balance {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  font-family: 'Courier New', monospace;
}

.swap-input-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swap-coin-icon {
  font-size: 1.5rem;
  min-width: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.swap-main-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  outline: none;
  width: 100%;
  padding: 0;
}

.swap-main-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.swap-max-link {
  color: #00f3ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 243, 255, 0.05);
}

.swap-max-link:hover {
  background: rgba(0, 243, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.swap-divider-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -10px 0;
  position: relative;
  z-index: 2;
}

.swap-toggle-round {
  width: 40px;
  height: 40px;
  background: #1a2233;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 16px;
}

.swap-toggle-round:hover {
  transform: rotate(180deg) scale(1.1);
  border-color: #00f3ff;
  color: #00f3ff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.swap-confirm-btn {
  width: 100%;
  padding: 18px;
  border-radius: 10px;
  border: none;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
  margin-top: 10px;
  background: linear-gradient(135deg, #a333ff 0%, #00f3ff 100%) !important;
  box-shadow: 0 0 15px rgba(163, 51, 255, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.swap-confirm-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 243, 255, 0.5);
  filter: brightness(1.1);
}

.swap-confirm-btn:active {
  transform: translateY(1px) scale(0.98);
}

.swap-confirm-btn.is-gems-to-nhc {
  background: linear-gradient(135deg, #00f3ff 0%, #a333ff 100%) !important;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.swap-confirm-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.swap-confirm-btn:active {
  transform: translateY(0);
}

.swap-confirm-btn:disabled {
  background: #333 !important;
  color: #666;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none;
}

.insufficient-balance {
  border-color: #ff4444 !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.2) !important;
}

.swap-preview-value-v3 {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
  opacity: 0.9;
}

/* Sync Indicator Styles */
.sync-indicator {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-left: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: help;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-indicator.synced {
  color: #00ff88;
  text-shadow: 0 0 5px #00ff88;
}

.sync-indicator.syncing {
  color: #00d4ff;
  text-shadow: 0 0 8px #00d4ff;
  animation: pulse-sync 1s infinite alternate;
}

.sync-indicator.error {
  color: #ff4444;
  text-shadow: 0 0 10px #ff4444;
}

@keyframes pulse-sync {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}