.wrapper {
  width: 100%;
}

/* Logo */
.header {
  display: flex;
  justify-content: center;
  margin-top: 5vh;
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease-out;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 262px;
  height: auto;
  object-fit: contain;
  animation: fadeInDown 0.8s ease-out;
}

/* Player ID */
.player-id {
  width: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 7px 14px;
  gap: 10px;
  margin: 0 auto 16px auto;
  background: rgba(167, 236, 243, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  box-sizing: border-box;
  animation: fadeInDown 1.2s ease-out;
}

.player-id-copied {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  white-space: nowrap;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  box-sizing: border-box;

  color: #fff;
  font-weight: 700;
  font-size: 13px;
  pointer-events: none;
}

.player-id-copied.show {
  animation: playerIdCopiedInOut 1.2s ease-in-out forwards;
}

@keyframes playerIdCopiedInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
}

.player-id-label,
.player-id-value {
  font-weight: 700;
  font-size: 16px;
  line-height: 17px;
  color: #FFFFFF;
}

/* Button grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 132px);
  grid-template-rows: repeat(3, 84px);
  gap: 11px;
  justify-content: center;
  padding: 0 16px;
}

/* Card button */
.card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  gap: 7px;
  background: rgba(167, 236, 243, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}

.card:focus-visible {
  outline: none;
}

.card:nth-child(1) { animation: fadeInUp 0.4s ease-out both; animation-delay: 0.05s; }
.card:nth-child(2) { animation: fadeInUp 0.4s ease-out both; animation-delay: 0.10s; }
.card:nth-child(3) { animation: fadeInUp 0.4s ease-out both; animation-delay: 0.15s; }
.card:nth-child(4) { animation: fadeInUp 0.4s ease-out both; animation-delay: 0.20s; }
.card:nth-child(5) { animation: fadeInUp 0.4s ease-out both; animation-delay: 0.25s; }
.card:nth-child(6) { animation: fadeInUp 0.4s ease-out both; animation-delay: 0.30s; }

.card:active {
  transform: scale(0.96);
  background: rgba(167, 236, 243, 0.18);
}

/* Icon */
.card-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

/* Text block */
.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  width: 132px;
}

.card-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 15px;
  text-align: center;
  color: #FFFFFF;
  width: 132px;
}

.card-desc {
  font-weight: 500;
  font-size: 10px;
  line-height: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

/* Disabled state */
.card:disabled,
.card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.card:disabled .card-title,
.card.disabled .card-title {
  opacity: 0.6;
}

.card:disabled .card-desc,
.card.disabled .card-desc {
  opacity: 0.6;
}

/* Processing message in description */
.card-desc.processing-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  color: rgba(255, 200, 50, 0.9);
  opacity: 1 !important;
}

.card:disabled .card-desc.processing-message,
.card.disabled .card-desc.processing-message {
  opacity: 1 !important;
}

.card:disabled .card-desc.processing-message .processing-spinner,
.card.disabled .card-desc.processing-message .processing-spinner {
  opacity: 1 !important;
}

.card-desc.service-unavailable {
  color: rgba(255, 100, 100, 0.9);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-info {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  padding: 14px 30px;
  gap: 15px;
  overflow: hidden;
  text-align: left;
  width: 100%;

  .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .card-title, .card-desc {
    text-align: left;
    width: 100%;
  }

  .card-title {
    font-size: 16px;
  }

  .card-desc {
    font-size: 12px;
  }
}

.card-arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
}

.profile-btn:hover, .agent-btn:hover, .deposit-btn:hover, .withdraw-btn:hover, .support-btn:hover, .info-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 188, 212, 0.3);
  border-color: rgba(0, 188, 212, 0.4);
}

.profile-btn:hover .button-glow, .agent-btn:hover .button-glow, .deposit-btn:hover .button-glow, .withdraw-btn:hover .button-glow, .support-btn:hover .button-glow, .info-btn:hover .button-glow {
  left: 100%;
}