/* 아이콘 애니메이션 영역 */
.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: transparent;
  z-index: 2000;
}
.deposit-modal {
  position: fixed;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  padding: 8px;
  width: max-content;
  max-width: calc(100vw - 16px);
  text-align: left;
  animation: modalPop 0.25s cubic-bezier(0.4, 2, 0.6, 1) both;
}
.deposit-modal .modal-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.deposit-modal input[type="number"] {
  width: 140px;
  min-width: 0;
  padding: 8px 10px;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition: border 0.2s;
}
.deposit-modal input[type="number"]:focus {
  border: 1px solid #3b82f6;
}
.deposit-modal button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.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;
}
@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: 2px solid #ffb84d !important;
  box-shadow:
    0 12px 24px rgba(255, 180, 70, 0.22),
    0 4px 12px rgba(255, 200, 90, 0.08) 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: 2px solid rgba(142, 108, 255, 0.72) !important;
  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);
}

@media (max-width: 640px) {
  .deposit-modal {
    max-width: calc(100vw - 12px);
    padding: 7px;
  }

  .deposit-modal .modal-row {
    gap: 5px;
  }

  .deposit-modal input[type="number"] {
    width: 120px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .deposit-modal button {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* 제안사항:
 - 보관 모드는 현재 강렬한 글로우와 두꺼운 테두리로 설정되어 있습니다. 원하면 테두리에 그라데이션을 추가하거나
   글로우 애니메이션(fade-in/out)을 넣어 시선을 더 유도할 수 있습니다.
 - 전환 모드는 은은함 유지하되, 액세스성을 위해 대비를 약간 더 올려 버튼 텍스트 가독성을 확인하세요.
 */
