/* 아이콘 애니메이션 영역 */
.deposit-modal-anim {
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.deposit-modal-anim svg {
  width: 180px;
  height: 48px;
  overflow: visible;
}
.deposit-modal-anim text {
  transition: transform 0.7s cubic-bezier(0.4, 2, 0.6, 1);
  will-change: transform;
}
/* 보관/전환 모달 스타일 */
.deposit-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deposit-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 32px 28px 24px 28px;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.4, 2, 0.6, 1) both;
}
.deposit-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: #1a2a44;
  font-weight: bold;
}
.deposit-modal input[type="number"] {
  width: 80%;
  padding: 10px;
  margin: 16px 0 24px 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  outline: none;
  transition: border 0.2s;
}
.deposit-modal input[type="number"]:focus {
  border: 1.5px solid #007bff;
}
.deposit-modal .modal-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.deposit-modal button {
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.deposit-modal .confirm-btn {
  background: linear-gradient(90deg, #007bff 60%, #00c6ff 100%);
  color: #fff;
}
.deposit-modal .confirm-btn:hover {
  background: linear-gradient(90deg, #0056b3 60%, #009ec3 100%);
}
.deposit-modal .cancel-btn {
  background: #e0e0e0;
  color: #333;
}
.deposit-modal .cancel-btn:hover {
  background: #bdbdbd;
}
.deposit-modal .close-x {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.3rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.deposit-modal .close-x:hover {
  color: #ff3333;
}
@keyframes modalPop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* floatParticle removed */

/* Mode-specific theming: deposit (gold) vs withdraw (purple) */
.deposit-modal.mode-deposit {
  border: 4px solid #ffb84d !important; /* stronger gold border */
  box-shadow: 0 18px 48px rgba(255, 180, 70, 0.22),
    0 6px 20px rgba(255, 200, 90, 0.06) inset;
  position: relative;
}
/* subtle outer glow using a pseudo-element for more pronounced gold halo */
.deposit-modal.mode-deposit::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 22px;
  background: radial-gradient(
    closest-side,
    rgba(255, 200, 80, 0.14),
    rgba(255, 200, 80, 0) 60%
  );
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.deposit-modal.mode-withdraw {
  border: 3px solid rgba(142, 108, 255, 0.72) !important; /* slightly thicker, stronger purple */
  box-shadow: 0 8px 22px rgba(125, 96, 230, 0.1);
}

/* Confirm button overrides to match modal theme (enhanced) */
.deposit-modal.mode-deposit .confirm-btn {
  background: linear-gradient(90deg, #ffd86a 50%, #ffb84d 100%);
  color: #081018;
  box-shadow: 0 12px 26px rgba(255, 174, 52, 0.16);
}
.deposit-modal.mode-withdraw .confirm-btn {
  background: linear-gradient(
    90deg,
    rgba(142, 108, 255, 0.9) 50%,
    #d27bff 100%
  );
  color: #fff;
  box-shadow: 0 6px 14px rgba(142, 108, 255, 0.06);
}

/* Slightly tint the close button for visual coherence */
.deposit-modal.mode-deposit .close-x {
  color: #b37400;
}
.deposit-modal.mode-withdraw .close-x {
  color: #6b45c9;
}

/* 제안사항:
 - 보관 모드는 현재 강렬한 글로우와 두꺼운 테두리로 설정되어 있습니다. 원하면 테두리에 그라데이션을 추가하거나
   글로우 애니메이션(fade-in/out)을 넣어 시선을 더 유도할 수 있습니다.
 - 전환 모드는 은은함 유지하되, 액세스성을 위해 대비를 약간 더 올려 버튼 텍스트 가독성을 확인하세요.
 */
